Home
last modified time | relevance | path

Searched defs:nbits (Results 1 – 25 of 164) sorted by relevance

1234567

/kernel/linux/linux-6.6/include/linux/
Dbitmap.h242 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
244 #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) argument
246 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits) in bitmap_zero()
256 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill()
267 unsigned int nbits) in bitmap_copy()
281 const unsigned long *src, unsigned int nbits) in bitmap_copy_clear_tail()
314 #define bitmap_from_arr32(bitmap, buf, nbits) \ argument
317 #define bitmap_to_arr32(buf, bitmap, nbits) \ argument
330 #define bitmap_from_arr64(bitmap, buf, nbits) \ argument
332 #define bitmap_to_arr64(buf, bitmap, nbits) \ argument
[all …]
Dnodemask.h141 static inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits) in __nodes_setall()
147 static inline void __nodes_clear(nodemask_t *dstp, unsigned int nbits) in __nodes_clear()
165 const nodemask_t *src2p, unsigned int nbits) in __nodes_and()
173 const nodemask_t *src2p, unsigned int nbits) in __nodes_or()
181 const nodemask_t *src2p, unsigned int nbits) in __nodes_xor()
189 const nodemask_t *src2p, unsigned int nbits) in __nodes_andnot()
197 const nodemask_t *srcp, unsigned int nbits) in __nodes_complement()
205 const nodemask_t *src2p, unsigned int nbits) in __nodes_equal()
213 const nodemask_t *src2p, unsigned int nbits) in __nodes_intersects()
221 const nodemask_t *src2p, unsigned int nbits) in __nodes_subset()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dbitmap.h233 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
240 #define small_const_nbits(nbits) \ argument
243 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits) in bitmap_zero()
249 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill()
256 unsigned int nbits) in bitmap_copy()
266 const unsigned long *src, unsigned int nbits) in bitmap_copy_clear_tail()
283 #define bitmap_from_arr32(bitmap, buf, nbits) \ argument
286 #define bitmap_to_arr32(buf, bitmap, nbits) \ argument
292 const unsigned long *src2, unsigned int nbits) in bitmap_and()
300 const unsigned long *src2, unsigned int nbits) in bitmap_or()
[all …]
Dnodemask.h140 static inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits) in __nodes_setall()
146 static inline void __nodes_clear(nodemask_t *dstp, unsigned int nbits) in __nodes_clear()
164 const nodemask_t *src2p, unsigned int nbits) in __nodes_and()
172 const nodemask_t *src2p, unsigned int nbits) in __nodes_or()
180 const nodemask_t *src2p, unsigned int nbits) in __nodes_xor()
188 const nodemask_t *src2p, unsigned int nbits) in __nodes_andnot()
196 const nodemask_t *srcp, unsigned int nbits) in __nodes_complement()
204 const nodemask_t *src2p, unsigned int nbits) in __nodes_equal()
212 const nodemask_t *src2p, unsigned int nbits) in __nodes_intersects()
220 const nodemask_t *src2p, unsigned int nbits) in __nodes_subset()
[all …]
/kernel/linux/linux-6.6/tools/include/linux/
Dbitmap.h27 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
29 #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) argument
31 static inline void bitmap_zero(unsigned long *dst, unsigned int nbits) in bitmap_zero()
40 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill()
50 static inline bool bitmap_empty(const unsigned long *src, unsigned int nbits) in bitmap_empty()
58 static inline bool bitmap_full(const unsigned long *src, unsigned int nbits) in bitmap_full()
66 static inline unsigned int bitmap_weight(const unsigned long *src, unsigned int nbits) in bitmap_weight()
74 const unsigned long *src2, unsigned int nbits) in bitmap_or()
86 static inline unsigned long *bitmap_zalloc(int nbits) in bitmap_zalloc()
118 const unsigned long *src2, unsigned int nbits) in bitmap_and()
[all …]
/kernel/linux/linux-5.10/tools/include/linux/
Dbitmap.h24 #define BITMAP_LAST_WORD_MASK(nbits) \ argument
30 #define small_const_nbits(nbits) \ argument
33 static inline void bitmap_zero(unsigned long *dst, int nbits) in bitmap_zero()
43 static inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill()
53 static inline int bitmap_empty(const unsigned long *src, unsigned nbits) in bitmap_empty()
61 static inline int bitmap_full(const unsigned long *src, unsigned int nbits) in bitmap_full()
69 static inline int bitmap_weight(const unsigned long *src, int nbits) in bitmap_weight()
77 const unsigned long *src2, int nbits) in bitmap_or()
123 static inline unsigned long *bitmap_alloc(int nbits) in bitmap_alloc()
155 const unsigned long *src2, unsigned int nbits) in bitmap_and()
[all …]
/kernel/linux/linux-6.6/net/ethtool/
Dbitset.c128 static void ethnl_bitmap32_update(u32 *dst, unsigned int nbits, in ethnl_bitmap32_update()
171 int ethnl_bitset32_size(const u32 *val, const u32 *mask, unsigned int nbits, in ethnl_bitset32_size()
233 const u32 *mask, unsigned int nbits, in ethnl_put_bitset32()
377 static int ethnl_parse_bit(unsigned int *index, bool *val, unsigned int nbits, in ethnl_parse_bit()
437 unsigned int nbits) in ethnl_bitmap32_equal()
448 ethnl_update_bitset32_verbose(u32 *bitmap, unsigned int nbits, in ethnl_update_bitset32_verbose()
520 static int ethnl_compact_sanity_checks(unsigned int nbits, in ethnl_compact_sanity_checks()
592 int ethnl_update_bitset32(u32 *bitmap, unsigned int nbits, in ethnl_update_bitset32()
645 unsigned int nbits, const struct nlattr *attr, in ethnl_parse_bitset()
740 unsigned int nbits, ethnl_string_array_t names, in ethnl_bitset_size()
[all …]
/kernel/linux/linux-5.10/net/ethtool/
Dbitset.c128 static void ethnl_bitmap32_update(u32 *dst, unsigned int nbits, in ethnl_bitmap32_update()
171 int ethnl_bitset32_size(const u32 *val, const u32 *mask, unsigned int nbits, in ethnl_bitset32_size()
233 const u32 *mask, unsigned int nbits, in ethnl_put_bitset32()
377 static int ethnl_parse_bit(unsigned int *index, bool *val, unsigned int nbits, in ethnl_parse_bit()
429 ethnl_update_bitset32_verbose(u32 *bitmap, unsigned int nbits, in ethnl_update_bitset32_verbose()
480 static int ethnl_compact_sanity_checks(unsigned int nbits, in ethnl_compact_sanity_checks()
552 int ethnl_update_bitset32(u32 *bitmap, unsigned int nbits, in ethnl_update_bitset32()
605 unsigned int nbits, const struct nlattr *attr, in ethnl_parse_bitset()
700 unsigned int nbits, ethnl_string_array_t names, in ethnl_bitset_size()
736 unsigned int nbits, ethnl_string_array_t names, in ethnl_put_bitset()
[all …]
/kernel/linux/linux-6.6/lib/
Dbitmap.c104 unsigned shift, unsigned nbits) in __bitmap_shift_right()
149 unsigned int shift, unsigned int nbits) in __bitmap_shift_left()
211 unsigned int first, unsigned int cut, unsigned int nbits) in bitmap_cut()
296 const unsigned long *mask, unsigned int nbits) in __bitmap_replace()
650 unsigned int nbits; member
963 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) in bitmap_pos_to_ord()
1005 unsigned int nbits) in bitmap_remap()
1210 unsigned int sz, unsigned int nbits) in bitmap_fold()
1372 void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits) in bitmap_copy_le()
1386 unsigned long *bitmap_alloc(unsigned int nbits, gfp_t flags) in bitmap_alloc()
[all …]
Dfind_bit.c131 unsigned long _find_next_bit(const unsigned long *addr, unsigned long nbits, unsigned long start) in _find_next_bit()
169 unsigned long nbits, unsigned long start) in _find_next_and_bit()
178 unsigned long nbits, unsigned long start) in _find_next_andnot_bit()
187 unsigned long nbits, unsigned long start) in _find_next_or_bit()
195 unsigned long _find_next_zero_bit(const unsigned long *addr, unsigned long nbits, in _find_next_zero_bit()
Dtest_bitmap.c78 unsigned int nbits) in __check_eq_bitmap()
92 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl()
337 unsigned int nbits = 64; in test_replace() local
367 const int nbits; member
611 unsigned int nbits, next_bit; in test_bitmap_arr32() local
639 unsigned int nbits, next_bit; in test_bitmap_arr64() local
675 unsigned int start, nbits; in test_mem_optimisations() local
977 unsigned int nbits; member
1033 unsigned long nbits; member
/kernel/linux/linux-5.10/lib/
Dbitmap.c104 unsigned shift, unsigned nbits) in __bitmap_shift_right()
149 unsigned int shift, unsigned int nbits) in __bitmap_shift_left()
211 unsigned int first, unsigned int cut, unsigned int nbits) in bitmap_cut()
296 const unsigned long *mask, unsigned int nbits) in __bitmap_replace()
505 unsigned long *bitmap, int nbits) in bitmap_set_region()
798 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) in bitmap_pos_to_ord()
824 unsigned int bitmap_ord_to_pos(const unsigned long *buf, unsigned int ord, unsigned int nbits) in bitmap_ord_to_pos()
870 unsigned int nbits) in bitmap_remap()
1072 unsigned int sz, unsigned int nbits) in bitmap_fold()
1234 void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits) in bitmap_copy_le()
[all …]
Dtest_bitmap.c74 unsigned int nbits) in __check_eq_bitmap()
88 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl()
277 unsigned int nbits = 64; in test_replace() local
307 const int nbits; member
472 unsigned int nbits, next_bit; in test_bitmap_arr32() local
500 unsigned int start, nbits; in test_mem_optimisations() local
569 unsigned int nbits; member
/kernel/linux/linux-6.6/tools/lib/
Dfind_bit.c103 unsigned long _find_next_bit(const unsigned long *addr, unsigned long nbits, unsigned long start) in _find_next_bit()
111 unsigned long nbits, unsigned long start) in _find_next_and_bit()
118 unsigned long _find_next_zero_bit(const unsigned long *addr, unsigned long nbits, in _find_next_zero_bit()
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/
Dfind.c34 unsigned long _find_next_bit(const unsigned long *addr, unsigned long nbits, unsigned long start) in _find_next_bit()
39 unsigned long _find_next_zero_bit(const unsigned long *addr, unsigned long nbits, in _find_next_zero_bit()
/kernel/linux/linux-6.6/fs/ntfs3/
Dbitfunc.c33 bool are_bits_clear(const void *lmap, size_t bit, size_t nbits) in are_bits_clear()
81 bool are_bits_set(const void *lmap, size_t bit, size_t nbits) in are_bits_set()
/kernel/linux/linux-5.10/lib/mpi/
Dmpicoder.c40 unsigned nbits, nlimbs; in mpi_read_raw_data() local
85 unsigned int nbits, nbytes; in mpi_read_from_buffer() local
121 unsigned int nbits, nbytes, nlimbs; in mpi_fromstr() local
440 unsigned int nbits, nlimbs; in mpi_read_raw_from_sgl() local
558 unsigned int nbits = mpi_get_nbits(a); in mpi_print() local
/kernel/linux/linux-6.6/lib/crypto/mpi/
Dmpicoder.c40 unsigned nbits, nlimbs; in mpi_read_raw_data() local
85 unsigned int nbits, nbytes; in mpi_read_from_buffer() local
121 unsigned int nbits, nbytes, nlimbs; in mpi_fromstr() local
440 unsigned int nbits, nlimbs; in mpi_read_raw_from_sgl() local
558 unsigned int nbits = mpi_get_nbits(a); in mpi_print() local
/kernel/linux/linux-6.6/fs/omfs/
Dbitmap.c13 int nbits = sb->s_blocksize * 8; in omfs_count_free() local
26 static int count_run(unsigned long **addr, int nbits, in count_run()
49 int nbits, int bit, int count, int set) in set_run()
/kernel/linux/linux-5.10/fs/omfs/
Dbitmap.c13 int nbits = sb->s_blocksize * 8; in omfs_count_free() local
26 static int count_run(unsigned long **addr, int nbits, in count_run()
49 int nbits, int bit, int count, int set) in set_run()
/kernel/linux/linux-5.10/drivers/regulator/
Dtps6586x-regulator.c109 #define TPS6586X_REGULATOR(_id, _ops, _pin_name, vdata, vreg, shift, nbits, \ argument
133 uv_step, vreg, shift, nbits, ereg0, \ argument
157 #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
165 shift, nbits, ereg0, ebit0, ereg1, ebit1) \ argument
172 #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
180 nbits, ereg0, ebit0, ereg1, ebit1, goreg, gobit) \ argument
Dda903x-regulator.c309 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
329 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
351 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
354 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
357 #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
361 #define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
365 #define DA9035_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
/kernel/linux/linux-6.6/drivers/regulator/
Dtps6586x-regulator.c109 #define TPS6586X_REGULATOR(_id, _ops, _pin_name, vdata, vreg, shift, nbits, \ argument
133 uv_step, vreg, shift, nbits, ereg0, \ argument
157 #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
165 shift, nbits, ereg0, ebit0, ereg1, ebit1) \ argument
172 #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits, \ argument
180 nbits, ereg0, ebit0, ereg1, ebit1, goreg, gobit) \ argument
Dda903x-regulator.c309 #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
329 #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
351 #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
354 #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit) \ argument
357 #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
361 #define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
365 #define DA9035_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \ argument
/kernel/linux/linux-6.6/fs/btrfs/
Dmisc.h146 unsigned long nbits) in bitmap_test_range_all_set()
156 unsigned long nbits) in bitmap_test_range_all_zero()

1234567