Home
last modified time | relevance | path

Searched refs:nrbits (Results 1 – 4 of 4) sorted by relevance

/linux/fs/ubifs/
H A Dlpt.c222 …atic void pack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, uint32_t val, int nrbits) in pack_bits() argument
227 ubifs_assert(c, nrbits > 0); in pack_bits()
228 ubifs_assert(c, nrbits <= 32); in pack_bits()
231 ubifs_assert(c, (val >> nrbits) == 0 || nrbits == 32); in pack_bits()
234 nrbits += b; in pack_bits()
235 if (nrbits > 8) { in pack_bits()
237 if (nrbits > 16) { in pack_bits()
239 if (nrbits > 24) { in pack_bits()
241 if (nrbits > 32) in pack_bits()
248 if (nrbits > 8) { in pack_bits()
[all …]
H A Dubifs.h1984 uint32_t ubifs_unpack_bits(const struct ubifs_info *c, uint8_t **addr, int *pos, int nrbits);
/linux/drivers/mtd/
H A Dinftlcore.c447 static int nrbits(unsigned int val, int bitcount) in nrbits() function
583 parity = (nrbits(thisVUC, 16) & 0x1) ? 0x1 : 0; in INFTL_findwriteunit()
584 parity |= (nrbits(prev_block, 16) & 0x1) ? 0x2 : 0; in INFTL_findwriteunit()
585 parity |= (nrbits(anac, 8) & 0x1) ? 0x4 : 0; in INFTL_findwriteunit()
586 parity |= (nrbits(nacs, 8) & 0x1) ? 0x8 : 0; in INFTL_findwriteunit()
/linux/fs/btrfs/
H A Dfree-space-tree.c352 unsigned long nrbits, start_bit, end_bit; in convert_free_space_to_extents() local
432 nrbits = block_group->length >> block_group->fs_info->sectorsize_bits; in convert_free_space_to_extents()
433 start_bit = find_next_bit_le(bitmap, nrbits, 0); in convert_free_space_to_extents()
435 while (start_bit < nrbits) { in convert_free_space_to_extents()
436 end_bit = find_next_zero_bit_le(bitmap, nrbits, start_bit); in convert_free_space_to_extents()
450 start_bit = find_next_bit_le(bitmap, nrbits, end_bit); in convert_free_space_to_extents()