Home
last modified time | relevance | path

Searched refs:map_data (Results 1 – 7 of 7) sorted by relevance

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dmmap.c6 struct map_data { struct
19 const size_t map_sz = roundup_page(sizeof(struct map_data)); in test_mmap() argument
28 struct map_data *map_data; in test_mmap() local
90 map_data = map_mmaped; in test_mmap()
96 CHECK_FAIL(map_data->val[0]); in test_mmap()
97 CHECK_FAIL(map_data->val[1]); in test_mmap()
98 CHECK_FAIL(map_data->val[2]); in test_mmap()
99 CHECK_FAIL(map_data->val[far]); in test_mmap()
115 CHECK_FAIL(map_data->val[0] != 111); in test_mmap()
116 CHECK_FAIL(map_data->val[1] != 222); in test_mmap()
[all …]
/linux-6.6.21/block/
Dblk-map.c131 static int bio_copy_user_iov(struct request *rq, struct rq_map_data *map_data, in bio_copy_user_iov() argument
140 unsigned int offset = map_data ? offset_in_page(map_data->offset) : 0; in bio_copy_user_iov()
151 bmd->is_our_pages = !map_data; in bio_copy_user_iov()
152 bmd->is_null_mapped = (map_data && map_data->null_mapped); in bio_copy_user_iov()
162 if (map_data) { in bio_copy_user_iov()
163 nr_pages = 1U << map_data->page_order; in bio_copy_user_iov()
164 i = map_data->offset / PAGE_SIZE; in bio_copy_user_iov()
174 if (map_data) { in bio_copy_user_iov()
175 if (i == map_data->nr_entries * nr_pages) { in bio_copy_user_iov()
180 page = map_data->pages[i / nr_pages]; in bio_copy_user_iov()
[all …]
/linux-6.6.21/arch/arm64/kvm/hyp/
Dpgtable.c488 struct hyp_map_data map_data = { in kvm_pgtable_hyp_map() local
494 .arg = &map_data, in kvm_pgtable_hyp_map()
497 ret = hyp_set_prot_attr(prot, &map_data.attr); in kvm_pgtable_hyp_map()
1039 struct stage2_map_data map_data = { in kvm_pgtable_stage2_map() local
1050 .arg = &map_data, in kvm_pgtable_stage2_map()
1056 ret = stage2_set_prot_attr(pgt, prot, &map_data.attr); in kvm_pgtable_stage2_map()
1069 struct stage2_map_data map_data = { in kvm_pgtable_stage2_set_owner() local
1080 .arg = &map_data, in kvm_pgtable_stage2_set_owner()
1356 struct stage2_map_data map_data = { in kvm_pgtable_stage2_create_unlinked() local
1367 .arg = &map_data, in kvm_pgtable_stage2_create_unlinked()
[all …]
/linux-6.6.21/tools/testing/selftests/bpf/progs/
Drefcounted_kptr.c341 long err, tree_data, map_data; \
357 map_data = err; \
359 return tree_data + map_data; \
/linux-6.6.21/drivers/scsi/
Dst.h51 struct rq_map_data map_data; member
Dst.c546 struct rq_map_data *mdata = &SRpnt->stp->buffer->map_data; in st_scsi_execute()
601 struct rq_map_data *mdata = &STp->buffer->map_data; in st_do_scsi()
3981 STbuffer->map_data.offset = 0; in normalize_buffer()
4872 struct rq_map_data *mdata = &STbp->map_data; in sgl_map_user_pages()
Dsg.c1739 struct rq_map_data *md, map_data; in sg_start_req() local
1784 md = &map_data; in sg_start_req()