Home
last modified time | relevance | path

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

/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.c121 u64 cur_offset, next_offset; in kvm_dirty_ring_reset() local
165 s64 delta = next_offset - cur_offset; in kvm_dirty_ring_reset()
175 cur_offset = next_offset; in kvm_dirty_ring_reset()
185 kvm_reset_dirty_gfn(kvm, cur_slot, cur_offset, mask); in kvm_dirty_ring_reset()
193 cur_offset = next_offset; in kvm_dirty_ring_reset()
206 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/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.c766 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
790 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
803 (sgc->cur_offset - sgc->exp_offset); in get_physaddr_from_sgc()
809 sgc->exp_offset - sgc->cur_offset); in get_physaddr_from_sgc()
864 sgc.cur_offset = NULL; in esas2r_queuecommand()
H A Desas2r_disc.c896 sgc.cur_offset = NULL; in esas2r_disc_passthru_dev_addr()
H A Desas2r.h604 u8 *cur_offset; member
/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/fs/btrfs/
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 Dcompression.c1228 u32 cur_offset; in btrfs_decompress_buf2page() local
1230 cur_offset = decompressed; in btrfs_decompress_buf2page()
1232 while (cur_offset < decompressed + buf_len) { in btrfs_decompress_buf2page()
1251 copy_start = max(cur_offset, bvec_offset); in btrfs_decompress_buf2page()
1266 cur_offset += copy_len; in btrfs_decompress_buf2page()
H A Dsend.c1266 u64 cur_offset; member
1324 offset == bctx->cur_offset) in iterate_backrefs()
1599 backref_ctx.cur_offset = data_offset; in find_extent_clone()
3852 u32 cur_offset = 0; in is_ancestor() local
3862 while (cur_offset < item_size) { in is_ancestor()
3872 (ptr + cur_offset); in is_ancestor()
3875 cur_offset += sizeof(*extref); in is_ancestor()
3876 cur_offset += btrfs_inode_extref_name_len(leaf, in is_ancestor()
3880 cur_offset = item_size; in is_ancestor()
7103 u32 cur_offset = 0; in compare_refs() local
[all …]
H A Drelocation.c2675 u64 cur_offset = prealloc_start; in prealloc_file_extent_cluster() local
2713 cur_offset = end + 1; in prealloc_file_extent_cluster()
2720 if (cur_offset < prealloc_end) in prealloc_file_extent_cluster()
2722 prealloc_end + 1 - cur_offset); in prealloc_file_extent_cluster()
/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.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/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/vfio/pci/virtio/
H A Dmigrate.c37 unsigned long cur_offset = 0; in virtiovf_get_migration_page() local
48 cur_offset = buf->last_offset; in virtiovf_get_migration_page()
52 if (offset < sg->length + cur_offset) { in virtiovf_get_migration_page()
55 buf->last_offset = cur_offset; in virtiovf_get_migration_page()
56 return sg_page(sg) + (offset - cur_offset) / PAGE_SIZE; in virtiovf_get_migration_page()
58 cur_offset += sg->length; in virtiovf_get_migration_page()
/linux/arch/arm/net/
H A Dbpf_jit_32.c1404 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
1405 #define jmp_offset (out_offset - (cur_offset) - 2) in emit_bpf_tail_call()
1463 out_offset = cur_offset; in emit_bpf_tail_call()
1464 if (cur_offset != out_offset) { in emit_bpf_tail_call()
1466 cur_offset, out_offset); in emit_bpf_tail_call()
1470 #undef cur_offset in emit_bpf_tail_call()
/linux/fs/ceph/
H A Daddr.c1485 u64 cur_offset; in ceph_submit_write() local
1488 cur_offset = page_offset(page); in ceph_submit_write()
1494 if (offset + len != cur_offset) { in ceph_submit_write()
1504 cur_offset - offset); in ceph_submit_write()
1516 offset = cur_offset; in ceph_submit_write()
/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/arch/loongarch/net/
H A Dbpf_jit.c272 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
273 #define jmp_offset (tc_ninsn - (cur_offset)) in emit_bpf_tail_call()
326 #undef cur_offset in emit_bpf_tail_call()