Lines Matching defs:lun
541 * @param lun LUN for this IO
548 int32_t ocs_scsi_recv_cmd(ocs_io_t *io, uint64_t lun, uint8_t *cdb,
576 if ((lun < OCS_MAX_LUN) && fcp->targ_rsrc[lun].enabled) {
577 trsrc = &fcp->targ_rsrc[lun];
590 atio->ccb_h.target_lun = lun;
615 io->tgt_io.lun = lun;
623 __func__, (unsigned long)lun,
641 * @param lun LUN for this IO
650 int32_t ocs_scsi_recv_cmd_first_burst(ocs_io_t *io, uint64_t lun, uint8_t *cdb,
674 * @param lun logical unit value
681 int32_t ocs_scsi_recv_tmf(ocs_io_t *tmfio, uint64_t lun, ocs_scsi_tmf_cmd_e cmd,
697 if ((lun < OCS_MAX_LUN) && fcp->targ_rsrc[lun].enabled) {
698 trsrc = &fcp->targ_rsrc[lun];
704 __func__, tmfio->instance_index, cmd, (unsigned long)lun,
713 __func__, (unsigned long long)lun, trsrc ? (trsrc->enabled ? "T" : "F") : "X",
730 if ((lun < OCS_MAX_LUN) && fcp->targ_rsrc[lun].enabled) {
737 inot->ccb_h.target_lun = lun;
783 xpt_print(inot->ccb_h.path, "%s: func=%#x stat=%#x id=%#x lun=%#x"
2610 lun_id_t lun = ccb_h->target_lun;
2613 if (CAM_LUN_WILDCARD != lun) {
2619 if (lun < OCS_MAX_LUN) {
2620 return &fcp->targ_rsrc[lun];
2881 ocs_get_crn(ocs_node_t *node, uint8_t *crn, uint64_t lun)
2885 idx = lun % OCS_MAX_LUN;
2896 lcrn->lun = lun;
2900 if (lcrn->lun != lun) {
2928 ocs_reset_crn(ocs_node_t *node, uint64_t lun)
2932 idx = lun % OCS_MAX_LUN;