Home
last modified time | relevance | path

Searched refs:last_offset (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx4/
Dqp.c554 u32 last_offset; in mlx4_create_zones() local
607 last_offset = dev->caps.reserved_qps_cnt[MLX4_QP_REGION_FW]; in mlx4_create_zones()
631 if (((last_offset & MLX4_BF_QP_SKIP_MASK) && in mlx4_create_zones()
632 ((int)(max_table_offset - last_offset)) >= in mlx4_create_zones()
634 (!(last_offset & MLX4_BF_QP_SKIP_MASK) && in mlx4_create_zones()
635 !((last_offset + requested_size - 1) & in mlx4_create_zones()
640 (last_offset | MLX4_BF_QP_SKIP_MASK | bf_mask) + 1; in mlx4_create_zones()
642 if (last_offset & MLX4_BF_QP_SKIP_MASK) in mlx4_create_zones()
643 last_offset = candidate_offset; in mlx4_create_zones()
647 if (last_offset > max_table_offset) { in mlx4_create_zones()
[all …]
/kernel/linux/linux-5.10/drivers/android/
Dbinder_alloc_selftest.c230 size_t last_offset, offset = 0; in binder_selftest_alloc_size() local
233 last_offset = offset; in binder_selftest_alloc_size()
235 front_sizes[i] = offset - last_offset; in binder_selftest_alloc_size()
/kernel/linux/linux-5.10/fs/btrfs/
Dcompression.c507 u64 last_offset; in add_ra_bio_pages() local
519 last_offset = bio_end_offset(cb->orig_bio); in add_ra_bio_pages()
528 while (last_offset < compressed_end) { in add_ra_bio_pages()
529 pg_index = last_offset >> PAGE_SHIFT; in add_ra_bio_pages()
552 end = last_offset + PAGE_SIZE - 1; in add_ra_bio_pages()
559 lock_extent(tree, last_offset, end); in add_ra_bio_pages()
561 em = lookup_extent_mapping(em_tree, last_offset, in add_ra_bio_pages()
565 if (!em || last_offset < em->start || in add_ra_bio_pages()
566 (last_offset + PAGE_SIZE > extent_map_end(em)) || in add_ra_bio_pages()
569 unlock_extent(tree, last_offset, end); in add_ra_bio_pages()
[all …]
Dfile.c52 u64 last_offset; member
108 if (defrag->last_offset > entry->last_offset) in __btrfs_add_inode_defrag()
109 entry->last_offset = defrag->last_offset; in __btrfs_add_inode_defrag()
300 range.start = defrag->last_offset; in __btrfs_run_defrag_inode()
312 defrag->last_offset = range.start; in __btrfs_run_defrag_inode()
314 } else if (defrag->last_offset && !defrag->cycled) { in __btrfs_run_defrag_inode()
320 defrag->last_offset = 0; in __btrfs_run_defrag_inode()
Dscrub.c2602 u64 last_offset; in get_raid56_logic_offset() local
2607 last_offset = (physical - map->stripes[num].physical) * data_stripes; in get_raid56_logic_offset()
2609 *stripe_start = last_offset; in get_raid56_logic_offset()
2611 *offset = last_offset; in get_raid56_logic_offset()
2613 *offset = last_offset + i * map->stripe_len; in get_raid56_logic_offset()
2628 *offset = last_offset + j * map->stripe_len; in get_raid56_logic_offset()
Dtree-log.c3529 u64 first_offset, u64 last_offset) in insert_dir_log_key() argument
3547 btrfs_set_dir_log_end(path->nodes[0], item, last_offset); in insert_dir_log_key()
3573 u64 last_offset = (u64)-1; in log_dir_items() local
3715 last_offset = (u64)-1; in log_dir_items()
3722 last_offset = (u64)-1; in log_dir_items()
3732 last_offset = tmp.offset; in log_dir_items()
3741 *last_offset_ret = last_offset; in log_dir_items()
3747 ino, first_offset, last_offset); in log_dir_items()
Dinode.c7697 u64 last_offset; in __endio_write_update_ordered() local
7705 last_offset = ordered_offset; in __endio_write_update_ordered()
7718 if (ordered_offset == last_offset) in __endio_write_update_ordered()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dphy.c1016 __mt7601u_phy_freq_cal(struct mt7601u_dev *dev, s8 last_offset, u8 phy_mode) in __mt7601u_phy_freq_cal() argument
1020 trace_freq_cal_offset(dev, phy_mode, last_offset); in __mt7601u_phy_freq_cal()
1023 if (last_offset == MT_FREQ_OFFSET_INVALID) in __mt7601u_phy_freq_cal()
1045 if (abs(last_offset) >= activate_threshold) in __mt7601u_phy_freq_cal()
1047 else if (abs(last_offset) <= deactivate_threshold) in __mt7601u_phy_freq_cal()
1053 if (last_offset > deactivate_threshold) { in __mt7601u_phy_freq_cal()
1058 } else if (last_offset < -deactivate_threshold) { in __mt7601u_phy_freq_cal()
1077 s8 last_offset; in mt7601u_phy_freq_cal() local
1082 last_offset = dev->bcn_freq_off; in mt7601u_phy_freq_cal()
1086 delay = __mt7601u_phy_freq_cal(dev, last_offset, phy_mode); in mt7601u_phy_freq_cal()
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/nx-gzip/
Dgunz_test.c284 int first_offset, last_offset; in decompress_file() local
442 last_offset = fifo_free_last_offset(cur_in, used_in, fifo_in_len); in decompress_file()
466 n = fread(fifo_in + last_offset, 1, read_sz, inpf); in decompress_file()
637 last_offset = fifo_free_last_offset(cur_out, used_out, in decompress_file()
639 nx_append_dde(ddl_out, fifo_out + last_offset, in decompress_file()
/kernel/linux/linux-5.10/drivers/block/zram/zram_group/
Dgroup_writeback.c246 u32 last_offset; in collect_objs() local
252 last_offset = offset; in collect_objs()
256 pr_debug("%u data attached, offset = %u.\n", offset - last_offset, offset); in collect_objs()
257 if (offset < ext_size && offset != last_offset) in collect_objs()
/kernel/linux/linux-5.10/drivers/gpu/drm/etnaviv/
Detnaviv_gem_submit.c274 u32 i, last_offset = 0; in submit_reloc() local
302 (off < last_offset)) { in submit_reloc()
318 last_offset = off; in submit_reloc()
/kernel/linux/linux-5.10/drivers/staging/media/meson/vdec/
Dvdec.h268 u32 last_offset; member
Desparser.c282 if (offset < sess->last_offset) in esparser_get_offset()
285 sess->last_offset = offset; in esparser_get_offset()
Dvdec.c326 sess->last_offset = 0; in vdec_start_streaming()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/
Dmsm_gem_submit.c306 uint32_t i, last_offset = 0; in submit_reloc() local
353 (off < last_offset)) { in submit_reloc()
375 last_offset = off; in submit_reloc()
/kernel/linux/linux-5.10/drivers/soc/ti/
Dknav_qmss_queue.c763 unsigned last_offset; in knav_pool_create() local
818 last_offset = 0; in knav_pool_create()
822 if ((pi->region_offset - last_offset) >= num_desc) { in knav_pool_create()
826 last_offset = pi->region_offset + pi->num_desc; in knav_pool_create()
833 pool->region_offset = last_offset; in knav_pool_create()
/kernel/linux/linux-5.10/fs/reiserfs/
Dinode.c2563 unsigned last_offset; in reiserfs_write_full_page() local
2565 last_offset = inode->i_size & (PAGE_SIZE - 1); in reiserfs_write_full_page()
2567 if (page->index >= end_index + 1 || !last_offset) { in reiserfs_write_full_page()
2571 zero_user_segment(page, last_offset, PAGE_SIZE); in reiserfs_write_full_page()
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_enet.c416 int last_offset; in hns_nic_reuse_page() local
429 last_offset = hnae_page_size(ring) - hnae_buf_size(ring); in hns_nic_reuse_page()
455 if (desc_cb->page_offset <= last_offset) { in hns_nic_reuse_page()
/kernel/linux/linux-5.10/fs/f2fs/
Dnode.c2739 int i, idx, last_offset, nrpages; in f2fs_restore_node_summary() local
2742 last_offset = sbi->blocks_per_seg; in f2fs_restore_node_summary()
2746 for (i = 0; i < last_offset; i += nrpages, addr += nrpages) { in f2fs_restore_node_summary()
2747 nrpages = min(last_offset - i, BIO_MAX_PAGES); in f2fs_restore_node_summary()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3857 u16 last_offset = 0; in __i40e_reprogram_flex_pit() local
3909 last_offset = list_prev_entry(entry, list)->src_offset + 1; in __i40e_reprogram_flex_pit()
3911 for (; i < 3; i++, last_offset++) { in __i40e_reprogram_flex_pit()
3916 last_offset)); in __i40e_reprogram_flex_pit()
/kernel/linux/linux-5.10/kernel/bpf/
Dbtf.c2827 u32 meta_needed, last_offset; in btf_struct_check_meta() local
2850 last_offset = 0; in btf_struct_check_meta()
2883 if (last_offset > offset) { in btf_struct_check_meta()
2896 last_offset = offset; in btf_struct_check_meta()
/kernel/linux/linux-5.10/drivers/staging/qlge/
Dqlge_main.c2727 unsigned int last_offset; in ql_free_lbq_buffers() local
2729 last_offset = ql_lbq_block_size(qdev) - qdev->lbq_buf_size; in ql_free_lbq_buffers()
2734 if (lbq_desc->p.pg_chunk.offset == last_offset) in ql_free_lbq_buffers()
/kernel/linux/linux-5.10/drivers/md/
Ddm-integrity.c3244 sector_t last_sector, last_area, last_offset; in calculate_device_limits() local
3259 get_area_and_offset(ic, ic->provided_data_sectors - 1, &last_area, &last_offset); in calculate_device_limits()
3260 last_sector = get_data_sector(ic, last_area, last_offset); in calculate_device_limits()