Home
last modified time | relevance | path

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

/Linux-v5.15/samples/vfio-mdev/
Dmdpy.c429 struct vfio_region_info *region_info, in mdpy_get_region_info() argument
432 if (region_info->index >= VFIO_PCI_NUM_REGIONS && in mdpy_get_region_info()
433 region_info->index != MDPY_DISPLAY_REGION) in mdpy_get_region_info()
436 switch (region_info->index) { in mdpy_get_region_info()
438 region_info->offset = 0; in mdpy_get_region_info()
439 region_info->size = MDPY_CONFIG_SPACE_SIZE; in mdpy_get_region_info()
440 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info()
445 region_info->offset = MDPY_MEMORY_BAR_OFFSET; in mdpy_get_region_info()
446 region_info->size = mdev_state->memsize; in mdpy_get_region_info()
447 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mdpy_get_region_info()
[all …]
Dmbochs.c1012 struct vfio_region_info *region_info = &ext->base; in mbochs_get_region_info() local
1014 if (region_info->index >= MBOCHS_NUM_REGIONS) in mbochs_get_region_info()
1017 switch (region_info->index) { in mbochs_get_region_info()
1019 region_info->offset = 0; in mbochs_get_region_info()
1020 region_info->size = MBOCHS_CONFIG_SPACE_SIZE; in mbochs_get_region_info()
1021 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info()
1025 region_info->offset = MBOCHS_MEMORY_BAR_OFFSET; in mbochs_get_region_info()
1026 region_info->size = mdev_state->memsize; in mbochs_get_region_info()
1027 region_info->flags = (VFIO_REGION_INFO_FLAG_READ | in mbochs_get_region_info()
1032 region_info->offset = MBOCHS_MMIO_BAR_OFFSET; in mbochs_get_region_info()
[all …]
Dmtty.c138 struct mdev_region_info region_info[VFIO_PCI_NUM_REGIONS]; member
609 if (!mdev_state->region_info[index].size) in mdev_read_base()
631 mdev_state->region_info[index].start = ((u64)start_hi << 32) | in mdev_read_base()
668 if (!mdev_state->region_info[index].start) in mdev_access()
1021 struct vfio_region_info *region_info, in mtty_get_region_info() argument
1027 bar_index = region_info->index; in mtty_get_region_info()
1049 mdev_state->region_info[bar_index].size = size; in mtty_get_region_info()
1050 mdev_state->region_info[bar_index].vfio_offset = in mtty_get_region_info()
1053 region_info->size = size; in mtty_get_region_info()
1054 region_info->offset = MTTY_VFIO_PCI_INDEX_TO_OFFSET(bar_index); in mtty_get_region_info()
[all …]
/Linux-v5.15/drivers/media/radio/wl128x/
Dfmdrv.h89 struct region_info { struct
138 struct region_info region; /* Current selected band */
Dfmdrv_common.c35 static struct region_info region_configs[] = {
/Linux-v5.15/drivers/net/ethernet/chelsio/cxgb4/
Dcudbg_lib.c2318 struct cudbg_region_info region_info[CTXT_CNM + 1] = { {0} }; in cudbg_dump_context_size() local
2324 rc = cudbg_get_ctxt_region_info(padap, region_info, mem_type); in cudbg_dump_context_size()
2329 if (!region_info[i].exist) { in cudbg_dump_context_size()
2336 size += (region_info[i].end - region_info[i].start + 1) / in cudbg_dump_context_size()
2393 struct cudbg_region_info region_info[CTXT_CNM + 1] = { {0} }; in cudbg_collect_dump_context() local
2404 rc = cudbg_get_ctxt_region_info(padap, region_info, mem_type); in cudbg_collect_dump_context()
2420 max_ctx_size = max(region_info[CTXT_EGRESS].end - in cudbg_collect_dump_context()
2421 region_info[CTXT_EGRESS].start + 1, in cudbg_collect_dump_context()
2422 region_info[CTXT_INGRESS].end - in cudbg_collect_dump_context()
2423 region_info[CTXT_INGRESS].start + 1); in cudbg_collect_dump_context()
[all …]
/Linux-v5.15/drivers/gpu/drm/amd/display/dmub/
Ddmub_srv.h199 const struct dmub_srv_region_info *region_info; member
/Linux-v5.15/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_srv.c393 if (params->region_info->num_regions != DMUB_NUM_WINDOWS) in dmub_srv_calc_fb_info()
401 &params->region_info->regions[i]; in dmub_srv_calc_fb_info()
/Linux-v5.15/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm.c1489 struct dmub_srv_region_info region_info; in dm_dmub_sw_init() local
1602 &region_info); in dm_dmub_sw_init()
1613 r = amdgpu_bo_create_kernel(adev, region_info.fb_size, PAGE_SIZE, in dm_dmub_sw_init()
1624 fb_params.region_info = &region_info; in dm_dmub_sw_init()