Home
last modified time | relevance | path

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

/linux/lib/
H A Dgenalloc.c283 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 = (addr - chunk->start_addr) >> order; in gen_pool_free_owner()
507 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); in gen_pool_free_owner()
[all …]
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dspectrum2_kvdl.c60 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()
/linux/fs/xfs/libxfs/
H A 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/drivers/usb/mtu3/
H A 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/drivers/iio/adc/
H A 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/scripts/gdb/linux/
H A Dpgtable.py45 def start_bit(level):
59 entry_offset = ((translating_va >> start_bit(level)) & 511) * 8
47 def start_bit(level): global() function
/linux/drivers/i2c/busses/
H A Di2c-riic.c174 u8 start_bit; in riic_xfer() local
188 for (i = 0, start_bit = ICCR2_ST; i < num; i++) { in riic_xfer()
196 riic_writeb(riic, start_bit, RIIC_ICCR2); in riic_xfer()
205 start_bit = ICCR2_RS; in riic_xfer()
H A Di2c-pnx.c78 start_bit = 1 << 8, enumerator
164 (slave_addr << 1) | start_bit | alg_data->mif.mode); in i2c_pnx_start()
167 iowrite32((slave_addr << 1) | start_bit | alg_data->mif.mode, in i2c_pnx_start()
/linux/drivers/input/mouse/
H A 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 …]
H A Dalps.h211 int start_bit; member
/linux/fs/btrfs/
H A Dextent_io.c1372 unsigned int start_bit; in set_delalloc_bitmap() local
1376 start_bit = (start - folio_start) >> fs_info->sectorsize_bits; in set_delalloc_bitmap()
1378 ASSERT(bitmap_test_range_all_zero(delalloc_bitmap, start_bit, nbits)); in set_delalloc_bitmap()
1379 bitmap_set(delalloc_bitmap, start_bit, nbits); in set_delalloc_bitmap()
1389 unsigned int start_bit; in find_next_delalloc_bitmap() local
1395 start_bit = (start - folio_start) >> fs_info->sectorsize_bits; in find_next_delalloc_bitmap()
1396 first_set = find_next_bit(delalloc_bitmap, bitmap_size, start_bit); in find_next_delalloc_bitmap()
1451 unsigned int start_bit; in writepage_delalloc() local
1463 for_each_set_bitrange(start_bit, end_bit, &bio_ctrl->submit_bitmap, in writepage_delalloc()
1465 u64 start = page_start + (start_bit << fs_info->sectorsize_bits); in writepage_delalloc()
[all …]
H A Dscrub.c245 const unsigned int start_bit = scrub_calc_start_bit(stripe, \
248 bitmap_set(stripe->bitmaps, start_bit, nr_blocks); \
254 const unsigned int start_bit = scrub_calc_start_bit(stripe, name, \
257 bitmap_clear(stripe->bitmaps, start_bit, nr_blocks); \
262 const unsigned int start_bit = scrub_calc_start_bit(stripe, name, \
265 return test_bit(start_bit, stripe->bitmaps); \
270 const unsigned int start_bit = scrub_calc_start_bit(stripe, name, \
273 set_bit(start_bit, stripe->bitmaps); \
278 const unsigned int start_bit = scrub_calc_start_bit(stripe, name, \
281 clear_bit(start_bit, stripe->bitmaps); \
/linux/fs/ocfs2/
H A Dsuballoc.c2657 u16 start_bit; in _ocfs2_reclaim_suballoc_to_main() local
2764 &start_bit); in _ocfs2_reclaim_suballoc_to_main()
2779 if ((count + start_bit) > le16_to_cpu(group->bg_bits)) { in _ocfs2_reclaim_suballoc_to_main()
2782 count + start_bit, le16_to_cpu(group->bg_bits)); in _ocfs2_reclaim_suballoc_to_main()
2789 start_bit, count, 0, in _ocfs2_reclaim_suballoc_to_main()
2801 start_bit, count, in _ocfs2_reclaim_suballoc_to_main()
2835 unsigned int start_bit, in _ocfs2_free_suballoc_bits() argument
2856 BUG_ON((count + start_bit) > ocfs2_bits_per_group(cl)); in _ocfs2_free_suballoc_bits()
2861 start_bit, count); in _ocfs2_free_suballoc_bits()
2871 BUG_ON((count + start_bit) > le16_to_cpu(group->bg_bits)); in _ocfs2_free_suballoc_bits()
[all …]
H A 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)
H A Dsuballoc.h127 unsigned int start_bit,
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Drvu_npc_hash.c23 static u64 rvu_npc_wide_extract(const u64 input[], size_t start_bit, in rvu_npc_wide_extract() argument
27 const size_t msb = start_bit + width_bits - 1; in rvu_npc_wide_extract()
28 const size_t lword = start_bit >> 6; in rvu_npc_wide_extract()
34 return (input[lword] >> (start_bit & 63)) & mask; in rvu_npc_wide_extract()
36 lbits = 64 - (start_bit & 63); in rvu_npc_wide_extract()
38 lo = (input[lword] >> (start_bit & 63)); in rvu_npc_wide_extract()
/linux/drivers/video/fbdev/via/
H A Dhw.h345 u8 start_bit; member
H A Dhw.c979 start_index = reg[i].start_bit; in viafb_load_reg()
/linux/arch/x86/kvm/svm/
H A Dnested.c1450 u8 start_bit; in nested_svm_intercept_ioio() local
1460 start_bit = port % 8; in nested_svm_intercept_ioio()
1461 iopm_len = (start_bit + size > 8) ? 2 : 1; in nested_svm_intercept_ioio()
1462 mask = (0xf >> (4 - size)) << start_bit; in nested_svm_intercept_ioio()
/linux/drivers/i3c/master/
H A Drenesas-i3c.c924 u8 start_bit = CNDCTL_STCND; in renesas_i3c_i2c_xfers() local
960 renesas_set_bit(i3c->regs, CNDCTL, start_bit); in renesas_i3c_i2c_xfers()
969 start_bit = CNDCTL_SRCND; in renesas_i3c_i2c_xfers()
/linux/drivers/net/ethernet/microchip/
H A Dlan743x_main.h1117 #define DMAC_CHANNEL_STATE_SET(start_bit, stop_bit) \ argument
1118 (((start_bit) ? 2 : 0) | ((stop_bit) ? 1 : 0))
/linux/drivers/mmc/host/
H A Drtsx_pci_sdmmc.c647 static int sd_get_phase_len(u32 phase_map, unsigned int start_bit) in sd_get_phase_len() argument
652 if (test_phase_bit(phase_map, start_bit + i) == 0) in sd_get_phase_len()
/linux/drivers/edac/
H A Damd64_edac.c1656 u8 start_bit = 1; in get_error_address() local
1667 start_bit = 3; in get_error_address()
1671 addr = m->addr & GENMASK_ULL(end_bit, start_bit); in get_error_address()
/linux/drivers/gpu/drm/bridge/cadence/
H A Dcdns-mhdp8546-core.c250 u8 start_bit, u8 bits_no, u32 val) in cdns_mhdp_reg_write_bit() argument
256 field[2] = start_bit; in cdns_mhdp_reg_write_bit()