| /linux/lib/ |
| H A D | packing_test.c | 13 size_t start_bit; member 42 .start_bit = 95, 51 .start_bit = 95, 60 .start_bit = 95, 69 .start_bit = 95, 78 .start_bit = 95, 87 .start_bit = 95, 96 .start_bit = 95, 105 .start_bit = 95, 119 .start_bit = 95, [all …]
|
| 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 = (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/fs/xfs/libxfs/ |
| H A D | xfs_bit.c | 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 int xfs_next_bit(uint *map, uint size, uint start_bit) in xfs_next_bit() argument [all …]
|
| H A D | xfs_bit.h | 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);
|
| /linux/fs/btrfs/ |
| H A D | subpage.c | 227 const int start_bit = subpage_calc_start_bit(fs_info, folio, locked, start, len); in btrfs_subpage_end_and_test_lock() local 231 int bit = start_bit; in btrfs_subpage_end_and_test_lock() 249 for_each_set_bit_from(bit, bfs->bitmaps, start_bit + nbits) { in btrfs_subpage_end_and_test_lock() 312 const int start_bit = blocks_per_folio * btrfs_bitmap_nr_locked; in btrfs_folio_end_lock_bitmap() local 331 if (test_and_clear_bit(bit + start_bit, bfs->bitmaps)) in btrfs_folio_end_lock_bitmap() 365 unsigned int start_bit = subpage_calc_start_bit(fs_info, folio, in btrfs_subpage_set_uptodate() local 370 bitmap_set(bfs->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_set_uptodate() 380 unsigned int start_bit = subpage_calc_start_bit(fs_info, folio, in btrfs_subpage_clear_uptodate() local 385 bitmap_clear(bfs->bitmaps, start_bit, len >> fs_info->sectorsize_bits); in btrfs_subpage_clear_uptodate() 394 unsigned int start_bit = subpage_calc_start_bit(fs_info, folio, in btrfs_subpage_set_dirty() local [all …]
|
| H A D | extent_io.c | 1372 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 D | free-space-tree.c | 350 unsigned long nrbits, start_bit, end_bit; in btrfs_convert_free_space_to_extents() local 436 start_bit = find_next_bit_le(bitmap, nrbits, 0); in btrfs_convert_free_space_to_extents() 438 while (start_bit < nrbits) { in btrfs_convert_free_space_to_extents() 439 end_bit = find_next_zero_bit_le(bitmap, nrbits, start_bit); in btrfs_convert_free_space_to_extents() 440 ASSERT(start_bit < end_bit); in btrfs_convert_free_space_to_extents() 442 key.objectid = start + start_bit * fs_info->sectorsize; in btrfs_convert_free_space_to_extents() 444 key.offset = (end_bit - start_bit) * fs_info->sectorsize; in btrfs_convert_free_space_to_extents() 455 start_bit = find_next_bit_le(bitmap, nrbits, end_bit); in btrfs_convert_free_space_to_extents()
|
| H A D | scrub.c | 245 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/drivers/staging/media/atomisp/pci/hive_isp_css_common/host/ |
| H A D | vmem.c | 49 unsigned int start_bit = target_bit % uedge_bits; in move_subword() local 54 if (subword_width + start_bit > uedge_bits) { /* overlap */ in move_subword() 56 hive_uedge old_val0 = inv_subword(target[start_elem], start_bit, uedge_bits); in move_subword() 58 target[start_elem] = old_val0 | (src_subword << start_bit); in move_subword() 60 subword_width + start_bit - uedge_bits); in move_subword() 61 target[start_elem + 1] = old_val1 | (src_subword >> (uedge_bits - start_bit)); in move_subword() 63 hive_uedge old_val = inv_subword(target[start_elem], start_bit, in move_subword() 64 start_bit + subword_width); in move_subword() 66 target[start_elem] = old_val | (src_subword << start_bit); in move_subword() 79 unsigned int start_bit = (elem_bits * index) % uedge_bits; in hive_sim_wide_unpack() local [all …]
|
| /linux/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()
|
| /linux/drivers/staging/sm750fb/ |
| H A D | sm750_accel.c | 319 u32 src_delta, u32 start_bit, u32 dest_base, u32 dest_pitch, in sm750_hw_imageblit() argument 330 start_bit &= 7; /* Just make sure the start bit is within legal range */ in sm750_hw_imageblit() 331 bytes_per_scan = (width + start_bit + 7) / 8; in sm750_hw_imageblit() 376 (start_bit << DE_SOURCE_X_K1_SHIFT) & in sm750_hw_imageblit()
|
| H A D | sm750.h | 76 u32 src_delta, u32 start_bit, u32 d_base, u32 d_pitch,
|
| /linux/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() 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 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()
|
| /linux/scripts/gdb/linux/ |
| H A D | pgtable.py | 45 def start_bit(level): function 59 entry_offset = ((translating_va >> start_bit(level)) & 511) * 8
|
| /linux/drivers/i2c/busses/ |
| H A D | i2c-riic.c | 174 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 D | i2c-pnx.c | 78 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 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 + 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 D | alps.h | 211 int start_bit; member
|
| /linux/fs/ocfs2/ |
| H A D | suballoc.c | 2657 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 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 = start_bit; 873 __entry->start_bit, __entry->count)
|
| /linux/fs/ext4/ |
| H A D | ialloc.c | 55 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/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rvu_npc_hash.c | 23 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/net/ethernet/ti/ |
| H A D | cpsw_ale.c | 76 u8 start_bit; member 209 .start_bit = start, \ 216 .start_bit = start, \ 280 return cpsw_ale_get_field(ale_entry, entry_fld->start_bit, bits); in cpsw_ale_entry_get_fld() 305 cpsw_ale_set_field(ale_entry, entry_fld->start_bit, bits, value); in cpsw_ale_entry_set_fld()
|
| /linux/drivers/media/platform/verisilicon/ |
| H A D | hantro_g2_vp9_dec.c | 780 u32 src_len, start_bit, src_buf_len; in config_source() local 793 start_bit = (tmp_addr & 0xf) * 8; in config_source() 794 hantro_reg_write(ctx->dev, &g2_start_bit, start_bit); in config_source() 797 src_len += start_bit / 8 - headers_size; in config_source()
|