Home
last modified time | relevance | path

Searched refs:cur_offset (Results 1 – 25 of 31) 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.c97 u32 tid, cur_offset = 0; in btf_find_struct_member()
116 anon_stack[top++].offset = cur_offset + in btf_find_struct_member()
123 *anon_offset = cur_offset; in btf_find_struct_member()
133 cur_offset = anon_stack[top].offset;
79 u32 tid, cur_offset = 0; btf_find_struct_member() local
/linux/fs/btrfs/
H A Dfile.c973 u64 cur_offset; in btrfs_check_nocow_lock()
997 cur_offset = lockstart; in btrfs_check_nocow_lock()
998 while (cur_offset < lockend) { in btrfs_check_nocow_lock()
999 u64 num_bytes = lockend - cur_offset + 1; in btrfs_check_nocow_lock()
1001 ret = can_nocow_extent(inode, cur_offset, &num_bytes, NULL, nowait); in btrfs_check_nocow_lock()
1004 * If cur_offset == lockstart it means we haven't found in btrfs_check_nocow_lock()
1008 if (cur_offset == lockstart) in btrfs_check_nocow_lock()
1012 cur_offset += num_bytes; in btrfs_check_nocow_lock()
1018 * cur_offset > lockstart means there's at least a partial range we can in btrfs_check_nocow_lock()
1021 if (cur_offset > lockstar in btrfs_check_nocow_lock()
966 u64 cur_offset; btrfs_check_nocow_lock() local
2377 u64 cur_offset; btrfs_replace_file_extents() local
3073 u64 cur_offset; btrfs_fallocate() local
3393 u64 cur_offset = round_down(start, inode->root->fs_info->sectorsize); btrfs_find_delalloc_in_range() local
[all...]
H A Dfiemap.c447 u64 cur_offset = start; in fiemap_process_hole()
457 while (cur_offset < end && cur_offset < i_size) { in fiemap_process_hole()
464 delalloc = btrfs_find_delalloc_in_range(inode, cur_offset, end, in fiemap_process_hole()
514 cur_offset = delalloc_end + 1; in fiemap_process_hole()
515 extent_offset += cur_offset - delalloc_start; in fiemap_process_hole()
446 u64 cur_offset = start; fiemap_process_hole() local
H A Dinode.c1495 "%s failed, root=%llu inode=%llu start=%llu len=%llu cur_offset=%llu cur_alloc_size=%u: %pe", in cow_file_range()
1972 u64 cur_offset = start;
2004 while (cur_offset <= end) { in run_delalloc_nocow()
2014 cur_offset, 0); in run_delalloc_nocow()
2066 * adjust cur_offset to be right before this extent begins. in run_delalloc_nocow()
2068 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
2070 cow_start = cur_offset; in run_delalloc_nocow()
2071 cur_offset = found_key.offset; in run_delalloc_nocow()
2094 if (extent_end <= cur_offset) { in run_delalloc_nocow()
2099 nocow_args.start = cur_offset; in run_delalloc_nocow()
1996 u64 cur_offset = start; run_delalloc_nocow() local
5329 u64 cur_offset; btrfs_cont_expand() local
9236 u64 cur_offset = start; __btrfs_prealloc_file_range() local
[all...]
H A Dioctl.c5284 u64 cur_offset; in btrfs_ioctl_get_csums()
5317 cur_offset = args.offset; in btrfs_ioctl_get_csums()
5324 ret = btrfs_wait_ordered_range(inode, cur_offset, args.length); in btrfs_ioctl_get_csums()
5332 ret = btrfs_wait_ordered_range(inode, cur_offset, args.length); in btrfs_ioctl_get_csums()
5339 .offset = cur_offset, in btrfs_ioctl_get_csums()
5340 .length = end_offset - cur_offset, in btrfs_ioctl_get_csums()
5350 cur_offset = end_offset; in btrfs_ioctl_get_csums()
5354 prev_extent_end = cur_offset; in btrfs_ioctl_get_csums()
5356 while (cur_offset < end_offset) { in btrfs_ioctl_get_csums()
5370 /* Search for the extent at or before cur_offset in btrfs_ioctl_get_csums()
5265 u64 cur_offset; btrfs_ioctl_get_csums() local
[all...]
H A Dcompression.c1198 u32 cur_offset; in btrfs_decompress_buf2page() local
1200 cur_offset = decompressed; in btrfs_decompress_buf2page()
1202 while (cur_offset < decompressed + buf_len) { in btrfs_decompress_buf2page()
1221 copy_start = max(cur_offset, bvec_offset); in btrfs_decompress_buf2page()
1236 cur_offset += copy_len; in btrfs_decompress_buf2page()
H A Dtree-log.c1251 u32 cur_offset = 0; in unlink_extrefs_not_in_log() local
1253 while (cur_offset < item_size) { in unlink_extrefs_not_in_log()
1259 extref = (struct btrfs_inode_extref *)(base + cur_offset); in unlink_extrefs_not_in_log()
1293 cur_offset += victim_name.len + sizeof(*extref); in unlink_extrefs_not_in_log()
1748 u32 cur_offset = 0; in count_inode_extrefs() local
1764 cur_offset = 0; in count_inode_extrefs()
1766 while (cur_offset < item_size) { in count_inode_extrefs()
1767 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in count_inode_extrefs()
1772 cur_offset += name_len + sizeof(*extref); in count_inode_extrefs()
5731 u32 cur_offset in btrfs_check_ref_name_override()
5732 u32 cur_offset = 0; btrfs_check_ref_name_override() local
7309 u32 cur_offset = 0; btrfs_log_all_parents() 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()
H A Dsend.c1257 * and cur_offset are not considered as allowed clones.
1260 u64 cur_offset; member
1318 offset == bctx->cur_offset) in iterate_backrefs()
1593 backref_ctx.cur_offset = data_offset; in find_extent_clone()
3824 u32 cur_offset = 0; in is_ancestor() local
3834 while (cur_offset < item_size) { in is_ancestor()
3844 (ptr + cur_offset); in is_ancestor()
3847 cur_offset += sizeof(*extref); in is_ancestor()
3848 cur_offset += btrfs_inode_extref_name_len(leaf, in is_ancestor()
3852 cur_offset in is_ancestor()
7075 u32 cur_offset = 0; compare_refs() local
[all...]
/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/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/media/platform/verisilicon/
H A Drockchip_vpu981_hw_av1_dec.c1694 int cur_offset[V4L2_AV1_TOTAL_REFS_PER_FRAME - 1]; in rockchip_vpu981_av1_dec_set_other_frames()
1794 cur_offset[rf] = in rockchip_vpu981_av1_dec_set_other_frames()
1799 cur_offset[rf] = 0; in rockchip_vpu981_av1_dec_set_other_frames()
1818 cur_offset[mf_types[0] - V4L2_AV1_REF_LAST_FRAME] <= MAX_FRAME_DISTANCE && in rockchip_vpu981_av1_dec_set_other_frames()
1819 cur_offset[mf_types[0] - V4L2_AV1_REF_LAST_FRAME] >= -MAX_FRAME_DISTANCE) { in rockchip_vpu981_av1_dec_set_other_frames()
1858 cur_offset[mf_types[1] - V4L2_AV1_REF_LAST_FRAME] <= MAX_FRAME_DISTANCE && in rockchip_vpu981_av1_dec_set_other_frames()
1859 cur_offset[mf_types[1] - V4L2_AV1_REF_LAST_FRAME] >= -MAX_FRAME_DISTANCE) { in rockchip_vpu981_av1_dec_set_other_frames()
1898 cur_offset[mf_types[2] - V4L2_AV1_REF_LAST_FRAME] <= MAX_FRAME_DISTANCE && in rockchip_vpu981_av1_dec_set_other_frames()
1899 cur_offset[mf_types[2] - V4L2_AV1_REF_LAST_FRAME] >= -MAX_FRAME_DISTANCE) { in rockchip_vpu981_av1_dec_set_other_frames()
1929 hantro_reg_write(vpu, &av1_cur_last_offset, cur_offset[ in rockchip_vpu981_av1_dec_set_reference_frames()
1652 int cur_offset[V4L2_AV1_TOTAL_REFS_PER_FRAME - 1]; rockchip_vpu981_av1_dec_set_other_frames() local
[all...]
/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()
[all...]
/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Dinit.c462 int max_offset, cur_offset; in mt7603_init_txpower() local
474 cur_offset = mt7603_txpower_signed(rate_power[i]); in mt7603_init_txpower()
475 max_offset = max(max_offset, cur_offset); in mt7603_init_txpower()
/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()

12