Home
last modified time | relevance | path

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

12

/Linux-v4.19/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()
49 u32 cur_offset = 0; in btrfs_find_name_in_ext_backref() local
61 while (cur_offset < item_size) { in btrfs_find_name_in_ext_backref()
62 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in btrfs_find_name_in_ext_backref()
74 cur_offset += ref_name_len + sizeof(*extref); in btrfs_find_name_in_ext_backref()
Dfile.c2410 u64 cur_offset; in btrfs_punch_hole() local
2551 cur_offset = lockstart; in btrfs_punch_hole()
2552 len = lockend - cur_offset; in btrfs_punch_hole()
2553 while (cur_offset < lockend) { in btrfs_punch_hole()
2555 cur_offset, lockend + 1, in btrfs_punch_hole()
2562 if (cur_offset < drop_end && cur_offset < ino_size) { in btrfs_punch_hole()
2564 cur_offset, drop_end); in btrfs_punch_hole()
2578 cur_offset = drop_end; in btrfs_punch_hole()
2601 ret = find_first_non_hole(inode, &cur_offset, &len); in btrfs_punch_hole()
2634 if (cur_offset < ino_size && cur_offset < drop_end) { in btrfs_punch_hole()
[all …]
Dinode.c1266 u64 cur_offset; in run_delalloc_nocow() local
1297 cur_offset = start; in run_delalloc_nocow()
1300 cur_offset, 0); in run_delalloc_nocow()
1318 cur_offset = cow_start; in run_delalloc_nocow()
1342 if (found_key.offset > cur_offset) { in run_delalloc_nocow()
1392 cur_offset = cow_start; in run_delalloc_nocow()
1400 disk_bytenr += cur_offset - found_key.offset; in run_delalloc_nocow()
1401 num_bytes = min(end + 1, extent_end) - cur_offset; in run_delalloc_nocow()
1422 cur_offset = cow_start; in run_delalloc_nocow()
1448 cow_start = cur_offset; in run_delalloc_nocow()
[all …]
Dtree-log.c1070 u32 cur_offset = 0; in __add_inode_ref() local
1079 while (cur_offset < item_size) { in __add_inode_ref()
1080 extref = (struct btrfs_inode_extref *)(base + cur_offset); in __add_inode_ref()
1127 cur_offset += victim_name_len + sizeof(*extref); in __add_inode_ref()
1525 u32 cur_offset = 0; in count_inode_extrefs() local
1541 cur_offset = 0; in count_inode_extrefs()
1543 while (cur_offset < item_size) { in count_inode_extrefs()
1544 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in count_inode_extrefs()
1549 cur_offset += name_len + sizeof(*extref); in count_inode_extrefs()
4715 u32 cur_offset = 0; in btrfs_check_ref_name_override() local
[all …]
Dbackref.c2063 u32 cur_offset; local
2091 cur_offset = 0;
2093 while (cur_offset < item_size) {
2096 extref = (struct btrfs_inode_extref *)(ptr + cur_offset);
2104 cur_offset += btrfs_inode_extref_name_len(eb, extref);
2105 cur_offset += sizeof(*extref);
Dsend.c1172 u64 cur_offset; member
1229 offset == bctx->cur_offset) { in __iterate_backrefs()
1377 backref_ctx->cur_offset = data_offset; in find_extent_clone()
3591 u32 cur_offset = 0; in is_ancestor() local
3611 while (cur_offset < item_size) { in is_ancestor()
3621 (ptr + cur_offset); in is_ancestor()
3624 cur_offset += sizeof(*extref); in is_ancestor()
3625 cur_offset += btrfs_inode_extref_name_len(leaf, in is_ancestor()
3629 cur_offset = item_size; in is_ancestor()
6362 u32 cur_offset = 0; in compare_refs() local
[all …]
Drelocation.c3062 u64 cur_offset; in prealloc_file_extent_cluster() local
3073 cur_offset = prealloc_start; in prealloc_file_extent_cluster()
3083 if (cur_offset < start) in prealloc_file_extent_cluster()
3085 cur_offset, start - cur_offset); in prealloc_file_extent_cluster()
3089 cur_offset = end + 1; in prealloc_file_extent_cluster()
3095 if (cur_offset < prealloc_end) in prealloc_file_extent_cluster()
3097 cur_offset, prealloc_end + 1 - cur_offset); in prealloc_file_extent_cluster()
Dvolumes.c6714 u32 cur_offset; in btrfs_read_sys_array() local
6749 cur_offset = 0; in btrfs_read_sys_array()
6751 while (cur_offset < array_size) { in btrfs_read_sys_array()
6754 if (cur_offset + len > array_size) in btrfs_read_sys_array()
6761 cur_offset += len; in btrfs_read_sys_array()
6770 if (cur_offset + len > array_size) in btrfs_read_sys_array()
6777 num_stripes, cur_offset); in btrfs_read_sys_array()
6786 type, cur_offset); in btrfs_read_sys_array()
6792 if (cur_offset + len > array_size) in btrfs_read_sys_array()
6801 (u32)key.type, cur_offset); in btrfs_read_sys_array()
[all …]
/Linux-v4.19/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()
1012 sgc->cur_offset += offsetof(struct atto_ioctl, data.byte) in hba_ioctl_callback()
1824 int offset = (u8 *)sgc->cur_offset - (u8 *)a->vda_buffer; in get_physaddr_vda()
1860 sgc.cur_offset = a->vda_buffer + VDA_BUFFER_HEADER_SZ; in esas2r_read_vda()
1945 u32 offset = (u8 *)sgc->cur_offset - (u8 *)fs; in get_physaddr_fs_api()
1989 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.c758 if (likely(sgc->cur_offset == sgc->exp_offset)) { in get_physaddr_from_sgc()
782 } else if (sgc->cur_offset < sgc->exp_offset) { in get_physaddr_from_sgc()
795 (sgc->cur_offset - sgc->exp_offset); in get_physaddr_from_sgc()
801 sgc->exp_offset - sgc->cur_offset); in get_physaddr_from_sgc()
856 sgc.cur_offset = NULL; in esas2r_queuecommand()
/Linux-v4.19/fs/squashfs/
Dfile.c249 int cur_offset = squashfs_i(inode)->offset; in fill_meta_index() local
271 cur_offset = meta_entry->offset; in fill_meta_index()
278 cur_offset, cur_data_block); in fill_meta_index()
290 &cur_index_block, &cur_offset); in fill_meta_index()
307 meta_entry->offset = cur_offset; in fill_meta_index()
321 *index_offset = cur_offset; in fill_meta_index()
/Linux-v4.19/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-v4.19/arch/arm64/net/
Dbpf_jit_comp.c198 int cur_offset; in build_prologue() local
239 cur_offset = ctx->idx - idx0; in build_prologue()
240 if (cur_offset != PROLOGUE_OFFSET) { in build_prologue()
242 cur_offset, PROLOGUE_OFFSET); in build_prologue()
265 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
266 #define jmp_offset (out_offset - (cur_offset)) in emit_bpf_tail_call()
309 out_offset = cur_offset; in emit_bpf_tail_call()
310 if (cur_offset != out_offset) { in emit_bpf_tail_call()
312 cur_offset, out_offset); in emit_bpf_tail_call()
316 #undef cur_offset in emit_bpf_tail_call()
/Linux-v4.19/drivers/mtd/
Dmtdpart.c327 uint64_t cur_offset) in allocate_partition() argument
437 slave->offset = cur_offset; in allocate_partition()
439 tmp = cur_offset; in allocate_partition()
440 slave->offset = cur_offset; in allocate_partition()
446 (unsigned long long)cur_offset, (unsigned long long)slave->offset); in allocate_partition()
450 slave->offset = cur_offset; in allocate_partition()
704 uint64_t cur_offset = 0; in add_mtd_partitions() local
710 slave = allocate_partition(master, parts + i, i, cur_offset); in add_mtd_partitions()
725 cur_offset = slave->offset + slave->mtd.size; in add_mtd_partitions()
/Linux-v4.19/scripts/
Drecordmcount.pl483 foreach my $cur_offset (@offsets) {
484 printf FILE "\t%s %s + %d\n", $type, $ref_func, $cur_offset - $offset;
/Linux-v4.19/drivers/gpu/drm/vmwgfx/
Dvmwgfx_surface.c285 const struct vmw_surface_offset *cur_offset = &srf->offsets[i]; in vmw_surface_dma_encode() local
292 body->guest.ptr.offset += cur_offset->bo_offset; in vmw_surface_dma_encode()
296 body->host.face = cur_offset->face; in vmw_surface_dma_encode()
297 body->host.mipmap = cur_offset->mip; in vmw_surface_dma_encode()
727 struct vmw_surface_offset *cur_offset; in vmw_surface_define_ioctl() local
811 cur_offset = srf->offsets; in vmw_surface_define_ioctl()
819 cur_offset->face = i; in vmw_surface_define_ioctl()
820 cur_offset->mip = j; in vmw_surface_define_ioctl()
821 cur_offset->bo_offset = cur_bo_offset; in vmw_surface_define_ioctl()
824 ++cur_offset; in vmw_surface_define_ioctl()
/Linux-v4.19/arch/arm/net/
Dbpf_jit_32.c1127 #define cur_offset (ctx->idx - idx0) in emit_bpf_tail_call() macro
1128 #define jmp_offset (out_offset - (cur_offset) - 2) in emit_bpf_tail_call()
1185 out_offset = cur_offset; in emit_bpf_tail_call()
1186 if (cur_offset != out_offset) { in emit_bpf_tail_call()
1188 cur_offset, out_offset); in emit_bpf_tail_call()
1192 #undef cur_offset in emit_bpf_tail_call()
/Linux-v4.19/include/drm/
Ddrm_dp_mst_helper.h372 u8 cur_offset; member
/Linux-v4.19/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-v4.19/fs/ceph/
Daddr.c1067 u64 cur_offset = page_offset(pages[i]); in ceph_writepages_start() local
1068 if (offset + len != cur_offset) { in ceph_writepages_start()
1072 cur_offset - offset); in ceph_writepages_start()
1081 offset = cur_offset; in ceph_writepages_start()
/Linux-v4.19/fs/
Ddirect-io.c794 loff_t cur_offset = sdio->cur_page_fs_offset; in dio_send_cur_page() local
813 cur_offset != bio_next_offset) in dio_send_cur_page()
/Linux-v4.19/drivers/gpu/drm/
Ddrm_dp_mst_topology.c1511 len = txmsg->cur_len - txmsg->cur_offset; in process_single_tx_qlock()
1525 memcpy(&chunk[idx], &txmsg->msg[txmsg->cur_offset], tosend); in process_single_tx_qlock()
1536 txmsg->cur_offset += tosend; in process_single_tx_qlock()
1537 if (txmsg->cur_offset == txmsg->cur_len) { in process_single_tx_qlock()

12