Home
last modified time | relevance | path

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

12

/linux/drivers/firmware/efi/
H A Dmokvar-table.c105 unsigned long cur_offset = 0; in efi_mokvar_table_init() local
135 while (cur_offset + sizeof(*mokvar_entry) <= offset_limit) { in efi_mokvar_table_init()
138 va = early_memremap(efi.mokvar_table + cur_offset, sizeof(*mokvar_entry)); in efi_mokvar_table_init()
141 efi.mokvar_table + cur_offset, sizeof(*mokvar_entry)); in efi_mokvar_table_init()
151 map_size_needed = cur_offset + sizeof(*mokvar_entry); in efi_mokvar_table_init()
160 cur_offset += size; in efi_mokvar_table_init()
/linux/tools/testing/selftests/bpf/
H A Dbpf_arena_alloc.h25 int __arena *cur_offset = &page_frag_cur_offset[cpu]; in bpf_alloc() local
38 *cur_offset = PAGE_SIZE - 8; in bpf_alloc()
46 offset = *cur_offset - size; in bpf_alloc()
51 *cur_offset = offset; in bpf_alloc()
/linux/virt/kvm/
H A Ddirty_ring.c122 u64 cur_offset, next_offset; in kvm_dirty_ring_reset() local
166 s64 delta = next_offset - cur_offset; in kvm_dirty_ring_reset()
176 cur_offset = next_offset; in kvm_dirty_ring_reset()
186 kvm_reset_dirty_gfn(kvm, cur_slot, cur_offset, mask); in kvm_dirty_ring_reset()
194 cur_offset = next_offset; in kvm_dirty_ring_reset()
207 kvm_reset_dirty_gfn(kvm, cur_slot, cur_offset, mask); in kvm_dirty_ring_reset()
/linux/kernel/trace/
H A Dtrace_btf.c77 u32 tid, cur_offset = 0; in btf_find_struct_member() local
98 cur_offset + member->offset; in btf_find_struct_member()
104 *anon_offset = cur_offset; in btf_find_struct_member()
112 cur_offset = anon_stack[top].offset; in btf_find_struct_member()
/linux/fs/btrfs/
H A Dfile.c989 u64 cur_offset; in btrfs_check_nocow_lock() local
1013 cur_offset = lockstart; in btrfs_check_nocow_lock()
1014 while (cur_offset < lockend) { in btrfs_check_nocow_lock()
1015 u64 num_bytes = lockend - cur_offset + 1; in btrfs_check_nocow_lock()
1017 ret = can_nocow_extent(inode, cur_offset, &num_bytes, NULL, nowait); in btrfs_check_nocow_lock()
1024 if (cur_offset == lockstart) in btrfs_check_nocow_lock()
1028 cur_offset += num_bytes; in btrfs_check_nocow_lock()
1037 if (cur_offset > lockstart) { in btrfs_check_nocow_lock()
1038 *write_bytes = min_t(size_t, *write_bytes, cur_offset - pos); in btrfs_check_nocow_lock()
2415 u64 cur_offset; in btrfs_replace_file_extents() local
[all …]
H A Dfiemap.c446 u64 cur_offset = start; in fiemap_process_hole() local
456 while (cur_offset < end && cur_offset < i_size) { in fiemap_process_hole()
463 delalloc = btrfs_find_delalloc_in_range(inode, cur_offset, end, in fiemap_process_hole()
513 cur_offset = delalloc_end + 1; in fiemap_process_hole()
514 extent_offset += cur_offset - delalloc_start; in fiemap_process_hole()
H A Dinode.c2017 u64 cur_offset = start; in run_delalloc_nocow() local
2049 while (cur_offset <= end) { in run_delalloc_nocow()
2059 cur_offset, 0); in run_delalloc_nocow()
2113 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2115 cow_start = cur_offset; in run_delalloc_nocow()
2116 cur_offset = found_key.offset; in run_delalloc_nocow()
2139 if (extent_end <= cur_offset) { in run_delalloc_nocow()
2144 nocow_args.start = cur_offset; in run_delalloc_nocow()
2165 cow_start = cur_offset; in run_delalloc_nocow()
2166 cur_offset = extent_end; in run_delalloc_nocow()
[all …]
H A Dcompression.c1245 u32 cur_offset; in btrfs_decompress_buf2page() local
1247 cur_offset = decompressed; in btrfs_decompress_buf2page()
1249 while (cur_offset < decompressed + buf_len) { in btrfs_decompress_buf2page()
1268 copy_start = max(cur_offset, bvec_offset); in btrfs_decompress_buf2page()
1283 cur_offset += copy_len; in btrfs_decompress_buf2page()
H A Dtree-log.c1279 u32 cur_offset = 0; in unlink_extrefs_not_in_log() local
1281 while (cur_offset < item_size) { in unlink_extrefs_not_in_log()
1287 extref = (struct btrfs_inode_extref *)(base + cur_offset); in unlink_extrefs_not_in_log()
1321 cur_offset += victim_name.len + sizeof(*extref); in unlink_extrefs_not_in_log()
1776 u32 cur_offset = 0; in count_inode_extrefs() local
1792 cur_offset = 0; in count_inode_extrefs()
1794 while (cur_offset < item_size) { in count_inode_extrefs()
1795 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in count_inode_extrefs()
1800 cur_offset += name_len + sizeof(*extref); in count_inode_extrefs()
5749 u32 cur_offset = 0; in btrfs_check_ref_name_override() local
[all …]
H A Dbackref.c2657 u32 cur_offset; in iterate_inode_extrefs() local
2681 cur_offset = 0; in iterate_inode_extrefs()
2683 while (cur_offset < item_size) { in iterate_inode_extrefs()
2686 extref = (struct btrfs_inode_extref *)(ptr + cur_offset); in iterate_inode_extrefs()
2694 cur_offset += btrfs_inode_extref_name_len(eb, extref); in iterate_inode_extrefs()
2695 cur_offset += sizeof(*extref); in iterate_inode_extrefs()
/linux/drivers/vfio/pci/pds/
H A Dlm.c135 unsigned long cur_offset = 0; in pds_vfio_get_file_page() local
146 cur_offset = lm_file->last_offset; in pds_vfio_get_file_page()
150 if (offset < sg->length + cur_offset) { in pds_vfio_get_file_page()
153 lm_file->last_offset = cur_offset; in pds_vfio_get_file_page()
154 return sg_page(sg) + (offset - cur_offset) / PAGE_SIZE; in pds_vfio_get_file_page()
156 cur_offset += sg->length; in pds_vfio_get_file_page()
/linux/drivers/scsi/esas2r/
H A 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 …]
H A Desas2r_ioctl.c95 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api()
104 int offset = sgc->cur_offset - a->save_offset; in get_physaddr_fm_api_header()
155 a->fm_api_sgc.cur_offset = a->save_offset; in do_fm_api()
194 int offset = (u8 *)sgc->cur_offset - esas2r_buffered_ioctl; in get_physaddr_buffered_ioctl()
265 sgc.cur_offset = esas2r_buffered_ioctl + bi->offset; in handle_buffered_ioctl()
1003 sgc->cur_offset += offsetof(struct atto_ioctl, data.byte) in hba_ioctl_callback()
1812 int offset = (u8 *)sgc->cur_offset - (u8 *)a->vda_buffer; in get_physaddr_vda()
1848 sgc.cur_offset = a->vda_buffer + VDA_BUFFER_HEADER_SZ; in esas2r_read_vda()
1933 u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; in get_physaddr_fs_api()
1977 sgc.cur_offset = fs->data; in esas2r_read_fs()
H A 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()
H A Desas2r_main.c765 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
789 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
802 (sgc->cur_offset - sgc->exp_offset); in get_physaddr_from_sgc()
808 sgc->exp_offset - sgc->cur_offset); in get_physaddr_from_sgc()
864 sgc.cur_offset = NULL; in esas2r_queuecommand()
/linux/tools/testing/selftests/sparc64/drivers/
H A 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/drivers/clk/
H A 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/lib/crypto/tests/
H A Dhash-test-template.h156 size_t remaining_len, cur_offset; in test_hash_incremental_updates() local
171 cur_offset = offset; in test_hash_incremental_updates()
175 HASH_UPDATE(&ctx, &test_buf[cur_offset], part_len); in test_hash_incremental_updates()
177 cur_offset += part_len; in test_hash_incremental_updates()
181 HASH_UPDATE(&ctx, &test_buf[cur_offset], remaining_len); in test_hash_incremental_updates()
/linux/fs/squashfs/
H A Dfile.c238 int cur_offset = squashfs_i(inode)->offset; in fill_meta_index() local
260 cur_offset = meta_entry->offset; in fill_meta_index()
267 cur_offset, cur_data_block); in fill_meta_index()
279 &cur_index_block, &cur_offset); in fill_meta_index()
296 meta_entry->offset = cur_offset; in fill_meta_index()
310 *index_offset = cur_offset; in fill_meta_index()
/linux/scripts/
H A Drecordmcount.pl442 foreach my $cur_offset (@offsets) {
443 printf FILE "\t%s %s + %d\n", $type, $ref_func, $cur_offset - $offset;
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c292 const struct vmw_surface_offset *cur_offset = &srf->offsets[i]; in vmw_surface_dma_encode() local
299 body->guest.ptr.offset += cur_offset->bo_offset; in vmw_surface_dma_encode()
302 body->host.face = cur_offset->face; in vmw_surface_dma_encode()
303 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode()
722 struct vmw_surface_offset *cur_offset; in vmw_surface_define_ioctl() local
783 cur_offset = srf->offsets; in vmw_surface_define_ioctl()
791 cur_offset->face = i; in vmw_surface_define_ioctl()
792 cur_offset->mip = j; in vmw_surface_define_ioctl()
793 cur_offset->bo_offset = cur_bo_offset; in vmw_surface_define_ioctl()
796 ++cur_offset; in vmw_surface_define_ioctl()
/linux/drivers/scsi/bnx2i/
H A Dbnx2i_iscsi.c60 u32 cur_offset = 0; in bnx2i_get_write_cmd_bd_idx() local
64 while (buf_off >= (cur_offset + bd_tbl->buffer_length)) { in bnx2i_get_write_cmd_bd_idx()
65 cur_offset += bd_tbl->buffer_length; in bnx2i_get_write_cmd_bd_idx()
71 *start_bd_off = buf_off - cur_offset; in bnx2i_get_write_cmd_bd_idx()
/linux/fs/ceph/
H A Daddr.c1499 u64 cur_offset; in ceph_submit_write() local
1502 cur_offset = page_offset(page); in ceph_submit_write()
1508 if (offset + len != cur_offset) { in ceph_submit_write()
1518 cur_offset - offset); in ceph_submit_write()
1530 offset = cur_offset; in ceph_submit_write()
/linux/arch/arm64/net/
H A Dbpf_jit_comp.c520 int cur_offset; in build_prologue() local
571 cur_offset = ctx->idx - idx0; in build_prologue()
572 if (cur_offset != PROLOGUE_OFFSET) { in build_prologue()
574 cur_offset, PROLOGUE_OFFSET); in build_prologue()
/linux/arch/loongarch/net/
H A Dbpf_jit.c289 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
290 #define jmp_offset (tc_ninsn - (cur_offset)) in emit_bpf_tail_call()
343 #undef cur_offset in emit_bpf_tail_call()

12