• Home
  • Raw
  • Download

Lines Matching defs:mdev_state

128 struct mdev_state {  struct
129 struct vfio_device vdev;
130 struct eventfd_ctx *intx_evtfd;
131 struct eventfd_ctx *msi_evtfd;
132 int irq_index;
133 u8 *vconfig;
134 struct mutex ops_lock;
135 struct mdev_device *mdev;
136 struct mdev_region_info region_info[VFIO_PCI_NUM_REGIONS];
137 u32 bar_mask[VFIO_PCI_NUM_REGIONS];
138 struct list_head next;
139 struct serial_port s[2];
140 struct mutex rxtx_lock;
141 struct vfio_device_info dev_info;
142 int nr_ports;
143 u8 intx_mask:1;
185 static bool is_intx(struct mdev_state *mdev_state) in is_intx()
190 static bool is_msi(struct mdev_state *mdev_state) in is_msi()
195 static bool is_noirq(struct mdev_state *mdev_state) in is_noirq()
200 static void mtty_trigger_interrupt(struct mdev_state *mdev_state) in mtty_trigger_interrupt()
215 static void mtty_create_config_space(struct mdev_state *mdev_state) in mtty_create_config_space()
279 static void handle_pci_cfg_write(struct mdev_state *mdev_state, u16 offset, in handle_pci_cfg_write()
333 static void handle_bar_write(unsigned int index, struct mdev_state *mdev_state, in handle_bar_write()
501 static void handle_bar_read(unsigned int index, struct mdev_state *mdev_state, in handle_bar_read()
639 static void mdev_read_base(struct mdev_state *mdev_state) in mdev_read_base()
676 static ssize_t mdev_access(struct mdev_state *mdev_state, u8 *buf, size_t count, in mdev_access()
748 struct mdev_state *mdev_state = in mtty_init_dev() local
787 struct mdev_state *mdev_state; in mtty_probe() local
808 struct mdev_state *mdev_state = in mtty_release_dev() local
817 struct mdev_state *mdev_state = dev_get_drvdata(&mdev->dev); in mtty_remove() local
823 static int mtty_reset(struct mdev_state *mdev_state) in mtty_reset()
833 struct mdev_state *mdev_state = in mtty_read() local
894 struct mdev_state *mdev_state = in mtty_write() local
950 static void mtty_disable_intx(struct mdev_state *mdev_state) in mtty_disable_intx()
960 static void mtty_disable_msi(struct mdev_state *mdev_state) in mtty_disable_msi()
969 static int mtty_set_irqs(struct mdev_state *mdev_state, uint32_t flags, in mtty_set_irqs()
1133 static int mtty_get_region_info(struct mdev_state *mdev_state, in mtty_get_region_info()
1204 struct mdev_state *mdev_state = in mtty_ioctl() local
1350 struct mdev_state *mdev_state = in mtty_close() local