| /linux/drivers/firmware/efi/ |
| H A D | mokvar-table.c | 105 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 D | bpf_arena_alloc.h | 25 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 D | dirty_ring.c | 121 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 D | trace_btf.c | 77 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 D | file.c | 984 u64 cur_offset; in btrfs_check_nocow_lock() local 1008 cur_offset = lockstart; in btrfs_check_nocow_lock() 1009 while (cur_offset < lockend) { in btrfs_check_nocow_lock() 1010 u64 num_bytes = lockend - cur_offset + 1; in btrfs_check_nocow_lock() 1012 ret = can_nocow_extent(inode, cur_offset, &num_bytes, NULL, nowait); in btrfs_check_nocow_lock() 1019 if (cur_offset == lockstart) in btrfs_check_nocow_lock() 1023 cur_offset += num_bytes; in btrfs_check_nocow_lock() 1032 if (cur_offset > lockstart) { in btrfs_check_nocow_lock() 1033 *write_bytes = min_t(size_t, *write_bytes, cur_offset - pos); in btrfs_check_nocow_lock() 2410 u64 cur_offset; in btrfs_replace_file_extents() local [all …]
|
| H A D | fiemap.c | 446 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 D | inode.c | 2105 u64 cur_offset = start; in run_delalloc_nocow() local 2137 while (cur_offset <= end) { in run_delalloc_nocow() 2147 cur_offset, 0); in run_delalloc_nocow() 2201 if (found_key.offset > cur_offset) { in run_delalloc_nocow() 2203 cow_start = cur_offset; in run_delalloc_nocow() 2204 cur_offset = found_key.offset; in run_delalloc_nocow() 2227 if (extent_end <= cur_offset) { in run_delalloc_nocow() 2232 nocow_args.start = cur_offset; in run_delalloc_nocow() 2253 cow_start = cur_offset; in run_delalloc_nocow() 2254 cur_offset = extent_end; in run_delalloc_nocow() [all …]
|
| H A D | compression.c | 1213 u32 cur_offset; in btrfs_decompress_buf2page() local 1215 cur_offset = decompressed; in btrfs_decompress_buf2page() 1217 while (cur_offset < decompressed + buf_len) { in btrfs_decompress_buf2page() 1236 copy_start = max(cur_offset, bvec_offset); in btrfs_decompress_buf2page() 1251 cur_offset += copy_len; in btrfs_decompress_buf2page()
|
| H A D | tree-log.c | 1272 u32 cur_offset = 0; in unlink_extrefs_not_in_log() local 1274 while (cur_offset < item_size) { in unlink_extrefs_not_in_log() 1280 extref = (struct btrfs_inode_extref *)(base + cur_offset); in unlink_extrefs_not_in_log() 1314 cur_offset += victim_name.len + sizeof(*extref); in unlink_extrefs_not_in_log() 1769 u32 cur_offset = 0; in count_inode_extrefs() local 1785 cur_offset = 0; in count_inode_extrefs() 1787 while (cur_offset < item_size) { in count_inode_extrefs() 1788 extref = (struct btrfs_inode_extref *) (ptr + cur_offset); in count_inode_extrefs() 1793 cur_offset += name_len + sizeof(*extref); in count_inode_extrefs() 5701 u32 cur_offset = 0; in btrfs_check_ref_name_override() local [all …]
|
| H A D | backref.c | 2653 u32 cur_offset; in iterate_inode_extrefs() local 2677 cur_offset = 0; in iterate_inode_extrefs() 2679 while (cur_offset < item_size) { in iterate_inode_extrefs() 2682 extref = (struct btrfs_inode_extref *)(ptr + cur_offset); in iterate_inode_extrefs() 2690 cur_offset += btrfs_inode_extref_name_len(eb, extref); in iterate_inode_extrefs() 2691 cur_offset += sizeof(*extref); in iterate_inode_extrefs()
|
| /linux/drivers/mtd/ |
| H A D | mtdpart.c | 43 int partno, uint64_t cur_offset) in allocate_partition() argument 97 child->part.offset = cur_offset; in allocate_partition() 99 tmp = cur_offset; in allocate_partition() 100 child->part.offset = cur_offset; in allocate_partition() 106 (unsigned long long)cur_offset, in allocate_partition() 111 child->part.offset = cur_offset; in allocate_partition() 399 uint64_t cur_offset = 0; in add_mtd_partitions() local 406 child = allocate_partition(parent, parts + i, i, cur_offset); in add_mtd_partitions() 438 cur_offset = child->part.offset + child->part.size; in add_mtd_partitions()
|
| /linux/drivers/vfio/pci/pds/ |
| H A D | lm.c | 135 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 D | esas2r_flash.c | 144 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 D | esas2r_ioctl.c | 95 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 D | esas2r_io.c | 312 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 D | esas2r_main.c | 765 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 D | adi-test.c | 208 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 D | clk-sparx5.c | 81 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 D | hash-test-template.h | 156 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 D | file.c | 238 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 D | recordmcount.pl | 442 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 D | migrate.c | 37 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/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_surface.c | 292 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/arch/arm/net/ |
| H A D | bpf_jit_32.c | 1404 #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/drivers/scsi/bnx2i/ |
| H A D | bnx2i_iscsi.c | 60 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()
|