Home
last modified time | relevance | path

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

12345678910>>...43

/linux-4.19.296/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()
49 bool is_power_of_2(unsigned long n) in is_power_of_2() argument
51 return (n != 0 && ((n & (n - 1)) == 0)); in is_power_of_2()
59 unsigned long __roundup_pow_of_two(unsigned long n) in __roundup_pow_of_two() argument
61 return 1UL << fls_long(n - 1); in __roundup_pow_of_two()
69 unsigned long __rounddown_pow_of_two(unsigned long n) in __rounddown_pow_of_two() argument
71 return 1UL << (fls_long(n) - 1); in __rounddown_pow_of_two()
[all …]
Duaccess.h62 __copy_from_user_inatomic(void *to, const void __user *from, unsigned long n) in __copy_from_user_inatomic() argument
64 kasan_check_write(to, n); in __copy_from_user_inatomic()
65 check_object_size(to, n, false); in __copy_from_user_inatomic()
66 return raw_copy_from_user(to, from, n); in __copy_from_user_inatomic()
70 __copy_from_user(void *to, const void __user *from, unsigned long n) in __copy_from_user() argument
73 kasan_check_write(to, n); in __copy_from_user()
74 check_object_size(to, n, false); in __copy_from_user()
75 return raw_copy_from_user(to, from, n); in __copy_from_user()
92 __copy_to_user_inatomic(void __user *to, const void *from, unsigned long n) in __copy_to_user_inatomic() argument
94 kasan_check_read(from, n); in __copy_to_user_inatomic()
[all …]
Dlist.h472 #define list_for_each_safe(pos, n, head) \ argument
473 for (pos = (head)->next, n = pos->next; pos != (head); \
474 pos = n, n = pos->next)
482 #define list_for_each_prev_safe(pos, n, head) \ argument
483 for (pos = (head)->prev, n = pos->prev; \
485 pos = n, n = pos->prev)
589 #define list_for_each_entry_safe(pos, n, head, member) \ argument
591 n = list_next_entry(pos, member); \
593 pos = n, n = list_next_entry(n, member))
605 #define list_for_each_entry_safe_continue(pos, n, head, member) \ 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_del(struct hlist_bl_node *n) in __hlist_bl_del() argument
91 struct hlist_bl_node *next = n->next; in __hlist_bl_del()
[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 …]
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()
47 static inline void hlist_bl_del_init_rcu(struct hlist_bl_node *n) in hlist_bl_del_init_rcu() argument
49 if (!hlist_bl_unhashed(n)) { in hlist_bl_del_init_rcu()
50 __hlist_bl_del(n); in hlist_bl_del_init_rcu()
51 n->pprev = NULL; in hlist_bl_del_init_rcu()
74 static inline void hlist_bl_del_rcu(struct hlist_bl_node *n) in hlist_bl_del_rcu() argument
76 __hlist_bl_del(n); in hlist_bl_del_rcu()
77 n->pprev = LIST_POISON2; in hlist_bl_del_rcu()
[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()
66 static inline void hlist_nulls_del_rcu(struct hlist_nulls_node *n) in hlist_nulls_del_rcu() argument
68 __hlist_nulls_del(n); in hlist_nulls_del_rcu()
69 WRITE_ONCE(n->pprev, LIST_POISON2); in hlist_nulls_del_rcu()
91 static inline void hlist_nulls_add_head_rcu(struct hlist_nulls_node *n, in hlist_nulls_add_head_rcu() argument
96 n->next = first; in hlist_nulls_add_head_rcu()
97 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head_rcu()
[all …]
/linux-4.19.296/drivers/media/common/siano/
Dsmsdvb-debugfs.c37 int n = 0; in smsdvb_print_dvb_stats() local
48 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
50 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
52 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
54 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
56 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
58 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
60 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
62 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
64 n += snprintf(&buf[n], PAGE_SIZE - n, in smsdvb_print_dvb_stats()
[all …]
/linux-4.19.296/include/linux/soundwire/
Dsdw_registers.h12 #define SDW_REG_SHIFT(n) (ffs(n) - 1) argument
125 #define SDW_DPN_INT(n) (0x0 + SDW_DPN_SIZE * (n)) argument
126 #define SDW_DPN_INTMASK(n) (0x1 + SDW_DPN_SIZE * (n)) argument
127 #define SDW_DPN_PORTCTRL(n) (0x2 + SDW_DPN_SIZE * (n)) argument
128 #define SDW_DPN_BLOCKCTRL1(n) (0x3 + SDW_DPN_SIZE * (n)) argument
129 #define SDW_DPN_PREPARESTATUS(n) (0x4 + SDW_DPN_SIZE * (n)) argument
130 #define SDW_DPN_PREPARECTRL(n) (0x5 + SDW_DPN_SIZE * (n)) argument
146 #define SDW_DPN_CHANNELEN_B0(n) (0x20 + SDW_DPN_SIZE * (n)) argument
147 #define SDW_DPN_CHANNELEN_B1(n) (0x30 + SDW_DPN_SIZE * (n)) argument
149 #define SDW_DPN_BLOCKCTRL2_B0(n) (0x21 + SDW_DPN_SIZE * (n)) argument
[all …]
/linux-4.19.296/fs/befs/
Dendian.h16 fs64_to_cpu(const struct super_block *sb, fs64 n) in fs64_to_cpu() argument
19 return le64_to_cpu((__force __le64)n); in fs64_to_cpu()
21 return be64_to_cpu((__force __be64)n); in fs64_to_cpu()
25 cpu_to_fs64(const struct super_block *sb, u64 n) in cpu_to_fs64() argument
28 return (__force fs64)cpu_to_le64(n); in cpu_to_fs64()
30 return (__force fs64)cpu_to_be64(n); in cpu_to_fs64()
34 fs32_to_cpu(const struct super_block *sb, fs32 n) in fs32_to_cpu() argument
37 return le32_to_cpu((__force __le32)n); in fs32_to_cpu()
39 return be32_to_cpu((__force __be32)n); in fs32_to_cpu()
43 cpu_to_fs32(const struct super_block *sb, u32 n) in cpu_to_fs32() argument
[all …]
/linux-4.19.296/fs/ufs/
Dswab.h27 fs64_to_cpu(struct super_block *sbp, __fs64 n) in fs64_to_cpu() argument
30 return le64_to_cpu((__force __le64)n); in fs64_to_cpu()
32 return be64_to_cpu((__force __be64)n); in fs64_to_cpu()
36 cpu_to_fs64(struct super_block *sbp, u64 n) in cpu_to_fs64() argument
39 return (__force __fs64)cpu_to_le64(n); in cpu_to_fs64()
41 return (__force __fs64)cpu_to_be64(n); in cpu_to_fs64()
45 fs32_to_cpu(struct super_block *sbp, __fs32 n) in fs32_to_cpu() argument
48 return le32_to_cpu((__force __le32)n); in fs32_to_cpu()
50 return be32_to_cpu((__force __be32)n); in fs32_to_cpu()
54 cpu_to_fs32(struct super_block *sbp, u32 n) in cpu_to_fs32() argument
[all …]
/linux-4.19.296/lib/zstd/
Dhuf_compress.c155 U32 n; in HUF_writeCTable_wksp() local
177 for (n = 1; n < huffLog + 1; n++) in HUF_writeCTable_wksp()
178 bitsToWeight[n] = (BYTE)(huffLog + 1 - n); in HUF_writeCTable_wksp()
179 for (n = 0; n < maxSymbolValue; n++) in HUF_writeCTable_wksp()
180 huffWeight[n] = bitsToWeight[CTable[n].nbBits]; in HUF_writeCTable_wksp()
198 for (n = 0; n < maxSymbolValue; n += 2) in HUF_writeCTable_wksp()
199 op[(n / 2) + 1] = (BYTE)((huffWeight[n] << 4) + huffWeight[n + 1]); in HUF_writeCTable_wksp()
235 U32 n, nextRankStart = 0; in HUF_readCTable_wksp() local
236 for (n = 1; n <= tableLog; n++) { in HUF_readCTable_wksp()
238 nextRankStart += (rankVal[n] << (n - 1)); in HUF_readCTable_wksp()
[all …]
/linux-4.19.296/drivers/media/rc/
Dir-xmp-decoder.c84 u32 *n; in ir_xmp_decode() local
94 n = data->durations; in ir_xmp_decode()
100 divider = (n[3] - XMP_NIBBLE_PREFIX) / 15 - 2000; in ir_xmp_decode()
110 n[i] = (n[i] - XMP_NIBBLE_PREFIX) / divider; in ir_xmp_decode()
111 sum1 = (15 + n[0] + n[1] + n[2] + n[3] + in ir_xmp_decode()
112 n[4] + n[5] + n[6] + n[7]) % 16; in ir_xmp_decode()
113 sum2 = (15 + n[8] + n[9] + n[10] + n[11] + in ir_xmp_decode()
114 n[12] + n[13] + n[14] + n[15]) % 16; in ir_xmp_decode()
123 subaddr = n[0] << 4 | n[2]; in ir_xmp_decode()
124 subaddr2 = n[8] << 4 | n[11]; in ir_xmp_decode()
[all …]
/linux-4.19.296/lib/
Dklist.c95 static void add_head(struct klist *k, struct klist_node *n) in add_head() argument
98 list_add(&n->n_node, &k->k_list); in add_head()
102 static void add_tail(struct klist *k, struct klist_node *n) in add_tail() argument
105 list_add_tail(&n->n_node, &k->k_list); in add_tail()
109 static void klist_node_init(struct klist *k, struct klist_node *n) in klist_node_init() argument
111 INIT_LIST_HEAD(&n->n_node); in klist_node_init()
112 kref_init(&n->n_ref); in klist_node_init()
113 knode_set_klist(n, k); in klist_node_init()
115 k->get(n); in klist_node_init()
123 void klist_add_head(struct klist_node *n, struct klist *k) in klist_add_head() argument
[all …]
Dusercopy.c8 unsigned long _copy_from_user(void *to, const void __user *from, unsigned long n) in _copy_from_user() argument
10 unsigned long res = n; in _copy_from_user()
12 if (likely(access_ok(VERIFY_READ, from, n))) { in _copy_from_user()
19 kasan_check_write(to, n); in _copy_from_user()
20 res = raw_copy_from_user(to, from, n); in _copy_from_user()
23 memset(to + (n - res), 0, res); in _copy_from_user()
30 unsigned long _copy_to_user(void __user *to, const void *from, unsigned long n) in _copy_to_user() argument
33 if (likely(access_ok(VERIFY_WRITE, to, n))) { in _copy_to_user()
34 kasan_check_read(from, n); in _copy_to_user()
35 n = raw_copy_to_user(to, from, n); in _copy_to_user()
[all …]
/linux-4.19.296/include/linux/clk/
Dat91_pmc.h68 #define AT91_PMC_MUL_GET(n) ((n) >> 16 & 0x7ff) argument
70 #define AT91_PMC3_MUL_GET(n) ((n) >> 18 & 0x7f) argument
132 #define AT91_PMC_SMDDIV(n) (((n) << 8) & AT91_PMC_SMD_DIV) argument
134 #define AT91_PMC_PCKR(n) (0x40 + ((n) * 4)) /* Programmable Clock 0-N Registers */ argument
161 #define AT91_PMC_FSTT(n) BIT(n) argument
192 #define AT91_PMC_PCR_GCKCSS(n) ((n) << AT91_PMC_PCR_GCKCSS_OFFSET) /* GCK Clock Source Selection… argument
196 #define AT91_PMC_PCR_DIV(n) ((n) << AT91_PMC_PCR_DIV_OFFSET) /* Divisor Value */ argument
199 #define AT91_PMC_PCR_GCKDIV(n) ((n) << AT91_PMC_PCR_GCKDIV_OFFSET) /* Generated Clock Divisor Va… argument
210 #define AT91_PMC_AUDIO_PLL_ND(n) ((n) << AT91_PMC_AUDIO_PLL_ND_OFFSET) argument
213 #define AT91_PMC_AUDIO_PLL_QDPMC(n) ((n) << AT91_PMC_AUDIO_PLL_QDPMC_OFFSET) argument
[all …]
/linux-4.19.296/fs/fscache/
Dhistogram.c30 unsigned n[5], t; in fscache_histogram_show() local
41 n[0] = atomic_read(&fscache_obj_instantiate_histogram[index]); in fscache_histogram_show()
42 n[1] = atomic_read(&fscache_ops_histogram[index]); in fscache_histogram_show()
43 n[2] = atomic_read(&fscache_objs_histogram[index]); in fscache_histogram_show()
44 n[3] = atomic_read(&fscache_retrieval_delay_histogram[index]); in fscache_histogram_show()
45 n[4] = atomic_read(&fscache_retrieval_histogram[index]); in fscache_histogram_show()
46 if (!(n[0] | n[1] | n[2] | n[3] | n[4])) in fscache_histogram_show()
52 index, t, n[0], n[1], n[2], n[3], n[4]); in fscache_histogram_show()
/linux-4.19.296/lib/zlib_deflate/
Ddeftree.c228 int n; /* iterates over tree elements */ in tr_static_init() local
242 for (n = 0; n < (1<<extra_lbits[code]); n++) { in tr_static_init()
257 for (n = 0; n < (1<<extra_dbits[code]); n++) { in tr_static_init()
265 for (n = 0; n < (1<<(extra_dbits[code]-7)); n++) { in tr_static_init()
273 n = 0; in tr_static_init()
274 while (n <= 143) static_ltree[n++].Len = 8, bl_count[8]++; in tr_static_init()
275 while (n <= 255) static_ltree[n++].Len = 9, bl_count[9]++; in tr_static_init()
276 while (n <= 279) static_ltree[n++].Len = 7, bl_count[7]++; in tr_static_init()
277 while (n <= 287) static_ltree[n++].Len = 8, bl_count[8]++; in tr_static_init()
285 for (n = 0; n < D_CODES; n++) { in tr_static_init()
[all …]
/linux-4.19.296/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 …]
/linux-4.19.296/drivers/clk/mvebu/
Dcommon.c116 int n; in mvebu_coreclk_setup() local
158 for (n = 0; n < desc->num_ratios; n++) { in mvebu_coreclk_setup()
159 const char *rclk_name = desc->ratios[n].name; in mvebu_coreclk_setup()
163 2+n, &rclk_name); in mvebu_coreclk_setup()
164 desc->get_clk_ratio(base, desc->ratios[n].id, &mult, &div); in mvebu_coreclk_setup()
165 clk_data.clks[2+n] = clk_register_fixed_factor(NULL, rclk_name, in mvebu_coreclk_setup()
167 WARN_ON(IS_ERR(clk_data.clks[2+n])); in mvebu_coreclk_setup()
206 int n; in clk_gating_get_src() local
211 for (n = 0; n < ctrl->num_gates; n++) { in clk_gating_get_src()
213 to_clk_gate(__clk_get_hw(ctrl->gates[n])); in clk_gating_get_src()
[all …]
/linux-4.19.296/fs/minix/
Ditree_v2.c9 static inline unsigned long block_to_cpu(block_t n) in block_to_cpu() argument
11 return n; in block_to_cpu()
14 static inline block_t cpu_to_block(unsigned long n) in cpu_to_block() argument
16 return n; in cpu_to_block()
29 int n = 0; in block_to_path() local
41 offsets[n++] = block; in block_to_path()
43 offsets[n++] = DIRCOUNT; in block_to_path()
44 offsets[n++] = block; in block_to_path()
46 offsets[n++] = DIRCOUNT + 1; in block_to_path()
47 offsets[n++] = block / INDIRCOUNT(sb); in block_to_path()
[all …]
/linux-4.19.296/include/asm-generic/
Ddiv64.h43 # define do_div(n,base) ({ \ argument
46 __rem = ((uint64_t)(n)) % __base; \
47 (n) = ((uint64_t)(n)) / __base; \
69 #define __div64_const32(n, ___b) \ argument
80 uint64_t ___res, ___x, ___t, ___m, ___n = (n); \
175 static inline uint64_t __arch_xprod_64(const uint64_t m, uint64_t n, bool bias) in __arch_xprod_64() argument
179 uint32_t n_lo = n; in __arch_xprod_64()
180 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 …]
/linux-4.19.296/drivers/edac/
Dppc4xx_edac.c137 #define SDRAM_MBCF_SZ_TO_MiB(n) (SDRAM_MBCF_SZ_MiB_MIN \ argument
138 << (SDRAM_MBCF_SZ_DECODE(n)))
139 #define SDRAM_MBCF_SZ_TO_PAGES(n) (SDRAM_MBCF_SZ_MiB_MIN \ argument
141 SDRAM_MBCF_SZ_DECODE(n)))
321 int n, total = 0; in ppc4xx_edac_generate_bank_message() local
324 n = snprintf(buffer, size, "%s: Banks: ", mci->dev_name); in ppc4xx_edac_generate_bank_message()
326 if (n < 0 || n >= size) in ppc4xx_edac_generate_bank_message()
329 buffer += n; in ppc4xx_edac_generate_bank_message()
330 size -= n; in ppc4xx_edac_generate_bank_message()
331 total += n; in ppc4xx_edac_generate_bank_message()
[all …]
/linux-4.19.296/fs/ubifs/
Dtnc.c193 struct ubifs_old_idx *old_idx, *n; in destroy_old_idx() local
195 rbtree_postorder_for_each_entry_safe(old_idx, n, &c->old_idx, rb) in destroy_old_idx()
255 const int n = new_zn->child_cnt; in replace_znode() local
258 for (i = 0; i < n; i++) { in replace_znode()
626 struct ubifs_znode *znode, int n) in get_znode() argument
630 zbr = &znode->zbranch[n]; in get_znode()
634 znode = ubifs_load_znode(c, zbr, znode, n); in get_znode()
647 static int tnc_next(struct ubifs_info *c, struct ubifs_znode **zn, int *n) in tnc_next() argument
650 int nn = *n; in tnc_next()
654 *n = nn; in tnc_next()
[all …]
/linux-4.19.296/fs/xfs/libxfs/
Dxfs_bit.h16 static inline uint64_t xfs_mask64hi(int n) in xfs_mask64hi() argument
18 return (uint64_t)-1 << (64 - (n)); in xfs_mask64hi()
20 static inline uint32_t xfs_mask32lo(int n) in xfs_mask32lo() argument
22 return ((uint32_t)1 << (n)) - 1; in xfs_mask32lo()
24 static inline uint64_t xfs_mask64lo(int n) in xfs_mask64lo() argument
26 return ((uint64_t)1 << (n)) - 1; in xfs_mask64lo()
51 int n = 0; in xfs_lowbit64() local
54 n = ffs(w); in xfs_lowbit64()
58 n = ffs(w); in xfs_lowbit64()
59 if (n) in xfs_lowbit64()
[all …]

12345678910>>...43