Lines Matching refs:evt
408 static void vhost_scsi_free_evt(struct vhost_scsi *vs, struct vhost_scsi_evt *evt) in vhost_scsi_free_evt() argument
411 kfree(evt); in vhost_scsi_free_evt()
419 struct vhost_scsi_evt *evt; in vhost_scsi_allocate_evt() local
426 evt = kzalloc(sizeof(*evt), GFP_KERNEL); in vhost_scsi_allocate_evt()
427 if (!evt) { in vhost_scsi_allocate_evt()
433 evt->event.event = cpu_to_vhost32(vq, event); in vhost_scsi_allocate_evt()
434 evt->event.reason = cpu_to_vhost32(vq, reason); in vhost_scsi_allocate_evt()
437 return evt; in vhost_scsi_allocate_evt()
455 vhost_scsi_do_evt_work(struct vhost_scsi *vs, struct vhost_scsi_evt *evt) in vhost_scsi_do_evt_work() argument
458 struct virtio_scsi_event *event = &evt->event; in vhost_scsi_do_evt_work()
509 struct vhost_scsi_evt *evt; in vhost_scsi_evt_work() local
515 evt = llist_entry(llnode, struct vhost_scsi_evt, list); in vhost_scsi_evt_work()
517 vhost_scsi_do_evt_work(vs, evt); in vhost_scsi_evt_work()
518 vhost_scsi_free_evt(vs, evt); in vhost_scsi_evt_work()
1107 struct vhost_scsi_evt *evt; in vhost_scsi_send_evt() local
1109 evt = vhost_scsi_allocate_evt(vs, event, reason); in vhost_scsi_send_evt()
1110 if (!evt) in vhost_scsi_send_evt()
1119 evt->event.lun[0] = 0x01; in vhost_scsi_send_evt()
1120 evt->event.lun[1] = tpg->tport_tpgt; in vhost_scsi_send_evt()
1122 evt->event.lun[2] = lun->unpacked_lun >> 8 | 0x40 ; in vhost_scsi_send_evt()
1123 evt->event.lun[3] = lun->unpacked_lun & 0xFF; in vhost_scsi_send_evt()
1126 llist_add(&evt->list, &vs->vs_event_list); in vhost_scsi_send_evt()