Lines Matching refs:private
15 static ssize_t vfio_ccw_schib_region_read(struct vfio_ccw_private *private, in vfio_ccw_schib_region_read() argument
19 struct subchannel *sch = to_subchannel(private->vdev.dev->parent); in vfio_ccw_schib_region_read()
28 mutex_lock(&private->io_mutex); in vfio_ccw_schib_region_read()
29 region = private->region[i].data; in vfio_ccw_schib_region_read()
46 mutex_unlock(&private->io_mutex); in vfio_ccw_schib_region_read()
50 static ssize_t vfio_ccw_schib_region_write(struct vfio_ccw_private *private, in vfio_ccw_schib_region_write() argument
58 static void vfio_ccw_schib_region_release(struct vfio_ccw_private *private, in vfio_ccw_schib_region_release() argument
70 int vfio_ccw_register_schib_dev_regions(struct vfio_ccw_private *private) in vfio_ccw_register_schib_dev_regions() argument
72 return vfio_ccw_register_dev_region(private, in vfio_ccw_register_schib_dev_regions()
77 private->schib_region); in vfio_ccw_register_schib_dev_regions()
80 static ssize_t vfio_ccw_crw_region_read(struct vfio_ccw_private *private, in vfio_ccw_crw_region_read() argument
93 crw = list_first_entry_or_null(&private->crw, in vfio_ccw_crw_region_read()
99 mutex_lock(&private->io_mutex); in vfio_ccw_crw_region_read()
100 region = private->region[i].data; in vfio_ccw_crw_region_read()
112 mutex_unlock(&private->io_mutex); in vfio_ccw_crw_region_read()
117 if (!list_empty(&private->crw) && private->crw_trigger) in vfio_ccw_crw_region_read()
118 eventfd_signal(private->crw_trigger, 1); in vfio_ccw_crw_region_read()
123 static ssize_t vfio_ccw_crw_region_write(struct vfio_ccw_private *private, in vfio_ccw_crw_region_write() argument
130 static void vfio_ccw_crw_region_release(struct vfio_ccw_private *private, in vfio_ccw_crw_region_release() argument
142 int vfio_ccw_register_crw_dev_regions(struct vfio_ccw_private *private) in vfio_ccw_register_crw_dev_regions() argument
144 return vfio_ccw_register_dev_region(private, in vfio_ccw_register_crw_dev_regions()
149 private->crw_region); in vfio_ccw_register_crw_dev_regions()