/kernel/linux/linux-5.10/fs/xfs/libxfs/ |
H A D | xfs_bit.c | 34 * start_bit. Size is the size of the bitmap in words. 37 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument 39 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_contig_bits() 45 ASSERT(start_bit < size); in xfs_contig_bits() 46 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits() 47 start_bit &= (NBWORD - 1); in xfs_contig_bits() 48 if (start_bit) { in xfs_contig_bits() 51 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits() 63 return result - start_bit; in xfs_contig_bits() 65 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 76 xfs_next_bit(uint *map, uint size, uint start_bit) xfs_next_bit() argument [all...] |
H A D | xfs_bit.h | 69 /* Count continuous one bits in map starting with start_bit */ 70 extern int xfs_contig_bits(uint *map, uint size, uint start_bit); 73 extern int xfs_next_bit(uint *map, uint size, uint start_bit);
|
/kernel/linux/linux-6.6/fs/xfs/libxfs/ |
H A D | xfs_bit.c | 34 * start_bit. Size is the size of the bitmap in words. 37 xfs_contig_bits(uint *map, uint size, uint start_bit) in xfs_contig_bits() argument 39 uint * p = ((unsigned int *) map) + (start_bit >> BIT_TO_WORD_SHIFT); in xfs_contig_bits() 45 ASSERT(start_bit < size); in xfs_contig_bits() 46 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits() 47 start_bit &= (NBWORD - 1); in xfs_contig_bits() 48 if (start_bit) { in xfs_contig_bits() 51 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits() 63 return result - start_bit; in xfs_contig_bits() 65 return result + ffz(tmp) - start_bit; in xfs_contig_bits() 76 xfs_next_bit(uint *map, uint size, uint start_bit) xfs_next_bit() argument [all...] |
H A D | xfs_bit.h | 69 /* Count continuous one bits in map starting with start_bit */ 70 extern int xfs_contig_bits(uint *map, uint size, uint start_bit); 73 extern int xfs_next_bit(uint *map, uint size, uint start_bit);
|
/kernel/linux/linux-5.10/fs/ntfs/ |
H A D | bitmap.h | 18 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, 24 * @start_bit: first bit to set 28 * Set @count bits starting at bit @start_bit in the bitmap described by the 34 const s64 start_bit, const s64 count, const u8 value) in ntfs_bitmap_set_bits_in_run() 36 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run() 43 * @start_bit: first bit to set 46 * Set @count bits starting at bit @start_bit in the bitmap described by the 51 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_set_run() argument 54 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); in ntfs_bitmap_set_run() 60 * @start_bit 33 ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, const s64 count, const u8 value) ntfs_bitmap_set_bits_in_run() argument 68 ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, const s64 count) ntfs_bitmap_clear_run() argument [all...] |
H A D | bitmap.c | 20 * @start_bit: first bit to set 25 * Set @count bits starting at bit @start_bit in the bitmap described by the 33 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument 45 ntfs_debug("Entering for i_ino 0x%lx, start_bit 0x%llx, count 0x%llx, " in __ntfs_bitmap_set_bits_in_run() 46 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run() 49 BUG_ON(start_bit < 0); in __ntfs_bitmap_set_bits_in_run() 54 * bits, i.e. @start_bit and @start_bit + @cnt - 1, respectively. in __ntfs_bitmap_set_bits_in_run() 56 index = start_bit >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run() 57 end_index = (start_bit in __ntfs_bitmap_set_bits_in_run() [all...] |
/kernel/linux/linux-6.6/fs/ntfs/ |
H A D | bitmap.h | 18 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, 24 * @start_bit: first bit to set 28 * Set @count bits starting at bit @start_bit in the bitmap described by the 34 const s64 start_bit, const s64 count, const u8 value) in ntfs_bitmap_set_bits_in_run() 36 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run() 43 * @start_bit: first bit to set 46 * Set @count bits starting at bit @start_bit in the bitmap described by the 51 static inline int ntfs_bitmap_set_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_set_run() argument 54 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 1); in ntfs_bitmap_set_run() 60 * @start_bit 33 ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, const s64 count, const u8 value) ntfs_bitmap_set_bits_in_run() argument 68 ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, const s64 count) ntfs_bitmap_clear_run() argument [all...] |
H A D | bitmap.c | 20 * @start_bit: first bit to set 25 * Set @count bits starting at bit @start_bit in the bitmap described by the 33 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument 45 ntfs_debug("Entering for i_ino 0x%lx, start_bit 0x%llx, count 0x%llx, " in __ntfs_bitmap_set_bits_in_run() 46 "value %u.%s", vi->i_ino, (unsigned long long)start_bit, in __ntfs_bitmap_set_bits_in_run() 49 BUG_ON(start_bit < 0); in __ntfs_bitmap_set_bits_in_run() 54 * bits, i.e. @start_bit and @start_bit + @cnt - 1, respectively. in __ntfs_bitmap_set_bits_in_run() 56 index = start_bit >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run() 57 end_index = (start_bit in __ntfs_bitmap_set_bits_in_run() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | vmem.c | 50 unsigned int start_bit = target_bit % uedge_bits; in move_subword() local 55 if (subword_width + start_bit > uedge_bits) { /* overlap */ in move_subword() 57 hive_uedge old_val0 = INV_SUBWORD(target[start_elem], start_bit, uedge_bits); in move_subword() 59 target[start_elem] = old_val0 | (src_subword << start_bit); in move_subword() 61 subword_width + start_bit - uedge_bits); in move_subword() 62 target[start_elem + 1] = old_val1 | (src_subword >> (uedge_bits - start_bit)); in move_subword() 64 hive_uedge old_val = INV_SUBWORD(target[start_elem], start_bit, in move_subword() 65 start_bit + subword_width); in move_subword() 67 target[start_elem] = old_val | (src_subword << start_bit); in move_subword() 80 unsigned int start_bit in hive_sim_wide_unpack() local 120 unsigned int start_bit = elem_bits * index; hive_sim_wide_pack() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
H A D | vmem.c | 58 unsigned int start_bit = target_bit % uedge_bits; in move_subword() local 63 if (subword_width + start_bit > uedge_bits) { /* overlap */ in move_subword() 65 hive_uedge old_val0 = inv_subword(target[start_elem], start_bit, uedge_bits); in move_subword() 67 target[start_elem] = old_val0 | (src_subword << start_bit); in move_subword() 69 subword_width + start_bit - uedge_bits); in move_subword() 70 target[start_elem + 1] = old_val1 | (src_subword >> (uedge_bits - start_bit)); in move_subword() 72 hive_uedge old_val = inv_subword(target[start_elem], start_bit, in move_subword() 73 start_bit + subword_width); in move_subword() 75 target[start_elem] = old_val | (src_subword << start_bit); in move_subword() 88 unsigned int start_bit in hive_sim_wide_unpack() local 128 unsigned int start_bit = elem_bits * index; hive_sim_wide_pack() local [all...] |
/kernel/linux/linux-5.10/lib/ |
H A D | genalloc.c | 282 unsigned long nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo_owner() local 300 start_bit = 0; in gen_pool_alloc_algo_owner() 303 start_bit = algo(chunk->bits, end_bit, start_bit, in gen_pool_alloc_algo_owner() 305 if (start_bit >= end_bit) in gen_pool_alloc_algo_owner() 307 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo_owner() 309 remain = bitmap_clear_ll(chunk->bits, start_bit, in gen_pool_alloc_algo_owner() 315 addr = chunk->start_addr + ((unsigned long)start_bit << order); in gen_pool_alloc_algo_owner() 491 unsigned long start_bit, nbits, remain; in gen_pool_free_owner() local 505 start_bit in gen_pool_free_owner() 697 unsigned long start_bit; gen_pool_fixed_alloc() local 752 unsigned long start_bit = size; gen_pool_best_fit() local [all...] |
/kernel/linux/linux-6.6/lib/ |
H A D | genalloc.c | 283 unsigned long nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo_owner() local 301 start_bit = 0; in gen_pool_alloc_algo_owner() 304 start_bit = algo(chunk->bits, end_bit, start_bit, in gen_pool_alloc_algo_owner() 306 if (start_bit >= end_bit) in gen_pool_alloc_algo_owner() 308 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo_owner() 310 remain = bitmap_clear_ll(chunk->bits, start_bit, in gen_pool_alloc_algo_owner() 316 addr = chunk->start_addr + ((unsigned long)start_bit << order); in gen_pool_alloc_algo_owner() 492 unsigned long start_bit, nbits, remain; in gen_pool_free_owner() local 506 start_bit in gen_pool_free_owner() 701 unsigned long start_bit; gen_pool_fixed_alloc() local 758 unsigned long start_bit = size; gen_pool_best_fit() local [all...] |
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | subpage.c | 369 unsigned int start_bit; \ 372 start_bit = offset_in_page(start) >> fs_info->sectorsize_bits; \ 373 start_bit += fs_info->subpage_info->name##_offset; \ 374 start_bit; \ 391 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, in btrfs_subpage_set_uptodate() local 396 bitmap_set(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_set_uptodate() 406 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, in btrfs_subpage_clear_uptodate() local 411 bitmap_clear(subpage->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_clear_uptodate() 420 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, in btrfs_subpage_set_dirty() local 425 bitmap_set(subpage->bitmaps, start_bit, le in btrfs_subpage_set_dirty() 444 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, btrfs_subpage_clear_and_test_dirty() local 471 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, btrfs_subpage_set_writeback() local 485 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, btrfs_subpage_clear_writeback() local 502 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, btrfs_subpage_set_ordered() local 516 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, btrfs_subpage_clear_ordered() local 531 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, btrfs_subpage_set_checked() local 546 unsigned int start_bit = subpage_calc_start_bit(fs_info, page, btrfs_subpage_clear_checked() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_kvdl.c | 59 unsigned int start_bit; in mlxsw_sp2_kvdl_part_find_zero_bits() local 64 start_bit = part->last_allocated_bit + 1; in mlxsw_sp2_kvdl_part_find_zero_bits() 65 if (start_bit == part->usage_bit_count) in mlxsw_sp2_kvdl_part_find_zero_bits() 66 start_bit = 0; in mlxsw_sp2_kvdl_part_find_zero_bits() 67 bit = start_bit; in mlxsw_sp2_kvdl_part_find_zero_bits() 75 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum2_kvdl.c | 60 unsigned int start_bit; in mlxsw_sp2_kvdl_part_find_zero_bits() local 65 start_bit = part->last_allocated_bit + 1; in mlxsw_sp2_kvdl_part_find_zero_bits() 66 if (start_bit == part->usage_bit_count) in mlxsw_sp2_kvdl_part_find_zero_bits() 67 start_bit = 0; in mlxsw_sp2_kvdl_part_find_zero_bits() 68 bit = start_bit; in mlxsw_sp2_kvdl_part_find_zero_bits() 76 if (wrap && bit + bit_count >= start_bit) in mlxsw_sp2_kvdl_part_find_zero_bits()
|
/kernel/linux/linux-5.10/drivers/usb/mtu3/ |
H A D | mtu3_core.c | 27 u32 start_bit; in ep_fifo_alloc() local 36 start_bit = bitmap_find_next_zero_area(fifo->bitmap, in ep_fifo_alloc() 38 if (start_bit >= fifo->limit) in ep_fifo_alloc() 41 bitmap_set(fifo->bitmap, start_bit, num_bits); in ep_fifo_alloc() 43 mep->fifo_addr = fifo->base + MTU3_EP_FIFO_UNIT * start_bit; in ep_fifo_alloc() 45 dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n", in ep_fifo_alloc() 46 __func__, mep->fifo_seg_size, mep->fifo_size, start_bit); in ep_fifo_alloc() 56 u32 start_bit; in ep_fifo_free() local 61 start_bit = (addr - fifo->base) / MTU3_EP_FIFO_UNIT; in ep_fifo_free() 62 bitmap_clear(fifo->bitmap, start_bit, bit in ep_fifo_free() [all...] |
/kernel/linux/linux-6.6/drivers/usb/mtu3/ |
H A D | mtu3_core.c | 27 u32 start_bit; in ep_fifo_alloc() local 36 start_bit = bitmap_find_next_zero_area(fifo->bitmap, in ep_fifo_alloc() 38 if (start_bit >= fifo->limit) in ep_fifo_alloc() 41 bitmap_set(fifo->bitmap, start_bit, num_bits); in ep_fifo_alloc() 43 mep->fifo_addr = fifo->base + MTU3_EP_FIFO_UNIT * start_bit; in ep_fifo_alloc() 45 dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n", in ep_fifo_alloc() 46 __func__, mep->fifo_seg_size, mep->fifo_size, start_bit); in ep_fifo_alloc() 56 u32 start_bit; in ep_fifo_free() local 61 start_bit = (addr - fifo->base) / MTU3_EP_FIFO_UNIT; in ep_fifo_free() 62 bitmap_clear(fifo->bitmap, start_bit, bit in ep_fifo_free() [all...] |
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-riic.c | 117 u8 start_bit; in riic_xfer() local 131 for (i = 0, start_bit = ICCR2_ST; i < num; i++) { in riic_xfer() 139 writeb(start_bit, riic->base + RIIC_ICCR2); in riic_xfer() 148 start_bit = ICCR2_RS; in riic_xfer()
|
/kernel/linux/linux-6.6/drivers/i2c/busses/ |
H A D | i2c-riic.c | 118 u8 start_bit; in riic_xfer() local 132 for (i = 0, start_bit = ICCR2_ST; i < num; i++) { in riic_xfer() 140 writeb(start_bit, riic->base + RIIC_ICCR2); in riic_xfer() 149 start_bit = ICCR2_RS; in riic_xfer()
|
/kernel/linux/linux-6.6/scripts/gdb/linux/ |
H A D | pgtable.py | 47 def start_bit(level): function 61 entry_offset = ((translating_va >> start_bit(level)) & 511) * 8
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
H A D | mcp320x.c | 102 int start_bit = 1; in mcp320x_channel_to_tx_data() local 107 return ((start_bit << 4) | (!differential << 3) | in mcp320x_channel_to_tx_data() 113 return ((start_bit << 6) | (!differential << 5) | in mcp320x_channel_to_tx_data()
|
/kernel/linux/linux-6.6/drivers/iio/adc/ |
H A D | mcp320x.c | 102 int start_bit = 1; in mcp320x_channel_to_tx_data() local 107 return ((start_bit << 4) | (!differential << 3) | in mcp320x_channel_to_tx_data() 113 return ((start_bit << 6) | (!differential << 5) | in mcp320x_channel_to_tx_data()
|
/kernel/linux/linux-5.10/drivers/input/mouse/ |
H A D | alps.c | 369 point->start_bit = i; in alps_get_bitmap_points() 419 x_high.start_bit = x_low.start_bit + i; in alps_process_bitmap() 425 y_high.start_bit = y_low.start_bit + i; in alps_process_bitmap() 431 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / in alps_process_bitmap() 434 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / in alps_process_bitmap() 439 (priv->x_max * (2 * x_high.start_bit + x_high.num_bits - 1)) / in alps_process_bitmap() 442 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / in alps_process_bitmap() 447 (priv->x_max * (2 * x_high.start_bit in alps_process_bitmap() [all...] |
/kernel/linux/linux-6.6/drivers/input/mouse/ |
H A D | alps.c | 369 point->start_bit = i; in alps_get_bitmap_points() 419 x_high.start_bit = x_low.start_bit + i; in alps_process_bitmap() 425 y_high.start_bit = y_low.start_bit + i; in alps_process_bitmap() 431 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / in alps_process_bitmap() 434 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / in alps_process_bitmap() 439 (priv->x_max * (2 * x_high.start_bit + x_high.num_bits - 1)) / in alps_process_bitmap() 442 (priv->y_max * (2 * y_low.start_bit + y_low.num_bits - 1)) / in alps_process_bitmap() 447 (priv->x_max * (2 * x_high.start_bit in alps_process_bitmap() [all...] |
/kernel/linux/linux-5.10/fs/ocfs2/ |
H A D | ocfs2_trace.h | 838 unsigned int start_bit, unsigned int count), 839 TP_ARGS(inode, group, start_bit, count), 843 __field(unsigned int, start_bit) 849 __entry->start_bit = start_bit; 853 __entry->start_bit, __entry->count) 858 unsigned int start_bit, unsigned int count), 859 TP_ARGS(bg_blkno, start_blk, start_bit, count), 863 __field(unsigned int, start_bit) 869 __entry->start_bit [all...] |