Lines Matching refs:lun

613 		   unsigned char *cdb, u64 scsi_tag, u16 lun, u8 task_attr,
648 cmd->tvc_lun = lun;
1029 /* virtio-scsi spec requires byte 0 of the lun to be 1 */
1030 vq_err(vq, "Illegal virtio-scsi lun: %u\n", *vc->lunp);
1066 u16 lun;
1097 vc.lunp = &v_req_pi.lun[0];
1098 vc.target = &v_req_pi.lun[1];
1102 vc.lunp = &v_req.lun[0];
1103 vc.target = &v_req.lun[1];
1192 lun = vhost_buf_to_lun(v_req_pi.lun);
1197 lun = vhost_buf_to_lun(v_req.lun);
1212 cmd = vhost_scsi_get_cmd(vq, tpg, cdb, tag, lun, task_attr,
1226 pr_debug("vhost_scsi got command opcode: %#02x, lun: %d\n",
1349 vhost_buf_to_lun(vtmf->lun), NULL,
1439 vc.lunp = &v_req.tmf.lun[0];
1440 vc.target = &v_req.tmf.lun[1];
1447 vc.lunp = &v_req.an.lun[0];
1506 struct vhost_scsi_tpg *tpg, struct se_lun *lun,
1515 if (tpg && lun) {
1516 /* TODO: share lun setup code with virtio-scsi.ko */
1519 * lun[4-7] need to be zero according to virtio-scsi spec.
1521 evt->event.lun[0] = 0x01;
1522 evt->event.lun[1] = tpg->tport_tpgt;
1523 if (lun->unpacked_lun >= 256)
1524 evt->event.lun[2] = lun->unpacked_lun >> 8 | 0x40 ;
1525 evt->event.lun[3] = lun->unpacked_lun & 0xFF;
2147 struct se_lun *lun, bool plug)
2172 vhost_scsi_send_evt(vs, vq, tpg, lun,
2178 static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun)
2180 vhost_scsi_do_plug(tpg, lun, true);
2183 static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun)
2185 vhost_scsi_do_plug(tpg, lun, false);
2189 struct se_lun *lun)
2196 vhost_scsi_hotplug(tpg, lun);
2203 struct se_lun *lun)
2210 vhost_scsi_hotunplug(tpg, lun);