Lines Matching defs:mdev_state

157 	struct mdev_state *mdev_state;  member
163 struct mdev_state { struct
164 struct vfio_device vdev;
165 u8 *vconfig;
166 u64 bar_mask[3];
167 u32 memory_bar_mask;
168 struct mutex ops_lock;
169 struct mdev_device *mdev;
171 const struct mbochs_type *type;
172 u16 vbe[VBE_DISPI_INDEX_COUNT];
173 u64 memsize;
174 struct page **pages;
175 pgoff_t pagecount;
176 struct vfio_region_gfx_edid edid_regs;
177 u8 edid_blob[0x400];
179 struct list_head dmabufs;
180 u32 active_id;
181 u32 next_id;
210 static void mbochs_create_config_space(struct mdev_state *mdev_state) in mbochs_create_config_space()
239 static int mbochs_check_framebuffer(struct mdev_state *mdev_state, in mbochs_check_framebuffer()
297 static void handle_pci_cfg_write(struct mdev_state *mdev_state, u16 offset, in handle_pci_cfg_write()
325 static void handle_mmio_write(struct mdev_state *mdev_state, u16 offset, in handle_mmio_write()
355 static void handle_mmio_read(struct mdev_state *mdev_state, u16 offset, in handle_mmio_read()
392 static void handle_edid_regs(struct mdev_state *mdev_state, u16 offset, in handle_edid_regs()
419 static void handle_edid_blob(struct mdev_state *mdev_state, u16 offset, in handle_edid_blob()
430 static ssize_t mdev_access(struct mdev_state *mdev_state, char *buf, in mdev_access()
496 static int mbochs_reset(struct mdev_state *mdev_state) in mbochs_reset()
514 struct mdev_state *mdev_state; in mbochs_probe() local
573 struct mdev_state *mdev_state = dev_get_drvdata(&mdev->dev); in mbochs_remove() local
586 struct mdev_state *mdev_state = in mbochs_read() local
647 struct mdev_state *mdev_state = in mbochs_write() local
703 static struct page *__mbochs_get_page(struct mdev_state *mdev_state, in __mbochs_get_page()
719 static struct page *mbochs_get_page(struct mdev_state *mdev_state, in mbochs_get_page()
734 static void mbochs_put_pages(struct mdev_state *mdev_state) in mbochs_put_pages()
754 struct mdev_state *mdev_state = vma->vm_private_data; in mbochs_region_vm_fault() local
773 struct mdev_state *mdev_state = in mbochs_mmap() local
883 struct mdev_state *mdev_state = dmabuf->mdev_state; in mbochs_release_dmabuf() local
906 static struct mbochs_dmabuf *mbochs_dmabuf_alloc(struct mdev_state *mdev_state, in mbochs_dmabuf_alloc()
950 mbochs_dmabuf_find_by_mode(struct mdev_state *mdev_state, in mbochs_dmabuf_find_by_mode()
965 mbochs_dmabuf_find_by_id(struct mdev_state *mdev_state, u32 id) in mbochs_dmabuf_find_by_id()
980 struct mdev_state *mdev_state = dmabuf->mdev_state; in mbochs_dmabuf_export() local
1009 static int mbochs_get_region_info(struct mdev_state *mdev_state, in mbochs_get_region_info()
1074 static int mbochs_query_gfx_plane(struct mdev_state *mdev_state, in mbochs_query_gfx_plane()
1138 static int mbochs_get_gfx_dmabuf(struct mdev_state *mdev_state, u32 id) in mbochs_get_gfx_dmabuf()
1164 struct mdev_state *mdev_state = in mbochs_ioctl() local
1283 struct mdev_state *mdev_state = in mbochs_close_device() local
1307 struct mdev_state *mdev_state = dev_get_drvdata(dev); in memory_show() local