Lines Matching refs:lun

834 static struct DeviceCtlBlk *find_dcb(struct AdapterCtlBlk *acb, u8 id, u8 lun)
836 return acb->children[id][lun];
970 cmd, cmd->device->id, (u8)cmd->device->lun, cmd->cmnd[0]);
977 cmd->device->lun >= acb->scsi_host->max_lun ||
978 cmd->device->lun >31) {
982 /* does the specified lun on the specified device exist */
983 if (!(acb->dcb_map[cmd->device->id] & (1 << cmd->device->lun))) {
985 cmd->device->id, (u8)cmd->device->lun);
990 dcb = find_dcb(acb, cmd->device->id, cmd->device->lun);
994 cmd->device->id, (u8)cmd->device->lun);
1058 (u8)srb->cmd->device->lun);
1153 cmd, cmd->device->id, (u8)cmd->device->lun, cmd);
1220 cmd, cmd->device->id, (u8)cmd->device->lun, cmd);
1222 dcb = find_dcb(acb, cmd->device->id, cmd->device->lun);
1448 (u8)srb->cmd->device->lun);
1466 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun,
1886 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun);
2016 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun);
2028 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun);
2239 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun);
2251 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun,
2423 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun);
2437 srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun);
2847 /* set all lun device's period, offset */
2967 u8 id, lun;
3004 lun = (rsel_tar_lun_id >> 8) & 7;
3005 dcb = find_dcb(acb, id, lun);
3008 "<%02i-%i>\n", id, lun);
3159 srb->cmd->device->id, (u8)srb->cmd->device->lun);
3321 cmd, cmd->device->id, (u8)cmd->device->lun,
3354 p->device->id, (u8)p->device->lun);
3383 (u8)p->device->lun);
3492 cmd, cmd->device->id, (u8)cmd->device->lun);
3539 * @lun: The lun for the new device.
3544 u8 target, u8 lun)
3551 dprintkdbg(DBG_0, "device_alloc: <%02i-%i>\n", target, lun);
3561 dcb->target_lun = lun;
3565 IDENTIFY(dcb->dev_mode & NTC_DO_DISCONNECT, lun);
3567 dcb->identify_msg = IDENTIFY(0, lun);
3583 if (!(lun) || current_sync_offset)
3729 dcb = device_alloc(acb, scsi_device->id, scsi_device->lun);
3747 struct DeviceCtlBlk *dcb = find_dcb(acb, scsi_device->id, scsi_device->lun);