Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 25 of 109) sorted by relevance

12345

/linux/include/linux/
A Dbitmap.h147 unsigned int nbits);
239 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
254 unsigned int nbits) in bitmap_copy() argument
268 dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits); in bitmap_copy_clear_tail()
324 unsigned int nbits) in bitmap_complement() argument
393 return find_first_bit(src, nbits) == nbits; in bitmap_empty()
401 return find_first_zero_bit(src, nbits) == nbits; in bitmap_full()
412 unsigned int nbits) in bitmap_set() argument
414 if (__builtin_constant_p(nbits) && nbits == 1) in bitmap_set()
426 unsigned int nbits) in bitmap_clear() argument
[all …]
A Dnodemask.h142 bitmap_fill(dstp->bits, nbits); in __nodes_setall()
148 bitmap_zero(dstp->bits, nbits); in __nodes_clear()
196 const nodemask_t *srcp, unsigned int nbits) in __nodes_complement() argument
228 return bitmap_empty(srcp->bits, nbits); in __nodes_empty()
234 return bitmap_full(srcp->bits, nbits); in __nodes_full()
240 return bitmap_weight(srcp->bits, nbits); in __nodes_weight()
246 const nodemask_t *srcp, int n, int nbits) in __nodes_shift_right() argument
254 const nodemask_t *srcp, int n, int nbits) in __nodes_shift_left() argument
334 nodemask_t *dstp, int nbits) in __nodemask_parse_user() argument
364 const nodemask_t *relmapp, int nbits) in __nodes_onto() argument
[all …]
/linux/tools/include/linux/
A Dbitmap.h25 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
29 if (small_const_nbits(nbits)) in bitmap_zero()
49 if (small_const_nbits(nbits)) in bitmap_empty()
52 return find_first_bit(src, nbits) == nbits; in bitmap_empty()
57 if (small_const_nbits(nbits)) in bitmap_full()
60 return find_first_zero_bit(src, nbits) == nbits; in bitmap_full()
65 if (small_const_nbits(nbits)) in bitmap_weight()
73 if (small_const_nbits(nbits)) in bitmap_or()
151 if (small_const_nbits(nbits)) in bitmap_and()
167 if (small_const_nbits(nbits)) in bitmap_equal()
[all …]
/linux/net/ethtool/
A Dbitset.c131 while (nbits > 0) { in ethnl_bitmap32_update()
135 if (nbits < 32) in ethnl_bitmap32_update()
143 if (nbits <= 32) in ethnl_bitmap32_update()
146 nbits -= 32; in ethnl_bitmap32_update()
257 if (nbits % 32) in ethnl_put_bitset32()
266 if (nbits % 32) in ethnl_put_bitset32()
394 if (idx >= nbits) { in ethnl_parse_bit()
523 if (attr_nbits <= nbits) in ethnl_compact_sanity_checks()
631 if (change_bits > nbits) in ethnl_parse_bitset()
632 change_bits = nbits; in ethnl_parse_bitset()
[all …]
A Dbitset.h12 unsigned int nbits, ethnl_string_array_t names,
14 int ethnl_bitset32_size(const u32 *val, const u32 *mask, unsigned int nbits,
18 unsigned int nbits, ethnl_string_array_t names,
21 const u32 *mask, unsigned int nbits,
23 int ethnl_update_bitset(unsigned long *bitmap, unsigned int nbits,
26 int ethnl_update_bitset32(u32 *bitmap, unsigned int nbits,
30 unsigned int nbits, const struct nlattr *attr,
/linux/fs/ntfs3/
A Dbitfunc.c39 if (8 - pos >= nbits) in are_bits_clear()
40 return !nbits || !(*map & fill_mask[pos + nbits] & in are_bits_clear()
45 nbits -= 8 - pos; in are_bits_clear()
51 if (nbits >= pos * 8) { in are_bits_clear()
52 for (nbits -= pos * 8; pos; pos--, map++) { in are_bits_clear()
69 pos = nbits & 7; in are_bits_clear()
88 if (8 - pos >= nbits) { in are_bits_set()
90 return !nbits || (*map & mask) == mask; in are_bits_set()
96 nbits -= 8 - pos; in are_bits_set()
102 if (nbits >= pos * 8) { in are_bits_set()
[all …]
/linux/lib/
A Dtest_bitmap.c76 unsigned int nbits) in __check_eq_bitmap() argument
81 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
294 unsigned int nbits = 64; in test_replace() local
324 const int nbits; member
534 for (nbits = 0; nbits < EXP1_IN_BITS; ++nbits) { in test_bitmap_arr32()
540 round_up(nbits, BITS_PER_LONG), nbits); in test_bitmap_arr32()
544 nbits, next_bit); in test_bitmap_arr32()
559 for (nbits = 0; nbits < 1024 - start; nbits += 8) { in test_mem_optimisations()
582 nbits); in test_mem_optimisations()
625 unsigned int nbits; member
[all …]
A Dbitmap.c104 unsigned shift, unsigned nbits) in __bitmap_shift_right() argument
623 unsigned int nbits; member
639 if (r->end >= r->nbits) in bitmap_check_region()
785 r.nbits = nmaskbits; in bitmap_parselist()
786 bitmap_zero(maskp, r.nbits); in bitmap_parselist()
966 pos < nbits && ord; in bitmap_ord_to_pos()
1007 unsigned int nbits) in bitmap_remap() argument
1013 bitmap_zero(dst, nbits); in bitmap_remap()
1218 bitmap_zero(dst, nbits); in bitmap_fold()
1471 if (nbits % BITS_PER_LONG) in bitmap_from_arr32()
[all …]
A Dfind_bit.c33 const unsigned long *addr2, unsigned long nbits, in _find_next_bit() argument
38 if (unlikely(start >= nbits)) in _find_next_bit()
39 return nbits; in _find_next_bit()
57 if (start >= nbits) in _find_next_bit()
58 return nbits; in _find_next_bit()
69 return min(start + __ffs(tmp), nbits); in _find_next_bit()
/linux/lib/mpi/
A Dmpicoder.c40 unsigned nbits, nlimbs; in mpi_read_raw_data() local
49 nbits = nbytes * 8; in mpi_read_raw_data()
61 val->nbits = nbits; in mpi_read_raw_data()
133 nbits = strlen(str); in mpi_fromstr()
138 nbits *= 4; in mpi_fromstr()
139 if ((nbits % 8)) in mpi_fromstr()
142 nbytes = (nbits+7) / 8; in mpi_fromstr()
476 nbits = nbytes * 8; in mpi_read_raw_from_sgl()
493 val->nbits = nbits; in mpi_read_raw_from_sgl()
655 s[0] = nbits >> 8; in mpi_print()
[all …]
A Dmpi-bit.c183 unsigned int nbits = (n%BITS_PER_MPI_LIMB); in mpi_rshift() local
198 if (x->nlimbs && nbits) in mpi_rshift()
199 mpihelp_rshift(x->d, x->d, x->nlimbs, nbits); in mpi_rshift()
222 if (x->nlimbs && nbits) in mpi_rshift()
223 mpihelp_rshift(x->d, x->d, x->nlimbs, nbits); in mpi_rshift()
232 if (nbits) in mpi_rshift()
233 mpihelp_rshift(x->d, a->d, x->nlimbs, nbits); in mpi_rshift()
275 unsigned int nbits = (n%BITS_PER_MPI_LIMB); in mpi_lshift() local
295 if (nlimbs && !nbits) { in mpi_lshift()
303 mpi_rshift(x, x, BITS_PER_MPI_LIMB - nbits); in mpi_lshift()
/linux/fs/xfs/
A Dxfs_buf_item.c63 int nbits) in xfs_buf_item_straddle() argument
94 int nbits; in xfs_buf_item_size_segment() local
108 ASSERT(nbits > 0); in xfs_buf_item_size_segment()
114 if (nbits > 1 && in xfs_buf_item_size_segment()
159 nbits = 1; in xfs_buf_item_size_segment()
162 nbits++; in xfs_buf_item_size_segment()
259 uint nbits) in xfs_buf_item_copy_iovec() argument
280 uint nbits; in xfs_buf_item_format_segment() local
352 nbits = 1; in xfs_buf_item_format_segment()
381 nbits = 1; in xfs_buf_item_format_segment()
[all …]
A Dxfs_buf_item_recover.c445 int nbits; in xlog_recover_do_reg_buffer() local
458 nbits = xfs_contig_bits(buf_f->blf_data_map, in xlog_recover_do_reg_buffer()
460 ASSERT(nbits > 0); in xlog_recover_do_reg_buffer()
475 nbits = item->ri_buf[i].i_len >> XFS_BLF_SHIFT; in xlog_recover_do_reg_buffer()
508 nbits<<XFS_BLF_SHIFT); /* length */ in xlog_recover_do_reg_buffer()
511 bit += nbits; in xlog_recover_do_reg_buffer()
586 int nbits = 0; in xlog_recover_do_inode_buffer() local
616 bit += nbits; in xlog_recover_do_inode_buffer()
627 nbits = xfs_contig_bits(buf_f->blf_data_map, in xlog_recover_do_inode_buffer()
629 ASSERT(nbits > 0); in xlog_recover_do_inode_buffer()
[all …]
/linux/tools/lib/
A Dfind_bit.c32 const unsigned long *addr2, unsigned long nbits, in _find_next_bit() argument
38 if (unlikely(start >= nbits)) in _find_next_bit()
39 return nbits; in _find_next_bit()
64 if (start >= nbits) in _find_next_bit()
65 return nbits; in _find_next_bit()
78 return min(start + __ffs(tmp), nbits); in _find_next_bit()
A Dbitmap.c31 size_t bitmap_scnprintf(unsigned long *bitmap, unsigned int nbits, in bitmap_scnprintf() argument
39 rbot = cur = find_first_bit(bitmap, nbits); in bitmap_scnprintf()
40 while (cur < nbits) { in bitmap_scnprintf()
42 cur = find_next_bit(bitmap, nbits, cur + 1); in bitmap_scnprintf()
43 if (cur < nbits && cur <= rtop + 1) in bitmap_scnprintf()
/linux/drivers/soc/tegra/fuse/
A Dfuse-tegra.c102 .nbits = 32,
108 .nbits = 32,
114 .nbits = 32,
120 .nbits = 32,
126 .nbits = 32,
132 .nbits = 2,
138 .nbits = 32,
144 .nbits = 32,
150 .nbits = 32,
156 .nbits = 32,
[all …]
/linux/arch/ia64/mm/
A Dtlb.c273 ia64_ptcga(start, (nbits << 2)); in ia64_global_tlb_purge()
275 start += (1UL << nbits); in ia64_global_tlb_purge()
316 unsigned long nbits; in __flush_tlb_range() local
325 nbits = ia64_fls(size + 0xfff); in __flush_tlb_range()
327 (nbits < purge.max_bits)) in __flush_tlb_range()
328 ++nbits; in __flush_tlb_range()
329 if (nbits > purge.max_bits) in __flush_tlb_range()
330 nbits = purge.max_bits; in __flush_tlb_range()
331 start &= ~((1UL << nbits) - 1); in __flush_tlb_range()
342 ia64_ptcl(start, (nbits<<2)); in __flush_tlb_range()
[all …]
/linux/fs/omfs/
A Dbitmap.c13 int nbits = sb->s_blocksize * 8; in omfs_count_free() local
16 sum += nbits - bitmap_weight(sbi->s_imap[i], nbits); in omfs_count_free()
26 static int count_run(unsigned long **addr, int nbits, in count_run() argument
33 x = find_next_bit(*addr, nbits, bit); in count_run()
36 if (x < nbits || count > max) in count_run()
49 int nbits, int bit, int count, int set) in set_run() argument
62 if (bit >= nbits) { in set_run()
/linux/include/asm-generic/
A Dbitsperlong.h35 #define small_const_nbits(nbits) \ argument
36 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
/linux/tools/include/asm-generic/
A Dbitsperlong.h21 #define small_const_nbits(nbits) \ argument
22 (__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
/linux/drivers/regulator/
A Dda903x-regulator.c324 .vol_nbits = (nbits), \
344 .vol_nbits = (nbits), \
351 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
352 DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
354 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
355 DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
357 #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
358 DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \
361 #define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
362 DA903x_DVC(DA9034, _id, min, max, step, vreg, nbits, ureg, ubit, \
[all …]
A Dtps6586x-regulator.c123 .vsel_mask = ((1 << (nbits)) - 1) << (shift), \
133 uv_step, vreg, shift, nbits, ereg0, \ argument
148 .vsel_mask = ((1 << (nbits)) - 1) << (shift), \
157 #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
160 TPS6586X_REGULATOR(_id, rw, _pname, vdata, vreg, shift, nbits, \
165 shift, nbits, ereg0, ebit0, ereg1, ebit1) \ argument
168 min_uv, uv_step, vreg, shift, nbits, \
172 #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
175 TPS6586X_REGULATOR(_id, ro, _pname, vdata, vreg, shift, nbits, \
180 nbits, ereg0, ebit0, ereg1, ebit1, goreg, gobit) \ argument
[all …]
/linux/drivers/net/ethernet/tehuti/
A Dtehuti.h127 #define BITS_MASK(nbits) ((1<<nbits)-1) argument
128 #define GET_BITS_SHIFT(x, nbits, nshift) (((x)>>nshift)&BITS_MASK(nbits)) argument
129 #define BITS_SHIFT_MASK(nbits, nshift) (BITS_MASK(nbits)<<nshift) argument
130 #define BITS_SHIFT_VAL(x, nbits, nshift) (((x)&BITS_MASK(nbits))<<nshift) argument
131 #define BITS_SHIFT_CLEAR(x, nbits, nshift) \ argument
132 ((x)&(~BITS_SHIFT_MASK(nbits, nshift)))
/linux/fs/btrfs/
A Dsubpage.c224 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_start_reader() local
228 atomic_add(nbits, &subpage->readers); in btrfs_subpage_start_reader()
235 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_end_reader() local
241 ASSERT(atomic_read(&subpage->readers) >= nbits); in btrfs_subpage_end_reader()
283 ret = atomic_add_return(nbits, &subpage->writers); in btrfs_subpage_start_writer()
284 ASSERT(ret == nbits); in btrfs_subpage_start_writer()
305 ASSERT(atomic_read(&subpage->writers) >= nbits); in btrfs_subpage_end_and_test_writer()
347 unsigned int nbits) in bitmap_test_range_all_set() argument
352 if (found_zero == start + nbits) in bitmap_test_range_all_set()
358 unsigned int nbits) in bitmap_test_range_all_zero() argument
[all …]
/linux/drivers/media/usb/pwc/
A Dpwc-dec23.c300 pdec->nbits = 8; in pwc_dec23_init()
302 pdec->nbits = 6; in pwc_dec23_init()
312 pdec->nbits = 7; in pwc_dec23_init()
314 pdec->nbits = 8; in pwc_dec23_init()
316 pdec->nbits = 6; in pwc_dec23_init()
324 shift = 8 - pdec->nbits; in pwc_dec23_init()
496 __get_nbits(pdec, pdec->nbits, primary_color); in decode_block()
542 unsigned int nbits, col1; in decode_block() local
550 nbits = ptable8004[offset1 * 2]; in decode_block()
553 __get_nbits(pdec, nbits+1, col1); in decode_block()
[all …]

Completed in 44 milliseconds

12345