| /linux/fs/btrfs/ |
| H A D | ordered-data.c | 28 if (entry->file_offset + entry->num_bytes < entry->file_offset) in entry_end() 30 return entry->file_offset + entry->num_bytes; in entry_end() 36 static struct rb_node *tree_insert(struct rb_root *root, u64 file_offset, in tree_insert() argument 47 if (file_offset < entry->file_offset) in tree_insert() 49 else if (file_offset >= entry_end(entry)) in tree_insert() 64 static struct rb_node *__tree_search(struct rb_root *root, u64 file_offset, in __tree_search() argument 78 if (file_offset < entry->file_offset) in __tree_search() 80 else if (file_offset >= entry_end(entry)) in __tree_search() 88 while (prev && file_offset >= entry_end(prev_entry)) { in __tree_search() 94 if (file_offset < entry_end(prev_entry)) in __tree_search() [all …]
|
| H A D | ordered-data.h | 100 u64 file_offset; member 167 struct folio *folio, u64 file_offset, u64 len, 170 struct folio *folio, u64 file_offset, 174 u64 file_offset, u64 io_size); 189 struct btrfs_inode *inode, u64 file_offset, 194 u64 file_offset); 204 btrfs_lookup_first_ordered_extent(struct btrfs_inode *inode, u64 file_offset); 206 struct btrfs_inode *inode, u64 file_offset, u64 len); 209 u64 file_offset,
|
| H A D | reflink.c | 56 const u64 file_offset, in copy_inline_to_page() argument 64 const u64 range_end = file_offset + block_size - 1; in copy_inline_to_page() 72 ASSERT(IS_ALIGNED(file_offset, block_size)); in copy_inline_to_page() 80 ret = btrfs_delalloc_reserve_space(inode, &data_reserved, file_offset, in copy_inline_to_page() 85 folio = __filemap_get_folio(mapping, file_offset >> PAGE_SHIFT, in copy_inline_to_page() 97 btrfs_clear_extent_bit(&inode->io_tree, file_offset, range_end, in copy_inline_to_page() 99 ret = btrfs_set_extent_delalloc(inode, file_offset, range_end, 0, NULL); in copy_inline_to_page() 117 memcpy_to_folio(folio, offset_in_folio(folio, file_offset), data_start, in copy_inline_to_page() 121 offset_in_folio(folio, file_offset), in copy_inline_to_page() 143 btrfs_folio_set_uptodate(fs_info, folio, file_offset, block_size); in copy_inline_to_page() [all …]
|
| H A D | bio.h | 36 u64 file_offset; member 117 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_inode *inode, u64 file_offset, 120 struct btrfs_inode *inode, u64 file_offset,
|
| H A D | direct-io.c | 26 u64 file_offset; member 656 dip->file_offset, dip->bytes, bio->bi_status); in btrfs_dio_end_io() 661 dip->file_offset, dip->bytes, in btrfs_dio_end_io() 664 btrfs_unlock_dio_extent(&inode->io_tree, dip->file_offset, in btrfs_dio_end_io() 665 dip->file_offset + dip->bytes - 1, NULL); in btrfs_dio_end_io() 696 ret = btrfs_split_extent_map(bbio->inode, bbio->file_offset, in btrfs_extract_ordered_extent() 711 loff_t file_offset) in btrfs_dio_submit_io() argument 718 btrfs_bio_init(bbio, BTRFS_I(iter->inode), file_offset, in btrfs_dio_submit_io() 721 dip->file_offset = file_offset; in btrfs_dio_submit_io() 739 file_offset, dip->bytes, in btrfs_dio_submit_io()
|
| H A D | bio.c | 44 void btrfs_bio_init(struct btrfs_bio *bbio, struct btrfs_inode *inode, u64 file_offset, in btrfs_bio_init() argument 54 bbio->file_offset = file_offset; in btrfs_bio_init() 67 struct btrfs_inode *inode, u64 file_offset, in btrfs_bio_alloc() argument 75 btrfs_bio_init(bbio, inode, file_offset, end_io, private); in btrfs_bio_alloc() 92 btrfs_bio_init(bbio, orig_bbio->inode, orig_bbio->file_offset, NULL, orig_bbio); in btrfs_split_bio() 93 orig_bbio->file_offset += map_length; in btrfs_split_bio() 223 repair_bbio->file_offset, fs_info->sectorsize, in btrfs_end_repair_bio() 261 failed_bbio->file_offset + bio_offset); in repair_one_sector() 293 btrfs_bio_init(repair_bbio, failed_bbio->inode, failed_bbio->file_offset + bio_offset, in repair_one_sector() 549 orig_bbio->file_offset, NULL, NULL); in btrfs_submit_mirrored_bio() [all …]
|
| H A D | extent_io.c | 583 if (bbio->file_offset < i_size_read(inode)) in end_bbio_data_read() 717 u64 disk_bytenr, loff_t file_offset) in btrfs_bio_is_contig() argument 734 return bio_ctrl->next_file_offset == file_offset && in btrfs_bio_is_contig() 740 u64 disk_bytenr, u64 file_offset) in alloc_new_bio() argument 746 file_offset, bio_ctrl->end_io_func, NULL); in alloc_new_bio() 751 bio_ctrl->next_file_offset = file_offset; in alloc_new_bio() 757 ordered = btrfs_lookup_ordered_extent(inode, file_offset); in alloc_new_bio() 760 ordered->file_offset + in alloc_new_bio() 761 ordered->disk_num_bytes - file_offset); in alloc_new_bio() 796 loff_t file_offset = folio_pos(folio) + pg_offset; in submit_extent_folio() local [all …]
|
| H A D | compression.c | 321 ASSERT(IS_ALIGNED(ordered->file_offset, fs_info->sectorsize)); in btrfs_submit_compressed_write() 330 cb->start = ordered->file_offset; in btrfs_submit_compressed_write() 377 u64 cur = cb->orig_bbio->file_offset + orig_bio->bi_iter.bi_size; in add_ra_bio_pages() 535 u64 file_offset = bbio->file_offset; in btrfs_submit_compressed_read() local 545 em = btrfs_lookup_extent_mapping(em_tree, file_offset, fs_info->sectorsize); in btrfs_submit_compressed_read() 555 cb = alloc_compressed_bio(inode, file_offset, REQ_OP_READ, in btrfs_submit_compressed_read()
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pfnmap.c | 32 static off_t file_offset; variable 111 int err = find_ram_target(&file_offset, pagesize); in pfnmap_init() 117 file_offset = 0; in pfnmap_init() 130 addr = mmap(NULL, size, PROT_READ, MAP_SHARED, fd, file_offset); in pfnmap_init() 158 fd, file_offset); in FIXTURE_SETUP() 210 fd, file_offset); in TEST_F()
|
| /linux/tools/perf/util/ |
| H A D | session.c | 48 u64 file_offset, 136 session->tool, event->file_offset, in ordered_events__deliver_event() 808 u64 timestamp, u64 file_offset, const char *file_path) in perf_session__queue_event() argument 810 return ordered_events__queue(&s->ordered_events, event, timestamp, file_offset, file_path); in perf_session__queue_event() 1085 u64 file_offset, struct perf_sample *sample, in dump_event() argument 1092 file_offset, file_path, event->header.size, event->header.type); in dump_event() 1101 printf("%#" PRIx64 " [%#x]: PERF_RECORD_%s", file_offset, in dump_event() 1441 const struct perf_tool *tool, u64 file_offset, in machines__deliver_event() argument 1447 dump_event(evlist, event, file_offset, sample, file_path); in machines__deliver_event() 1551 u64 file_offset, in perf_session__deliver_event() argument [all …]
|
| H A D | ordered-events.h | 11 u64 file_offset; member 57 u64 timestamp, u64 file_offset, const char *file_path);
|
| H A D | auxtrace.c | 445 off_t file_offset, size_t sz) in auxtrace_queues__add_indexed_event() argument 451 err = perf_session__peek_event(session, file_offset, buf, in auxtrace_queues__add_indexed_event() 462 file_offset += event->header.size; in auxtrace_queues__add_indexed_event() 464 file_offset, NULL); in auxtrace_queues__add_indexed_event() 957 union perf_event *event, off_t file_offset) in auxtrace_index__auxtrace_event() argument 967 auxtrace_index->entries[nr].file_offset = file_offset; in auxtrace_index__auxtrace_event() 981 ent.file_offset = auxtrace_index->entries[i].file_offset; in auxtrace_index__do_write() 1026 auxtrace_index->entries[nr].file_offset = in auxtrace_index__process_entry() 1027 bswap_64(ent.file_offset); in auxtrace_index__process_entry() 1030 auxtrace_index->entries[nr].file_offset = ent.file_offset; in auxtrace_index__process_entry() [all …]
|
| H A D | session.h | 123 int perf_session__peek_event(struct perf_session *session, off_t file_offset, 136 u64 timestamp, u64 file_offset, const char *file_path);
|
| H A D | ordered-events.c | 195 u64 timestamp, u64 file_offset, const char *file_path) in ordered_events__queue() argument 219 oevent->file_offset = file_offset; in ordered_events__queue()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | f_mass_storage.c | 614 loff_t file_offset, file_offset_tmp; in do_read() local 644 file_offset = ((loff_t) lba) << curlun->blkbits; in do_read() 660 curlun->file_length - file_offset); in do_read() 676 file_offset >> curlun->blkbits; in do_read() 684 file_offset_tmp = file_offset; in do_read() 688 (unsigned long long)file_offset, (int)nread); in do_read() 700 file_offset += nread; in do_read() 716 file_offset >> curlun->blkbits; in do_read() 745 loff_t usb_offset, file_offset, file_offset_tmp; in do_write() local 793 file_offset = usb_offset = ((loff_t) lba) << curlun->blkbits; in do_write() [all …]
|
| /linux/kernel/cgroup/ |
| H A D | pids.c | 410 .file_offset = offsetof(struct pids_cgroup, events_file), 416 .file_offset = offsetof(struct pids_cgroup, events_local_file), 442 .file_offset = offsetof(struct pids_cgroup, events_file),
|
| /linux/drivers/net/wireless/silabs/wfx/ |
| H A D | fwio.c | 100 const struct firmware **fw, int *file_offset) in get_firmware() argument 125 *file_offset = 0; in get_firmware() 128 *file_offset = 8; in get_firmware()
|
| /linux/drivers/usb/core/ |
| H A D | devices.c | 391 loff_t *skip_bytes, loff_t *file_offset, in usb_device_dump() argument 486 *file_offset += length; in usb_device_dump() 499 file_offset, childdev, bus, in usb_device_dump()
|
| /linux/mm/ |
| H A D | hugetlb_cgroup.c | 733 .file_offset = MEMFILE_OFFSET(struct hugetlb_cgroup, events_file[0]), 739 .file_offset = MEMFILE_OFFSET(struct hugetlb_cgroup, events_local_file[0]), 821 if (tmpl->file_offset) { in hugetlb_cgroup_cfttypes_init() 822 unsigned int offset = tmpl->file_offset; in hugetlb_cgroup_cfttypes_init() 824 cft->file_offset = MEMFILE_OFFSET0(offset) + in hugetlb_cgroup_cfttypes_init()
|
| /linux/drivers/gpu/drm/etnaviv/ |
| H A D | etnaviv_dump.h | 25 __le32 file_offset; member
|
| /linux/drivers/iommu/iommufd/ |
| H A D | main.c | 26 size_t file_offset; member 141 if (ops->file_offset) { in iommufd_object_abort_and_destroy() 142 struct file **filep = ((void *)obj) + ops->file_offset; in iommufd_object_abort_and_destroy() 688 .file_offset = (offsetof(_struct, _filep) + \
|
| /linux/fs/ceph/ |
| H A D | ioctl.h | 57 __u64 file_offset; /* in+out: file offset */ member
|
| /linux/tools/power/acpi/os_specific/service_layers/ |
| H A D | oslinuxtbl.c | 37 acpi_size file_offset, 1197 acpi_size file_offset, in osl_read_table_from_file() argument 1215 fseek(table_file, file_offset, SEEK_SET); in osl_read_table_from_file() 1266 fseek(table_file, file_offset, SEEK_SET); in osl_read_table_from_file()
|
| /linux/include/sound/sof/ |
| H A D | ext_manifest4.h | 90 uint32_t file_offset; member
|
| /linux/lib/ |
| H A D | test_firmware.c | 105 size_t file_offset; member 235 test_fw_config->file_offset = 0; in __test_firmware_config_init() 312 "file_offset:\t%zu\n", test_fw_config->file_offset); in config_show() 579 &test_fw_config->file_offset); in config_file_offset_store() 590 return test_dev_config_show_size_t(buf, test_fw_config->file_offset); in config_file_offset_show() 881 test_fw_config->file_offset); in test_fw_run_batch_request()
|