Lines Matching defs:mdev_state

128 struct mdev_state {  struct
129 struct vfio_device vdev;
130 int irq_fd;
131 struct eventfd_ctx *intx_evtfd;
132 struct eventfd_ctx *msi_evtfd;
133 int irq_index;
134 u8 *vconfig;
135 struct mutex ops_lock;
136 struct mdev_device *mdev;
137 struct mdev_region_info region_info[VFIO_PCI_NUM_REGIONS];
138 u32 bar_mask[VFIO_PCI_NUM_REGIONS];
139 struct list_head next;
140 struct serial_port s[2];
141 struct mutex rxtx_lock;
142 struct vfio_device_info dev_info;
143 int nr_ports;
189 static void mtty_create_config_space(struct mdev_state *mdev_state) in mtty_create_config_space()
253 static void handle_pci_cfg_write(struct mdev_state *mdev_state, u16 offset, in handle_pci_cfg_write()
307 static void handle_bar_write(unsigned int index, struct mdev_state *mdev_state, in handle_bar_write()
475 static void handle_bar_read(unsigned int index, struct mdev_state *mdev_state, in handle_bar_read()
613 static void mdev_read_base(struct mdev_state *mdev_state) in mdev_read_base()
650 static ssize_t mdev_access(struct mdev_state *mdev_state, u8 *buf, size_t count, in mdev_access()
722 struct mdev_state *mdev_state = in mtty_init_dev() local
761 struct mdev_state *mdev_state; in mtty_probe() local
782 struct mdev_state *mdev_state = in mtty_release_dev() local
791 struct mdev_state *mdev_state = dev_get_drvdata(&mdev->dev); in mtty_remove() local
797 static int mtty_reset(struct mdev_state *mdev_state) in mtty_reset()
807 struct mdev_state *mdev_state = in mtty_read() local
868 struct mdev_state *mdev_state = in mtty_write() local
924 static int mtty_set_irqs(struct mdev_state *mdev_state, uint32_t flags, in mtty_set_irqs()
1017 static int mtty_trigger_interrupt(struct mdev_state *mdev_state) in mtty_trigger_interrupt()
1044 static int mtty_get_region_info(struct mdev_state *mdev_state, in mtty_get_region_info()
1121 struct mdev_state *mdev_state = in mtty_ioctl() local