Home
last modified time | relevance | path

Searched refs:nr_words (Results 1 – 9 of 9) sorted by relevance

/linux/drivers/md/
H A Ddm-clone-metadata.c123 unsigned long nr_words; member
236 unsigned int i, nr_words; in __superblock_all_zeroes() local
255 nr_words = dm_bm_block_size(bm) / sizeof(__le64); in __superblock_all_zeroes()
256 for (i = 0; i < nr_words; i++) { in __superblock_all_zeroes()
468 static int __dirty_map_init(struct dirty_map *dmap, unsigned long nr_words, in __dirty_map_init() argument
473 dmap->dirty_words = kvzalloc(bitmap_size(nr_words), GFP_KERNEL); in __dirty_map_init()
494 if (__dirty_map_init(&cmd->dmap[0], cmd->nr_words, cmd->nr_regions)) { in dirty_map_init()
499 if (__dirty_map_init(&cmd->dmap[1], cmd->nr_words, cmd->nr_regions)) { in dirty_map_init()
566 cmd->nr_words = BITS_TO_LONGS(cmd->nr_regions); in dm_clone_metadata_open()
741 word = find_next_bit(dmap->dirty_words, cmd->nr_words, word); in __flush_dmap()
[all …]
/linux/kernel/sched/ext/
H A Dcid.c396 u32 nr_words; in scx_cmask_clear() local
400 nr_words = (m->base + m->nr_cids - 1) / 64 - m->base / 64 + 1; in scx_cmask_clear()
401 memset(m->bits, 0, nr_words * sizeof(u64)); in scx_cmask_clear()
412 u32 nr_words, head_bits, tail_bits; in scx_cmask_fill() local
416 nr_words = (m->base + m->nr_cids - 1) / 64 - m->base / 64 + 1; in scx_cmask_fill()
417 memset(m->bits, 0xff, nr_words * sizeof(u64)); in scx_cmask_fill()
427 m->bits[nr_words - 1] &= (1ULL << tail_bits) - 1; in scx_cmask_fill()
1058 u32 isect_base, isect_end, nr_words, src_off, wi; in scx_cmask_ref_shard() local
1070 nr_words = ((isect_end - 1) / 64) - (isect_base / 64) + 1; in scx_cmask_ref_shard()
1071 if (nr_words > out->alloc_words) { in scx_cmask_ref_shard()
[all …]
/linux/tools/sched_ext/include/scx/
H A Dcid.bpf.h273 u32 nr_words = CMASK_NR_WORDS(m->nr_cids), i; in cmask_zero() local
276 if (i >= nr_words) in cmask_zero()
390 u32 nr_words, i; in cmask_equal() local
396 nr_words = (a->base + a->nr_cids - 1) / 64 - a->base / 64 + 1; in cmask_equal()
399 if (i >= nr_words) in cmask_equal()
516 u32 nr_words, i; in cmask_weight() local
521 nr_words = (m->base + m->nr_cids - 1) / 64 - m->base / 64 + 1; in cmask_weight()
524 if (i >= nr_words) in cmask_weight()
H A Dcommon.bpf.h462 int bpf_iter_bits_new(struct bpf_iter_bits *it, const u64 *unsafe_ptr__ign, u32 nr_words) __ksym;
474 struct bpf_iter_##name *it, const u64 *unsafe_ptr__ign, u32 nr_words) \
/linux/fs/xfs/scrub/
H A Drtsummary.h29 union xfs_suminfo_raw *rawinfo, unsigned int nr_words);
H A Drtbitmap_repair.c144 xrep_wordcnt_t nr_words) in xfbmp_copyin() argument
146 return xfile_store(rtb->sc->xfile, word, nr_words << XFS_WORDLOG, in xfbmp_copyin()
155 xrep_wordcnt_t nr_words) in xfbmp_copyout() argument
157 return xfile_load(rtb->sc->xfile, word, nr_words << XFS_WORDLOG, in xfbmp_copyout()
H A Drtsummary.c141 unsigned int nr_words) in xfsum_copyout() argument
143 return xfile_load(sc->xfile, rawinfo, nr_words << XFS_WORDLOG, in xfsum_copyout()
/linux/kernel/bpf/
H A Dhelpers.c3524 bpf_iter_bits_new(struct bpf_iter_bits *it, const u64 *unsafe_ptr__ign, u32 nr_words) in bpf_iter_bits_new() argument
3527 u32 nr_bytes = nr_words * sizeof(u64); in bpf_iter_bits_new()
3539 if (!unsafe_ptr__ign || !nr_words) in bpf_iter_bits_new()
3541 if (nr_words > BITS_ITER_NR_WORDS_MAX) in bpf_iter_bits_new()
3550 swap_ulong_in_u64(&kit->bits_copy, nr_words); in bpf_iter_bits_new()
3570 swap_ulong_in_u64(kit->bits, nr_words); in bpf_iter_bits_new()
/linux/drivers/media/dvb-frontends/drx39xyj/
H A Ddrxj.c11605 static u16 drx_u_code_compute_crc(u8 *block_data, u16 nr_words) in drx_u_code_compute_crc() argument
11612 while (i < nr_words) { in drx_u_code_compute_crc()