Changeset 622 for GPL/branches/uniaud32-next/include/linux
- Timestamp:
- Jan 2, 2021, 1:29:57 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next/include/linux
- Files:
-
- 5 edited
-
device.h (modified) (1 diff)
-
dma-mapping.h (modified) (1 diff)
-
list.h (modified) (1 diff)
-
log2.h (modified) (1 diff)
-
refcount.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/device.h
r615 r622 76 76 struct list_head devres_head; 77 77 const struct attribute_group **groups; /* optional groups */ 78 conststruct dma_map_ops *dma_ops;78 struct dma_map_ops *dma_ops; 79 79 u64 *dma_mask; /* dma mask (if dma'able device) */ 80 80 u64 coherent_dma_mask; /* Like dma_mask, but for -
GPL/branches/uniaud32-next/include/linux/dma-mapping.h
r615 r622 108 108 109 109 static inline void set_dma_ops(struct device *dev, 110 conststruct dma_map_ops *dma_ops)110 struct dma_map_ops *dma_ops) 111 111 { 112 112 dev->dma_ops = dma_ops; -
GPL/branches/uniaud32-next/include/linux/list.h
r615 r622 294 294 * @head: the list to test. 295 295 */ 296 static inline int list_is_singular( conststruct list_head *head)296 static inline int list_is_singular(struct list_head *head) 297 297 { 298 298 return !list_empty(head) && (head->next == head->prev); -
GPL/branches/uniaud32-next/include/linux/log2.h
r615 r622 11 11 { 12 12 return (n != 0 && ((n & (n - 1)) == 0)); 13 }14 15 /*16 * round up to nearest power of two17 */18 static inline19 unsigned long __roundup_pow_of_two(unsigned long n)20 {21 return 1UL << fls_long(n - 1);22 }23 24 /*25 * round down to nearest power of two26 */27 static inline28 unsigned long __rounddown_pow_of_two(unsigned long n)29 {30 return 1UL << (fls_long(n) - 1);31 13 } 32 14 -
GPL/branches/uniaud32-next/include/linux/refcount.h
r615 r622 37 37 } 38 38 39 static inline __must_check bool refcount_add_not_zero(unsigned int i, refcount_t *r)40 {41 return atomic_add_unless(&r->refs, i, 0);42 }43 44 39 static inline void refcount_add(unsigned int i, refcount_t *r) 45 40 { 46 41 atomic_add(i, &r->refs); 47 }48 49 static inline __must_check bool refcount_inc_not_zero(refcount_t *r)50 {51 return atomic_add_unless(&r->refs, 1, 0);52 42 } 53 43
Note:
See TracChangeset
for help on using the changeset viewer.
