Home
last modified time | relevance | path

Searched refs:start_bit (Results 1 – 25 of 30) sorted by relevance

12

/Linux-v5.10/fs/xfs/libxfs/
Dxfs_bit.c37 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 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument
[all …]
Dxfs_bit.h70 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);
/Linux-v5.10/fs/ntfs/
Dbitmap.h18 extern int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit,
34 const s64 start_bit, const s64 count, const u8 value) in ntfs_bitmap_set_bits_in_run() argument
36 return __ntfs_bitmap_set_bits_in_run(vi, start_bit, count, value, in ntfs_bitmap_set_bits_in_run()
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()
68 static inline int ntfs_bitmap_clear_run(struct inode *vi, const s64 start_bit, in ntfs_bitmap_clear_run() argument
71 return ntfs_bitmap_set_bits_in_run(vi, start_bit, count, 0); in ntfs_bitmap_clear_run()
Dbitmap.c33 int __ntfs_bitmap_set_bits_in_run(struct inode *vi, const s64 start_bit, in __ntfs_bitmap_set_bits_in_run() argument
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()
56 index = start_bit >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
57 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
71 pos = (start_bit >> 3) & ~PAGE_MASK; in __ntfs_bitmap_set_bits_in_run()
74 bit = start_bit & 7; in __ntfs_bitmap_set_bits_in_run()
160 pos = __ntfs_bitmap_set_bits_in_run(vi, start_bit, count - cnt, in __ntfs_bitmap_set_bits_in_run()
/Linux-v5.10/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/
Dvmem.c50 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 = (elem_bits * index) % uedge_bits; in hive_sim_wide_unpack() local
[all …]
/Linux-v5.10/lib/
Dgenalloc.c281 int nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo_owner() local
299 start_bit = 0; in gen_pool_alloc_algo_owner()
302 start_bit = algo(chunk->bits, end_bit, start_bit, in gen_pool_alloc_algo_owner()
304 if (start_bit >= end_bit) in gen_pool_alloc_algo_owner()
306 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo_owner()
308 remain = bitmap_clear_ll(chunk->bits, start_bit, in gen_pool_alloc_algo_owner()
314 addr = chunk->start_addr + ((unsigned long)start_bit << order); in gen_pool_alloc_algo_owner()
490 int start_bit, nbits, remain; in gen_pool_free_owner() local
504 start_bit = (addr - chunk->start_addr) >> order; in gen_pool_free_owner()
505 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); in gen_pool_free_owner()
[all …]
/Linux-v5.10/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum2_kvdl.c59 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()
/Linux-v5.10/drivers/usb/mtu3/
Dmtu3_core.c27 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()
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, bits); in ep_fifo_free()
67 __func__, mep->fifo_seg_size, mep->fifo_size, start_bit); in ep_fifo_free()
/Linux-v5.10/drivers/i2c/busses/
Di2c-riic.c117 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()
Di2c-pnx.c80 start_bit = 1 << 8, enumerator
184 (slave_addr << 1) | start_bit | alg_data->mif.mode); in i2c_pnx_start()
187 iowrite32((slave_addr << 1) | start_bit | alg_data->mif.mode, in i2c_pnx_start()
/Linux-v5.10/Documentation/devicetree/bindings/c6x/
Ddscr.txt68 start_id num_ids reg enable disable start_bit nbits
76 start_bit is the bit number of the first bit in the range
85 start_id num_ids reg enable disable start_bit nbits
93 start_bit is the bit number of the first bit in the range
/Linux-v5.10/drivers/iio/adc/
Dmcp320x.c102 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()
/Linux-v5.10/fs/btrfs/
Dfree-space-tree.c337 unsigned long nrbits, start_bit, end_bit; in convert_free_space_to_extents() local
420 start_bit = find_next_bit_le(bitmap, nrbits, 0); in convert_free_space_to_extents()
422 while (start_bit < nrbits) { in convert_free_space_to_extents()
423 end_bit = find_next_zero_bit_le(bitmap, nrbits, start_bit); in convert_free_space_to_extents()
424 ASSERT(start_bit < end_bit); in convert_free_space_to_extents()
426 key.objectid = start + start_bit * block_group->fs_info->sectorsize; in convert_free_space_to_extents()
428 key.offset = (end_bit - start_bit) * block_group->fs_info->sectorsize; in convert_free_space_to_extents()
437 start_bit = find_next_bit_le(bitmap, nrbits, end_bit); in convert_free_space_to_extents()
/Linux-v5.10/drivers/input/mouse/
Dalps.c369 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 + x_high.num_bits - 1)) / in alps_process_bitmap()
450 (priv->y_max * (2 * y_high.start_bit + y_high.num_bits - 1)) / in alps_process_bitmap()
455 (priv->x_max * (2 * x_low.start_bit + x_low.num_bits - 1)) / in alps_process_bitmap()
[all …]
Dalps.h211 int start_bit; member
/Linux-v5.10/fs/ocfs2/
Docfs2_trace.h838 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 = start_bit;
873 __entry->start_bit, __entry->count)
Dsuballoc.h124 unsigned int start_bit,
Dsuballoc.c2451 unsigned int start_bit, in _ocfs2_free_suballoc_bits() argument
2470 BUG_ON((count + start_bit) > ocfs2_bits_per_group(cl)); in _ocfs2_free_suballoc_bits()
2475 start_bit, count); in _ocfs2_free_suballoc_bits()
2485 BUG_ON((count + start_bit) > le16_to_cpu(group->bg_bits)); in _ocfs2_free_suballoc_bits()
2489 start_bit, count, undo_fn); in _ocfs2_free_suballoc_bits()
2500 start_bit, count); in _ocfs2_free_suballoc_bits()
2518 unsigned int start_bit, in ocfs2_free_suballoc_bits() argument
2523 start_bit, bg_blkno, count, NULL); in ocfs2_free_suballoc_bits()
/Linux-v5.10/drivers/net/ethernet/ti/
Dcpsw_ale.c60 u8 start_bit; member
165 .start_bit = start, \
172 .start_bit = start, \
236 return cpsw_ale_get_field(ale_entry, entry_fld->start_bit, bits); in cpsw_ale_entry_get_fld()
261 cpsw_ale_set_field(ale_entry, entry_fld->start_bit, bits, value); in cpsw_ale_entry_set_fld()
/Linux-v5.10/fs/ext4/
Dialloc.c55 void ext4_mark_bitmap_end(int start_bit, int end_bit, char *bitmap) in ext4_mark_bitmap_end() argument
59 if (start_bit >= end_bit) in ext4_mark_bitmap_end()
62 ext4_debug("mark end bits +%d through +%d used\n", start_bit, end_bit); in ext4_mark_bitmap_end()
63 for (i = start_bit; i < ((start_bit + 7) & ~7UL); i++) in ext4_mark_bitmap_end()
/Linux-v5.10/drivers/net/ethernet/microchip/
Dlan743x_main.h752 #define DMAC_CHANNEL_STATE_SET(start_bit, stop_bit) \ argument
753 (((start_bit) ? 2 : 0) | ((stop_bit) ? 1 : 0))
/Linux-v5.10/arch/x86/kvm/svm/
Dnested.c790 u8 start_bit; in nested_svm_intercept_ioio() local
800 start_bit = port % 8; in nested_svm_intercept_ioio()
801 iopm_len = (start_bit + size > 8) ? 2 : 1; in nested_svm_intercept_ioio()
802 mask = (0xf >> (4 - size)) << start_bit; in nested_svm_intercept_ioio()
/Linux-v5.10/drivers/video/fbdev/via/
Dhw.h345 u8 start_bit; member
/Linux-v5.10/drivers/gpu/drm/rockchip/
Dcdn-dp-reg.c199 u8 start_bit, u8 bits_no, u32 val) in cdn_dp_reg_write_bit() argument
205 field[2] = start_bit; in cdn_dp_reg_write_bit()
/Linux-v5.10/drivers/mmc/host/
Dmtk-sd.c1839 static int get_delay_len(u32 delay, u32 start_bit) in get_delay_len() argument
1843 for (i = 0; i < (PAD_DELAY_MAX - start_bit); i++) { in get_delay_len()
1844 if (test_delay_bit(delay, start_bit + i) == 0) in get_delay_len()
1847 return PAD_DELAY_MAX - start_bit; in get_delay_len()

12