Home
last modified time | relevance | path

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

12345678910

/include/linux/
Dlog2.h22 int __ilog2_u32(u32 n) in __ilog2_u32() argument
24 return fls(n) - 1; in __ilog2_u32()
30 int __ilog2_u64(u64 n) in __ilog2_u64() argument
32 return fls64(n) - 1; in __ilog2_u64()
45 bool is_power_of_2(unsigned long n) in is_power_of_2() argument
47 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()
65 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() argument
67 return 1UL << (fls_long(n) - 1); in __rounddown_pow_of_two()
[all …]
Dandroid_vendor.h30 #define ANDROID_VENDOR_DATA(n) u64 android_vendor_data##n argument
31 #define ANDROID_VENDOR_DATA_ARRAY(n, s) u64 android_vendor_data##n[s] argument
33 #define ANDROID_OEM_DATA(n) u64 android_oem_data##n argument
34 #define ANDROID_OEM_DATA_ARRAY(n, s) u64 android_oem_data##n[s] argument
36 #define android_init_vendor_data(p, n) \ argument
37 memset(&p->android_vendor_data##n, 0, sizeof(p->android_vendor_data##n))
38 #define android_init_oem_data(p, n) \ argument
39 memset(&p->android_oem_data##n, 0, sizeof(p->android_oem_data##n))
41 #define ANDROID_VENDOR_DATA(n) argument
42 #define ANDROID_VENDOR_DATA_ARRAY(n, s) argument
[all …]
Dlist_bl.h64 struct hlist_bl_node *n) in hlist_bl_set_first() argument
66 LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK); in hlist_bl_set_first()
69 h->first = (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK); in hlist_bl_set_first()
77 static inline void hlist_bl_add_head(struct hlist_bl_node *n, in hlist_bl_add_head() argument
82 n->next = first; in hlist_bl_add_head()
84 first->pprev = &n->next; in hlist_bl_add_head()
85 n->pprev = &h->first; in hlist_bl_add_head()
86 hlist_bl_set_first(h, n); in hlist_bl_add_head()
89 static inline void hlist_bl_add_before(struct hlist_bl_node *n, in hlist_bl_add_before() argument
94 n->pprev = pprev; in hlist_bl_add_before()
[all …]
Drculist_nulls.h33 static inline void hlist_nulls_del_init_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_init_rcu() argument
35 if (!hlist_nulls_unhashed(n)) { in hlist_nulls_del_init_rcu()
36 __hlist_nulls_del(n); in hlist_nulls_del_init_rcu()
37 WRITE_ONCE(n->pprev, NULL); in hlist_nulls_del_init_rcu()
74 static inline void hlist_nulls_del_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_rcu() argument
76 __hlist_nulls_del(n); in hlist_nulls_del_rcu()
77 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del_rcu()
99 static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, in hlist_nulls_add_head_rcu() argument
104 n->next = first; in hlist_nulls_add_head_rcu()
105 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head_rcu()
[all …]
Duaccess.h99 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) in __copy_from_user_inatomic() argument
101 instrument_copy_from_user(to, from, n); in __copy_from_user_inatomic()
102 check_object_size(to, n, false); in __copy_from_user_inatomic()
103 return raw_copy_from_user(to, from, n); in __copy_from_user_inatomic()
107 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument
111 return n; in __copy_from_user()
112 instrument_copy_from_user(to, from, n); in __copy_from_user()
113 check_object_size(to, n, false); in __copy_from_user()
114 return raw_copy_from_user(to, from, n); in __copy_from_user()
131 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() argument
[all …]
Drculist_bl.h12 struct hlist_bl_node *n) in hlist_bl_set_first_rcu() argument
14 LIST_BL_BUG_ON((unsigned long)n & LIST_BL_LOCKMASK); in hlist_bl_set_first_rcu()
18 (struct hlist_bl_node *)((unsigned long)n | LIST_BL_LOCKMASK)); in hlist_bl_set_first_rcu()
46 static inline void hlist_bl_del_rcu(struct hlist_bl_node *n) in hlist_bl_del_rcu() argument
48 __hlist_bl_del(n); in hlist_bl_del_rcu()
49 n->pprev = LIST_POISON2; in hlist_bl_del_rcu()
71 static inline void hlist_bl_add_head_rcu(struct hlist_bl_node *n, in hlist_bl_add_head_rcu() argument
79 n->next = first; in hlist_bl_add_head_rcu()
81 first->pprev = &n->next; in hlist_bl_add_head_rcu()
82 n->pprev = &h->first; in hlist_bl_add_head_rcu()
[all …]
Drio_regs.h224 #define RIO_PORT_N_MNT_REQ_CSR(n, m) (0x40 + (n) * (0x20 * (m))) argument
227 #define RIO_PORT_N_MNT_RSP_CSR(n, m) (0x44 + (n) * (0x20 * (m))) argument
231 #define RIO_PORT_N_ACK_STS_CSR(n) (0x48 + (n) * 0x20) /* Only in RM-I */ argument
236 #define RIO_PORT_N_CTL2_CSR(n, m) (0x54 + (n) * (0x20 * (m))) argument
238 #define RIO_PORT_N_ERR_STS_CSR(n, m) (0x58 + (n) * (0x20 * (m))) argument
246 #define RIO_PORT_N_CTL_CSR(n, m) (0x5c + (n) * (0x20 * (m))) argument
255 #define RIO_PORT_N_OB_ACK_CSR(n) (0x60 + (n) * 0x40) /* Only in RM-II */ argument
259 #define RIO_PORT_N_IB_ACK_CSR(n) (0x64 + (n) * 0x40) /* Only in RM-II */ argument
267 #define RIO_DEV_PORT_N_MNT_REQ_CSR(d, n) \ argument
268 (d->phys_efptr + RIO_PORT_N_MNT_REQ_CSR(n, d->phys_rmap))
[all …]
Dbuild_bug.h20 #define __BUILD_BUG_ON_NOT_POWER_OF_2(n) \ argument
21 BUILD_BUG_ON(((n) & ((n) - 1)) != 0)
22 #define BUILD_BUG_ON_NOT_POWER_OF_2(n) \ argument
23 BUILD_BUG_ON((n) == 0 || (((n) & ((n) - 1)) != 0))
Dlist.h614 #define list_for_each_safe(pos, n, head) \ argument
615 for (pos = (head)->next, n = pos->next; \
617 pos = n, n = pos->next)
625 #define list_for_each_prev_safe(pos, n, head) \ argument
626 for (pos = (head)->prev, n = pos->prev; \
628 pos = n, n = pos->prev)
732 #define list_for_each_entry_safe(pos, n, head, member) \ argument
734 n = list_next_entry(pos, member); \
736 pos = n, n = list_next_entry(n, member))
748 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
[all …]
Drcu_segcblist.h27 #define RCU_CBLIST_INITIALIZER(n) { .head = NULL, .tail = &n.head } argument
196 #define RCU_SEGCBLIST_INITIALIZER(n) \ argument
199 .tails[RCU_DONE_TAIL] = &n.head, \
200 .tails[RCU_WAIT_TAIL] = &n.head, \
201 .tails[RCU_NEXT_READY_TAIL] = &n.head, \
202 .tails[RCU_NEXT_TAIL] = &n.head, \
Dcirc_buf.h28 int n = ((head) + end) & ((size)-1); \
29 n < end ? n : end;})
34 int n = (end + (tail)) & ((size)-1); \
35 n <= end ? n : end+1;})
Dlist_nulls.h91 static inline void hlist_nulls_add_head(struct hlist_nulls_node *n, in hlist_nulls_add_head() argument
96 n->next = first; in hlist_nulls_add_head()
97 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head()
98 h->first = n; in hlist_nulls_add_head()
100 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head()
103 static inline void __hlist_nulls_del(struct hlist_nulls_node *n) in __hlist_nulls_del() argument
105 struct hlist_nulls_node *next = n->next; in __hlist_nulls_del()
106 struct hlist_nulls_node **pprev = n->pprev; in __hlist_nulls_del()
113 static inline void hlist_nulls_del(struct hlist_nulls_node *n) in hlist_nulls_del() argument
115 __hlist_nulls_del(n); in hlist_nulls_del()
[all …]
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);
110 static inline int task_handoff_register(struct notifier_block * n) in task_handoff_register() argument
115 static inline int task_handoff_unregister(struct notifier_block * n) in task_handoff_unregister() argument
120 static inline int profile_event_register(enum profile_type t, struct notifier_block * n) in profile_event_register() argument
125 static inline int profile_event_unregister(enum profile_type t, struct notifier_block * n) in profile_event_unregister() argument
Dklist.h43 extern void klist_add_tail(struct klist_node *n, struct klist *k);
44 extern void klist_add_head(struct klist_node *n, struct klist *k);
45 extern void klist_add_behind(struct klist_node *n, struct klist_node *pos);
46 extern void klist_add_before(struct klist_node *n, struct klist_node *pos);
48 extern void klist_del(struct klist_node *n);
49 extern void klist_remove(struct klist_node *n);
51 extern int klist_node_attached(struct klist_node *n);
62 struct klist_node *n);
/include/asm-generic/
Ddelay.h20 #define udelay(n) \ argument
22 if (__builtin_constant_p(n)) { \
23 if ((n) / 20000 >= 1) \
26 __const_udelay((n) * 0x10c7ul); \
28 __udelay(n); \
33 #define ndelay(n) \ argument
35 if (__builtin_constant_p(n)) { \
36 if ((n) / 20000 >= 1) \
39 __const_udelay((n) * 5ul); \
41 __ndelay(n); \
Ddiv64.h45 # define do_div(n,base) ({ \ argument
48 __rem = ((uint64_t)(n)) % __base; \
49 (n) = ((uint64_t)(n)) / __base; \
65 #define __div64_const32(n, ___b) \ argument
76 uint64_t ___res, ___x, ___t, ___m, ___n = (n); \
171 static inline uint64_t __arch_xprod_64(const uint64_t m, uint64_t n, bool bias) in __arch_xprod_64() argument
175 uint32_t n_lo = n; in __arch_xprod_64()
176 uint32_t n_hi = n >> 32; in __arch_xprod_64()
219 # define do_div(n,base) ({ \ argument
222 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
[all …]
/include/linux/soundwire/
Dsdw_registers.h238 #define SDW_DPN_INT(n) (0x0 + SDW_DPN_SIZE * (n)) argument
239 #define SDW_DPN_INTMASK(n) (0x1 + SDW_DPN_SIZE * (n)) argument
240 #define SDW_DPN_PORTCTRL(n) (0x2 + SDW_DPN_SIZE * (n)) argument
241 #define SDW_DPN_BLOCKCTRL1(n) (0x3 + SDW_DPN_SIZE * (n)) argument
242 #define SDW_DPN_PREPARESTATUS(n) (0x4 + SDW_DPN_SIZE * (n)) argument
243 #define SDW_DPN_PREPARECTRL(n) (0x5 + SDW_DPN_SIZE * (n)) argument
264 #define SDW_DPN_CHANNELEN_B0(n) (0x20 + SDW_DPN_SIZE * (n)) argument
265 #define SDW_DPN_CHANNELEN_B1(n) (0x30 + SDW_DPN_SIZE * (n)) argument
267 #define SDW_DPN_BLOCKCTRL2_B0(n) (0x21 + SDW_DPN_SIZE * (n)) argument
268 #define SDW_DPN_BLOCKCTRL2_B1(n) (0x31 + SDW_DPN_SIZE * (n)) argument
[all …]
/include/trace/events/
Dneigh.h26 const void *pkey, const struct neighbour *n,
29 TP_ARGS(tbl, dev, pkey, n, exempt_from_gc),
47 __entry->created = n != NULL;
74 TP_PROTO(struct neighbour *n, const u8 *lladdr, u8 new,
77 TP_ARGS(n, lladdr, new, flags, nlmsg_pid),
81 __string(dev, (n->dev ? n->dev->name : "NULL"))
101 int lladdr_len = (n->dev ? n->dev->addr_len : MAX_ADDR_LEN);
105 __entry->family = n->tbl->family;
106 __assign_str(dev, (n->dev ? n->dev->name : "NULL"));
108 memcpy(__entry->lladdr, n->ha, lladdr_len);
[all …]
/include/media/
Dcec-notifier.h47 void cec_notifier_conn_unregister(struct cec_notifier *n);
75 void cec_notifier_cec_adap_unregister(struct cec_notifier *n,
86 void cec_notifier_set_phys_addr(struct cec_notifier *n, u16 pa);
96 void cec_notifier_set_phys_addr_from_edid(struct cec_notifier *n,
120 static inline void cec_notifier_conn_unregister(struct cec_notifier *n) in cec_notifier_conn_unregister() argument
132 static inline void cec_notifier_cec_adap_unregister(struct cec_notifier *n, in cec_notifier_cec_adap_unregister() argument
137 static inline void cec_notifier_set_phys_addr(struct cec_notifier *n, u16 pa) in cec_notifier_set_phys_addr() argument
141 static inline void cec_notifier_set_phys_addr_from_edid(struct cec_notifier *n, in cec_notifier_set_phys_addr_from_edid() argument
161 static inline void cec_notifier_phys_addr_invalidate(struct cec_notifier *n) in cec_notifier_phys_addr_invalidate() argument
163 cec_notifier_set_phys_addr(n, CEC_PHYS_ADDR_INVALID); in cec_notifier_phys_addr_invalidate()
/include/linux/mfd/
Dmxs-lradc.h53 #define LRADC_CTRL1_LRADC_IRQ_EN(n) (1 << ((n) + 16)) argument
58 #define LRADC_CTRL1_LRADC_IRQ(n) BIT(n) argument
70 #define LRADC_CH(n) (0x50 + (0x10 * (n))) argument
79 #define LRADC_DELAY(n) (0xd0 + (0x10 * (n))) argument
103 #define LRADC_CTRL4_LRADCSELECT_MASK(n) (0xf << ((n) * 4)) argument
104 #define LRADC_CTRL4_LRADCSELECT_OFFSET(n) ((n) * 4) argument
105 #define LRADC_CTRL4_LRADCSELECT(n, x) \ argument
106 (((x) << LRADC_CTRL4_LRADCSELECT_OFFSET(n)) & \
107 LRADC_CTRL4_LRADCSELECT_MASK(n))
Dda8xx-cfgchip.h14 #define CFGCHIP(n) ((n) * 4) argument
18 #define CFGCHIP0_EDMA30TC1DBS(n) ((n) << 2) argument
23 #define CFGCHIP0_EDMA30TC0DBS(n) ((n) << 0) argument
30 #define CFGCHIP1_CAP2SRC(n) ((n) << 27) argument
47 #define CFGCHIP1_CAP1SRC(n) ((n) << 22) argument
64 #define CFGCHIP1_CAP0SRC(n) ((n) << 17) argument
83 #define CFGCHIP0_EDMA31TC0DBS(n) ((n) << 13) argument
89 #define CFGCHIP1_AMUTESEL0(n) ((n) << 0) argument
105 #define CFGCHIP2_OTGMODE(n) ((n) << 13) argument
120 #define CFGCHIP2_REFFREQ(n) ((n) << 0) argument
/include/drm/
Dtask_barrier.h40 unsigned int n; member
47 unsigned int n) in task_barrier_signal_turnstile() argument
51 for (i = 0 ; i < n; i++) in task_barrier_signal_turnstile()
57 tb->n = 0; in task_barrier_init()
65 tb->n++; in task_barrier_add_task()
70 tb->n--; in task_barrier_rem_task()
80 if (atomic_inc_return(&tb->count) == tb->n) in task_barrier_enter()
81 task_barrier_signal_turnstile(&tb->enter_turnstile, tb->n); in task_barrier_enter()
95 task_barrier_signal_turnstile(&tb->exit_turnstile, tb->n); in task_barrier_exit()
/include/uapi/linux/usb/
Dvideo.h235 #define UVC_DT_HEADER_SIZE(n) (12+(n)) argument
237 #define UVC_HEADER_DESCRIPTOR(n) \ argument
238 uvc_header_descriptor_##n
240 #define DECLARE_UVC_HEADER_DESCRIPTOR(n) \ argument
241 struct UVC_HEADER_DESCRIPTOR(n) { \
249 __u8 baInterfaceNr[n]; \
295 #define UVC_DT_CAMERA_TERMINAL_SIZE(n) (15+(n)) argument
308 #define UVC_DT_SELECTOR_UNIT_SIZE(n) (6+(n)) argument
310 #define UVC_SELECTOR_UNIT_DESCRIPTOR(n) \ argument
311 uvc_selector_unit_descriptor_##n
[all …]
/include/linux/clk/
Dat91_pmc.h86 #define AT91_PMC_MUL_GET(n) ((n) >> 16 & 0x7ff) argument
88 #define AT91_PMC3_MUL_GET(n) ((n) >> 18 & 0x7f) argument
180 #define AT91_PMC_SMDDIV(n) (((n) << 8) & AT91_PMC_SMD_DIV) argument
182 #define AT91_PMC_PCKR(n) (0x40 + ((n) * 4)) /* Programmable Clock 0-N Registers */ argument
210 #define AT91_PMC_FSTT(n) BIT(n) argument
254 #define AT91_PMC_AUDIO_PLL_ND(n) ((n) << AT91_PMC_AUDIO_PLL_ND_OFFSET) argument
257 #define AT91_PMC_AUDIO_PLL_QDPMC(n) ((n) << AT91_PMC_AUDIO_PLL_QDPMC_OFFSET) argument
263 #define AT91_PMC_AUDIO_PLL_QDPAD(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_OFFSET) argument
266 #define AT91_PMC_AUDIO_PLL_QDPAD_DIV(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_DIV_OFFSET) argument
270 #define AT91_PMC_AUDIO_PLL_QDPAD_EXTDIV(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_EXTDIV_OFFSET) argument
/include/net/
Darp.h39 struct neighbour *n; in __ipv4_neigh_lookup() local
42 n = __ipv4_neigh_lookup_noref(dev, key); in __ipv4_neigh_lookup()
43 if (n && !refcount_inc_not_zero(&n->refcnt)) in __ipv4_neigh_lookup()
44 n = NULL; in __ipv4_neigh_lookup()
47 return n; in __ipv4_neigh_lookup()
52 struct neighbour *n; in __ipv4_confirm_neigh() local
55 n = __ipv4_neigh_lookup_noref(dev, key); in __ipv4_confirm_neigh()
56 if (n) { in __ipv4_confirm_neigh()
60 if (READ_ONCE(n->confirmed) != now) in __ipv4_confirm_neigh()
61 WRITE_ONCE(n->confirmed, now); in __ipv4_confirm_neigh()

12345678910