Home
last modified time | relevance | path

Searched refs:cur_offset (Results 1 – 25 of 36) sorted by relevance

12

/Linux-v6.1/virt/kvm/
Ddirty_ring.c93 u64 cur_offset, next_offset; in kvm_dirty_ring_reset() local
100 cur_slot = cur_offset = mask = 0; in kvm_dirty_ring_reset()
121 s64 delta = next_offset - cur_offset; in kvm_dirty_ring_reset()
131 cur_offset = next_offset; in kvm_dirty_ring_reset()
136 kvm_reset_dirty_gfn(kvm, cur_slot, cur_offset, mask); in kvm_dirty_ring_reset()
138 cur_offset = next_offset; in kvm_dirty_ring_reset()
143 kvm_reset_dirty_gfn(kvm, cur_slot, cur_offset, mask); in kvm_dirty_ring_reset()
/Linux-v6.1/drivers/firmware/efi/
Dmokvar-table.c104 unsigned long cur_offset = 0; in efi_mokvar_table_init() local
136 while (cur_offset + sizeof(*mokvar_entry) <= offset_limit) { in efi_mokvar_table_init()
137 mokvar_entry = va + cur_offset; in efi_mokvar_table_init()
138 map_size_needed = cur_offset + sizeof(*mokvar_entry); in efi_mokvar_table_init()
156 mokvar_entry = va + cur_offset; in efi_mokvar_table_init()
174 cur_offset = map_size_needed + mokvar_entry->data_size; in efi_mokvar_table_init()
/Linux-v6.1/drivers/mtd/
Dmtdpart.c37 int partno, uint64_t cur_offset) in allocate_partition() argument
91 child->part.offset = cur_offset; in allocate_partition()
93 tmp = cur_offset; in allocate_partition()
94 child->part.offset = cur_offset; in allocate_partition()
100 (unsigned long long)cur_offset, in allocate_partition()
105 child->part.offset = cur_offset; in allocate_partition()
398 uint64_t cur_offset = 0; in add_mtd_partitions() local
405 child = allocate_partition(parent, parts + i, i, cur_offset); in add_mtd_partitions()
430 cur_offset = child->part.offset + child->part.size; in add_mtd_partitions()
/Linux-v6.1/drivers/scsi/esas2r/
Desas2r_flash.c144 if (fc->sgc.cur_offset == NULL) in esas2r_fmapi_callback()
186 if (sgc->cur_offset) in build_flash_msg()
187 cksum = esas2r_calc_byte_xor_cksum(sgc->cur_offset, in build_flash_msg()
210 if (sgc->cur_offset) { in build_flash_msg()
368 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
393 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
407 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
431 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
442 fc->sgc.cur_offset = fc->sgc_offset in fw_download_proc()
467 fc->sgc.cur_offset = fc->sgc_offset + in fw_download_proc()
[all …]
Desas2r_ioctl.c93 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api()
102 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header()
153 a->fm_api_sgc.cur_offset = a->save_offset; in do_fm_api()
192 int offset = (u8 *)sgc->cur_offset - esas2r_buffered_ioctl; in get_physaddr_buffered_ioctl()
263 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
1007 sgc->cur_offset += offsetof(struct atto_ioctl, data.byte) in hba_ioctl_callback()
1816 int offset = (u8 *)sgc->cur_offset - (u8 *)a->vda_buffer; in get_physaddr_vda()
1852 sgc.cur_offset = a->vda_buffer + VDA_BUFFER_HEADER_SZ; in esas2r_read_vda()
1937 u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; in get_physaddr_fs_api()
1981 sgc.cur_offset = fs->data; in esas2r_read_fs()
Desas2r_vda.c135 u8 *cmdcurr_offset = sgc->cur_offset in esas2r_process_vda_ioctl()
162 cmdcurr_offset = sgc->cur_offset; in esas2r_process_vda_ioctl()
195 sgc->cur_offset = cmdcurr_offset; in esas2r_process_vda_ioctl()
Desas2r_io.c312 sgc->cur_offset += len; in esas2r_build_sg_list_sge()
423 sgc->cur_offset += len; in esas2r_build_prd_iblk()
496 sgc->cur_offset += len; in esas2r_build_prd_iblk()
Desas2r_main.c763 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
787 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
800 (sgc->cur_offset - sgc->exp_offset); in get_physaddr_from_sgc()
806 sgc->exp_offset - sgc->cur_offset); in get_physaddr_from_sgc()
861 sgc.cur_offset = NULL; in esas2r_queuecommand()
/Linux-v6.1/tools/testing/selftests/sparc64/drivers/
Dadi-test.c208 unsigned long cur_offset; in pread_adi() local
211 cur_offset = offset; in pread_adi()
215 cur_offset); in pread_adi()
223 cur_offset += ret; in pread_adi()
263 unsigned long cur_offset; in pwrite_adi() local
266 cur_offset = offset; in pwrite_adi()
271 buf_sz - bytes_written, cur_offset); in pwrite_adi()
282 cur_offset += ret; in pwrite_adi()
/Linux-v6.1/drivers/clk/
Dclk-sparx5.c81 ulong cur_offset, best_offset = rate; in s5_search_fractional() local
95 cur_offset = abs(rate - conf->freq); in s5_search_fractional()
96 if (cur_offset < best_offset) { in s5_search_fractional()
97 best_offset = cur_offset; in s5_search_fractional()
/Linux-v6.1/fs/btrfs/
Dinode-item.c20 u32 cur_offset = 0; in btrfs_find_name_in_backref() local
25 while (cur_offset < item_size) { in btrfs_find_name_in_backref()
26 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in btrfs_find_name_in_backref()
29 cur_offset += len + sizeof(*ref); in btrfs_find_name_in_backref()
46 u32 cur_offset = 0; in btrfs_find_name_in_ext_backref() local
58 while (cur_offset < item_size) { in btrfs_find_name_in_ext_backref()
59 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
68 cur_offset += ref_name_len + sizeof(*extref); in btrfs_find_name_in_ext_backref()
Dfile.c2645 u64 cur_offset; in btrfs_replace_file_extents() local
2684 cur_offset = start; in btrfs_replace_file_extents()
2688 while (cur_offset < end) { in btrfs_replace_file_extents()
2689 drop_args.start = cur_offset; in btrfs_replace_file_extents()
2713 if (!extent_info && cur_offset < drop_args.drop_end && in btrfs_replace_file_extents()
2714 cur_offset < ino_size) { in btrfs_replace_file_extents()
2715 ret = fill_holes(trans, inode, path, cur_offset, in btrfs_replace_file_extents()
2727 } else if (!extent_info && cur_offset < drop_args.drop_end) { in btrfs_replace_file_extents()
2735 cur_offset, in btrfs_replace_file_extents()
2736 drop_args.drop_end - cur_offset); in btrfs_replace_file_extents()
[all …]
Dinode.c1912 u64 cur_offset = start; in run_delalloc_nocow() local
1946 cur_offset, 0); in run_delalloc_nocow()
1971 cur_offset = cow_start; in run_delalloc_nocow()
2003 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2029 if (extent_end <= cur_offset) { in run_delalloc_nocow()
2034 nocow_args.start = cur_offset; in run_delalloc_nocow()
2038 cur_offset = cow_start; in run_delalloc_nocow()
2055 cow_start = cur_offset; in run_delalloc_nocow()
2056 cur_offset = extent_end; in run_delalloc_nocow()
2057 if (cur_offset > end) in run_delalloc_nocow()
[all …]
Dcompression.c1297 u32 cur_offset; in btrfs_decompress_buf2page() local
1299 cur_offset = decompressed; in btrfs_decompress_buf2page()
1301 while (cur_offset < decompressed + buf_len) { in btrfs_decompress_buf2page()
1319 copy_start = max(cur_offset, bvec_offset); in btrfs_decompress_buf2page()
1331 cur_offset += copy_len; in btrfs_decompress_buf2page()
Dtree-log.c1145 u32 cur_offset = 0; in __add_inode_ref() local
1154 while (cur_offset < item_size) { in __add_inode_ref()
1155 extref = (struct btrfs_inode_extref *)(base + cur_offset); in __add_inode_ref()
1201 cur_offset += victim_name_len + sizeof(*extref); in __add_inode_ref()
1521 u32 cur_offset = 0; in count_inode_extrefs() local
1537 cur_offset = 0; in count_inode_extrefs()
1539 while (cur_offset < item_size) { in count_inode_extrefs()
1540 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in count_inode_extrefs()
1545 cur_offset += name_len + sizeof(*extref); in count_inode_extrefs()
5257 u32 cur_offset = 0; in btrfs_check_ref_name_override() local
[all …]
Dbackref.c2355 u32 cur_offset; in iterate_inode_extrefs() local
2379 cur_offset = 0; in iterate_inode_extrefs()
2381 while (cur_offset < item_size) { in iterate_inode_extrefs()
2384 extref = (struct btrfs_inode_extref *)(ptr + cur_offset); in iterate_inode_extrefs()
2392 cur_offset += btrfs_inode_extref_name_len(eb, extref); in iterate_inode_extrefs()
2393 cur_offset += sizeof(*extref); in iterate_inode_extrefs()
Dsend.c1234 u64 cur_offset; member
1286 offset == bctx->cur_offset) { in __iterate_backrefs()
1437 backref_ctx.cur_offset = data_offset; in find_extent_clone()
3656 u32 cur_offset = 0; in is_ancestor() local
3666 while (cur_offset < item_size) { in is_ancestor()
3676 (ptr + cur_offset); in is_ancestor()
3679 cur_offset += sizeof(*extref); in is_ancestor()
3680 cur_offset += btrfs_inode_extref_name_len(leaf, in is_ancestor()
3684 cur_offset = item_size; in is_ancestor()
6894 u32 cur_offset = 0; in compare_refs() local
[all …]
/Linux-v6.1/fs/squashfs/
Dfile.c237 int cur_offset = squashfs_i(inode)->offset; in fill_meta_index() local
259 cur_offset = meta_entry->offset; in fill_meta_index()
266 cur_offset, cur_data_block); in fill_meta_index()
278 &cur_index_block, &cur_offset); in fill_meta_index()
295 meta_entry->offset = cur_offset; in fill_meta_index()
309 *index_offset = cur_offset; in fill_meta_index()
/Linux-v6.1/drivers/vfio/pci/mlx5/
Dmain.c39 unsigned long cur_offset = 0; in mlx5vf_get_migration_page() local
50 cur_offset = migf->last_offset; in mlx5vf_get_migration_page()
54 if (offset < sg->length + cur_offset) { in mlx5vf_get_migration_page()
57 migf->last_offset = cur_offset; in mlx5vf_get_migration_page()
59 (offset - cur_offset) / PAGE_SIZE); in mlx5vf_get_migration_page()
61 cur_offset += sg->length; in mlx5vf_get_migration_page()
/Linux-v6.1/scripts/
Drecordmcount.pl449 foreach my $cur_offset (@offsets) {
450 printf FILE "\t%s %s + %d\n", $type, $ref_func, $cur_offset - $offset;
/Linux-v6.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c310 const struct vmw_surface_offset *cur_offset = &srf->offsets[i]; in vmw_surface_dma_encode() local
317 body->guest.ptr.offset += cur_offset->bo_offset; in vmw_surface_dma_encode()
320 body->host.face = cur_offset->face; in vmw_surface_dma_encode()
321 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode()
736 struct vmw_surface_offset *cur_offset; in vmw_surface_define_ioctl() local
798 cur_offset = srf->offsets; in vmw_surface_define_ioctl()
806 cur_offset->face = i; in vmw_surface_define_ioctl()
807 cur_offset->mip = j; in vmw_surface_define_ioctl()
808 cur_offset->bo_offset = cur_bo_offset; in vmw_surface_define_ioctl()
811 ++cur_offset; in vmw_surface_define_ioctl()
/Linux-v6.1/arch/arm64/net/
Dbpf_jit_comp.c300 int cur_offset; in build_prologue() local
351 cur_offset = ctx->idx - idx0; in build_prologue()
352 if (cur_offset != PROLOGUE_OFFSET) { in build_prologue()
354 cur_offset, PROLOGUE_OFFSET); in build_prologue()
383 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
384 #define jmp_offset (out_offset - (cur_offset)) in emit_bpf_tail_call()
428 out_offset = cur_offset; in emit_bpf_tail_call()
429 if (cur_offset != out_offset) { in emit_bpf_tail_call()
431 cur_offset, out_offset); in emit_bpf_tail_call()
435 #undef cur_offset in emit_bpf_tail_call()
/Linux-v6.1/drivers/net/wireless/mediatek/mt76/mt7603/
Dinit.c452 int max_offset, cur_offset; in mt7603_init_txpower() local
463 cur_offset = mt7603_txpower_signed(rate_power[i]); in mt7603_init_txpower()
464 max_offset = max(max_offset, cur_offset); in mt7603_init_txpower()
/Linux-v6.1/arch/loongarch/net/
Dbpf_jit.c217 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
218 #define jmp_offset (out_offset - (cur_offset)) in emit_bpf_tail_call()
261 out_offset = cur_offset; in emit_bpf_tail_call()
262 if (cur_offset != out_offset) { in emit_bpf_tail_call()
264 cur_offset, out_offset); in emit_bpf_tail_call()
273 #undef cur_offset in emit_bpf_tail_call()
/Linux-v6.1/arch/arm/net/
Dbpf_jit_32.c1163 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
1164 #define jmp_offset (out_offset - (cur_offset) - 2) in emit_bpf_tail_call()
1222 out_offset = cur_offset; in emit_bpf_tail_call()
1223 if (cur_offset != out_offset) { in emit_bpf_tail_call()
1225 cur_offset, out_offset); in emit_bpf_tail_call()
1229 #undef cur_offset in emit_bpf_tail_call()

12