Home
last modified time | relevance | path

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

12

/Linux-v5.4/fs/btrfs/
Dinode-item.c19 u32 cur_offset = 0; in btrfs_find_name_in_backref() local
24 while (cur_offset < item_size) { in btrfs_find_name_in_backref()
25 ref = (struct btrfs_inode_ref *)(ptr + cur_offset); in btrfs_find_name_in_backref()
28 cur_offset += len + sizeof(*ref); in btrfs_find_name_in_backref()
45 u32 cur_offset = 0; in btrfs_find_name_in_ext_backref() local
57 while (cur_offset < item_size) { in btrfs_find_name_in_ext_backref()
58 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
67 cur_offset += ref_name_len + sizeof(*extref); in btrfs_find_name_in_ext_backref()
Dfile.c2529 u64 cur_offset; in btrfs_punch_hole_range() local
2568 cur_offset = start; in btrfs_punch_hole_range()
2569 while (cur_offset < end) { in btrfs_punch_hole_range()
2571 cur_offset, end + 1, &drop_end, in btrfs_punch_hole_range()
2588 if (!clone_info && cur_offset < drop_end && in btrfs_punch_hole_range()
2589 cur_offset < ino_size) { in btrfs_punch_hole_range()
2591 cur_offset, drop_end); in btrfs_punch_hole_range()
2605 u64 clone_len = drop_end - cur_offset; in btrfs_punch_hole_range()
2618 cur_offset = drop_end; in btrfs_punch_hole_range()
2640 ret = find_first_non_hole(inode, &cur_offset, &len); in btrfs_punch_hole_range()
[all …]
Dinode.c1327 u64 cur_offset = start; in run_delalloc_nocow() local
1361 cur_offset, 0); in run_delalloc_nocow()
1386 cur_offset = cow_start; in run_delalloc_nocow()
1418 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1483 cur_offset = cow_start; in run_delalloc_nocow()
1491 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1492 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1513 cur_offset = cow_start; in run_delalloc_nocow()
1541 cow_start = cur_offset; in run_delalloc_nocow()
1542 cur_offset = extent_end; in run_delalloc_nocow()
[all …]
Dtree-log.c1090 u32 cur_offset = 0; in __add_inode_ref() local
1099 while (cur_offset < item_size) { in __add_inode_ref()
1100 extref = (struct btrfs_inode_extref *)(base + cur_offset); in __add_inode_ref()
1147 cur_offset += victim_name_len + sizeof(*extref); in __add_inode_ref()
1604 u32 cur_offset = 0; in count_inode_extrefs() local
1620 cur_offset = 0; in count_inode_extrefs()
1622 while (cur_offset < item_size) { in count_inode_extrefs()
1623 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in count_inode_extrefs()
1628 cur_offset += name_len + sizeof(*extref); in count_inode_extrefs()
4862 u32 cur_offset = 0; in btrfs_check_ref_name_override() local
[all …]
Dbackref.c2073 u32 cur_offset; local
2097 cur_offset = 0;
2099 while (cur_offset < item_size) {
2102 extref = (struct btrfs_inode_extref *)(ptr + cur_offset);
2110 cur_offset += btrfs_inode_extref_name_len(eb, extref);
2111 cur_offset += sizeof(*extref);
Drelocation.c3152 u64 cur_offset; in prealloc_file_extent_cluster() local
3163 cur_offset = prealloc_start; in prealloc_file_extent_cluster()
3173 if (cur_offset < start) in prealloc_file_extent_cluster()
3175 cur_offset, start - cur_offset); in prealloc_file_extent_cluster()
3179 cur_offset = end + 1; in prealloc_file_extent_cluster()
3185 if (cur_offset < prealloc_end) in prealloc_file_extent_cluster()
3187 cur_offset, prealloc_end + 1 - cur_offset); in prealloc_file_extent_cluster()
Dsend.c1186 u64 cur_offset; member
1241 offset == bctx->cur_offset) { in __iterate_backrefs()
1374 backref_ctx->cur_offset = data_offset; in find_extent_clone()
3589 u32 cur_offset = 0; in is_ancestor() local
3609 while (cur_offset < item_size) { in is_ancestor()
3619 (ptr + cur_offset); in is_ancestor()
3622 cur_offset += sizeof(*extref); in is_ancestor()
3623 cur_offset += btrfs_inode_extref_name_len(leaf, in is_ancestor()
3627 cur_offset = item_size; in is_ancestor()
6391 u32 cur_offset = 0; in compare_refs() local
[all …]
Dvolumes.c7018 u32 cur_offset; in btrfs_read_sys_array() local
7053 cur_offset = 0; in btrfs_read_sys_array()
7055 while (cur_offset < array_size) { in btrfs_read_sys_array()
7058 if (cur_offset + len > array_size) in btrfs_read_sys_array()
7065 cur_offset += len; in btrfs_read_sys_array()
7074 if (cur_offset + len > array_size) in btrfs_read_sys_array()
7081 num_stripes, cur_offset); in btrfs_read_sys_array()
7090 type, cur_offset); in btrfs_read_sys_array()
7096 if (cur_offset + len > array_size) in btrfs_read_sys_array()
7105 (u32)key.type, cur_offset); in btrfs_read_sys_array()
[all …]
/Linux-v5.4/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()
1008 sgc->cur_offset += offsetof(struct atto_ioctl, data.byte) in hba_ioctl_callback()
1818 int offset = (u8 *)sgc->cur_offset - (u8 *)a->vda_buffer; in get_physaddr_vda()
1854 sgc.cur_offset = a->vda_buffer + VDA_BUFFER_HEADER_SZ; in esas2r_read_vda()
1939 u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; in get_physaddr_fs_api()
1983 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.c757 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
781 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
794 (sgc->cur_offset - sgc->exp_offset); in get_physaddr_from_sgc()
800 sgc->exp_offset - sgc->cur_offset); in get_physaddr_from_sgc()
855 sgc.cur_offset = NULL; in esas2r_queuecommand()
/Linux-v5.4/fs/squashfs/
Dfile.c236 int cur_offset = squashfs_i(inode)->offset; in fill_meta_index() local
258 cur_offset = meta_entry->offset; in fill_meta_index()
265 cur_offset, cur_data_block); in fill_meta_index()
277 &cur_index_block, &cur_offset); in fill_meta_index()
294 meta_entry->offset = cur_offset; in fill_meta_index()
308 *index_offset = cur_offset; in fill_meta_index()
/Linux-v5.4/tools/testing/selftests/sparc64/drivers/
Dadi-test.c212 unsigned long cur_offset; in pread_adi() local
215 cur_offset = offset; in pread_adi()
219 cur_offset); in pread_adi()
227 cur_offset += ret; in pread_adi()
267 unsigned long cur_offset; in pwrite_adi() local
270 cur_offset = offset; in pwrite_adi()
275 buf_sz - bytes_written, cur_offset); in pwrite_adi()
286 cur_offset += ret; in pwrite_adi()
/Linux-v5.4/arch/arm64/net/
Dbpf_jit_comp.c186 int cur_offset; in build_prologue() local
227 cur_offset = ctx->idx - idx0; in build_prologue()
228 if (cur_offset != PROLOGUE_OFFSET) { in build_prologue()
230 cur_offset, PROLOGUE_OFFSET); in build_prologue()
253 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
254 #define jmp_offset (out_offset - (cur_offset)) in emit_bpf_tail_call()
297 out_offset = cur_offset; in emit_bpf_tail_call()
298 if (cur_offset != out_offset) { in emit_bpf_tail_call()
300 cur_offset, out_offset); in emit_bpf_tail_call()
304 #undef cur_offset in emit_bpf_tail_call()
/Linux-v5.4/drivers/mtd/
Dmtdpart.c322 uint64_t cur_offset) in allocate_partition() argument
433 slave->offset = cur_offset; in allocate_partition()
435 tmp = cur_offset; in allocate_partition()
436 slave->offset = cur_offset; in allocate_partition()
442 (unsigned long long)cur_offset, (unsigned long long)slave->offset); in allocate_partition()
446 slave->offset = cur_offset; in allocate_partition()
715 uint64_t cur_offset = 0; in add_mtd_partitions() local
721 slave = allocate_partition(master, parts + i, i, cur_offset); in add_mtd_partitions()
745 cur_offset = slave->offset + slave->mtd.size; in add_mtd_partitions()
/Linux-v5.4/scripts/
Drecordmcount.pl491 foreach my $cur_offset (@offsets) {
492 printf FILE "\t%s %s + %d\n", $type, $ref_func, $cur_offset - $offset;
/Linux-v5.4/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c289 const struct vmw_surface_offset *cur_offset = &srf->offsets[i]; in vmw_surface_dma_encode() local
296 body->guest.ptr.offset += cur_offset->bo_offset; in vmw_surface_dma_encode()
300 body->host.face = cur_offset->face; in vmw_surface_dma_encode()
301 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode()
721 struct vmw_surface_offset *cur_offset; in vmw_surface_define_ioctl() local
803 cur_offset = srf->offsets; in vmw_surface_define_ioctl()
811 cur_offset->face = i; in vmw_surface_define_ioctl()
812 cur_offset->mip = j; in vmw_surface_define_ioctl()
813 cur_offset->bo_offset = cur_bo_offset; in vmw_surface_define_ioctl()
816 ++cur_offset; in vmw_surface_define_ioctl()
/Linux-v5.4/drivers/net/wireless/mediatek/mt76/mt7603/
Dinit.c476 int max_offset, cur_offset; in mt7603_init_txpower() local
487 cur_offset = mt7603_txpower_signed(rate_power[i]); in mt7603_init_txpower()
488 max_offset = max(max_offset, cur_offset); in mt7603_init_txpower()
/Linux-v5.4/arch/arm/net/
Dbpf_jit_32.c1141 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
1142 #define jmp_offset (out_offset - (cur_offset) - 2) in emit_bpf_tail_call()
1199 out_offset = cur_offset; in emit_bpf_tail_call()
1200 if (cur_offset != out_offset) { in emit_bpf_tail_call()
1202 cur_offset, out_offset); in emit_bpf_tail_call()
1206 #undef cur_offset in emit_bpf_tail_call()
/Linux-v5.4/include/drm/
Ddrm_dp_mst_helper.h393 u8 cur_offset; member
/Linux-v5.4/drivers/scsi/bnx2i/
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-v5.4/fs/ceph/
Daddr.c1058 u64 cur_offset = page_offset(pages[i]); in ceph_writepages_start() local
1059 if (offset + len != cur_offset) { in ceph_writepages_start()
1063 cur_offset - offset); in ceph_writepages_start()
1072 offset = cur_offset; in ceph_writepages_start()
/Linux-v5.4/fs/
Ddirect-io.c787 loff_t cur_offset = sdio->cur_page_fs_offset; in dio_send_cur_page() local
806 cur_offset != bio_next_offset) in dio_send_cur_page()

12