Home
last modified time | relevance | path

Searched refs:region_info (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.6/drivers/vfio/pci/pds/
Ddirty.c40 struct pds_lm_dirty_region_info *region_info; in pds_vfio_print_guest_region_info() local
45 region_info = kcalloc(max_regions, in pds_vfio_print_guest_region_info()
48 if (!region_info) in pds_vfio_print_guest_region_info()
52 dma_map_single(pdsc_dev, region_info, len, DMA_FROM_DEVICE); in pds_vfio_print_guest_region_info()
65 i, le64_to_cpu(region_info[i].dma_base), in pds_vfio_print_guest_region_info()
66 le32_to_cpu(region_info[i].page_count), in pds_vfio_print_guest_region_info()
67 region_info[i].page_size_log2); in pds_vfio_print_guest_region_info()
70 kfree(region_info); in pds_vfio_print_guest_region_info()
186 struct pds_lm_dirty_region_info *region_info; in pds_vfio_dirty_enable() local
243 len = sizeof(*region_info); in pds_vfio_dirty_enable()
[all …]
/Linux-v6.6/samples/vfio-mdev/
Dmdpy.c436 struct vfio_region_info *region_info, in mdpy_get_region_info() argument
439 if (region_info->index >= VFIO_PCI_NUM_REGIONS && in mdpy_get_region_info()
440 region_info->index != MDPY_DISPLAY_REGION) in mdpy_get_region_info()
443 switch (region_info->index) { in mdpy_get_region_info()
445 region_info->offset = 0; in mdpy_get_region_info()
446 region_info->size = MDPY_CONFIG_SPACE_SIZE; in mdpy_get_region_info()
447 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info()
452 region_info->offset = MDPY_MEMORY_BAR_OFFSET; in mdpy_get_region_info()
453 region_info->size = mdev_state->memsize; in mdpy_get_region_info()
454 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info()
[all …]
Dmbochs.c1036 struct vfio_region_info *region_info = &ext->base; in mbochs_get_region_info() local
1038 if (region_info->index >= MBOCHS_NUM_REGIONS) in mbochs_get_region_info()
1041 switch (region_info->index) { in mbochs_get_region_info()
1043 region_info->offset = 0; in mbochs_get_region_info()
1044 region_info->size = MBOCHS_CONFIG_SPACE_SIZE; in mbochs_get_region_info()
1045 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info()
1049 region_info->offset = MBOCHS_MEMORY_BAR_OFFSET; in mbochs_get_region_info()
1050 region_info->size = mdev_state->memsize; in mbochs_get_region_info()
1051 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info()
1056 region_info->offset = MBOCHS_MMIO_BAR_OFFSET; in mbochs_get_region_info()
[all …]
Dmtty.c137 struct mdev_region_info region_info[VFIO_PCI_NUM_REGIONS]; member
623 if (!mdev_state->region_info[index].size) in mdev_read_base()
645 mdev_state->region_info[index].start = ((u64)start_hi << 32) | in mdev_read_base()
682 if (!mdev_state->region_info[index].start) in mdev_access()
1045 struct vfio_region_info *region_info, in mtty_get_region_info() argument
1051 bar_index = region_info->index; in mtty_get_region_info()
1073 mdev_state->region_info[bar_index].size = size; in mtty_get_region_info()
1074 mdev_state->region_info[bar_index].vfio_offset = in mtty_get_region_info()
1077 region_info->size = size; in mtty_get_region_info()
1078 region_info->offset = MTTY_VFIO_PCI_INDEX_TO_OFFSET(bar_index); in mtty_get_region_info()
[all …]
/Linux-v6.6/drivers/fpga/tests/
Dfpga-region-test.c146 struct fpga_region_info region_info = { 0 }; in fpga_region_test_init() local
172 region_info.mgr = ctx->mgr; in fpga_region_test_init()
173 region_info.priv = ctx->bridge; in fpga_region_test_init()
174 region_info.get_bridges = fake_region_get_bridges; in fpga_region_test_init()
176 ctx->region = fpga_region_register_full(&ctx->region_pdev->dev, &region_info); in fpga_region_test_init()
/Linux-v6.6/drivers/media/radio/wl128x/
Dfmdrv.h89 struct region_info { struct
138 struct region_info region; /* Current selected band */
Dfmdrv_common.c36 static struct region_info region_configs[] = {
/Linux-v6.6/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.c2319 struct cudbg_region_info region_info[CTXT_CNM + 1] = { {0} }; in cudbg_dump_context_size() local
2325 rc = cudbg_get_ctxt_region_info(padap, region_info, mem_type); in cudbg_dump_context_size()
2330 if (!region_info[i].exist) { in cudbg_dump_context_size()
2337 size += (region_info[i].end - region_info[i].start + 1) / in cudbg_dump_context_size()
2394 struct cudbg_region_info region_info[CTXT_CNM + 1] = { {0} }; in cudbg_collect_dump_context() local
2405 rc = cudbg_get_ctxt_region_info(padap, region_info, mem_type); in cudbg_collect_dump_context()
2421 max_ctx_size = max(region_info[CTXT_EGRESS].end - in cudbg_collect_dump_context()
2422 region_info[CTXT_EGRESS].start + 1, in cudbg_collect_dump_context()
2423 region_info[CTXT_INGRESS].end - in cudbg_collect_dump_context()
2424 region_info[CTXT_INGRESS].start + 1); in cudbg_collect_dump_context()
[all …]
/Linux-v6.6/drivers/gpu/drm/amd/display/dmub/
Ddmub_srv.h219 const struct dmub_srv_region_info *region_info; member
/Linux-v6.6/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_srv.c461 if (params->region_info->num_regions != DMUB_NUM_WINDOWS) in dmub_srv_calc_fb_info()
469 &params->region_info->regions[i]; in dmub_srv_calc_fb_info()
/Linux-v6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c2087 struct dmub_srv_region_info region_info; in dm_dmub_sw_init() local
2190 &region_info); in dm_dmub_sw_init()
2201 r = amdgpu_bo_create_kernel(adev, region_info.fb_size, PAGE_SIZE, in dm_dmub_sw_init()
2214 fb_params.region_info = &region_info; in dm_dmub_sw_init()