Lines Matching refs:event
147 /* event to be sent to guest */
148 struct virtio_scsi_event event;
149 /* event list, serviced from vhost worker thread */
421 u32 event, u32 reason)
438 evt->event.event = cpu_to_vhost32(vq, event);
439 evt->event.reason = cpu_to_vhost32(vq, reason);
454 struct virtio_scsi_event *event = &evt->event;
488 event->event |= cpu_to_vhost32(vq, VIRTIO_SCSI_T_EVENTS_MISSED);
493 ret = __copy_to_user(eventp, event, sizeof(*event));
1490 u32 event, u32 reason)
1494 evt = vhost_scsi_allocate_evt(vs, event, reason);
1501 * Note: evt->event is zeroed when we allocate it and
1504 evt->event.lun[0] = 0x01;
1505 evt->event.lun[1] = tpg->tport_tpgt;
1507 evt->event.lun[2] = lun->unpacked_lun >> 8 | 0x40 ;
1508 evt->event.lun[3] = lun->unpacked_lun & 0xFF;
2148 * we could end up queueing an event after the flush.