Home
last modified time | relevance | path

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

1234

/linux-6.12.1/include/linux/
Dbitmap.h227 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1))) argument
229 #define bitmap_size(nbits) (ALIGN(nbits, BITS_PER_LONG) / BITS_PER_BYTE) argument
231 static __always_inline void bitmap_zero(unsigned long *dst, unsigned int nbits) in bitmap_zero()
241 static __always_inline void bitmap_fill(unsigned long *dst, unsigned int nbits) in bitmap_fill()
252 void bitmap_copy(unsigned long *dst, const unsigned long *src, unsigned int nbits) in bitmap_copy()
266 void bitmap_copy_clear_tail(unsigned long *dst, const unsigned long *src, unsigned int nbits) in bitmap_copy_clear_tail()
299 #define bitmap_from_arr32(bitmap, buf, nbits) \ argument
302 #define bitmap_to_arr32(buf, bitmap, nbits) \ argument
315 #define bitmap_from_arr64(bitmap, buf, nbits) \ argument
317 #define bitmap_to_arr64(buf, bitmap, nbits) \ argument
[all …]
Dnodemask.h141 static __always_inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits) in __nodes_setall()
147 static __always_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 …]
/linux-6.12.1/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 …]
/linux-6.12.1/lib/
Dbitmap.c93 unsigned shift, unsigned nbits) in __bitmap_shift_right()
138 unsigned int shift, unsigned int nbits) in __bitmap_shift_left()
200 unsigned int first, unsigned int cut, unsigned int nbits) in bitmap_cut()
285 const unsigned long *mask, unsigned int nbits) in __bitmap_replace()
457 static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits) in bitmap_pos_to_ord()
499 unsigned int nbits) in bitmap_remap()
704 unsigned int sz, unsigned int nbits) in bitmap_fold()
717 unsigned long *bitmap_alloc(unsigned int nbits, gfp_t flags) in bitmap_alloc()
724 unsigned long *bitmap_zalloc(unsigned int nbits, gfp_t flags) in bitmap_zalloc()
730 unsigned long *bitmap_alloc_node(unsigned int nbits, gfp_t flags, int node) in bitmap_alloc_node()
[all …]
Dtest_bitmap.c77 unsigned int nbits) in __check_eq_bitmap()
91 const unsigned long *bitmap, unsigned int nbits) in __check_eq_pbl()
360 unsigned int nbits = 64; in test_replace() local
401 unsigned int nbits = 64; in test_bitmap_sg() local
431 const int nbits; member
675 unsigned int nbits, next_bit; in test_bitmap_arr32() local
703 unsigned int nbits, next_bit; in test_bitmap_arr64() local
739 unsigned int start, nbits; in test_mem_optimisations() local
1041 unsigned int nbits; member
1097 unsigned long nbits; member
[all …]
Dfind_bit.c143 unsigned long _find_next_bit(const unsigned long *addr, unsigned long nbits, unsigned long start) in _find_next_bit()
181 unsigned long nbits, unsigned long start) in _find_next_and_bit()
190 unsigned long nbits, unsigned long start) in _find_next_andnot_bit()
199 unsigned long nbits, unsigned long start) in _find_next_or_bit()
207 unsigned long _find_next_zero_bit(const unsigned long *addr, unsigned long nbits, in _find_next_zero_bit()
/linux-6.12.1/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 …]
/linux-6.12.1/drivers/android/
Ddbitmap.h27 unsigned int nbits; member
69 dbitmap_replace(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_replace()
78 dbitmap_shrink(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_shrink()
103 dbitmap_grow(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_grow()
/linux-6.12.1/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()
/linux-6.12.1/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()
/linux-6.12.1/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()
/linux-6.12.1/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
/linux-6.12.1/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()
/linux-6.12.1/lib/crypto/mpi/
Dmpicoder.c39 unsigned nbits, nlimbs; in mpi_read_raw_data() local
84 unsigned int nbits, nbytes; in mpi_read_from_buffer() local
333 unsigned int nbits, nlimbs; in mpi_read_raw_from_sgl() local
/linux-6.12.1/fs/xfs/
Dxfs_buf_item.c65 int nbits) in xfs_buf_item_straddle()
96 int nbits; in xfs_buf_item_size_segment() local
261 uint nbits) in xfs_buf_item_copy_iovec()
282 uint nbits; in xfs_buf_item_format_segment() local
/linux-6.12.1/fs/btrfs/
Dmisc.h148 unsigned long nbits) in bitmap_test_range_all_set()
158 unsigned long nbits) in bitmap_test_range_all_zero()
Dsubpage.c229 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_start_reader() local
251 const int nbits = len >> fs_info->sectorsize_bits; in btrfs_subpage_end_reader() local
303 const int nbits = (len >> fs_info->sectorsize_bits); in btrfs_subpage_start_writer() local
323 const int nbits = (len >> fs_info->sectorsize_bits); in btrfs_subpage_end_and_test_writer() local
752 unsigned int nbits; in btrfs_folio_assert_not_dirty() local
785 unsigned int nbits; in btrfs_folio_set_writer_lock() local
/linux-6.12.1/drivers/net/wireless/broadcom/brcm80211/include/
Dbrcmu_utils.h44 #define NBITVAL(nbits) (1 << (nbits)) argument
45 #define MAXBITVAL(nbits) ((1 << (nbits)) - 1) argument
46 #define NBITMASK(nbits) MAXBITVAL(nbits) argument
/linux-6.12.1/include/asm-generic/
Dbitsperlong.h35 #define small_const_nbits(nbits) \ argument
/linux-6.12.1/tools/include/asm-generic/
Dbitsperlong.h21 #define small_const_nbits(nbits) \ argument
/linux-6.12.1/tools/perf/tests/
Dbitmap.c11 static unsigned long *get_bitmap(const char *str, int nbits) in get_bitmap()
Dmem2node.c24 static unsigned long *get_bitmap(const char *str, int nbits) in get_bitmap()
/linux-6.12.1/arch/sparc/include/asm/
Dadi_64.h16 __u64 nbits; member
/linux-6.12.1/include/crypto/
Decc_curve.h38 u32 nbits; member

1234