Home
last modified time | relevance | path

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

1234567891011

/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 …]
Dwordpart.h14 #define upper_32_bits(n) ((u32)(((n) >> 16) >> 16)) argument
20 #define lower_32_bits(n) ((u32)((n) & 0xffffffff)) argument
26 #define upper_16_bits(n) ((u16)((n) >> 16)) argument
32 #define lower_16_bits(n) ((u16)((n) & 0xffff)) argument
52 # define aligned_byte_mask(n) ((1UL << 8*(n))-1) argument
54 # define aligned_byte_mask(n) (~0xffUL << (BITS_PER_LONG - 8 - 8*(n))) argument
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 WRITE_ONCE(n->next, first); in hlist_nulls_add_head_rcu()
105 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head_rcu()
[all …]
Duaccess.h90 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) in __copy_from_user_inatomic() argument
94 instrument_copy_from_user_before(to, from, n); in __copy_from_user_inatomic()
95 check_object_size(to, n, false); in __copy_from_user_inatomic()
96 res = raw_copy_from_user(to, from, n); in __copy_from_user_inatomic()
97 instrument_copy_from_user_after(to, from, n, res); in __copy_from_user_inatomic()
102 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument
107 instrument_copy_from_user_before(to, from, n); in __copy_from_user()
109 return n; in __copy_from_user()
110 check_object_size(to, n, false); in __copy_from_user()
111 res = raw_copy_from_user(to, from, n); in __copy_from_user()
[all …]
Dinstrumented.h110 instrument_copy_to_user(void __user *to, const void *from, unsigned long n) in instrument_copy_to_user() argument
112 kasan_check_read(from, n); in instrument_copy_to_user()
113 kcsan_check_read(from, n); in instrument_copy_to_user()
114 kmsan_copy_to_user(to, from, n, 0); in instrument_copy_to_user()
127 instrument_copy_from_user_before(const void *to, const void __user *from, unsigned long n) in instrument_copy_from_user_before() argument
129 kasan_check_write(to, n); in instrument_copy_from_user_before()
130 kcsan_check_write(to, n); in instrument_copy_from_user_before()
145 unsigned long n, unsigned long left) in instrument_copy_from_user_after() argument
147 kmsan_unpoison_memory(to, n - left); in instrument_copy_from_user_after()
160 unsigned long n) in instrument_memcpy_before() argument
[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 …]
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 …]
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))
Drcu_segcblist.h27 #define RCU_CBLIST_INITIALIZER(n) { .head = NULL, .tail = &n.head } argument
203 #define RCU_SEGCBLIST_INITIALIZER(n) \ argument
206 .tails[RCU_DONE_TAIL] = &n.head, \
207 .tails[RCU_WAIT_TAIL] = &n.head, \
208 .tails[RCU_NEXT_READY_TAIL] = &n.head, \
209 .tails[RCU_NEXT_TAIL] = &n.head, \
Dlist.h731 #define list_for_each_safe(pos, n, head) \ argument
732 for (pos = (head)->next, n = pos->next; \
734 pos = n, n = pos->next)
742 #define list_for_each_prev_safe(pos, n, head) \ argument
743 for (pos = (head)->prev, n = pos->prev; \
745 pos = n, n = pos->prev)
864 #define list_for_each_entry_safe(pos, n, head, member) \ argument
866 n = list_next_entry(pos, member); \
868 pos = n, n = list_next_entry(n, member))
880 #define list_for_each_entry_safe_continue(pos, n, head, member) \ argument
[all …]
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 …]
/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;
108 memcpy(__entry->lladdr, n->ha, lladdr_len);
109 __entry->flags = n->flags;
[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()
Dmipi-csi2.h16 #define MIPI_CSI2_DT_GENERIC_SHORT(n) (0x08 + (n)) /* 0..7 */ argument
22 #define MIPI_CSI2_DT_GENERIC_LONG(n) (0x13 + (n) - 1) /* 1..4 */ argument
45 #define MIPI_CSI2_DT_USER_DEFINED(n) (0x30 + (n)) /* 0..7 */ argument
/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.h236 #define UVC_DT_HEADER_SIZE(n) (12+(n)) argument
238 #define UVC_HEADER_DESCRIPTOR(n) \ argument
239 uvc_header_descriptor_##n
241 #define DECLARE_UVC_HEADER_DESCRIPTOR(n) \ argument
242 struct UVC_HEADER_DESCRIPTOR(n) { \
250 __u8 baInterfaceNr[n]; \
296 #define UVC_DT_CAMERA_TERMINAL_SIZE(n) (15+(n)) argument
309 #define UVC_DT_SELECTOR_UNIT_SIZE(n) (6+(n)) argument
311 #define UVC_SELECTOR_UNIT_DESCRIPTOR(n) \ argument
312 uvc_selector_unit_descriptor_##n
[all …]
/include/linux/clk/
Dat91_pmc.h92 #define AT91_PMC_MUL_GET(n) ((n) >> 16 & 0x7ff) argument
94 #define AT91_PMC3_MUL_GET(n) ((n) >> 18 & 0x7f) argument
186 #define AT91_PMC_SMDDIV(n) (((n) << 8) & AT91_PMC_SMD_DIV) argument
188 #define AT91_PMC_PCKR(n) (0x40 + ((n) * 4)) /* Programmable Clock 0-N Registers */ argument
216 #define AT91_PMC_FSTT(n) BIT(n) argument
260 #define AT91_PMC_AUDIO_PLL_ND(n) ((n) << AT91_PMC_AUDIO_PLL_ND_OFFSET) argument
263 #define AT91_PMC_AUDIO_PLL_QDPMC(n) ((n) << AT91_PMC_AUDIO_PLL_QDPMC_OFFSET) argument
269 #define AT91_PMC_AUDIO_PLL_QDPAD(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_OFFSET) argument
272 #define AT91_PMC_AUDIO_PLL_QDPAD_DIV(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_DIV_OFFSET) argument
276 #define AT91_PMC_AUDIO_PLL_QDPAD_EXTDIV(n) ((n) << AT91_PMC_AUDIO_PLL_QDPAD_EXTDIV_OFFSET) argument

1234567891011