Lines Matching refs:evt
567 static void vhost_scsi_free_evt(struct vhost_scsi *vs, struct vhost_scsi_evt *evt) in vhost_scsi_free_evt() argument
570 kfree(evt); in vhost_scsi_free_evt()
578 struct vhost_scsi_evt *evt; in vhost_scsi_allocate_evt() local
585 evt = kzalloc(sizeof(*evt), GFP_KERNEL); in vhost_scsi_allocate_evt()
586 if (!evt) { in vhost_scsi_allocate_evt()
592 evt->event.event = cpu_to_vhost32(vq, event); in vhost_scsi_allocate_evt()
593 evt->event.reason = cpu_to_vhost32(vq, reason); in vhost_scsi_allocate_evt()
596 return evt; in vhost_scsi_allocate_evt()
614 vhost_scsi_do_evt_work(struct vhost_scsi *vs, struct vhost_scsi_evt *evt) in vhost_scsi_do_evt_work() argument
617 struct virtio_scsi_event *event = &evt->event; in vhost_scsi_do_evt_work()
668 struct vhost_scsi_evt *evt; in vhost_scsi_evt_work() local
674 evt = llist_entry(llnode, struct vhost_scsi_evt, list); in vhost_scsi_evt_work()
676 vhost_scsi_do_evt_work(vs, evt); in vhost_scsi_evt_work()
677 vhost_scsi_free_evt(vs, evt); in vhost_scsi_evt_work()
1265 struct vhost_scsi_evt *evt; in vhost_scsi_send_evt() local
1267 evt = vhost_scsi_allocate_evt(vs, event, reason); in vhost_scsi_send_evt()
1268 if (!evt) in vhost_scsi_send_evt()
1277 evt->event.lun[0] = 0x01; in vhost_scsi_send_evt()
1278 evt->event.lun[1] = tpg->tport_tpgt; in vhost_scsi_send_evt()
1280 evt->event.lun[2] = lun->unpacked_lun >> 8 | 0x40 ; in vhost_scsi_send_evt()
1281 evt->event.lun[3] = lun->unpacked_lun & 0xFF; in vhost_scsi_send_evt()
1284 llist_add(&evt->list, &vs->vs_event_list); in vhost_scsi_send_evt()