Home
last modified time | relevance | path

Searched refs:n (Results 1 – 25 of 202) sorted by relevance

123456789

/include/linux/
Dlog2.h26 int __ilog2_u32(u32 n) in __ilog2_u32() argument
28 return fls(n) - 1; in __ilog2_u32()
34 int __ilog2_u64(u64 n) in __ilog2_u64() argument
36 return fls64(n) - 1; in __ilog2_u64()
46 bool is_power_of_2(unsigned long n) in is_power_of_2() argument
48 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2()
55 unsigned long __roundup_pow_of_two(unsigned long n) in __roundup_pow_of_two() argument
57 return 1UL << fls_long(n - 1); in __roundup_pow_of_two()
64 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() argument
66 return 1UL << (fls_long(n) - 1); in __rounddown_pow_of_two()
[all …]
Drculist_bl.h11 struct hlist_bl_node *n) in hlist_bl_set_first_rcu() argument
13 LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK); in hlist_bl_set_first_rcu()
17 (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK)); in hlist_bl_set_first_rcu()
46 static inline void hlist_bl_del_init_rcu(struct hlist_bl_node *n) in hlist_bl_del_init_rcu() argument
48 if (!hlist_bl_unhashed(n)) { in hlist_bl_del_init_rcu()
49 __hlist_bl_del(n); in hlist_bl_del_init_rcu()
50 n->pprev = NULL; in hlist_bl_del_init_rcu()
73 static inline void hlist_bl_del_rcu(struct hlist_bl_node *n) in hlist_bl_del_rcu() argument
75 __hlist_bl_del(n); in hlist_bl_del_rcu()
76 n->pprev = LIST_POISON2; in hlist_bl_del_rcu()
[all …]
Dlist_bl.h63 struct hlist_bl_node *n) in hlist_bl_set_first() argument
65 LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK); in hlist_bl_set_first()
68 h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK); in hlist_bl_set_first()
76 static inline void hlist_bl_add_head(struct hlist_bl_node *n, in hlist_bl_add_head() argument
81 n->next = first; in hlist_bl_add_head()
83 first->pprev = &n->next; in hlist_bl_add_head()
84 n->pprev = &h->first; in hlist_bl_add_head()
85 hlist_bl_set_first(h, n); in hlist_bl_add_head()
88 static inline void __hlist_bl_del(struct hlist_bl_node *n) in __hlist_bl_del() argument
90 struct hlist_bl_node *next = n->next; in __hlist_bl_del()
[all …]
Drculist_nulls.h32 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()
65 static inline void hlist_nulls_del_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_rcu() argument
67 __hlist_nulls_del(n); in hlist_nulls_del_rcu()
68 n->pprev = LIST_POISON2; in hlist_nulls_del_rcu()
90 static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, in hlist_nulls_add_head_rcu() argument
95 n->next = first; in hlist_nulls_add_head_rcu()
96 n->pprev = &h->first; in hlist_nulls_add_head_rcu()
[all …]
Drio_regs.h228 #define RIO_PORT_N_MNT_REQ_CSR(n, m) (0x40 + (n) * (0x20 * (m))) argument
231 #define RIO_PORT_N_MNT_RSP_CSR(n, m) (0x44 + (n) * (0x20 * (m))) argument
235 #define RIO_PORT_N_ACK_STS_CSR(n) (0x48 + (n) * 0x20) /* Only in RM-I */ argument
240 #define RIO_PORT_N_CTL2_CSR(n, m) (0x54 + (n) * (0x20 * (m))) argument
242 #define RIO_PORT_N_ERR_STS_CSR(n, m) (0x58 + (n) * (0x20 * (m))) argument
250 #define RIO_PORT_N_CTL_CSR(n, m) (0x5c + (n) * (0x20 * (m))) argument
259 #define RIO_PORT_N_OB_ACK_CSR(n) (0x60 + (n) * 0x40) /* Only in RM-II */ argument
263 #define RIO_PORT_N_IB_ACK_CSR(n) (0x64 + (n) * 0x40) /* Only in RM-II */ argument
271 #define RIO_DEV_PORT_N_MNT_REQ_CSR(d, n) \ argument
272 (d->phys_efptr + RIO_PORT_N_MNT_REQ_CSR(n, d->phys_rmap))
[all …]
Dlist.h428 #define list_for_each_safe(pos, n, head) \ argument
429 for (pos = (head)->next, n = pos->next; pos != (head); \
430 pos = n, n = pos->next)
438 #define list_for_each_prev_safe(pos, n, head) \ argument
439 for (pos = (head)->prev, n = pos->prev; \
441 pos = n, n = pos->prev)
523 #define list_for_each_entry_safe(pos, n, head, member) \ argument
525 n = list_next_entry(pos, member); \
527 pos = n, n = list_next_entry(n, member))
539 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
[all …]
Dkmemcheck.h20 void kmemcheck_show_pages(struct page *p, unsigned int n);
21 void kmemcheck_hide_pages(struct page *p, unsigned int n);
25 void kmemcheck_mark_unallocated(void *address, unsigned int n);
26 void kmemcheck_mark_uninitialized(void *address, unsigned int n);
27 void kmemcheck_mark_initialized(void *address, unsigned int n);
28 void kmemcheck_mark_freed(void *address, unsigned int n);
30 void kmemcheck_mark_unallocated_pages(struct page *p, unsigned int n);
31 void kmemcheck_mark_uninitialized_pages(struct page *p, unsigned int n);
32 void kmemcheck_mark_initialized_pages(struct page *p, unsigned int n);
123 static inline void kmemcheck_mark_unallocated(void *address, unsigned int n) in kmemcheck_mark_unallocated() argument
[all …]
Dbug.h16 #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) (0) argument
17 #define BUILD_BUG_ON_NOT_POWER_OF_2(n) (0) argument
28 #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) \ argument
29 BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
30 #define BUILD_BUG_ON_NOT_POWER_OF_2(n) \ argument
31 BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0))
Dlist_nulls.h63 static inline void hlist_nulls_add_head(struct hlist_nulls_node *n, in hlist_nulls_add_head() argument
68 n->next = first; in hlist_nulls_add_head()
69 n->pprev = &h->first; in hlist_nulls_add_head()
70 h->first = n; in hlist_nulls_add_head()
72 first->pprev = &n->next; in hlist_nulls_add_head()
75 static inline void __hlist_nulls_del(struct hlist_nulls_node *n) in __hlist_nulls_del() argument
77 struct hlist_nulls_node *next = n->next; in __hlist_nulls_del()
78 struct hlist_nulls_node **pprev = n->pprev; in __hlist_nulls_del()
85 static inline void hlist_nulls_del(struct hlist_nulls_node *n) in hlist_nulls_del() argument
87 __hlist_nulls_del(n); in hlist_nulls_del()
[all …]
Dcirc_buf.h27 int n = ((head) + end) & ((size)-1); \
28 n < end ? n : end;})
33 int n = (end + (tail)) & ((size)-1); \
34 n <= end ? n : end+1;})
Dprofile.h80 int task_handoff_register(struct notifier_block * n);
81 int task_handoff_unregister(struct notifier_block * n);
83 int profile_event_register(enum profile_type, struct notifier_block * n);
84 int profile_event_unregister(enum profile_type, struct notifier_block * n);
112 static inline int task_handoff_register(struct notifier_block * n) in task_handoff_register() argument
117 static inline int task_handoff_unregister(struct notifier_block * n) in task_handoff_unregister() argument
122 static inline int profile_event_register(enum profile_type t, struct notifier_block * n) in profile_event_register() argument
127 static inline int profile_event_unregister(enum profile_type t, struct notifier_block * n) in profile_event_unregister() argument
Drculist.h155 static inline void hlist_del_init_rcu(struct hlist_node *n) in hlist_del_init_rcu() argument
157 if (!hlist_unhashed(n)) { in hlist_del_init_rcu()
158 __hlist_del(n); in hlist_del_init_rcu()
159 n->pprev = NULL; in hlist_del_init_rcu()
426 static inline void hlist_del_rcu(struct hlist_node *n) in hlist_del_rcu() argument
428 __hlist_del(n); in hlist_del_rcu()
429 n->pprev = LIST_POISON2; in hlist_del_rcu()
478 static inline void hlist_add_head_rcu(struct hlist_node *n, in hlist_add_head_rcu() argument
483 n->next = first; in hlist_add_head_rcu()
484 n->pprev = &h->first; in hlist_add_head_rcu()
[all …]
Ddelay.h31 #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);}))
Dklist.h45 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_behind(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);
Dioport.h217 #define request_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name), 0) argument
218 #define request_muxed_region(start,n,name) __request_region(&ioport_resource, (start), (n), (name),… argument
219 #define __request_mem_region(start,n,name, excl) __request_region(&iomem_resource, (start), (n), (n… argument
220 #define request_mem_region(start,n,name) __request_region(&iomem_resource, (start), (n), (name), 0) argument
221 #define request_mem_region_exclusive(start,n,name) \ argument
222 __request_region(&iomem_resource, (start), (n), (name), IORESOURCE_EXCLUSIVE)
227 resource_size_t n,
231 #define release_region(start,n) __release_region(&ioport_resource, (start), (n)) argument
232 #define release_mem_region(start,n) __release_region(&iomem_resource, (start), (n)) argument
248 #define devm_request_region(dev,start,n,name) \ argument
[all …]
/include/video/
Dexynos5433_decon.h15 #define DECON_WINCONx(n) (0x0020 + ((n) * 4)) argument
16 #define DECON_VIDOSDxH(n) (0x0080 + ((n) * 4)) argument
18 #define DECON_VIDOSDxA(n) (0x00B0 + ((n) * 0x20)) argument
19 #define DECON_VIDOSDxB(n) (0x00B4 + ((n) * 0x20)) argument
20 #define DECON_VIDOSDxC(n) (0x00B8 + ((n) * 0x20)) argument
21 #define DECON_VIDOSDxD(n) (0x00BC + ((n) * 0x20)) argument
22 #define DECON_VIDOSDxE(n) (0x00C0 + ((n) * 0x20)) argument
23 #define DECON_VIDW0xADD0B0(n) (0x0150 + ((n) * 0x10)) argument
24 #define DECON_VIDW0xADD0B1(n) (0x0154 + ((n) * 0x10)) argument
25 #define DECON_VIDW0xADD0B2(n) (0x0158 + ((n) * 0x10)) argument
[all …]
/include/asm-generic/
Ddelay.h19 #define udelay(n) \ argument
21 if (__builtin_constant_p(n)) { \
22 if ((n) / 20000 >= 1) \
25 __const_udelay((n) * 0x10c7ul); \
27 __udelay(n); \
32 #define ndelay(n) \ argument
34 if (__builtin_constant_p(n)) { \
35 if ((n) / 20000 >= 1) \
38 __const_udelay((n) * 5ul); \
40 __ndelay(n); \
Ddiv64.h28 # define do_div(n,base) ({ \ argument
31 __rem = ((uint64_t)(n)) % __base; \
32 (n) = ((uint64_t)(n)) / __base; \
54 #define __div64_const32(n, ___b) \ argument
65 uint64_t ___res, ___x, ___t, ___m, ___n = (n); \
160 static inline uint64_t __arch_xprod_64(const uint64_t m, uint64_t n, bool bias) in __arch_xprod_64() argument
164 uint32_t n_lo = n; in __arch_xprod_64()
165 uint32_t n_hi = n >> 32; in __arch_xprod_64()
204 # define do_div(n,base) ({ \ argument
207 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
[all …]
Duaccess.h77 const void __user * from, unsigned long n) in __copy_from_user() argument
79 if (__builtin_constant_p(n)) { in __copy_from_user()
80 switch(n) { in __copy_from_user()
100 memcpy(to, (const void __force *)from, n); in __copy_from_user()
107 const void *from, unsigned long n) in __copy_to_user() argument
109 if (__builtin_constant_p(n)) { in __copy_to_user()
110 switch(n) { in __copy_to_user()
130 memcpy((void __force *)to, from, n); in __copy_to_user()
236 size_t n = __copy_from_user(x, ptr, size); in __get_user_fn() local
237 if (unlikely(n)) { in __get_user_fn()
[all …]
Dgetorder.h49 #define get_order(n) \ argument
51 __builtin_constant_p(n) ? ( \
52 ((n) == 0UL) ? BITS_PER_LONG - PAGE_SHIFT : \
53 (((n) < (1UL << PAGE_SHIFT)) ? 0 : \
54 ilog2((n) - 1) - PAGE_SHIFT + 1) \
56 __get_order(n) \
/include/linux/mfd/
Dda8xx-cfgchip.h23 #define CFGCHIP(n) ((n) * 4) argument
27 #define CFGCHIP0_EDMA30TC1DBS(n) ((n) << 2) argument
32 #define CFGCHIP0_EDMA30TC0DBS(n) ((n) << 0) argument
39 #define CFGCHIP1_CAP2SRC(n) ((n) << 27) argument
56 #define CFGCHIP1_CAP1SRC(n) ((n) << 22) argument
73 #define CFGCHIP1_CAP0SRC(n) ((n) << 17) argument
92 #define CFGCHIP0_EDMA31TC0DBS(n) ((n) << 13) argument
98 #define CFGCHIP1_AMUTESEL0(n) ((n) << 0) argument
114 #define CFGCHIP2_OTGMODE(n) ((n) << 13) argument
129 #define CFGCHIP2_REFFREQ(n) ((n) << 0) argument
/include/uapi/linux/usb/
Dvideo.h204 #define UVC_DT_HEADER_SIZE(n) (12+(n)) argument
206 #define UVC_HEADER_DESCRIPTOR(n) \ argument
207 uvc_header_descriptor_##n
209 #define DECLARE_UVC_HEADER_DESCRIPTOR(n) \ argument
210 struct UVC_HEADER_DESCRIPTOR(n) { \
218 __u8 baInterfaceNr[n]; \
264 #define UVC_DT_CAMERA_TERMINAL_SIZE(n) (15+(n)) argument
277 #define UVC_DT_SELECTOR_UNIT_SIZE(n) (6+(n)) argument
279 #define UVC_SELECTOR_UNIT_DESCRIPTOR(n) \ argument
280 uvc_selector_unit_descriptor_##n
[all …]
/include/linux/clk/
Dat91_pmc.h66 #define AT91_PMC_MUL_GET(n) ((n) >> 16 & 0x7ff) argument
68 #define AT91_PMC3_MUL_GET(n) ((n) >> 18 & 0x7f) argument
130 #define AT91_PMC_SMDDIV(n) (((n) << 8) & AT91_PMC_SMD_DIV) argument
132 #define AT91_PMC_PCKR(n) (0x40 + ((n) * 4)) /* Programmable Clock 0-N Registers */ argument
177 #define AT91_PMC_PCR_GCKCSS(n) ((n) << AT91_PMC_PCR_GCKCSS_OFFSET) /* GCK Clock Source Selection… argument
181 #define AT91_PMC_PCR_DIV(n) ((n) << AT91_PMC_PCR_DIV_OFFSET) /* Divisor Value */ argument
184 #define AT91_PMC_PCR_GCKDIV(n) ((n) << AT91_PMC_PCR_GCKDIV_OFFSET) /* Generated Clock Divisor Va… argument
/include/linux/usb/
Dmsm_hsusb_hw.h51 #define ULPI_ADDR(n) (((n) & 255) << 16) argument
52 #define ULPI_DATA(n) ((n) & 255) argument
53 #define ULPI_DATA_READ(n) (((n) >> 8) & 255) argument
/include/uapi/linux/
Dmroute6.h55 #define IF_SET(n, p) ((p)->ifs_bits[(n)/NIFBITS] |= (1 << ((n) % NIFBITS))) argument
56 #define IF_CLR(n, p) ((p)->ifs_bits[(n)/NIFBITS] &= ~(1 << ((n) % NIFBITS))) argument
57 #define IF_ISSET(n, p) ((p)->ifs_bits[(n)/NIFBITS] & (1 << ((n) % NIFBITS))) argument

123456789