/include/linux/ |
D | log2.h | 32 int __ilog2_u32(u32 n) in __ilog2_u32() argument 34 return fls(n) - 1; in __ilog2_u32() 40 int __ilog2_u64(u64 n) in __ilog2_u64() argument 42 return fls64(n) - 1; in __ilog2_u64() 52 bool is_power_of_2(unsigned long n) in is_power_of_2() argument 54 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2() 61 unsigned long __roundup_pow_of_two(unsigned long n) in __roundup_pow_of_two() argument 63 return 1UL << fls_long(n - 1); in __roundup_pow_of_two() 70 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() argument 72 return 1UL << (fls_long(n) - 1); in __rounddown_pow_of_two() [all …]
|
D | hash.h | 39 u64 n = hash; in hash_64() local 40 n <<= 18; in hash_64() 41 hash -= n; in hash_64() 42 n <<= 33; in hash_64() 43 hash -= n; in hash_64() 44 n <<= 3; in hash_64() 45 hash += n; in hash_64() 46 n <<= 3; in hash_64() 47 hash -= n; in hash_64() 48 n <<= 4; in hash_64() [all …]
|
D | rculist_nulls.h | 32 static inline void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_init_rcu() argument 34 if (!hlist_nulls_unhashed(n)) { in hlist_nulls_del_init_rcu() 35 __hlist_nulls_del(n); in hlist_nulls_del_init_rcu() 36 n->pprev = NULL; in hlist_nulls_del_init_rcu() 59 static inline void hlist_nulls_del_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_rcu() argument 61 __hlist_nulls_del(n); in hlist_nulls_del_rcu() 62 n->pprev = LIST_POISON2; in hlist_nulls_del_rcu() 84 static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, in hlist_nulls_add_head_rcu() argument 89 n->next = first; in hlist_nulls_add_head_rcu() 90 n->pprev = &h->first; in hlist_nulls_add_head_rcu() [all …]
|
D | ioport.h | 137 #define request_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name), 0) argument 138 #define __request_mem_region(start,n,name, excl) __request_region(&iomem_resource, (start), (n), (n… argument 139 #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name), 0) argument 140 #define request_mem_region_exclusive(start,n,name) \ argument 141 __request_region(&iomem_resource, (start), (n), (name), IORESOURCE_EXCLUSIVE) 146 resource_size_t n, 150 #define release_region(start,n) __release_region(&ioport_resource, (start), (n)) argument 151 #define check_mem_region(start,n) __check_region(&iomem_resource, (start), (n)) argument 152 #define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n)) argument 159 resource_size_t n) in check_region() argument [all …]
|
D | rculist.h | 120 static inline void hlist_del_init_rcu(struct hlist_node *n) in hlist_del_init_rcu() argument 122 if (!hlist_unhashed(n)) { in hlist_del_init_rcu() 123 __hlist_del(n); in hlist_del_init_rcu() 124 n->pprev = NULL; in hlist_del_init_rcu() 257 static inline void hlist_del_rcu(struct hlist_node *n) in hlist_del_rcu() argument 259 __hlist_del(n); in hlist_del_rcu() 260 n->pprev = LIST_POISON2; in hlist_del_rcu() 302 static inline void hlist_add_head_rcu(struct hlist_node *n, in hlist_add_head_rcu() argument 307 n->next = first; in hlist_add_head_rcu() 308 n->pprev = &h->first; in hlist_add_head_rcu() [all …]
|
D | list.h | 385 #define list_for_each_safe(pos, n, head) \ argument 386 for (pos = (head)->next, n = pos->next; pos != (head); \ 387 pos = n, n = pos->next) 395 #define list_for_each_prev_safe(pos, n, head) \ argument 396 for (pos = (head)->prev, n = pos->prev; \ 398 pos = n, n = pos->prev) 480 #define list_for_each_entry_safe(pos, n, head, member) \ argument 482 n = list_entry(pos->member.next, typeof(*pos), member); \ 484 pos = n, n = list_entry(n->member.next, typeof(*n), member)) 496 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument [all …]
|
D | circ_buf.h | 23 int n = ((head) + end) & ((size)-1); \ 24 n < end ? n : end;}) 29 int n = (end + (tail)) & ((size)-1); \ 30 n <= end ? n : end+1;})
|
D | delay.h | 31 #define mdelay(n) (\ argument 32 (__builtin_constant_p(n) && (n)<=MAX_UDELAY_MS) ? udelay((n)*1000) : \ 33 ({unsigned long __ms=(n); while (__ms--) udelay(1000);}))
|
D | klist.h | 45 extern void klist_add_tail(struct klist_node *n, struct klist *k); 46 extern void klist_add_head(struct klist_node *n, struct klist *k); 47 extern void klist_add_after(struct klist_node *n, struct klist_node *pos); 48 extern void klist_add_before(struct klist_node *n, struct klist_node *pos); 50 extern void klist_del(struct klist_node *n); 51 extern void klist_remove(struct klist_node *n); 53 extern int klist_node_attached(struct klist_node *n); 64 struct klist_node *n);
|
D | profile.h | 79 int task_handoff_register(struct notifier_block * n); 80 int task_handoff_unregister(struct notifier_block * n); 82 int profile_event_register(enum profile_type, struct notifier_block * n); 83 int profile_event_unregister(enum profile_type, struct notifier_block * n); 114 static inline int task_handoff_register(struct notifier_block * n) in task_handoff_register() argument 119 static inline int task_handoff_unregister(struct notifier_block * n) in task_handoff_unregister() argument 124 static inline int profile_event_register(enum profile_type t, struct notifier_block * n) in profile_event_register() argument 129 static inline int profile_event_unregister(enum profile_type t, struct notifier_block * n) in profile_event_unregister() argument
|
D | workqueue.h | 54 #define __WORK_INIT_LOCKDEP_MAP(n, k) \ argument 55 .lockdep_map = STATIC_LOCKDEP_MAP_INIT(n, k), 57 #define __WORK_INIT_LOCKDEP_MAP(n, k) argument 60 #define __WORK_INITIALIZER(n, f) { \ argument 62 .entry = { &(n).entry, &(n).entry }, \ 64 __WORK_INIT_LOCKDEP_MAP(#n, &(n)) \ 67 #define __DELAYED_WORK_INITIALIZER(n, f) { \ argument 68 .work = __WORK_INITIALIZER((n).work, (f)), \ 72 #define DECLARE_WORK(n, f) \ argument 73 struct work_struct n = __WORK_INITIALIZER(n, f) [all …]
|
D | uaccess.h | 44 const void __user *from, unsigned long n) in __copy_from_user_inatomic_nocache() argument 46 return __copy_from_user_inatomic(to, from, n); in __copy_from_user_inatomic_nocache() 50 const void __user *from, unsigned long n) in __copy_from_user_nocache() argument 52 return __copy_from_user(to, from, n); in __copy_from_user_nocache()
|
/include/pcmcia/ |
D | mem_op.h | 33 static inline void copy_pc_to_user(void *to, const void *from, size_t n) in copy_pc_to_user() argument 35 size_t odd = (n & 3); in copy_pc_to_user() 36 n -= odd; in copy_pc_to_user() 37 while (n) { in copy_pc_to_user() 39 (char *)from += 4; (char *)to += 4; n -= 4; in copy_pc_to_user() 45 static inline void copy_user_to_pc(void *to, const void *from, size_t n) in copy_user_to_pc() argument 49 size_t odd = (n & 3); in copy_user_to_pc() 50 n -= odd; in copy_user_to_pc() 51 while (n) { in copy_user_to_pc() 54 (char *)to += 4; (char *)from += 4; n -= 4; in copy_user_to_pc() [all …]
|
/include/asm-m32r/ |
D | delay.h | 18 #define udelay(n) (__builtin_constant_p(n) ? \ argument 19 ((n) > 20000 ? __bad_udelay() : __const_udelay((n) * 0x10c7ul)) : \ 20 __udelay(n)) 22 #define ndelay(n) (__builtin_constant_p(n) ? \ argument 23 ((n) > 20000 ? __bad_ndelay() : __const_udelay((n) * 5ul)) : \ 24 __ndelay(n))
|
D | uaccess.h | 549 const void __user *from, unsigned long n) in __generic_copy_from_user_nocheck() argument 551 __copy_user_zeroing(to,from,n); in __generic_copy_from_user_nocheck() 552 return n; in __generic_copy_from_user_nocheck() 556 const void *from, unsigned long n) in __generic_copy_to_user_nocheck() argument 558 __copy_user(to,from,n); in __generic_copy_to_user_nocheck() 559 return n; in __generic_copy_to_user_nocheck() 579 #define __copy_to_user(to,from,n) \ argument 580 __generic_copy_to_user_nocheck((to),(from),(n)) 598 #define copy_to_user(to,from,n) \ argument 601 __generic_copy_to_user((to),(from),(n)); \ [all …]
|
/include/asm-generic/ |
D | div64.h | 25 # define do_div(n,base) ({ \ argument 28 __rem = ((uint64_t)(n)) % __base; \ 29 (n) = ((uint64_t)(n)) / __base; \ 40 # define do_div(n,base) ({ \ argument 43 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \ 44 if (likely(((n) >> 32) == 0)) { \ 45 __rem = (uint32_t)(n) % __base; \ 46 (n) = (uint32_t)(n) / __base; \ 48 __rem = __div64_32(&(n), __base); \
|
D | cmpxchg.h | 19 #define cmpxchg(ptr, o, n) cmpxchg_local((ptr), (o), (n)) argument 20 #define cmpxchg64(ptr, o, n) cmpxchg64_local((ptr), (o), (n)) argument
|
/include/asm-mn10300/ |
D | ide.h | 29 #define __ide_mm_insw(port, addr, n) \ argument 30 insw((unsigned long) (port), (addr), (n)) 31 #define __ide_mm_insl(port, addr, n) \ argument 32 insl((unsigned long) (port), (addr), (n)) 33 #define __ide_mm_outsw(port, addr, n) \ argument 34 outsw((unsigned long) (port), (addr), (n)) 35 #define __ide_mm_outsl(port, addr, n) \ argument 36 outsl((unsigned long) (port), (addr), (n))
|
D | uaccess.h | 359 unsigned long n) in __generic_copy_from_user_nocheck() argument 361 __copy_user_zeroing(to, from, n); in __generic_copy_from_user_nocheck() 362 return n; in __generic_copy_from_user_nocheck() 367 unsigned long n) in __generic_copy_to_user_nocheck() argument 369 __copy_user(to, from, n); in __generic_copy_to_user_nocheck() 370 return n; in __generic_copy_to_user_nocheck() 424 unsigned long n) 426 if (access_ok(VERIFY_WRITE, to, n)) 427 __constant_copy_user(to, from, n); 428 return n; [all …]
|
D | div64.h | 23 #define do_div(n, base) \ argument 26 if (sizeof(n) <= 4) { \ 30 : "+r"(n), "=d"(__rem) \ 34 } else if (sizeof(n) <= 8) { \ 39 __quot.l = n; \ 53 n = __quot.l; \
|
/include/acpi/platform/ |
D | acenv.h | 244 #define ACPI_STRNCPY(d,s,n) (void) strncpy((d), (s), (acpi_size)(n)) argument 245 #define ACPI_STRNCMP(d,s,n) strncmp((d), (s), (acpi_size)(n)) argument 248 #define ACPI_STRNCAT(d,s,n) strncat((d), (s), (acpi_size)(n)) argument 249 #define ACPI_STRTOUL(d,s,n) strtoul((d), (s), (acpi_size)(n)) argument 250 #define ACPI_MEMCMP(s1,s2,n) memcmp((const char *)(s1), (const char *)(s2), (acpi_size)(n)) argument 251 #define ACPI_MEMCPY(d,s,n) (void) memcpy((d), (s), (acpi_size)(n)) argument 252 #define ACPI_MEMSET(d,s,n) (void) memset((d), (s), (acpi_size)(n)) argument 305 #define ACPI_STRNCPY(d,s,n) (void) acpi_ut_strncpy ((d), (s), (acpi_size)(n)) argument 306 #define ACPI_STRNCMP(d,s,n) acpi_ut_strncmp ((d), (s), (acpi_size)(n)) argument 309 #define ACPI_STRNCAT(d,s,n) acpi_ut_strncat ((d), (s), (acpi_size)(n)) argument [all …]
|
/include/linux/usb/ |
D | audio.h | 39 #define USB_DT_AC_HEADER_SIZE(n) (8+(n)) argument 42 #define DECLARE_USB_AC_HEADER_DESCRIPTOR(n) \ argument 43 struct usb_ac_header_descriptor_##n { \ 50 __u8 baInterfaceNr[n]; \
|
/include/asm-frv/ |
D | uaccess.h | 269 #define __copy_from_user_inatomic(to, from, n) __memcpy_user((to), ____force(from), (n)) argument 270 #define __copy_to_user_inatomic(to, from, n) __memcpy_user(____force(to), (from), (n)) argument 275 #define __copy_from_user_inatomic(to, from, n) (memcpy((to), ____force(from), (n)), 0) argument 276 #define __copy_to_user_inatomic(to, from, n) (memcpy(____force(to), (from), (n)), 0) argument 283 __copy_to_user(void __user *to, const void *from, unsigned long n) in __copy_to_user() argument 286 return __copy_to_user_inatomic(to, from, n); in __copy_to_user() 290 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument 293 return __copy_from_user_inatomic(to, from, n); in __copy_from_user() 296 static inline long copy_from_user(void *to, const void __user *from, unsigned long n) in copy_from_user() argument 298 unsigned long ret = n; in copy_from_user() [all …]
|
/include/scsi/fc/ |
D | fc_encaps.h | 65 #define FC_SOF_ENCODE(n) FC_XYNN(n, n) argument 66 #define FC_EOF_ENCODE(n) FC_XYNN(n, n) argument
|
D | fc_fcoe.h | 56 #define FC_FCOE_ENCAPS_ID(n) (((u64) FC_FCOE_OUI << 24) | (n)) argument 57 #define FC_FCOE_DECAPS_ID(n) ((n) >> 24) argument
|