Lines Matching full:private
15 static ssize_t vfio_ccw_schib_region_read(struct vfio_ccw_private *private, in vfio_ccw_schib_region_read() argument
27 mutex_lock(&private->io_mutex); in vfio_ccw_schib_region_read()
28 region = private->region[i].data; in vfio_ccw_schib_region_read()
30 if (cio_update_schib(private->sch)) { in vfio_ccw_schib_region_read()
35 memcpy(region, &private->sch->schib, sizeof(*region)); in vfio_ccw_schib_region_read()
45 mutex_unlock(&private->io_mutex); in vfio_ccw_schib_region_read()
49 static ssize_t vfio_ccw_schib_region_write(struct vfio_ccw_private *private, in vfio_ccw_schib_region_write() argument
57 static void vfio_ccw_schib_region_release(struct vfio_ccw_private *private, in vfio_ccw_schib_region_release() argument
69 int vfio_ccw_register_schib_dev_regions(struct vfio_ccw_private *private) in vfio_ccw_register_schib_dev_regions() argument
71 return vfio_ccw_register_dev_region(private, in vfio_ccw_register_schib_dev_regions()
76 private->schib_region); in vfio_ccw_register_schib_dev_regions()
79 static ssize_t vfio_ccw_crw_region_read(struct vfio_ccw_private *private, in vfio_ccw_crw_region_read() argument
92 crw = list_first_entry_or_null(&private->crw, in vfio_ccw_crw_region_read()
98 mutex_lock(&private->io_mutex); in vfio_ccw_crw_region_read()
99 region = private->region[i].data; in vfio_ccw_crw_region_read()
111 mutex_unlock(&private->io_mutex); in vfio_ccw_crw_region_read()
116 if (!list_empty(&private->crw) && private->crw_trigger) in vfio_ccw_crw_region_read()
117 eventfd_signal(private->crw_trigger, 1); in vfio_ccw_crw_region_read()
122 static ssize_t vfio_ccw_crw_region_write(struct vfio_ccw_private *private, in vfio_ccw_crw_region_write() argument
129 static void vfio_ccw_crw_region_release(struct vfio_ccw_private *private, in vfio_ccw_crw_region_release() argument
141 int vfio_ccw_register_crw_dev_regions(struct vfio_ccw_private *private) in vfio_ccw_register_crw_dev_regions() argument
143 return vfio_ccw_register_dev_region(private, in vfio_ccw_register_crw_dev_regions()
148 private->crw_region); in vfio_ccw_register_crw_dev_regions()