Home
last modified time | relevance | path

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

1234567891011

/include/linux/
A Dlog2.h22 int __ilog2_u32(u32 n) in __ilog2_u32() argument
24 return fls(n) - 1; in __ilog2_u32()
32 return fls64(n) - 1; in __ilog2_u64()
47 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2()
80 (n) < 2 ? 0 : \
156 #define ilog2(n) \ argument
201 return n > 1 ? ilog2(n - 1) + 1 : 0; in __order_base_2()
220 ((n) == 0 || (n) == 1) ? 0 : \
228 if (n < 2) in __bits_per()
253 ((n) == 0 || (n) == 1) \
[all …]
A 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
A Dlist_bl.h82 n->next = first; in hlist_bl_add_head()
85 n->pprev = &h->first; in hlist_bl_add_head()
94 n->pprev = pprev; in hlist_bl_add_before()
95 n->next = next; in hlist_bl_add_before()
107 n->next = prev->next; in hlist_bl_add_behind()
109 prev->next = n; in hlist_bl_add_behind()
111 if (n->next) in hlist_bl_add_behind()
112 n->next->pprev = &n->next; in hlist_bl_add_behind()
133 __hlist_bl_del(n); in hlist_bl_del()
141 __hlist_bl_del(n); in hlist_bl_del_init()
[all …]
A Drculist_nulls.h35 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()
76 __hlist_nulls_del(n); in hlist_nulls_del_rcu()
77 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del_rcu()
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()
140 WRITE_ONCE(n->next, last->next); in hlist_nulls_add_tail_rcu()
141 n->pprev = &last->next; in hlist_nulls_add_tail_rcu()
144 hlist_nulls_add_head_rcu(n, h); in hlist_nulls_add_tail_rcu()
[all …]
A Duaccess.h109 return n; in __copy_from_user()
133 return n; in __copy_to_user_inatomic()
144 return n; in __copy_to_user()
161 unsigned long res = n; in _inline_copy_from_user()
194 return n; in _inline_copy_to_user()
195 if (access_ok(to, n)) { in _inline_copy_to_user()
197 n = raw_copy_to_user(to, from, n); in _inline_copy_to_user()
199 return n; in _inline_copy_to_user()
208 return n; in copy_from_user()
220 return n; in copy_to_user()
[all …]
A Dinstrumented.h112 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()
129 kasan_check_write(to, n); in instrument_copy_from_user_before()
130 kcsan_check_write(to, n); in instrument_copy_from_user_before()
160 unsigned long n) in instrument_memcpy_before() argument
162 kasan_check_write(to, n); in instrument_memcpy_before()
163 kasan_check_read(from, n); in instrument_memcpy_before()
164 kcsan_check_write(to, n); in instrument_memcpy_before()
165 kcsan_check_read(from, n); in instrument_memcpy_before()
[all …]
A 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
276 #define RIO_DEV_PORT_N_CTL2_CSR(d, n) \ argument
[all …]
A 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 …]
A 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))
A 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, \
A Dlist.h726 pos = n, n = pos->next)
737 pos = n, n = pos->prev)
860 pos = n, n = list_next_entry(n, member))
876 pos = n, n = list_next_entry(n, member))
891 pos = n, n = list_next_entry(n, member))
907 pos = n, n = list_prev_entry(n, member))
1042 WRITE_ONCE(*(n->pprev), n); in hlist_add_before()
1057 if (n->next) in hlist_add_behind()
1058 WRITE_ONCE(n->next->pprev, &n->next); in hlist_add_behind()
1071 n->pprev = &n->next; in hlist_add_fake()
[all …]
A 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;})
A Dlist_nulls.h92 static inline void hlist_nulls_add_head(struct hlist_nulls_node *n, in hlist_nulls_add_head() argument
97 n->next = first; in hlist_nulls_add_head()
98 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head()
99 h->first = n; in hlist_nulls_add_head()
101 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head()
104 static inline void __hlist_nulls_del(struct hlist_nulls_node *n) in __hlist_nulls_del() argument
106 struct hlist_nulls_node *next = n->next; in __hlist_nulls_del()
107 struct hlist_nulls_node **pprev = n->pprev; in __hlist_nulls_del()
114 static inline void hlist_nulls_del(struct hlist_nulls_node *n) in hlist_nulls_del() argument
116 __hlist_nulls_del(n); in hlist_nulls_del()
[all …]
A 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/linux/soundwire/
A Dsdw_registers.h241 #define SDW_DPN_INT(n) (0x0 + SDW_DPN_SIZE * (n)) argument
242 #define SDW_DPN_INTMASK(n) (0x1 + SDW_DPN_SIZE * (n)) argument
243 #define SDW_DPN_PORTCTRL(n) (0x2 + SDW_DPN_SIZE * (n)) argument
244 #define SDW_DPN_BLOCKCTRL1(n) (0x3 + SDW_DPN_SIZE * (n)) argument
245 #define SDW_DPN_PREPARESTATUS(n) (0x4 + SDW_DPN_SIZE * (n)) argument
246 #define SDW_DPN_PREPARECTRL(n) (0x5 + SDW_DPN_SIZE * (n)) argument
267 #define SDW_DPN_CHANNELEN_B0(n) (0x20 + SDW_DPN_SIZE * (n)) argument
285 #define SDW_DPN_HCTRL_B0(n) (0x26 + SDW_DPN_SIZE * (n)) argument
286 #define SDW_DPN_HCTRL_B1(n) (0x36 + SDW_DPN_SIZE * (n)) argument
291 #define SDW_DPN_LANECTRL_B0(n) (0x28 + SDW_DPN_SIZE * (n)) argument
[all …]
/include/asm-generic/
A Ddiv64.h45 # define do_div(n,base) ({ \ argument
48 __rem = ((uint64_t)(n)) % __base; \
49 (n) = ((uint64_t)(n)) / __base; \
146 uint32_t n_lo = n; in __arch_xprod_64()
147 uint32_t n_hi = n >> 32; in __arch_xprod_64()
180 # define do_div(n,base) ({ \ argument
186 __rem = (n) & (__base - 1); \
187 (n) >>= ilog2(__base); \
191 (n) = __div64_const32(n, __base); \
193 __res_lo = (n); \
[all …]
/include/trace/events/
A Dneigh.h81 __string(dev, (n->dev ? n->dev->name : "NULL"))
101 int lladdr_len = (n->dev ? n->dev->addr_len : MAX_ADDR_LEN);
111 __entry->type = n->type;
112 __entry->dead = n->dead;
133 __entry->used = n->used;
158 TP_ARGS(n, err),
161 __string(dev, (n->dev ? n->dev->name : "NULL"))
178 int lladdr_len = (n->dev ? n->dev->addr_len : MAX_ADDR_LEN);
188 __entry->type = n->type;
189 __entry->dead = n->dead;
[all …]
/include/media/
A 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()
A 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/
A 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))
A 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/uapi/linux/usb/
A Dvideo.h236 #define UVC_DT_HEADER_SIZE(n) (12+(n)) argument
296 #define UVC_DT_CAMERA_TERMINAL_SIZE(n) (15+(n)) argument
309 #define UVC_DT_SELECTOR_UNIT_SIZE(n) (6+(n)) argument
339 #define UVC_DT_PROCESSING_UNIT_SIZE(n) (10+(n)) argument
356 #define UVC_DT_EXTENSION_UNIT_SIZE(p, n) (24+(p)+(n)) argument
403 #define UVC_DT_INPUT_HEADER_SIZE(n, p) (13+(n*p)) argument
438 #define UVC_DT_OUTPUT_HEADER_SIZE(n, p) (9+(n*p)) argument
523 #define UVC_DT_FRAME_UNCOMPRESSED_SIZE(n) (26+4*(n)) argument
579 #define UVC_DT_FRAME_MJPEG_SIZE(n) (26+4*(n)) argument
582 uvc_frame_mjpeg_##n
[all …]
/include/drm/
A 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/linux/clk/
A 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
/include/soc/qcom/
A Drpmh.h15 const struct tcs_cmd *cmd, u32 n);
18 const struct tcs_cmd *cmd, u32 n);
21 const struct tcs_cmd *cmd, u32 *n);
28 const struct tcs_cmd *cmd, u32 n) in rpmh_write() argument
33 const struct tcs_cmd *cmd, u32 n) in rpmh_write_async() argument
38 const struct tcs_cmd *cmd, u32 *n) in rpmh_write_batch() argument

Completed in 50 milliseconds

1234567891011