lun 74 arch/s390/include/asm/ipl.h u64 lun; lun 58 arch/s390/include/uapi/asm/ipl.h __u64 lun; lun 358 arch/s390/kernel/ipl.c DEFINE_IPL_ATTR_RO(ipl_fcp, lun, "0x%016llx\n", lun 359 arch/s390/kernel/ipl.c (unsigned long long)ipl_block.fcp.lun); lun 621 arch/s390/kernel/ipl.c DEFINE_IPL_ATTR_RW(reipl_fcp, lun, "0x%016llx\n", "%llx\n", lun 622 arch/s390/kernel/ipl.c reipl_block_fcp->fcp.lun); lun 1098 arch/s390/kernel/ipl.c DEFINE_IPL_ATTR_RW(dump_fcp, lun, "0x%016llx\n", "%llx\n", lun 1099 arch/s390/kernel/ipl.c dump_block_fcp->fcp.lun); lun 1692 arch/s390/kernel/ipl.c ipl_info.data.fcp.lun = ipl_block.fcp.lun; lun 3055 drivers/ata/libata-scsi.c if (unlikely(scsidev->channel || scsidev->lun)) lun 3059 drivers/ata/libata-scsi.c if (unlikely(scsidev->id || scsidev->lun)) lun 4301 drivers/ata/libata-scsi.c scsidev->channel, scsidev->id, scsidev->lun, lun 4827 drivers/ata/libata-scsi.c unsigned int id, u64 lun) lun 4836 drivers/ata/libata-scsi.c if (lun != SCAN_WILD_CARD && lun) lun 130 drivers/ata/libata.h unsigned int id, u64 lun); lun 671 drivers/ata/sata_nv.c if (sdev->id >= ATA_MAX_DEVICES || sdev->channel || sdev->lun) lun 1889 drivers/ata/sata_nv.c if (sdev->id >= ATA_MAX_DEVICES || sdev->channel || sdev->lun) lun 237 drivers/block/paride/pf.c int lun; lun 316 drivers/block/paride/pf.c pf->lun = (*drives[unit])[D_LUN]; lun 504 drivers/block/paride/pf.c { ATAPI_REQ_SENSE, pf->lun << 5, 0, 0, 16, 0, 0, 0, 0, 0, 0, 0 }; lun 534 drivers/block/paride/pf.c char lo_cmd[12] = { ATAPI_LOCK, pf->lun << 5, 0, 0, func, 0, 0, 0, 0, 0, 0, 0 }; lun 541 drivers/block/paride/pf.c char ej_cmd[12] = { ATAPI_DOOR, pf->lun << 5, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0 }; lun 594 drivers/block/paride/pf.c { ATAPI_MODE_SENSE, pf->lun << 5, 0, 0, 0, 0, 0, 0, 8, 0, 0, 0 }; lun 629 drivers/block/paride/pf.c char rc_cmd[12] = { ATAPI_CAPACITY, pf->lun << 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; lun 644 drivers/block/paride/pf.c pf->name, pf->drive, pf->lun, bs); lun 654 drivers/block/paride/pf.c { ATAPI_IDENTIFY, pf->lun << 5, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0 }; lun 665 drivers/block/paride/pf.c pf->name, pf->drive, pf->lun, dt); lun 681 drivers/block/paride/pf.c pf->name, mf, id, ms[pf->drive], pf->lun, dt); lun 703 drivers/block/paride/pf.c if (pf->lun != -1) lun 706 drivers/block/paride/pf.c for (pf->lun = 0; pf->lun < 8; pf->lun++) lun 713 drivers/block/paride/pf.c if (pf->lun != -1) lun 715 drivers/block/paride/pf.c for (pf->lun = 0; pf->lun < 8; pf->lun++) lun 782 drivers/block/paride/pf.c char io_cmd[12] = { cmd, pf->lun << 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; lun 317 drivers/char/ipmi/ipmi_msghandler.c unsigned char lun; lun 819 drivers/char/ipmi/ipmi_msghandler.c return (smi_addr1->lun == smi_addr2->lun); lun 829 drivers/char/ipmi/ipmi_msghandler.c && (ipmb_addr1->lun == ipmb_addr2->lun)); lun 842 drivers/char/ipmi/ipmi_msghandler.c && (lan_addr1->lun == lan_addr2->lun)); lun 1452 drivers/char/ipmi/ipmi_msghandler.c user->intf->addrinfo[channel].lun = LUN & 0x3; lun 1474 drivers/char/ipmi/ipmi_msghandler.c *address = user->intf->addrinfo[channel].lun; lun 1763 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[i+4] = (msg->netfn << 2) | (ipmb_addr->lun & 0x3); lun 1800 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[5] = (msg->netfn << 2) | (lan_addr->lun & 0x3); lun 1883 drivers/char/ipmi/ipmi_msghandler.c if (smi_addr->lun > 3) { lun 1922 drivers/char/ipmi/ipmi_msghandler.c smi_msg->data[0] = (msg->netfn << 2) | (smi_addr->lun & 0x3); lun 1985 drivers/char/ipmi/ipmi_msghandler.c if (ipmb_addr->lun > 3) { lun 2113 drivers/char/ipmi/ipmi_msghandler.c if (lan_addr->lun > 3) { lun 2291 drivers/char/ipmi/ipmi_msghandler.c unsigned char *lun) lun 2296 drivers/char/ipmi/ipmi_msghandler.c *lun = intf->addrinfo[addr->channel].lun; lun 2310 drivers/char/ipmi/ipmi_msghandler.c unsigned char saddr = 0, lun = 0; lun 2320 drivers/char/ipmi/ipmi_msghandler.c rv = check_addr(user->intf, addr, &saddr, &lun); lun 2331 drivers/char/ipmi/ipmi_msghandler.c lun, lun 2349 drivers/char/ipmi/ipmi_msghandler.c unsigned char saddr = 0, lun = 0; lun 2359 drivers/char/ipmi/ipmi_msghandler.c rv = check_addr(user->intf, addr, &saddr, &lun); lun 2371 drivers/char/ipmi/ipmi_msghandler.c lun, lun 2418 drivers/char/ipmi/ipmi_msghandler.c si.lun = 0; lun 2435 drivers/char/ipmi/ipmi_msghandler.c intf->addrinfo[0].lun, lun 3144 drivers/char/ipmi/ipmi_msghandler.c si.lun = 0; lun 3160 drivers/char/ipmi/ipmi_msghandler.c intf->addrinfo[0].lun, lun 3228 drivers/char/ipmi/ipmi_msghandler.c si.lun = 0; lun 3245 drivers/char/ipmi/ipmi_msghandler.c intf->addrinfo[0].lun, lun 3433 drivers/char/ipmi/ipmi_msghandler.c intf->addrinfo[j].lun = 2; lun 3652 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr.lun = msg->rsp[7] & 3; lun 3773 drivers/char/ipmi/ipmi_msghandler.c ipmb_addr->lun = msg->rsp[7] & 3; lun 3832 drivers/char/ipmi/ipmi_msghandler.c lan_addr.lun = msg->rsp[9] & 3; lun 3932 drivers/char/ipmi/ipmi_msghandler.c lan_addr->lun = msg->rsp[9] & 3; lun 4045 drivers/char/ipmi/ipmi_msghandler.c smi_addr->lun = msg->rsp[0] & 3; lun 4080 drivers/char/ipmi/ipmi_msghandler.c smi_addr->lun = msg->rsp[0] & 3; lun 4210 drivers/char/ipmi/ipmi_msghandler.c smi_addr->lun = msg->rsp[0] & 3; lun 4878 drivers/char/ipmi/ipmi_msghandler.c intf->addrinfo[0].lun, lun 4933 drivers/char/ipmi/ipmi_msghandler.c si->lun = 0; lun 5021 drivers/char/ipmi/ipmi_msghandler.c ipmb->lun = intf->event_receiver_lun; lun 5032 drivers/char/ipmi/ipmi_msghandler.c si->lun = 0; lun 194 drivers/char/ipmi/ipmi_poweroff.c smi_addr.lun = 0; lun 223 drivers/char/ipmi/ipmi_poweroff.c smi_addr.lun = 0; lun 258 drivers/char/ipmi/ipmi_poweroff.c smi_addr.lun = 0; lun 333 drivers/char/ipmi/ipmi_poweroff.c smi_addr.lun = 0; lun 373 drivers/char/ipmi/ipmi_poweroff.c ipmb_addr.lun = aer_lun; lun 480 drivers/char/ipmi/ipmi_poweroff.c smi_addr.lun = 0; lun 584 drivers/char/ipmi/ipmi_poweroff.c smi_addr.lun = 0; lun 395 drivers/char/ipmi/ipmi_watchdog.c addr.lun = 0; lun 487 drivers/char/ipmi/ipmi_watchdog.c addr.lun = 0; lun 561 drivers/char/ipmi/ipmi_watchdog.c addr.lun = 0; lun 125 drivers/firewire/sbp2.c u16 lun; lun 756 drivers/firewire/sbp2.c static int sbp2_lun2int(u16 lun) lun 761 drivers/firewire/sbp2.c eight_bytes_lun.scsi_lun[0] = (lun >> 8) & 0xff; lun 762 drivers/firewire/sbp2.c eight_bytes_lun.scsi_lun[1] = lun & 0xff; lun 820 drivers/firewire/sbp2.c SBP2_LOGIN_REQUEST, lu->lun, &response) < 0) { lun 825 drivers/firewire/sbp2.c lu->lun); lun 843 drivers/firewire/sbp2.c lu->lun, lu->retries); lun 863 drivers/firewire/sbp2.c sdev = __scsi_add_device(shost, 0, 0, sbp2_lun2int(lu->lun), lu); lun 949 drivers/firewire/sbp2.c lu->lun, lu->retries); lun 982 drivers/firewire/sbp2.c lu->lun = lun_entry & 0xffff; lun 1224 drivers/firewire/sbp2.c sdev = scsi_device_lookup(shost, 0, 0, sbp2_lun2int(lu->lun)); lun 1576 drivers/firewire/sbp2.c lu->tgt->directory_id, lu->lun); lun 189 drivers/firmware/edd.c info->params.device_path.atapi.lun); lun 196 drivers/firmware/edd.c info->params.device_path.scsi.lun); lun 206 drivers/firmware/edd.c info->params.device_path.fibre.lun); lun 139 drivers/firmware/iscsi_ibft.c char lun[8]; lun 378 drivers/firmware/iscsi_ibft.c str += sprintf(str, "%x", (u8)tgt->lun[i]); lun 109 drivers/ide/ide-disk_proc.c ide_devset_rw_field(lun, lun); lun 119 drivers/ide/ide-disk_proc.c IDE_PROC_DEVSET(lun, 0, 7), lun 2241 drivers/infiniband/ulp/srp/ib_srp.c "ignoring AER for LUN %llu\n", scsilun_to_int(&req->lun)); lun 2383 drivers/infiniband/ulp/srp/ib_srp.c int_to_scsilun(scmnd->device->lun, &cmd->lun); lun 2909 drivers/infiniband/ulp/srp/ib_srp.c static int srp_send_tsk_mgmt(struct srp_rdma_ch *ch, u64 req_tag, u64 lun, lun 2945 drivers/infiniband/ulp/srp/ib_srp.c int_to_scsilun(lun, &tsk_mgmt->lun); lun 2997 drivers/infiniband/ulp/srp/ib_srp.c if (srp_send_tsk_mgmt(ch, tag, scmnd->device->lun, lun 3022 drivers/infiniband/ulp/srp/ib_srp.c if (srp_send_tsk_mgmt(ch, SRP_TAG_NO_REQ, scmnd->device->lun, lun 1532 drivers/infiniband/ulp/srpt/ib_srpt.c scsilun_to_int(&srp_cmd->lun), data_len, lun 1598 drivers/infiniband/ulp/srpt/ib_srpt.c scsilun_to_int(&srp_tsk->lun), srp_tsk, tcm_tmr, lun 114 drivers/lightnvm/core.c int lun = j + lun_offs[j]; lun 115 drivers/lightnvm/core.c int lunid = (ch * dev->geo.num_lun) + lun; lun 188 drivers/lightnvm/core.c luns[lunid++].a.lun = j; lun 572 drivers/lightnvm/core.c int lun_off = ch_map->lun_offs[p->a.lun]; lun 575 drivers/lightnvm/core.c p->a.lun += lun_off; lun 583 drivers/lightnvm/core.c int lun_roff = ch_rmap->lun_offs[p->a.lun]; lun 586 drivers/lightnvm/core.c p->a.lun -= lun_roff; lun 1008 drivers/lightnvm/core.c int ch, lun, nr_blks; lun 1027 drivers/lightnvm/core.c for (lun = ppa.g.lun; lun < geo->num_lun; lun++) { lun 1035 drivers/lightnvm/core.c ppa_gen.g.lun = lun; lun 44 drivers/lightnvm/pblk-sysfs.c rlun->bppa.a.lun, lun 973 drivers/lightnvm/pblk.h return p.a.lun * geo->num_ch + p.a.ch; lun 989 drivers/lightnvm/pblk.h ppa.g.lun = (paddr & ppaf->lun_mask) >> ppaf->lun_offset; lun 1046 drivers/lightnvm/pblk.h paddr |= (u64)p.g.lun << ppaf->lun_offset; lun 1203 drivers/lightnvm/pblk.h p->g.ch, p->g.lun, p->g.blk, lun 1243 drivers/lightnvm/pblk.h ppa->g.lun < geo->num_lun && lun 408 drivers/message/fusion/mptbase.h u64 lun; lun 1369 drivers/message/fusion/mptctl.c int lun; lun 1432 drivers/message/fusion/mptctl.c lun = (vdevice->vtarget->raidVolume) ? 0x80 : vdevice->lun; lun 1433 drivers/message/fusion/mptctl.c *pdata = (((u8)lun << 16) + (vdevice->vtarget->channel << 8) + lun 369 drivers/message/fusion/mptctl.h unsigned int lun; lun 209 drivers/message/fusion/mptfc.c SCpnt->device->id, SCpnt->device->lun, lun 223 drivers/message/fusion/mptfc.c SCpnt->device->id, SCpnt->device->lun, ready, lun 230 drivers/message/fusion/mptfc.c SCpnt->device->id, SCpnt->device->lun)); lun 632 drivers/message/fusion/mptfc.c vdevice->lun = sdev->lun; lun 1872 drivers/message/fusion/mptsas.c vdevice->lun = sdev->lun; lun 4760 drivers/message/fusion/mptsas.c mptsas_issue_tm(MPT_ADAPTER *ioc, u8 type, u8 channel, u8 id, u64 lun, lun 4780 drivers/message/fusion/mptsas.c type, timeout, channel, id, (unsigned long long)lun, lun 4794 drivers/message/fusion/mptsas.c int_to_scsilun(lun, (struct scsi_lun *)pScsiTm->LUN); lun 4845 drivers/message/fusion/mptsas.c int lun; lun 4884 drivers/message/fusion/mptsas.c lun = vdevice->lun; lun 4886 drivers/message/fusion/mptsas.c channel, id, (u64)lun, task_context, 30, &issue_reset)) lun 4899 drivers/message/fusion/mptsas.c channel, id, (u64)lun, 0, 30, &issue_reset)) lun 98 drivers/message/fusion/mptscsih.c u64 lun, int ctx2abort, ulong timeout); lun 540 drivers/message/fusion/mptscsih.c ioc->name, pScsiReply->Bus, pScsiReply->TargetID, sc->device->lun); lun 698 drivers/message/fusion/mptscsih.c sc->device->id, sc->device->lun, lun 1084 drivers/message/fusion/mptscsih.c struct scsi_lun lun; lun 1103 drivers/message/fusion/mptscsih.c int_to_scsilun(vdevice->lun, &lun); lun 1106 drivers/message/fusion/mptscsih.c memcmp(lun.scsi_lun, mf->LUN, 8)) lun 1161 drivers/message/fusion/mptscsih.c ioc->name, 0, sc->device->id, sc->device->lun)); lun 1389 drivers/message/fusion/mptscsih.c int_to_scsilun(SCpnt->device->lun, (struct scsi_lun *)pScsiReq->LUN); lun 1513 drivers/message/fusion/mptscsih.c mptscsih_IssueTaskMgmt(MPT_SCSI_HOST *hd, u8 type, u8 channel, u8 id, u64 lun, lun 1588 drivers/message/fusion/mptscsih.c int_to_scsilun(lun, (struct scsi_lun *)pScsiTm->LUN); lun 1772 drivers/message/fusion/mptscsih.c vdevice->vtarget->id, vdevice->lun, lun 2366 drivers/message/fusion/mptscsih.c ioc->name, sdev, sdev->channel, sdev->id, sdev->lun)); lun 2933 drivers/message/fusion/mptscsih.c int_to_scsilun(io->lun, (struct scsi_lun *)pScsiReq->LUN); lun 2955 drivers/message/fusion/mptscsih.c ioc->name, __func__, cmd, io->channel, io->id, io->lun)); lun 3036 drivers/message/fusion/mptscsih.c iocmd.lun = vdevice->lun; lun 101 drivers/message/fusion/mptscsih.h u64 lun; lun 118 drivers/message/fusion/mptscsih.h u8 id, u64 lun, int ctx2abort, ulong timeout); lun 735 drivers/message/fusion/mptspi.c vdevice->lun = sdev->lun; lun 3840 drivers/net/ethernet/broadcom/cnic_defs.h struct regpair lun; lun 4579 drivers/net/ethernet/broadcom/cnic_defs.h struct regpair lun; lun 4682 drivers/net/ethernet/broadcom/cnic_defs.h struct regpair lun; lun 4821 drivers/net/ethernet/broadcom/cnic_defs.h struct regpair lun; lun 4861 drivers/net/ethernet/broadcom/cnic_defs.h struct regpair lun; lun 4895 drivers/net/ethernet/broadcom/cnic_defs.h struct regpair lun; lun 5018 drivers/net/ethernet/broadcom/cnic_defs.h struct regpair lun; lun 302 drivers/s390/char/zcore.c TRACE("lun: %llx\n", (unsigned long long) ipl_info.data.fcp.lun); lun 56 drivers/s390/scsi/zfcp_aux.c static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun) lun 78 drivers/s390/scsi/zfcp_aux.c zfcp_unit_add(port, lun); lun 93 drivers/s390/scsi/zfcp_aux.c u64 wwpn, lun; lun 111 drivers/s390/scsi/zfcp_aux.c if (!token || kstrtoull(token, 0, (unsigned long long *) &lun)) lun 115 drivers/s390/scsi/zfcp_aux.c zfcp_init_device_configure(busid, wwpn, lun); lun 137 drivers/s390/scsi/zfcp_dbf.c rec->u.uss.lun = srb->fcp_lun; lun 262 drivers/s390/scsi/zfcp_dbf.c rec->lun = zfcp_scsi_dev_lun(sdev); lun 264 drivers/s390/scsi/zfcp_dbf.c rec->lun = ZFCP_DBF_INVALID_LUN; lun 408 drivers/s390/scsi/zfcp_dbf.c rec->lun = ZFCP_DBF_INVALID_LUN; lun 633 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun = (u32)sc->device->lun; lun 634 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun_64_hi = (u32)(sc->device->lun >> 32); lun 644 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun = (u32)sdev->lun; lun 645 drivers/s390/scsi/zfcp_dbf.c rec->scsi_lun_64_hi = (u32)(sdev->lun >> 32); lun 83 drivers/s390/scsi/zfcp_dbf.h u64 lun; lun 156 drivers/s390/scsi/zfcp_dbf.h u64 lun; lun 300 drivers/s390/scsi/zfcp_def.h int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun); lun 231 drivers/s390/scsi/zfcp_fc.h int_to_scsilun(scsi->device->lun, (struct scsi_lun *) &fcp->fc_lun); lun 260 drivers/s390/scsi/zfcp_fc.h int_to_scsilun(dev->lun, (struct scsi_lun *) &fcp->fc_lun); lun 25 drivers/s390/scsi/zfcp_unit.c u64 lun; lun 27 drivers/s390/scsi/zfcp_unit.c lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); lun 30 drivers/s390/scsi/zfcp_unit.c scsi_scan_target(&rport->dev, 0, rport->scsi_target_id, lun, lun 199 drivers/s390/scsi/zfcp_unit.c u64 lun; lun 201 drivers/s390/scsi/zfcp_unit.c lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); lun 204 drivers/s390/scsi/zfcp_unit.c return scsi_device_lookup(shost, 0, port->starget_id, lun); lun 1764 drivers/scsi/3w-9xxx.c if ((SCpnt->device->lun != 0) && (tw_dev->tw_compat_info.working_srl < TW_FW_SRL_LUNS_SUPPORTED)) { lun 1840 drivers/scsi/3w-9xxx.c cpu_to_le16(TW_REQ_LUN_IN(srb->device->lun, request_id)); lun 1875 drivers/scsi/3w-9xxx.c command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[request_id]))); lun 437 drivers/scsi/3w-9xxx.h #define TW_REQ_LUN_IN(lun, request_id) (((lun << 12) & 0xf000) | (request_id & 0xfff)) lun 438 drivers/scsi/3w-9xxx.h #define TW_LUN_OUT(lun) ((lun >> 12) & 0xf) lun 326 drivers/scsi/3w-sas.c cpu_to_le16(TW_REQ_LUN_IN(srb->device->lun, request_id)); lun 346 drivers/scsi/3w-sas.c command_packet->sgl_entries__lunh = cpu_to_le16(TW_REQ_LUN_IN((srb->device->lun >> 4), scsi_sg_count(tw_dev->srb[request_id]))); lun 170 drivers/scsi/3w-sas.h #define TW_REQ_LUN_IN(lun, request_id) (((lun << 12) & 0xf000) | (request_id & 0xfff)) lun 171 drivers/scsi/3w-sas.h #define TW_LUN_OUT(lun) ((lun >> 12) & 0xf) lun 404 drivers/scsi/53c700.c NCR_700_identify(int can_disconnect, __u8 lun) lun 408 drivers/scsi/53c700.c (lun & NCR_700_LUN_MASK); lun 769 drivers/scsi/53c700.c __u8 pun = 0xff, lun = 0xff; lun 773 drivers/scsi/53c700.c lun = SCp->device->lun; lun 818 drivers/scsi/53c700.c host->host_no, pun, lun); lun 829 drivers/scsi/53c700.c host->host_no, pun, lun, lun 852 drivers/scsi/53c700.c __u8 pun = 0xff, lun = 0xff; lun 856 drivers/scsi/53c700.c lun = SCp->device->lun; lun 860 drivers/scsi/53c700.c printk("scsi%d (%d:%d): message %s: ", host->host_no, pun, lun, lun 894 drivers/scsi/53c700.c pun, lun, lun 902 drivers/scsi/53c700.c pun, lun); lun 907 drivers/scsi/53c700.c pun, lun, hostdata->msgin[1], lun 913 drivers/scsi/53c700.c host->host_no, pun, lun, lun 941 drivers/scsi/53c700.c __u8 pun = 0xff, lun=0xff; lun 945 drivers/scsi/53c700.c lun = SCp->device->lun; lun 988 drivers/scsi/53c700.c cmnd[1] = (lun & 0x7) << 5; lun 1059 drivers/scsi/53c700.c host->host_no, pun, lun, NCR_700_fatal_messages[i]); lun 1070 drivers/scsi/53c700.c host->host_no, pun, lun, lun 1076 drivers/scsi/53c700.c __u8 lun; lun 1081 drivers/scsi/53c700.c lun = hostdata->msgin[0] & 0x1f; lun 1085 drivers/scsi/53c700.c host->host_no, reselection_id, lun)); lun 1087 drivers/scsi/53c700.c SDp = __scsi_device_lookup(host, 0, reselection_id, lun); lun 1090 drivers/scsi/53c700.c host->host_no, reselection_id, lun); lun 1099 drivers/scsi/53c700.c host->host_no, reselection_id, lun, hostdata->msgin[2]); lun 1121 drivers/scsi/53c700.c host->host_no, reselection_id, lun, lun 1177 drivers/scsi/53c700.c host->host_no, reselection_id, lun, dsp, dsp - hostdata->pScript, hostdata->state, hostdata->command_slot_count); lun 1235 drivers/scsi/53c700.c host->host_no, pun, lun, NCR_700_condition[i], lun 1248 drivers/scsi/53c700.c host->host_no, pun, lun, dsps & 0xfff, dsp, dsp - hostdata->pScript); lun 1252 drivers/scsi/53c700.c host->host_no, pun, lun, dsps, dsp - hostdata->pScript); lun 1383 drivers/scsi/53c700.c u8 lun = SCp->device->lun; lun 1403 drivers/scsi/53c700.c lun); lun 1472 drivers/scsi/53c700.c __u8 pun = 0xff, lun = 0xff; lun 1516 drivers/scsi/53c700.c lun = SCp->device->lun; lun 1569 drivers/scsi/53c700.c host->host_no, pun, lun)); lun 1581 drivers/scsi/53c700.c printk("scsi%d (%d:%d) PHASE MISMATCH IN SEND MESSAGE %d remain, return %p[%04x], phase %s\n", host->host_no, pun, lun, count, (void *)temp, temp - hostdata->pScript, sbcl_to_string(NCR_700_readb(host, SBCL_REG))); lun 1594 drivers/scsi/53c700.c host->host_no, pun, lun, lun 1599 drivers/scsi/53c700.c host->host_no, pun, lun, lun 1619 drivers/scsi/53c700.c printk("scsi%d (%d:%d) transfer mismatch pAddr=%lx, naddr=%lx, data_transfer=%d, residual=%d\n", host->host_no, pun, lun, (unsigned long)pAddr, (unsigned long)naddr, data_transfer, residual); lun 1638 drivers/scsi/53c700.c host->host_no, pun, lun, dsp - hostdata->pScript, sbcl_to_string(sbcl)); lun 1644 drivers/scsi/53c700.c host->host_no, pun, lun); lun 1648 drivers/scsi/53c700.c host->host_no, pun, lun); lun 1652 drivers/scsi/53c700.c host->host_no, pun, lun)); lun 1657 drivers/scsi/53c700.c host->host_no, pun, lun, lun 1662 drivers/scsi/53c700.c host->host_no, pun, lun, dstat); lun 3031 drivers/scsi/BusLogic.c int lun = command->device->lun; lun 3119 drivers/scsi/BusLogic.c ccb->lun = lun; lun 823 drivers/scsi/BusLogic.h unsigned char lun:5; /* Byte 17 Bits 0-4 */ lun 1498 drivers/scsi/FlashPoint.c unsigned char thisCard, lun; lun 1570 drivers/scsi/FlashPoint.c lun = p_Sccb->Lun; lun 1572 drivers/scsi/FlashPoint.c lun = 0; lun 1575 drivers/scsi/FlashPoint.c && (FPT_sccbMgrTbl[thisCard][p_Sccb->TargID].TarLUNBusy[lun] lun 2198 drivers/scsi/FlashPoint.c unsigned char lun, qtag; lun 2211 drivers/scsi/FlashPoint.c for (lun = 0; lun < MAX_LUN; lun++) { lun 2212 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 0; lun 2213 drivers/scsi/FlashPoint.c currTar_Info->LunDiscQ_Idx[lun] = 0; lun 2313 drivers/scsi/FlashPoint.c unsigned char lastTag, lun; lun 2329 drivers/scsi/FlashPoint.c lun = currSCCB->Lun; lun 2331 drivers/scsi/FlashPoint.c lun = 0; lun 2340 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2347 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2353 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2365 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2372 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2379 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2389 drivers/scsi/FlashPoint.c currTar_Info->LunDiscQ_Idx[lun] = lastTag; lun 2396 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2495 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2529 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2607 drivers/scsi/FlashPoint.c unsigned char our_target, message, lun = 0, tag, msgRetryCount; lun 2686 drivers/scsi/FlashPoint.c lun = message & (unsigned char)LUN_MASK; lun 2794 drivers/scsi/FlashPoint.c currTar_Info->TarLUNBusy[lun] = 1; lun 2796 drivers/scsi/FlashPoint.c pCurrCard->discQ_Tbl[currTar_Info->LunDiscQ_Idx[lun]]; lun 6667 drivers/scsi/FlashPoint.c unsigned char scan_ptr, lun; lun 6683 drivers/scsi/FlashPoint.c for (lun = 0; lun < MAX_LUN; lun++) { lun 6684 drivers/scsi/FlashPoint.c if (currTar_Info->TarLUNBusy[lun] == 0) { lun 6692 drivers/scsi/FlashPoint.c && (lun != lun 632 drivers/scsi/NCR5380.c cmd, scmd_id(cmd), hostdata->busy[scmd_id(cmd)], cmd->device->lun); lun 634 drivers/scsi/NCR5380.c if (!(hostdata->busy[scmd_id(cmd)] & (1 << cmd->device->lun))) { lun 1181 drivers/scsi/NCR5380.c tmp[0] = IDENTIFY(can_disconnect, cmd->device->lun); lun 1199 drivers/scsi/NCR5380.c hostdata->busy[cmd->device->id] |= 1 << cmd->device->lun; lun 1727 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); lun 1801 drivers/scsi/NCR5380.c cmd, scmd_id(cmd), cmd->device->lun); lun 1804 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); lun 1839 drivers/scsi/NCR5380.c hostdata->busy[cmd->device->id] |= (1 << (cmd->device->lun & 0xFF)); lun 1852 drivers/scsi/NCR5380.c cmd, scmd_id(cmd), cmd->device->lun); lun 1958 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); lun 2008 drivers/scsi/NCR5380.c unsigned char lun; lun 2087 drivers/scsi/NCR5380.c lun = msg[0] & 0x07; lun 2105 drivers/scsi/NCR5380.c lun == (u8)cmd->device->lun) { lun 2119 drivers/scsi/NCR5380.c target_mask, lun); lun 2125 drivers/scsi/NCR5380.c hostdata->busy[target] &= ~(1 << lun); lun 2156 drivers/scsi/NCR5380.c scmd_id(tmp), tmp->device->lun); lun 2292 drivers/scsi/NCR5380.c hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); lun 858 drivers/scsi/a100u2w.c scb->lun = cmd->device->lun; lun 894 drivers/scsi/a100u2w.c scb->ident = (u8)(cmd->device->lun & 0xff) | DISC_ALLOW; lun 150 drivers/scsi/a100u2w.h u8 lun; /*03 Lun */ lun 1502 drivers/scsi/aacraid/aachba.c srbcmd->lun = cpu_to_le32(cmd->device->lun); lun 1538 drivers/scsi/aacraid/aachba.c hbacmd->lun[1] = cpu_to_le32(cmd->device->lun); lun 1700 drivers/scsi/aacraid/aachba.c srb->lun = 0; lun 1855 drivers/scsi/aacraid/aachba.c static inline u32 aac_get_safw_phys_bus(struct aac_dev *dev, int lun) lun 1857 drivers/scsi/aacraid/aachba.c return dev->safw_phys_luns->lun[lun].level2[1] & 0x3f; lun 1860 drivers/scsi/aacraid/aachba.c static inline u32 aac_get_safw_phys_target(struct aac_dev *dev, int lun) lun 1862 drivers/scsi/aacraid/aachba.c return dev->safw_phys_luns->lun[lun].level2[0]; lun 1865 drivers/scsi/aacraid/aachba.c static inline u32 aac_get_safw_phys_expose_flag(struct aac_dev *dev, int lun) lun 1867 drivers/scsi/aacraid/aachba.c return dev->safw_phys_luns->lun[lun].bus >> 6; lun 1870 drivers/scsi/aacraid/aachba.c static inline u32 aac_get_safw_phys_attribs(struct aac_dev *dev, int lun) lun 1872 drivers/scsi/aacraid/aachba.c return dev->safw_phys_luns->lun[lun].node_ident[9]; lun 1875 drivers/scsi/aacraid/aachba.c static inline u32 aac_get_safw_phys_nexus(struct aac_dev *dev, int lun) lun 1877 drivers/scsi/aacraid/aachba.c return *((u32 *)&dev->safw_phys_luns->lun[lun].node_ident[12]); lun 1880 drivers/scsi/aacraid/aachba.c static inline u32 aac_get_safw_phys_device_type(struct aac_dev *dev, int lun) lun 1882 drivers/scsi/aacraid/aachba.c return dev->safw_phys_luns->lun[lun].node_ident[8]; lun 2863 drivers/scsi/aacraid/aachba.c (scsicmd->device->lun != 0)) { lun 3363 drivers/scsi/aacraid/aachba.c } else if ((qd.bus == -1) && (qd.id == -1) && (qd.lun == -1)) { lun 3369 drivers/scsi/aacraid/aachba.c qd.lun = CONTAINER_TO_LUN(qd.cnum); lun 3835 drivers/scsi/aacraid/aachba.c scsicmd->device->lun > 7) { lun 3877 drivers/scsi/aacraid/aachba.c scsicmd->device->lun > AAC_MAX_LUN - 1) { lun 200 drivers/scsi/aacraid/aacraid.h u8 lun[8]; /* SCSI LUN of the command */ lun 245 drivers/scsi/aacraid/aacraid.h u8 lun[8]; /* SCSI LUN */ lun 322 drivers/scsi/aacraid/aacraid.h } lun[1]; /* List of phys. devices */ lun 1985 drivers/scsi/aacraid/aacraid.h __le32 lun; lun 2004 drivers/scsi/aacraid/aacraid.h u32 lun; lun 2316 drivers/scsi/aacraid/aacraid.h s32 lun; lun 591 drivers/scsi/aacraid/commctrl.c hbacmd->lun[1] = cpu_to_le32(user_srbcmd->lun); lun 627 drivers/scsi/aacraid/commctrl.c srbcmd->lun = cpu_to_le32(user_srbcmd->lun); lun 1065 drivers/scsi/aacraid/commsup.c u32 channel, id, lun, container; lun 1078 drivers/scsi/aacraid/commsup.c container = channel = id = lun = (u32)-1; lun 1105 drivers/scsi/aacraid/commsup.c lun = (container >> 16) & 0xFF; lun 1230 drivers/scsi/aacraid/commsup.c lun = (container >> 16) & 0xFF; lun 1240 drivers/scsi/aacraid/commsup.c lun); lun 1272 drivers/scsi/aacraid/commsup.c lun = (container >> 16) & 0xFF; lun 1276 drivers/scsi/aacraid/commsup.c if ((0x2000 <= id) || lun || channel || lun 1280 drivers/scsi/aacraid/commsup.c lun = (id >> 4) & 7; lun 1376 drivers/scsi/aacraid/commsup.c lun = CONTAINER_TO_LUN(container); lun 1407 drivers/scsi/aacraid/commsup.c device = scsi_device_lookup(dev->scsi_host_ptr, channel, id, lun); lun 1458 drivers/scsi/aacraid/commsup.c scsi_add_device(dev->scsi_host_ptr, channel, id, lun); lun 2322 drivers/scsi/aacraid/commsup.c srbcmd->lun = 0; lun 689 drivers/scsi/aacraid/linit.c host->host_no, sdev_channel(dev), sdev_id(dev), (int)dev->lun); lun 713 drivers/scsi/aacraid/linit.c tmf->lun[1] = cmd->device->lun; lun 745 drivers/scsi/aacraid/linit.c (int)dev->lun); lun 819 drivers/scsi/aacraid/linit.c int_to_scsilun(tmf_lun, (struct scsi_lun *)tmf->lun); lun 917 drivers/scsi/aacraid/linit.c command = aac_eh_tmf_lun_reset_fib(info, fib, dev->lun); lun 247 drivers/scsi/advansys.c #define ASC_TIDLUN_TO_IX(tid, lun) (ASC_SCSI_TIX_TYPE)((tid) + ((lun)<<ASC_SCSI_ID_BITS)) lun 7313 drivers/scsi/advansys.c if (sdev->lun == 0) { lun 7327 drivers/scsi/advansys.c if (sdev->lun == 0) { lun 7335 drivers/scsi/advansys.c if (sdev->lun == 0) { lun 7341 drivers/scsi/advansys.c if ((sdev->lun == 0) && lun 7439 drivers/scsi/advansys.c if (sdev->lun == 0) { lun 7530 drivers/scsi/advansys.c asc_scsi_q->q1.target_lun = scp->device->lun; lun 7532 drivers/scsi/advansys.c ASC_TIDLUN_TO_IX(scp->device->id, scp->device->lun); lun 7789 drivers/scsi/advansys.c scsiqp->target_lun = scp->device->lun; lun 279 drivers/scsi/aha152x.c (cmd) ? ((u8)(cmd)->device->lun & 0x07) : -1 lun 661 drivers/scsi/aha152x.c int target, int lun) lun 666 drivers/scsi/aha152x.c ptr && ((ptr->device->id != target) || (ptr->device->lun != lun)); lun 1524 drivers/scsi/aha152x.c ADDMSGO(IDENTIFY(RECONNECT, CURRENT_SC->device->lun)); lun 1829 drivers/scsi/aha152x.c ADDMSGO(IDENTIFY(RECONNECT, CURRENT_SC->device->lun)); lun 2486 drivers/scsi/aha152x.c ptr, ptr->device->id, (u8)ptr->device->lun); lun 398 drivers/scsi/aha1542.c u8 lun = cmd->device->lun; lun 499 drivers/scsi/aha1542.c ccb[mbo].idlun = (target & 7) << 5 | direction | (lun & 7); /*SCSI Target Id */ lun 859 drivers/scsi/aha1542.c u8 lun = cmd->device->lun; lun 892 drivers/scsi/aha1542.c ccb[mbo].idlun = (target & 7) << 5 | (lun & 7); /*SCSI Target Id */ lun 421 drivers/scsi/aha1740.c host->ecb[ecbno].lun = SCpnt->device->lun; lun 115 drivers/scsi/aha1740.h u16 lun:3, /* Logical Unit */ lun 84 drivers/scsi/aic7xxx/aic79xx.h ((scb)->hscb->lun) lun 104 drivers/scsi/aic7xxx/aic79xx.h #define BUILD_TCL(scsiid, lun) \ lun 105 drivers/scsi/aic7xxx/aic79xx.h ((lun) | (((scsiid) & TID) << 4)) lun 106 drivers/scsi/aic7xxx/aic79xx.h #define BUILD_TCL_RAW(target, channel, lun) \ lun 107 drivers/scsi/aic7xxx/aic79xx.h ((lun) | ((target) << 8)) lun 117 drivers/scsi/aic7xxx/aic79xx.h #define AHD_BUILD_COL_IDX(target, lun) \ lun 118 drivers/scsi/aic7xxx/aic79xx.h ((((u8)lun) << 4) | target) lun 126 drivers/scsi/aic7xxx/aic79xx.h (scb)->hscb->lun = ((col_idx) >> 4) & (AHD_NUM_LUNS_NONPKT-1); \ lun 132 drivers/scsi/aic7xxx/aic79xx.h dst->hscb->lun = src->hscb->lun; \ lun 496 drivers/scsi/aic7xxx/aic79xx.h /*20*/ uint8_t lun; lun 1290 drivers/scsi/aic7xxx/aic79xx.h u_int lun; lun 1377 drivers/scsi/aic7xxx/aic79xx.h char channel, int lun, u_int tag, lun 1381 drivers/scsi/aic7xxx/aic79xx.h char channel, int lun, u_int tag, lun 1389 drivers/scsi/aic7xxx/aic79xx.h u_int lun, char channel, lun 162 drivers/scsi/aic7xxx/aic79xx_core.c u_int lun, cam_status status, lun 189 drivers/scsi/aic7xxx/aic79xx_core.c char channel, int lun, u_int tag, lun 233 drivers/scsi/aic7xxx/aic79xx_core.c char channel, int lun, u_int tag, lun 258 drivers/scsi/aic7xxx/aic79xx_core.c int target, char channel, int lun, lun 1819 drivers/scsi/aic7xxx/aic79xx_core.c ahd_outb(ahd, SAVED_LUN, scb->hscb->lun); lun 2249 drivers/scsi/aic7xxx/aic79xx_core.c devinfo.lun); lun 2275 drivers/scsi/aic7xxx/aic79xx_core.c u_int lun; lun 2282 drivers/scsi/aic7xxx/aic79xx_core.c lun = CAM_LUN_WILDCARD; lun 2291 drivers/scsi/aic7xxx/aic79xx_core.c lun = scb->hscb->lun; lun 2294 drivers/scsi/aic7xxx/aic79xx_core.c 'A', lun, tag, ROLE_INITIATOR, lun 2298 drivers/scsi/aic7xxx/aic79xx_core.c lun = scb->hscb->lun; lun 2306 drivers/scsi/aic7xxx/aic79xx_core.c ahd_handle_devreset(ahd, &devinfo, lun, lun 2308 drivers/scsi/aic7xxx/aic79xx_core.c lun != CAM_LUN_WILDCARD lun 3101 drivers/scsi/aic7xxx/aic79xx_core.c saved_lun = scb->hscb->lun; lun 3602 drivers/scsi/aic7xxx/aic79xx_core.c hscb->lun, lun 4090 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, AC_TRANSFER_NEG); lun 4335 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 4358 drivers/scsi/aic7xxx/aic79xx_core.c u_int lun, char channel, role_t role) lun 4362 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun = lun; lun 4623 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, period, offset); lun 4641 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, bus_width); lun 4670 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel, devinfo->target, devinfo->lun, lun 5179 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, lun 5208 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 5250 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, lun 5266 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, lun 5279 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 5391 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 5396 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 5410 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun, lun 5457 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, tag, ROLE_TARGET, lun 5464 drivers/scsi/aic7xxx/aic79xx_core.c lstate = tstate->enabled_luns[devinfo->lun]; lun 5549 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 5564 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 5580 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel, devinfo->target, devinfo->lun); lun 5609 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->target, devinfo->lun); lun 5619 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->channel, devinfo->target, devinfo->lun); lun 5626 drivers/scsi/aic7xxx/aic79xx_core.c devinfo->lun, tag_type == MSG_ORDERED_TASK lun 5643 drivers/scsi/aic7xxx/aic79xx_core.c ahd_busy_tcl(ahd, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), lun 5918 drivers/scsi/aic7xxx/aic79xx_core.c u_int lun, cam_status status, char *message, lun 5927 drivers/scsi/aic7xxx/aic79xx_core.c lun, SCB_LIST_NULL, devinfo->role, lun 5940 drivers/scsi/aic7xxx/aic79xx_core.c if (lun != CAM_LUN_WILDCARD) { lun 5944 drivers/scsi/aic7xxx/aic79xx_core.c cur_lun = lun; lun 5945 drivers/scsi/aic7xxx/aic79xx_core.c max_lun = lun; lun 7376 drivers/scsi/aic7xxx/aic79xx_core.c ahd_outb(ahd, LUNPTR, offsetof(struct hardware_scb, lun)); lun 7512 drivers/scsi/aic7xxx/aic79xx_core.c int lun; lun 7514 drivers/scsi/aic7xxx/aic79xx_core.c for (lun = 0; lun < AHD_NUM_LUNS_NONPKT; lun++) lun 7515 drivers/scsi/aic7xxx/aic79xx_core.c ahd_unbusy_tcl(ahd, BUILD_TCL_RAW(target, 'A', lun)); lun 7992 drivers/scsi/aic7xxx/aic79xx_core.c char channel, int lun, u_int tag, role_t role) lun 8003 drivers/scsi/aic7xxx/aic79xx_core.c match = ((lun == slun) || (lun == CAM_LUN_WILDCARD)); lun 8031 drivers/scsi/aic7xxx/aic79xx_core.c int lun; lun 8034 drivers/scsi/aic7xxx/aic79xx_core.c lun = SCB_GET_LUN(scb); lun 8037 drivers/scsi/aic7xxx/aic79xx_core.c ahd_search_qinfifo(ahd, target, channel, lun, lun 8146 drivers/scsi/aic7xxx/aic79xx_core.c int lun, u_int tag, role_t role, uint32_t status, lun 8208 drivers/scsi/aic7xxx/aic79xx_core.c if (ahd_match_scb(ahd, scb, target, channel, lun, tag, role)) { lun 8294 drivers/scsi/aic7xxx/aic79xx_core.c lun, tag, role, status, lun 8303 drivers/scsi/aic7xxx/aic79xx_core.c lun, tag, role)) { lun 8376 drivers/scsi/aic7xxx/aic79xx_core.c int lun, u_int tag, role_t role, uint32_t status, lun 8409 drivers/scsi/aic7xxx/aic79xx_core.c lun, SCB_LIST_NULL, role) == 0) { lun 8533 drivers/scsi/aic7xxx/aic79xx_core.c int lun, u_int tag, role_t role, uint32_t status) lun 8548 drivers/scsi/aic7xxx/aic79xx_core.c found = ahd_search_qinfifo(ahd, target, channel, lun, SCB_LIST_NULL, lun 8563 drivers/scsi/aic7xxx/aic79xx_core.c if (lun == CAM_LUN_WILDCARD) { lun 8566 drivers/scsi/aic7xxx/aic79xx_core.c } else if (lun >= AHD_NUM_LUNS_NONPKT) { lun 8569 drivers/scsi/aic7xxx/aic79xx_core.c minlun = lun; lun 8570 drivers/scsi/aic7xxx/aic79xx_core.c maxlun = lun + 1; lun 8584 drivers/scsi/aic7xxx/aic79xx_core.c lun, tag, role) == 0) lun 8607 drivers/scsi/aic7xxx/aic79xx_core.c if (ahd_match_scb(ahd, scbp, target, channel, lun, tag, role)) { lun 8622 drivers/scsi/aic7xxx/aic79xx_core.c ahd_platform_abort_scbs(ahd, target, channel, lun, tag, role, status); lun 8780 drivers/scsi/aic7xxx/aic79xx_core.c u_int lun; lun 8785 drivers/scsi/aic7xxx/aic79xx_core.c for (lun = 0; lun < AHD_NUM_LUNS; lun++) { lun 8788 drivers/scsi/aic7xxx/aic79xx_core.c lstate = tstate->enabled_luns[lun]; lun 10275 drivers/scsi/aic7xxx/aic79xx_core.c u_int lun; lun 10347 drivers/scsi/aic7xxx/aic79xx_core.c lun = ccb->ccb_h.target_lun; lun 10411 drivers/scsi/aic7xxx/aic79xx_core.c tstate->enabled_luns[lun] = lstate; lun 10519 drivers/scsi/aic7xxx/aic79xx_core.c tstate->enabled_luns[lun] = NULL; lun 10666 drivers/scsi/aic7xxx/aic79xx_core.c int lun; lun 10670 drivers/scsi/aic7xxx/aic79xx_core.c lun = (cmd->identify & MSG_IDENTIFY_LUNMASK); lun 10676 drivers/scsi/aic7xxx/aic79xx_core.c lstate = tstate->enabled_luns[lun]; lun 10696 drivers/scsi/aic7xxx/aic79xx_core.c initiator, target, lun, lun 10704 drivers/scsi/aic7xxx/aic79xx_core.c atio->ccb_h.target_lun = lun; lun 10760 drivers/scsi/aic7xxx/aic79xx_core.c initiator, target, lun, ahd->pending_device); lun 152 drivers/scsi/aic7xxx/aic79xx_inline.h dst->hscb->lun = src->hscb->lun; \ lun 841 drivers/scsi/aic7xxx/aic79xx_osm.c reset_scb->hscb->lun = cmd->device->lun; lun 1487 drivers/scsi/aic7xxx/aic79xx_osm.c int lun, u_int tag, role_t role, uint32_t status) lun 1535 drivers/scsi/aic7xxx/aic79xx_osm.c sdev->sdev_target->id, sdev->lun, lun 1543 drivers/scsi/aic7xxx/aic79xx_osm.c devinfo.lun, AC_TRANSFER_NEG); lun 1549 drivers/scsi/aic7xxx/aic79xx_osm.c devinfo.lun, AC_TRANSFER_NEG); lun 1582 drivers/scsi/aic7xxx/aic79xx_osm.c cmd->device->lun); lun 1601 drivers/scsi/aic7xxx/aic79xx_osm.c hscb->lun = cmd->device->lun; lun 1687 drivers/scsi/aic7xxx/aic79xx_osm.c u_int target, u_int lun, ac_code code) lun 1754 drivers/scsi/aic7xxx/aic79xx_osm.c WARN_ON(lun != CAM_LUN_WILDCARD); lun 1889 drivers/scsi/aic7xxx/aic79xx_osm.c sdev->sdev_target->id, sdev->lun, lun 2126 drivers/scsi/aic7xxx/aic79xx_osm.c cmd->device->id, (u8)cmd->device->lun); lun 2242 drivers/scsi/aic7xxx/aic79xx_osm.c cmd->device->lun, lun 2248 drivers/scsi/aic7xxx/aic79xx_osm.c cmd->device->id, (u8)cmd->device->lun); lun 2335 drivers/scsi/aic7xxx/aic79xx_osm.c cmd->device->channel + 'A', cmd->device->lun, lun 666 drivers/scsi/aic7xxx/aic79xx_osm.h char channel, int lun, u_int tag, lun 672 drivers/scsi/aic7xxx/aic79xx_osm.h u_int target, u_int lun, ac_code); lun 163 drivers/scsi/aic7xxx/aic79xx_proc.c int lun; lun 179 drivers/scsi/aic7xxx/aic79xx_proc.c for (lun = 0; lun < AHD_NUM_LUNS; lun++) { lun 182 drivers/scsi/aic7xxx/aic79xx_proc.c dev = scsi_device_lookup_by_target(starget, lun); lun 198 drivers/scsi/aic7xxx/aic79xx_proc.c sdev->sdev_target->id, (u8)sdev->lun); lun 86 drivers/scsi/aic7xxx/aic7xxx.h ((scb)->hscb->lun & LID) lun 103 drivers/scsi/aic7xxx/aic7xxx.h #define BUILD_TCL(scsiid, lun) \ lun 104 drivers/scsi/aic7xxx/aic7xxx.h ((lun) | (((scsiid) & TID) << 4)) lun 464 drivers/scsi/aic7xxx/aic7xxx.h /*26*/ uint8_t lun; lun 1098 drivers/scsi/aic7xxx/aic7xxx.h u_int lun; lun 1152 drivers/scsi/aic7xxx/aic7xxx.h int target, char channel, int lun, lun 1179 drivers/scsi/aic7xxx/aic7xxx.h char channel, int lun, u_int tag, lun 1185 drivers/scsi/aic7xxx/aic7xxx.h int lun, uint32_t status, lun 1188 drivers/scsi/aic7xxx/aic7xxx.h char channel, int lun, u_int tag, lun 1197 drivers/scsi/aic7xxx/aic7xxx.h u_int lun, char channel, lun 262 drivers/scsi/aic7xxx/aic7xxx_core.c char channel, int lun, u_int tag, lun 619 drivers/scsi/aic7xxx/aic7xxx_core.c scb->hscb->lun &= LID; lun 621 drivers/scsi/aic7xxx/aic7xxx_core.c scb->hscb->lun |= SCB_XFERLEN_ODD; lun 1451 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo.lun); lun 2104 drivers/scsi/aic7xxx/aic7xxx_core.c hscb->lun, lun 2676 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, AC_TRANSFER_NEG); lun 2814 drivers/scsi/aic7xxx/aic7xxx_core.c u_int lun, char channel, role_t role) lun 2818 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun = lun; lun 2831 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); lun 3064 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, period, offset); lun 3082 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, bus_width); lun 3104 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel, devinfo->target, devinfo->lun, lun 3665 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, lun 3695 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); lun 3737 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, lun 3753 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, lun 3766 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); lun 3884 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); lun 3889 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); lun 3903 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun, lun 3950 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, tag, ROLE_TARGET, lun 3957 drivers/scsi/aic7xxx/aic7xxx_core.c lstate = tstate->enabled_luns[devinfo->lun]; lun 4031 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); lun 4046 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel, devinfo->target, devinfo->lun); lun 4075 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->target, devinfo->lun); lun 4085 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->channel, devinfo->target, devinfo->lun); lun 4092 drivers/scsi/aic7xxx/aic7xxx_core.c devinfo->lun, tag_type == MSG_ORDERED_TASK lun 4122 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_busy_tcl(ahc, BUILD_TCL(scb->hscb->scsiid, devinfo->lun), lun 4320 drivers/scsi/aic7xxx/aic7xxx_core.c u_int lun; lun 4335 drivers/scsi/aic7xxx/aic7xxx_core.c for (lun = 0; lun < AHC_NUM_LUNS; lun++) { lun 4338 drivers/scsi/aic7xxx/aic7xxx_core.c lstate = tstate->enabled_luns[lun]; lun 5118 drivers/scsi/aic7xxx/aic7xxx_core.c int lun; lun 5124 drivers/scsi/aic7xxx/aic7xxx_core.c for (lun = 1; lun < AHC_NUM_LUNS; lun++) lun 5125 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_unbusy_tcl(ahc, BUILD_TCL(i << 4, lun)); lun 5723 drivers/scsi/aic7xxx/aic7xxx_core.c char channel, int lun, u_int tag, role_t role) lun 5734 drivers/scsi/aic7xxx/aic7xxx_core.c match = ((lun == slun) || (lun == CAM_LUN_WILDCARD)); lun 5762 drivers/scsi/aic7xxx/aic7xxx_core.c int lun; lun 5765 drivers/scsi/aic7xxx/aic7xxx_core.c lun = SCB_GET_LUN(scb); lun 5768 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_search_qinfifo(ahc, target, channel, lun, lun 5830 drivers/scsi/aic7xxx/aic7xxx_core.c int lun, u_int tag, role_t role, uint32_t status, lun 5878 drivers/scsi/aic7xxx/aic7xxx_core.c if (ahc_match_scb(ahc, scb, target, channel, lun, tag, role)) { lun 5990 drivers/scsi/aic7xxx/aic7xxx_core.c lun, SCB_LIST_NULL, role)) { lun 6030 drivers/scsi/aic7xxx/aic7xxx_core.c channel, lun, status, action); lun 6039 drivers/scsi/aic7xxx/aic7xxx_core.c int target, char channel, int lun, uint32_t status, lun 6094 drivers/scsi/aic7xxx/aic7xxx_core.c if (ahc_match_scb(ahc, scb, target, channel, lun, lun 6137 drivers/scsi/aic7xxx/aic7xxx_core.c int lun, u_int tag, int stop_on_first, int remove, lun 6176 drivers/scsi/aic7xxx/aic7xxx_core.c if (ahc_match_scb(ahc, scbp, target, channel, lun, lun 6300 drivers/scsi/aic7xxx/aic7xxx_core.c int lun, u_int tag, role_t role, uint32_t status) lun 6321 drivers/scsi/aic7xxx/aic7xxx_core.c found = ahc_search_qinfifo(ahc, target, channel, lun, SCB_LIST_NULL, lun 6336 drivers/scsi/aic7xxx/aic7xxx_core.c if (lun == CAM_LUN_WILDCARD) { lun 6349 drivers/scsi/aic7xxx/aic7xxx_core.c minlun = lun; lun 6350 drivers/scsi/aic7xxx/aic7xxx_core.c maxlun = lun + 1; lun 6364 drivers/scsi/aic7xxx/aic7xxx_core.c lun, tag, role) == 0) lun 6376 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_search_disc_list(ahc, target, channel, lun, tag, lun 6396 drivers/scsi/aic7xxx/aic7xxx_core.c && ahc_match_scb(ahc, scbp, target, channel, lun, tag, role))) lun 6410 drivers/scsi/aic7xxx/aic7xxx_core.c if (ahc_match_scb(ahc, scbp, target, channel, lun, tag, role)) { lun 6425 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_platform_abort_scbs(ahc, target, channel, lun, tag, role, status); lun 6564 drivers/scsi/aic7xxx/aic7xxx_core.c u_int lun; lun 6569 drivers/scsi/aic7xxx/aic7xxx_core.c for (lun = 0; lun < AHC_NUM_LUNS; lun++) { lun 6572 drivers/scsi/aic7xxx/aic7xxx_core.c lstate = tstate->enabled_luns[lun]; lun 7274 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_scb_lun_print(scb->hscb->lun, &cur_col, 60); lun 7368 drivers/scsi/aic7xxx/aic7xxx_core.c u_int lun; lun 7485 drivers/scsi/aic7xxx/aic7xxx_core.c lun = ccb->ccb_h.target_lun; lun 7549 drivers/scsi/aic7xxx/aic7xxx_core.c tstate->enabled_luns[lun] = lstate; lun 7664 drivers/scsi/aic7xxx/aic7xxx_core.c tstate->enabled_luns[lun] = NULL; lun 7833 drivers/scsi/aic7xxx/aic7xxx_core.c int lun; lun 7837 drivers/scsi/aic7xxx/aic7xxx_core.c lun = (cmd->identify & MSG_IDENTIFY_LUNMASK); lun 7843 drivers/scsi/aic7xxx/aic7xxx_core.c lstate = tstate->enabled_luns[lun]; lun 7864 drivers/scsi/aic7xxx/aic7xxx_core.c initiator, target, lun, lun 7872 drivers/scsi/aic7xxx/aic7xxx_core.c atio->ccb_h.target_lun = lun; lun 7927 drivers/scsi/aic7xxx/aic7xxx_core.c initiator, target, lun, ahc->pending_device); lun 1351 drivers/scsi/aic7xxx/aic7xxx_osm.c int lun, u_int tag, role_t role, uint32_t status) lun 1400 drivers/scsi/aic7xxx/aic7xxx_osm.c sdev->sdev_target->id, sdev->lun, lun 1408 drivers/scsi/aic7xxx/aic7xxx_osm.c devinfo.lun, AC_TRANSFER_NEG); lun 1414 drivers/scsi/aic7xxx/aic7xxx_osm.c devinfo.lun, AC_TRANSFER_NEG); lun 1478 drivers/scsi/aic7xxx/aic7xxx_osm.c hscb->lun = cmd->device->lun; lun 1605 drivers/scsi/aic7xxx/aic7xxx_osm.c u_int target, u_int lun, ac_code code) lun 1670 drivers/scsi/aic7xxx/aic7xxx_osm.c WARN_ON(lun != CAM_LUN_WILDCARD); lun 1818 drivers/scsi/aic7xxx/aic7xxx_osm.c sdev->sdev_target->id, sdev->lun, lun 2098 drivers/scsi/aic7xxx/aic7xxx_osm.c (u8)cmd->device->lun); lun 2106 drivers/scsi/aic7xxx/aic7xxx_osm.c (u8)cmd->device->lun, lun 2110 drivers/scsi/aic7xxx/aic7xxx_osm.c (u8)cmd->device->lun); lun 2170 drivers/scsi/aic7xxx/aic7xxx_osm.c cmd->device->lun, lun 2176 drivers/scsi/aic7xxx/aic7xxx_osm.c cmd->device->id, (u8)cmd->device->lun); lun 2182 drivers/scsi/aic7xxx/aic7xxx_osm.c cmd->device->lun, lun 2258 drivers/scsi/aic7xxx/aic7xxx_osm.c cmd->device->lun, pending_scb->hscb->tag, lun 2283 drivers/scsi/aic7xxx/aic7xxx_osm.c cmd->device->lun, SCB_LIST_NULL, lun 682 drivers/scsi/aic7xxx/aic7xxx_osm.h char channel, int lun, u_int tag, lun 689 drivers/scsi/aic7xxx/aic7xxx_osm.h u_int target, u_int lun, ac_code); lun 141 drivers/scsi/aic7xxx/aic7xxx_proc.c int lun; lun 159 drivers/scsi/aic7xxx/aic7xxx_proc.c for (lun = 0; lun < AHC_NUM_LUNS; lun++) { lun 162 drivers/scsi/aic7xxx/aic7xxx_proc.c sdev = scsi_device_lookup_by_target(starget, lun); lun 178 drivers/scsi/aic7xxx/aic7xxx_proc.c sdev->sdev_target->id, (u8)sdev->lun); lun 47 drivers/scsi/aic7xxx/scsi_message.h #define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun)) lun 70 drivers/scsi/aic94xx/aic94xx.h int asd_abort_task_set(struct domain_device *, u8 *lun); lun 71 drivers/scsi/aic94xx/aic94xx.h int asd_clear_aca(struct domain_device *, u8 *lun); lun 72 drivers/scsi/aic94xx/aic94xx.h int asd_clear_task_set(struct domain_device *, u8 *lun); lun 73 drivers/scsi/aic94xx/aic94xx.h int asd_lu_reset(struct domain_device *, u8 *lun); lun 559 drivers/scsi/aic94xx/aic94xx_sas.h u8 lun[LUN_SIZE]; lun 485 drivers/scsi/aic94xx/aic94xx_task.c memcpy(scb->ssp_task.ssp_cmd.lun, task->ssp_task.LUN, 8); lun 201 drivers/scsi/aic94xx/aic94xx_tmf.c static int asd_clear_nexus_I_T_L(struct domain_device *dev, u8 *lun) lun 208 drivers/scsi/aic94xx/aic94xx_tmf.c memcpy(scb->clear_nexus.ssp_task.lun, lun, 8); lun 221 drivers/scsi/aic94xx/aic94xx_tmf.c memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8); lun 443 drivers/scsi/aic94xx/aic94xx_tmf.c memcpy(scb->abort_task.ssp_task.lun, task->ssp_task.LUN, 8); lun 556 drivers/scsi/aic94xx/aic94xx_tmf.c static int asd_initiate_ssp_tmf(struct domain_device *dev, u8 *lun, lun 592 drivers/scsi/aic94xx/aic94xx_tmf.c memcpy(scb->ssp_tmf.ssp_task.lun, lun, 8); lun 638 drivers/scsi/aic94xx/aic94xx_tmf.c int asd_abort_task_set(struct domain_device *dev, u8 *lun) lun 640 drivers/scsi/aic94xx/aic94xx_tmf.c int res = asd_initiate_ssp_tmf(dev, lun, TMF_ABORT_TASK_SET, 0); lun 643 drivers/scsi/aic94xx/aic94xx_tmf.c asd_clear_nexus_I_T_L(dev, lun); lun 647 drivers/scsi/aic94xx/aic94xx_tmf.c int asd_clear_aca(struct domain_device *dev, u8 *lun) lun 649 drivers/scsi/aic94xx/aic94xx_tmf.c int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_ACA, 0); lun 652 drivers/scsi/aic94xx/aic94xx_tmf.c asd_clear_nexus_I_T_L(dev, lun); lun 656 drivers/scsi/aic94xx/aic94xx_tmf.c int asd_clear_task_set(struct domain_device *dev, u8 *lun) lun 658 drivers/scsi/aic94xx/aic94xx_tmf.c int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_TASK_SET, 0); lun 661 drivers/scsi/aic94xx/aic94xx_tmf.c asd_clear_nexus_I_T_L(dev, lun); lun 665 drivers/scsi/aic94xx/aic94xx_tmf.c int asd_lu_reset(struct domain_device *dev, u8 *lun) lun 667 drivers/scsi/aic94xx/aic94xx_tmf.c int res = asd_initiate_ssp_tmf(dev, lun, TMF_LU_RESET, 0); lun 670 drivers/scsi/aic94xx/aic94xx_tmf.c asd_clear_nexus_I_T_L(dev, lun); lun 790 drivers/scsi/arcmsr/arcmsr_hba.c int target, lun; lun 841 drivers/scsi/arcmsr/arcmsr_hba.c for (lun = 0; lun < ARCMSR_MAX_TARGETLUN; lun 842 drivers/scsi/arcmsr/arcmsr_hba.c lun++) { lun 846 drivers/scsi/arcmsr/arcmsr_hba.c 0, target, lun); lun 850 drivers/scsi/arcmsr/arcmsr_hba.c 0, target, lun); lun 1331 drivers/scsi/arcmsr/arcmsr_hba.c uint8_t id, lun; lun 1333 drivers/scsi/arcmsr/arcmsr_hba.c lun = ccb->pcmd->device->lun; lun 1335 drivers/scsi/arcmsr/arcmsr_hba.c if (acb->devstate[id][lun] == ARECA_RAID_GONE) lun 1336 drivers/scsi/arcmsr/arcmsr_hba.c acb->devstate[id][lun] = ARECA_RAID_GOOD; lun 1342 drivers/scsi/arcmsr/arcmsr_hba.c acb->devstate[id][lun] = ARECA_RAID_GONE; lun 1351 drivers/scsi/arcmsr/arcmsr_hba.c acb->devstate[id][lun] = ARECA_RAID_GONE; lun 1358 drivers/scsi/arcmsr/arcmsr_hba.c acb->devstate[id][lun] = ARECA_RAID_GOOD; lun 1370 drivers/scsi/arcmsr/arcmsr_hba.c , lun lun 1372 drivers/scsi/arcmsr/arcmsr_hba.c acb->devstate[id][lun] = ARECA_RAID_GONE; lun 1532 drivers/scsi/arcmsr/arcmsr_hba.c int target, lun, i; lun 1548 drivers/scsi/arcmsr/arcmsr_hba.c for (lun = 0; lun < ARCMSR_MAX_TARGETLUN; lun++) { lun 1551 drivers/scsi/arcmsr/arcmsr_hba.c 0, target, lun); lun 1738 drivers/scsi/arcmsr/arcmsr_hba.c arcmsr_cdb->LUN = pcmd->device->lun; lun 3047 drivers/scsi/arcmsr/arcmsr_hba.c if (cmd->device->lun) { lun 3346 drivers/scsi/arcmsr/arcmsr_hba.c , (u32)ccb->pcmd->device->lun lun 3415 drivers/scsi/arcmsr/arcmsr_hba.c ,(u32)ccb->pcmd->device->lun lun 3477 drivers/scsi/arcmsr/arcmsr_hba.c , (u32)pCCB->pcmd->device->lun lun 3554 drivers/scsi/arcmsr/arcmsr_hba.c , (u32)pCCB->pcmd->device->lun lun 3622 drivers/scsi/arcmsr/arcmsr_hba.c , (u32)pCCB->pcmd->device->lun lun 4445 drivers/scsi/arcmsr/arcmsr_hba.c acb->host->host_no, cmd->device->id, (u32)cmd->device->lun); lun 762 drivers/scsi/arm/acornscsi.c (u8)(SCpnt->device->lun & 0x07), host->busyluns); lun 866 drivers/scsi/arm/acornscsi.c (u8)(SCpnt->device->lun & 0x7), host->busyluns); lun 1580 drivers/scsi/arm/acornscsi.c (u8)(host->SCpnt->device->lun & 0x7), host->busyluns); lun 1692 drivers/scsi/arm/acornscsi.c host->SCpnt->device->lun)); lun 1767 drivers/scsi/arm/acornscsi.c unsigned int target, lun, ok = 0; lun 1785 drivers/scsi/arm/acornscsi.c lun = sbic_arm_read(host, SBIC_DATA) & 7; lun 1788 drivers/scsi/arm/acornscsi.c host->scsi.reconnected.lun = lun; lun 1792 drivers/scsi/arm/acornscsi.c host->SCpnt->device->id == target && host->SCpnt->device->lun == lun) lun 1795 drivers/scsi/arm/acornscsi.c if (!ok && queue_probetgtlun(&host->queues.disconnected, target, lun)) lun 1830 drivers/scsi/arm/acornscsi.c host->SCpnt->device->lun == host->scsi.reconnected.lun && lun 1849 drivers/scsi/arm/acornscsi.c host->scsi.reconnected.lun, lun 2384 drivers/scsi/arm/acornscsi.c clear_bit(host->scsi.reconnected.target * 8 + host->scsi.reconnected.lun, lun 2676 drivers/scsi/arm/acornscsi.c (u8)(SCpnt->device->lun & 0x7), host->busyluns); lun 2859 drivers/scsi/arm/acornscsi.c seq_printf(m, " %d/%llu ", scd->id, scd->lun); lun 288 drivers/scsi/arm/acornscsi.h unsigned char lun; /* reconnected lun */ lun 942 drivers/scsi/arm/fas216.c unsigned char target, lun, tag; lun 971 drivers/scsi/arm/fas216.c lun = msg[1] & 7; lun 987 drivers/scsi/arm/fas216.c target, lun, tag); lun 992 drivers/scsi/arm/fas216.c info->SCpnt->device->lun == lun && lun 1003 drivers/scsi/arm/fas216.c target, lun, tag); lun 1788 drivers/scsi/arm/fas216.c msgqueue_addmsg(&info->scsi.msgs, 1, IDENTIFY(disconnect_ok, SCpnt->device->lun)); lun 1830 drivers/scsi/arm/fas216.c (u8)(SCpnt->device->lun & 0x7), info->busyluns); lun 2179 drivers/scsi/arm/fas216.c (u8)(SCpnt->device->lun & 0x7), info->busyluns); lun 2407 drivers/scsi/arm/fas216.c (u8)(SCpnt->device->lun & 0x7), info->busyluns); lun 3002 drivers/scsi/arm/fas216.c seq_printf(m, " %d/%llu ", scd->id, scd->lun); lun 168 drivers/scsi/arm/queue.c (u8)(q->SCpnt->device->lun & 0x7), exclude)) { lun 206 drivers/scsi/arm/queue.c struct scsi_cmnd *queue_remove_tgtluntag(Queue_t *queue, int target, int lun, lun 216 drivers/scsi/arm/queue.c if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun && lun 257 drivers/scsi/arm/queue.c int queue_probetgtlun (Queue_t *queue, int target, int lun) lun 266 drivers/scsi/arm/queue.c if (q->SCpnt->device->id == target && q->SCpnt->device->lun == lun) { lun 73 drivers/scsi/arm/queue.h int lun, int tag); lun 93 drivers/scsi/arm/queue.h extern int queue_probetgtlun (Queue_t *queue, int target, int lun); lun 122 drivers/scsi/atp870u.c unsigned char i, j, c, target_id, lun,cmdp; lun 276 drivers/scsi/atp870u.c lun = 0; lun 278 drivers/scsi/atp870u.c lun = atp_readb_io(dev, c, 0x1d) & 0x07; lun 340 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x0f, lun); lun 794 drivers/scsi/atp870u.c atp_writeb_io(dev, c, 0x0f, workreq->device->lun); lun 312 drivers/scsi/be2iscsi/be_main.c if (sc->device->lun != task->sc->device->lun) lun 4547 drivers/scsi/be2iscsi/be_main.c AMAP_SET_BITS(struct amap_iscsi_wrb_v2, lun, pwrb, lun 4549 drivers/scsi/be2iscsi/be_main.c &io_task->cmd_bhs->iscsi_hdr.lun)); lun 4607 drivers/scsi/be2iscsi/be_main.c AMAP_SET_BITS(struct amap_iscsi_wrb, lun, pwrb, lun 4609 drivers/scsi/be2iscsi/be_main.c &io_task->cmd_bhs->iscsi_hdr.lun)); lun 438 drivers/scsi/be2iscsi/be_main.h u8 lun[64]; lun 710 drivers/scsi/be2iscsi/be_main.h u8 lun[14]; /* DWORD 0 */ lun 756 drivers/scsi/be2iscsi/be_main.h u8 lun[16]; /* DWORD 1 */ lun 823 drivers/scsi/be2iscsi/be_main.h u8 lun[64]; lun 851 drivers/scsi/be2iscsi/be_main.h u8 lun[64]; /* lun or opcode-specific fields */ lun 866 drivers/scsi/be2iscsi/be_main.h u8 lun[14]; /* DWORD 0 */ lun 705 drivers/scsi/bfa/bfa_defs.h struct scsi_lun lun; /* 64-bit lun */ lun 907 drivers/scsi/bfa/bfa_defs_svc.h struct scsi_lun lun; lun 1056 drivers/scsi/bfa/bfa_fc.h struct scsi_lun lun; /* 64-bit LU number */ lun 255 drivers/scsi/bfa/bfa_fcpim.c struct scsi_lun lun); lun 2273 drivers/scsi/bfa/bfa_fcpim.c wwn_t rpwwn, struct scsi_lun lun) lun 2301 drivers/scsi/bfa/bfa_fcpim.c (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == lun 2302 drivers/scsi/bfa/bfa_fcpim.c scsilun_to_int((struct scsi_lun *)&lun))) lun 2320 drivers/scsi/bfa/bfa_fcpim.c lunm_list[free_index].lun = lun; lun 2335 drivers/scsi/bfa/bfa_fcpim.c wwn_t rpwwn, struct scsi_lun lun) lun 2350 drivers/scsi/bfa/bfa_fcpim.c bfa_trc(bfa, scsilun_to_int((struct scsi_lun *)&lun)); lun 2368 drivers/scsi/bfa/bfa_fcpim.c (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == lun 2369 drivers/scsi/bfa/bfa_fcpim.c scsilun_to_int((struct scsi_lun *)&lun))) { lun 2372 drivers/scsi/bfa/bfa_fcpim.c int_to_scsilun(0, &lunm_list[i].lun); lun 2551 drivers/scsi/bfa/bfa_fcpim.c int_to_scsilun(cmnd->device->lun, &m->cmnd.lun); lun 3286 drivers/scsi/bfa/bfa_fcpim.c bfa_tskim_match_scope(struct bfa_tskim_s *tskim, struct scsi_lun lun) lun 3296 drivers/scsi/bfa/bfa_fcpim.c return !memcmp(&tskim->lun, &lun, sizeof(lun)); lun 3325 drivers/scsi/bfa/bfa_fcpim.c int_to_scsilun(cmnd->device->lun, &scsilun); lun 3338 drivers/scsi/bfa/bfa_fcpim.c int_to_scsilun(cmnd->device->lun, &scsilun); lun 3404 drivers/scsi/bfa/bfa_fcpim.c m->lun = tskim->lun; lun 3602 drivers/scsi/bfa/bfa_fcpim.c struct scsi_lun lun, lun 3606 drivers/scsi/bfa/bfa_fcpim.c tskim->lun = lun; lun 200 drivers/scsi/bfa/bfa_fcpim.h struct scsi_lun lun; /* lun if applicable */ lun 402 drivers/scsi/bfa/bfa_fcpim.h struct bfa_itnim_s *itnim, struct scsi_lun lun, lun 412 drivers/scsi/bfa/bfa_fcpim.h wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun); lun 414 drivers/scsi/bfa/bfa_fcpim.h wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun); lun 673 drivers/scsi/bfa/bfad_bsg.c iocmd->lun = 0; lun 2605 drivers/scsi/bfa/bfad_bsg.c &iocmd->pwwn, iocmd->rpwwn, iocmd->lun); lun 2609 drivers/scsi/bfa/bfad_bsg.c iocmd->rpwwn, iocmd->lun); lun 352 drivers/scsi/bfa/bfad_bsg.h u32 lun; lun 766 drivers/scsi/bfa/bfad_bsg.h struct scsi_lun lun; lun 345 drivers/scsi/bfa/bfad_im.c int_to_scsilun(cmnd->device->lun, &scsilun); lun 939 drivers/scsi/bfa/bfad_im.c scsilun_to_int(&lun_list[i].lun) == sdev->lun && lun 970 drivers/scsi/bfa/bfad_im.c if (sdev->lun == 0) { lun 810 drivers/scsi/bfa/bfi_ms.h struct scsi_lun lun; /* LU number */ lun 1456 drivers/scsi/bnx2fc/bnx2fc_io.c u64 tm_lun = sc_cmd->device->lun; lun 1457 drivers/scsi/bnx2fc/bnx2fc_io.c u64 lun; lun 1468 drivers/scsi/bnx2fc/bnx2fc_io.c lun = cmd->sc_cmd->device->lun; lun 1469 drivers/scsi/bnx2fc/bnx2fc_io.c if (lun == tm_lun) { lun 1744 drivers/scsi/bnx2fc/bnx2fc_io.c int_to_scsilun(sc_cmd->device->lun, &fcp_cmnd->fc_lun); lun 44 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 lun[2]; lun 231 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 lun[2]; lun 1126 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 lun[2]; lun 1169 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 lun[2]; lun 1285 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 lun[2]; lun 1348 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 lun[2]; lun 1491 drivers/scsi/bnx2i/57xx_iscsi_hsi.h u32 lun[2]; lun 432 drivers/scsi/bnx2i/bnx2i_hwi.c memcpy(scsi_lun, &tmfabort_hdr->lun, sizeof(struct scsi_lun)); lun 433 drivers/scsi/bnx2i/bnx2i_hwi.c tmfabort_wqe->lun[0] = be32_to_cpu(scsi_lun[0]); lun 434 drivers/scsi/bnx2i/bnx2i_hwi.c tmfabort_wqe->lun[1] = be32_to_cpu(scsi_lun[1]); lun 545 drivers/scsi/bnx2i/bnx2i_hwi.c memcpy(nopout_wqe->lun, &nopout_hdr->lun, 8); lun 549 drivers/scsi/bnx2i/bnx2i_hwi.c swap(nopout_wqe->lun[0], nopout_wqe->lun[1]); lun 1721 drivers/scsi/bnx2i/bnx2i_hwi.c memcpy(&hdr->lun, nop_in->lun, 8); lun 1764 drivers/scsi/bnx2i/bnx2i_hwi.c memcpy(&resp_hdr->lun, async_cqe->lun, 8); lun 1139 drivers/scsi/bnx2i/bnx2i_iscsi.c int_to_scsilun(sc->device->lun, (struct scsi_lun *) scsi_lun); lun 1140 drivers/scsi/bnx2i/bnx2i_iscsi.c cmd->req.lun[0] = be32_to_cpu(scsi_lun[0]); lun 1141 drivers/scsi/bnx2i/bnx2i_iscsi.c cmd->req.lun[1] = be32_to_cpu(scsi_lun[1]); lun 249 drivers/scsi/ch.c cmd[1] = ((ch->device->lun & 0x7) << 5) | lun 286 drivers/scsi/ch.c cmd[1] = (ch->device->lun & 0x7) << 5; lun 297 drivers/scsi/ch.c int result,id,lun,i; lun 306 drivers/scsi/ch.c cmd[1] = (ch->device->lun & 0x7) << 5; lun 371 drivers/scsi/ch.c lun = 0; lun 374 drivers/scsi/ch.c lun = dt_lun[elem]; lun 391 drivers/scsi/ch.c lun = 0; lun 393 drivers/scsi/ch.c if (data[6] & 0x10) lun = data[6] & 7; lun 397 drivers/scsi/ch.c VPRINTK(KERN_CONT, "ID %i, LUN %i, ",id,lun); lun 401 drivers/scsi/ch.c id,lun); lun 431 drivers/scsi/ch.c cmd[1] = (ch->device->lun & 0x7) << 5; lun 450 drivers/scsi/ch.c cmd[1] = (ch->device->lun & 0x7) << 5; lun 473 drivers/scsi/ch.c cmd[1] = (ch->device->lun & 0x7) << 5; lun 521 drivers/scsi/ch.c cmd[1] = ((ch->device->lun & 0x7) << 5) | lun 772 drivers/scsi/ch.c ch_cmd[1] = ((ch->device->lun & 0x7) << 5) | lun 95 drivers/scsi/csiostor/csio_scsi.c ((uint64_t)scmnd->device->lun == sld->oslun)); lun 170 drivers/scsi/csiostor/csio_scsi.c int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); lun 187 drivers/scsi/csiostor/csio_scsi.c int_to_scsilun(scmnd->device->lun, &fcp_cmnd->fc_lun); lun 1638 drivers/scsi/csiostor/csio_scsi.c scsi_get_resid(cmnd), cmnd->device->lun, lun 1935 drivers/scsi/csiostor/csio_scsi.c cmnd->device->lun, csio_q_physiqid(hw, ioreq->iq_idx)); lun 1991 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun, lun 1997 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun, lun 2076 drivers/scsi/csiostor/csio_scsi.c cmnd->device->lun, rn->flowid, rn->scsi_id); lun 2082 drivers/scsi/csiostor/csio_scsi.c ln->vnp_flowid, cmnd->device->lun); lun 2102 drivers/scsi/csiostor/csio_scsi.c rn->flowid, cmnd->device->lun); lun 2143 drivers/scsi/csiostor/csio_scsi.c sld.oslun = cmnd->device->lun; lun 2166 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun); lun 2179 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun, cmnd->SCp.Status); lun 2199 drivers/scsi/csiostor/csio_scsi.c " returned %d\n", cmnd->device->lun, retval); lun 2210 drivers/scsi/csiostor/csio_scsi.c cmnd->device->id, cmnd->device->lun); lun 299 drivers/scsi/cxlflash/common.h static inline u64 lun_to_lunid(u64 lun) lun 303 drivers/scsi/cxlflash/common.h int_to_scsilun(lun, (struct scsi_lun *)&lun_id); lun 254 drivers/scsi/cxlflash/lunmgt.c lli->lun_id[chan] = lun_to_lunid(sdev->lun); lun 502 drivers/scsi/cxlflash/main.c cmd->rcb.lun_id = lun_to_lunid(sdev->lun); lun 581 drivers/scsi/cxlflash/main.c scp->device->id, scp->device->lun, lun 630 drivers/scsi/cxlflash/main.c cmd->rcb.lun_id = lun_to_lunid(scp->device->lun); lun 2441 drivers/scsi/cxlflash/main.c scp->device->channel, scp->device->id, scp->device->lun, lun 2485 drivers/scsi/cxlflash/main.c host->host_no, sdev->channel, sdev->id, sdev->lun); lun 2155 drivers/scsi/cxlflash/superpipe.c sdev->channel, sdev->id, sdev->lun); lun 2214 drivers/scsi/cxlflash/superpipe.c sdev->channel, sdev->id, sdev->lun, rc); lun 2219 drivers/scsi/cxlflash/superpipe.c sdev->lun, rc); lun 850 drivers/scsi/dc395x.c static struct DeviceCtlBlk *find_dcb(struct AdapterCtlBlk *acb, u8 id, u8 lun) lun 852 drivers/scsi/dc395x.c return acb->children[id][lun]; lun 986 drivers/scsi/dc395x.c cmd, cmd->device->id, (u8)cmd->device->lun, cmd->cmnd[0]); lun 993 drivers/scsi/dc395x.c cmd->device->lun >= acb->scsi_host->max_lun || lun 994 drivers/scsi/dc395x.c cmd->device->lun >31) { lun 999 drivers/scsi/dc395x.c if (!(acb->dcb_map[cmd->device->id] & (1 << cmd->device->lun))) { lun 1001 drivers/scsi/dc395x.c cmd->device->id, (u8)cmd->device->lun); lun 1006 drivers/scsi/dc395x.c dcb = find_dcb(acb, cmd->device->id, cmd->device->lun); lun 1010 drivers/scsi/dc395x.c cmd->device->id, (u8)cmd->device->lun); lun 1107 drivers/scsi/dc395x.c (u8)srb->cmd->device->lun); lun 1202 drivers/scsi/dc395x.c cmd, cmd->device->id, (u8)cmd->device->lun, cmd); lun 1269 drivers/scsi/dc395x.c cmd, cmd->device->id, (u8)cmd->device->lun, cmd); lun 1271 drivers/scsi/dc395x.c dcb = find_dcb(acb, cmd->device->id, cmd->device->lun); lun 1505 drivers/scsi/dc395x.c (u8)srb->cmd->device->lun); lun 1523 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun, lun 1942 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun); lun 2072 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun); lun 2084 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun); lun 2295 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun); lun 2307 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun, lun 2480 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun); lun 2494 drivers/scsi/dc395x.c srb->cmd, srb->cmd->device->id, (u8)srb->cmd->device->lun); lun 3024 drivers/scsi/dc395x.c u8 id, lun; lun 3063 drivers/scsi/dc395x.c lun = (rsel_tar_lun_id >> 8) & 7; lun 3064 drivers/scsi/dc395x.c dcb = find_dcb(acb, id, lun); lun 3067 drivers/scsi/dc395x.c "<%02i-%i>\n", id, lun); lun 3218 drivers/scsi/dc395x.c srb->cmd->device->id, (u8)srb->cmd->device->lun); lun 3395 drivers/scsi/dc395x.c cmd, cmd->device->id, (u8)cmd->device->lun, lun 3433 drivers/scsi/dc395x.c p->device->id, (u8)p->device->lun); lun 3463 drivers/scsi/dc395x.c (u8)p->device->lun); lun 3571 drivers/scsi/dc395x.c cmd, cmd->device->id, (u8)cmd->device->lun); lun 3623 drivers/scsi/dc395x.c u8 target, u8 lun) lun 3630 drivers/scsi/dc395x.c dprintkdbg(DBG_0, "device_alloc: <%02i-%i>\n", target, lun); lun 3640 drivers/scsi/dc395x.c dcb->target_lun = lun; lun 3644 drivers/scsi/dc395x.c IDENTIFY(dcb->dev_mode & NTC_DO_DISCONNECT, lun); lun 3646 drivers/scsi/dc395x.c dcb->identify_msg = IDENTIFY(0, lun); lun 3662 drivers/scsi/dc395x.c if (!(lun) || current_sync_offset) lun 3799 drivers/scsi/dc395x.c dcb = device_alloc(acb, scsi_device->id, scsi_device->lun); lun 3817 drivers/scsi/dc395x.c struct DeviceCtlBlk *dcb = find_dcb(acb, scsi_device->id, scsi_device->lun); lun 148 drivers/scsi/device_handler/scsi_dh_rdac.c u8 lun[8]; lun 189 drivers/scsi/device_handler/scsi_dh_rdac.c unsigned lun; lun 301 drivers/scsi/device_handler/scsi_dh_rdac.c lun_table[qdata->h->lun] = 0x81; lun 375 drivers/scsi/device_handler/scsi_dh_rdac.c h->lun = inqp->lun[7]; /* Uses only the last byte */ lun 734 drivers/scsi/device_handler/scsi_dh_rdac.c h->lun = UNINITIALIZED_LUN; lun 755 drivers/scsi/device_handler/scsi_dh_rdac.c RDAC_NAME, h->lun, mode[(int)h->mode], lun 131 drivers/scsi/dpt/dpti_ioctl.h uLONG lun; lun 458 drivers/scsi/dpt_i2o.c if ((pDev = adpt_find_device(pHba, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun)) == NULL) { lun 1119 drivers/scsi/dpt_i2o.c static struct adpt_device* adpt_find_device(adpt_hba* pHba, u32 chan, u32 id, u64 lun) lun 1132 drivers/scsi/dpt_i2o.c if(d->scsi_lun == lun){ lun 1138 drivers/scsi/dpt_i2o.c if(d->scsi_lun == lun){ lun 2384 drivers/scsi/dpt_i2o.c pHba->name, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun, hba_status, dev_status, cmd->cmnd[0]); lun 2424 drivers/scsi/dpt_i2o.c pHba->name, detailed_status & I2O_SCSI_DSC_MASK, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun, lun 2441 drivers/scsi/dpt_i2o.c pHba->name, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun, lun 2453 drivers/scsi/dpt_i2o.c pHba->name, (u32)cmd->device->channel, (u32)cmd->device->id, cmd->device->lun, lun 299 drivers/scsi/dpti.h static struct adpt_device* adpt_find_device(adpt_hba* pHba, u32 chan, u32 id, u64 lun); lun 318 drivers/scsi/esas2r/atioctl.h u8 lun[8]; lun 441 drivers/scsi/esas2r/atioctl.h u8 lun[8]; lun 505 drivers/scsi/esas2r/atioctl.h u8 lun; lun 512 drivers/scsi/esas2r/atioctl.h u8 lun; lun 521 drivers/scsi/esas2r/atioctl.h u8 lun; lun 867 drivers/scsi/esas2r/atioctl.h u8 lun[8]; lun 51 drivers/scsi/esas2r/atvda.h u8 lun; lun 64 drivers/scsi/esas2r/atvda.h u8 lun; lun 257 drivers/scsi/esas2r/atvda.h u16 lun; lun 306 drivers/scsi/esas2r/atvda.h u16 lun; lun 1168 drivers/scsi/esas2r/atvda.h u8 lun; lun 1255 drivers/scsi/esas2r/atvda.h u8 lun; lun 768 drivers/scsi/esas2r/esas2r_io.c u8 lun = (u8)le32_to_cpu(rqaux->vrq->scsi.flags); lun 787 drivers/scsi/esas2r/esas2r_io.c && (((u8)le32_to_cpu(rq->vrq->scsi.flags)) == lun lun 806 drivers/scsi/esas2r/esas2r_io.c rqaux->vrq->scsi.flags |= cpu_to_le32(lun); lun 820 drivers/scsi/esas2r/esas2r_io.c && (((u8)le32_to_cpu(rq->vrq->scsi.flags)) == lun lun 334 drivers/scsi/esas2r/esas2r_ioctl.c rq->vrq->scsi.flags |= cpu_to_le32(rq->func_rsp.ioctl_rsp.csmi.lun); lun 357 drivers/scsi/esas2r/esas2r_ioctl.c ioctl->csmi.lun = (u8)le32_to_cpu(rq->vrq->scsi.flags); lun 374 drivers/scsi/esas2r/esas2r_ioctl.c static bool check_lun(struct scsi_lun lun) lun 378 drivers/scsi/esas2r/esas2r_ioctl.c result = ((lun.scsi_lun[7] == 0) && lun 379 drivers/scsi/esas2r/esas2r_ioctl.c (lun.scsi_lun[6] == 0) && lun 380 drivers/scsi/esas2r/esas2r_ioctl.c (lun.scsi_lun[5] == 0) && lun 381 drivers/scsi/esas2r/esas2r_ioctl.c (lun.scsi_lun[4] == 0) && lun 382 drivers/scsi/esas2r/esas2r_ioctl.c (lun.scsi_lun[3] == 0) && lun 383 drivers/scsi/esas2r/esas2r_ioctl.c (lun.scsi_lun[2] == 0) && lun 385 drivers/scsi/esas2r/esas2r_ioctl.c (lun.scsi_lun[0] == 0)); lun 399 drivers/scsi/esas2r/esas2r_ioctl.c u8 lun = 0; lun 409 drivers/scsi/esas2r/esas2r_ioctl.c lun = gda->lun; lun 415 drivers/scsi/esas2r/esas2r_ioctl.c lun = tm->lun; lun 425 drivers/scsi/esas2r/esas2r_ioctl.c rq->vrq->scsi.flags |= cpu_to_le32(lun); lun 527 drivers/scsi/esas2r/esas2r_ioctl.c struct scsi_lun lun; lun 529 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(&lun, gsa->sas_lun, sizeof(struct scsi_lun)); lun 531 drivers/scsi/esas2r/esas2r_ioctl.c if (!check_lun(lun)) { lun 547 drivers/scsi/esas2r/esas2r_ioctl.c gsa->lun = gsa->sas_lun[1]; lun 983 drivers/scsi/esas2r/esas2r_ioctl.c struct scsi_lun lun; lun 985 drivers/scsi/esas2r/esas2r_ioctl.c memcpy(&lun, spt->lun, sizeof(struct scsi_lun)); lun 1000 drivers/scsi/esas2r/esas2r_ioctl.c if (spt->target_id >= ESAS2R_MAX_TARGETS || !check_lun(lun)) { lun 1013 drivers/scsi/esas2r/esas2r_ioctl.c rq->vrq->scsi.flags |= cpu_to_le32(spt->lun[1]); lun 848 drivers/scsi/esas2r/esas2r_main.c rq->vrq->scsi.flags |= cpu_to_le32(cmd->device->lun); lun 876 drivers/scsi/esas2r/esas2r_main.c (int)cmd->device->lun); lun 1126 drivers/scsi/esas2r/esas2r_main.c cmd->device->lun); lun 1134 drivers/scsi/esas2r/esas2r_main.c rq->vrq->scsi.flags |= cpu_to_le32(cmd->device->lun); lun 1146 drivers/scsi/esas2r/esas2r_main.c cmd->device->id, cmd->device->lun); lun 1351 drivers/scsi/esas2r/esas2r_main.c d->lun = le16_to_cpu(d->lun); lun 658 drivers/scsi/esp_scsi.c int tgt, lun; lun 662 drivers/scsi/esp_scsi.c lun = dev->lun; lun 667 drivers/scsi/esp_scsi.c tgt, lun); lun 677 drivers/scsi/esp_scsi.c *p++ = IDENTIFY(0, lun); lun 680 drivers/scsi/esp_scsi.c (lun << 5) : 0); lun 739 drivers/scsi/esp_scsi.c int tgt, lun, i; lun 759 drivers/scsi/esp_scsi.c lun = dev->lun; lun 817 drivers/scsi/esp_scsi.c *p++ = IDENTIFY(tp->flags & ESP_TGT_DISCONNECT, lun); lun 866 drivers/scsi/esp_scsi.c printk("ESP: tgt[%d] lun[%d] scsi_cmd [ ", tgt, lun); lun 900 drivers/scsi/esp_scsi.c int lun = dev->lun; lun 929 drivers/scsi/esp_scsi.c esp->host->unique_id, tgt, lun); lun 1148 drivers/scsi/esp_scsi.c int target, lun; lun 1156 drivers/scsi/esp_scsi.c lun = esp->fifo[1] & 0x7; lun 1173 drivers/scsi/esp_scsi.c lun = (esp_read8(ESP_FDATA) & 0x7); lun 1199 drivers/scsi/esp_scsi.c dev = __scsi_device_lookup_by_target(tp->starget, lun); lun 1203 drivers/scsi/esp_scsi.c target, lun); lun 217 drivers/scsi/fnic/fcpio.h u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ lun 265 drivers/scsi/fnic/fcpio.h u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ lun 287 drivers/scsi/fnic/fcpio.h u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ lun 532 drivers/scsi/fnic/fcpio.h u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ lun 565 drivers/scsi/fnic/fcpio.h u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ lun 596 drivers/scsi/fnic/fcpio.h u8 lun[LUN_ADDRESS]; /* FC vNIC only: LUN address */ lun 769 drivers/scsi/fnic/fcpio.h u8 lun; lun 87 drivers/scsi/fnic/fnic_res.h u32 data_len, u8 *lun, lun 114 drivers/scsi/fnic/fnic_res.h memcpy(desc->u.icmnd_16.lun, lun, LUN_ADDRESS); /* LUN address */ lun 126 drivers/scsi/fnic/fnic_res.h u32 tm_req, u32 tm_id, u8 *lun, lun 141 drivers/scsi/fnic/fnic_res.h memcpy(desc->u.itmf.lun, lun, LUN_ADDRESS); /* LUN address */ lun 365 drivers/scsi/fnic/fnic_scsi.c int_to_scsilun(sc->device->lun, &fc_lun); lun 1648 drivers/scsi/fnic/fnic_scsi.c int_to_scsilun(sc->device->lun, &fc_lun); lun 1797 drivers/scsi/fnic/fnic_scsi.c int_to_scsilun(sc->device->lun, &fc_lun); lun 1869 drivers/scsi/fnic/fnic_scsi.c rport->port_id, sc->device->lun, tag, CMD_FLAGS(sc)); lun 1948 drivers/scsi/fnic/fnic_scsi.c int_to_scsilun(sc->device->lun, &fc_lun); lun 2100 drivers/scsi/fnic/fnic_scsi.c int_to_scsilun(sc->device->lun, &fc_lun); lun 2211 drivers/scsi/fnic/fnic_scsi.c int_to_scsilun(sc->device->lun, &fc_lun); lun 2360 drivers/scsi/fnic/fnic_scsi.c rport->port_id, sc->device->lun, sc); lun 2455 drivers/scsi/fnic/fnic_scsi.c int_to_scsilun(sc->device->lun, &fc_lun); lun 1126 drivers/scsi/gdth.c cmd_ptr->u.raw64.lun = (u8)(p3 >> 8); lun 1131 drivers/scsi/gdth.c cmd_ptr->u.raw.lun = (u8)(p3 >> 8); lun 1601 drivers/scsi/gdth.c l = nscp->device->lun; lun 2147 drivers/scsi/gdth.c l = scp->device->lun; lun 2197 drivers/scsi/gdth.c cmdp->u.raw64.lun = l; lun 2213 drivers/scsi/gdth.c cmdp->u.raw.lun = l; lun 3592 drivers/scsi/gdth.c gen->command.u.raw64.lun = gen->command.u.raw.lun; lun 3722 drivers/scsi/gdth.c rsc->hdr_list[i].lun = 0; lun 3802 drivers/scsi/gdth.c rsc->hdr_list[i].lun = 0; lun 359 drivers/scsi/gdth.h u8 lun; /* LUN id of device */ lun 414 drivers/scsi/gdth.h u8 lun; /* LUN */ lun 92 drivers/scsi/gdth_ioctl.h u8 lun; /* LUN */ lun 111 drivers/scsi/gdth_ioctl.h u8 lun; /* LUN */ lun 239 drivers/scsi/gdth_ioctl.h u8 lun; /* LUN */ lun 284 drivers/scsi/gdth_proc.c 'A'+i,pdi->target_id,pdi->lun,hrec); lun 303 drivers/scsi/gdth_proc.c pds->list[k].lun == pdi->lun) { lun 14 drivers/scsi/hisi_sas/hisi_sas_main.c u8 *lun, struct hisi_sas_tmf_task *tmf); lun 696 drivers/scsi/hisi_sas/hisi_sas_main.c struct scsi_lun lun; lun 705 drivers/scsi/hisi_sas/hisi_sas_main.c int_to_scsilun(0, &lun); lun 709 drivers/scsi/hisi_sas/hisi_sas_main.c rc = hisi_sas_debug_issue_ssp_tmf(device, lun.scsi_lun, lun 1350 drivers/scsi/hisi_sas/hisi_sas_main.c u8 *lun, struct hisi_sas_tmf_task *tmf) lun 1357 drivers/scsi/hisi_sas/hisi_sas_main.c memcpy(ssp_task.LUN, lun, 8); lun 1603 drivers/scsi/hisi_sas/hisi_sas_main.c struct scsi_lun lun; lun 1644 drivers/scsi/hisi_sas/hisi_sas_main.c int_to_scsilun(cmnd->device->lun, &lun); lun 1648 drivers/scsi/hisi_sas/hisi_sas_main.c rc = hisi_sas_debug_issue_ssp_tmf(task->dev, lun.scsi_lun, lun 1707 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_abort_task_set(struct domain_device *device, u8 *lun) lun 1723 drivers/scsi/hisi_sas/hisi_sas_main.c rc = hisi_sas_debug_issue_ssp_tmf(device, lun, &tmf_task); lun 1731 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_clear_aca(struct domain_device *device, u8 *lun) lun 1737 drivers/scsi/hisi_sas/hisi_sas_main.c rc = hisi_sas_debug_issue_ssp_tmf(device, lun, &tmf_task); lun 1827 drivers/scsi/hisi_sas/hisi_sas_main.c static int hisi_sas_lu_reset(struct domain_device *device, u8 *lun) lun 1856 drivers/scsi/hisi_sas/hisi_sas_main.c rc = hisi_sas_debug_issue_ssp_tmf(device, lun, &tmf_task); lun 1900 drivers/scsi/hisi_sas/hisi_sas_main.c struct scsi_lun lun; lun 1910 drivers/scsi/hisi_sas/hisi_sas_main.c int_to_scsilun(cmnd->device->lun, &lun); lun 1915 drivers/scsi/hisi_sas/hisi_sas_main.c lun.scsi_lun, lun 834 drivers/scsi/hpsa.c hdev->bus, hdev->target, hdev->lun, lun 1186 drivers/scsi/hpsa.c unsigned char scsi3addr[], int bus, int *target, int *lun) lun 1205 drivers/scsi/hpsa.c *lun = 0; lun 1255 drivers/scsi/hpsa.c h->scsi_host->host_no, dev->bus, dev->target, dev->lun, lun 1284 drivers/scsi/hpsa.c if (device->lun != -1) lun 1295 drivers/scsi/hpsa.c device->bus, &device->target, &device->lun) != 0) lun 1318 drivers/scsi/hpsa.c device->lun = device->scsi3addr[4]; lun 1322 drivers/scsi/hpsa.c if (device->lun == -1) { lun 1414 drivers/scsi/hpsa.c new_entry->lun = h->dev[entry]->lun; lun 1607 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1615 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1621 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1627 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1633 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1639 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1645 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1651 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1657 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1663 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1669 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1675 drivers/scsi/hpsa.c sd->bus, sd->target, sd->lun); lun 1740 drivers/scsi/hpsa.c logical_drive->target, logical_drive->lun); lun 1807 drivers/scsi/hpsa.c device->target, device->lun); lun 1865 drivers/scsi/hpsa.c device->bus, device->target, device->lun, cmds); lun 1885 drivers/scsi/hpsa.c device->target, device->lun); lun 2081 drivers/scsi/hpsa.c int bus, int target, int lun) lun 2088 drivers/scsi/hpsa.c if (sd->bus == bus && sd->target == target && sd->lun == lun) lun 2111 drivers/scsi/hpsa.c sd->lun = sdev->lun; lun 2116 drivers/scsi/hpsa.c sdev_id(sdev), sdev->lun); lun 2904 drivers/scsi/hpsa.c const u8 *lun = c->Header.LUN.LunAddrBytes; lun 2907 drivers/scsi/hpsa.c txt, lun, cdb); lun 3446 drivers/scsi/hpsa.c if (encl_dev->target == -1 || encl_dev->lun == -1) { lun 3798 drivers/scsi/hpsa.c int bus, int target, int lun) lun 3802 drivers/scsi/hpsa.c device->lun = lun; lun 3962 drivers/scsi/hpsa.c this_device->lun, lun 3985 drivers/scsi/hpsa.c this_device->target, this_device->lun); lun 63 drivers/scsi/hpsa.h int bus, target, lun; /* as presented to the OS */ lun 1021 drivers/scsi/hptiop.c scp->device->id, scp->device->lun, lun 1032 drivers/scsi/hptiop.c ((scp->device->id == (hba->max_devices-1)) && scp->device->lun)) { lun 1051 drivers/scsi/hptiop.c req->lun = scp->device->lun; lun 209 drivers/scsi/hptiop.h u8 lun; lun 227 drivers/scsi/hptiop.h u8 lun; lun 162 drivers/scsi/ibmvscsi/ibmvfc.c entry->lun = scsilun_to_int(&vfc_cmd->iu.lun); lun 195 drivers/scsi/ibmvscsi/ibmvfc.c entry->lun = scsilun_to_int(&vfc_cmd->iu.lun); lun 1635 drivers/scsi/ibmvscsi/ibmvfc.c int_to_scsilun(cmnd->device->lun, &vfc_cmd->iu.lun); lun 1985 drivers/scsi/ibmvscsi/ibmvfc.c int_to_scsilun(sdev->lun, &tmf->iu.lun); lun 2181 drivers/scsi/ibmvscsi/ibmvfc.c int_to_scsilun(sdev->lun, &tmf->lun); lun 2315 drivers/scsi/ibmvscsi/ibmvfc.c int_to_scsilun(sdev->lun, &tmf->iu.lun); lun 339 drivers/scsi/ibmvscsi/ibmvfc.h struct scsi_lun lun; lun 416 drivers/scsi/ibmvscsi/ibmvfc.h struct scsi_lun lun; lun 502 drivers/scsi/ibmvscsi/ibmvfc.h u32 lun; lun 1015 drivers/scsi/ibmvscsi/ibmvscsi.c return (0x2 << 14) | (dev->id << 8) | (dev->channel << 5) | dev->lun; lun 1030 drivers/scsi/ibmvscsi/ibmvscsi.c u16 lun = lun_from_dev(cmnd->device); lun 1043 drivers/scsi/ibmvscsi/ibmvscsi.c int_to_scsilun(lun, &srp_cmd->lun); lun 1478 drivers/scsi/ibmvscsi/ibmvscsi.c u16 lun = lun_from_dev(cmd->device); lun 1518 drivers/scsi/ibmvscsi/ibmvscsi.c int_to_scsilun(lun, &tsk_mgmt->lun); lun 1545 drivers/scsi/ibmvscsi/ibmvscsi.c (((u64) lun) << 48), (u64) found_evt); lun 1617 drivers/scsi/ibmvscsi/ibmvscsi.c u16 lun = lun_from_dev(cmd->device); lun 1641 drivers/scsi/ibmvscsi/ibmvscsi.c int_to_scsilun(lun, &tsk_mgmt->lun); lun 1666 drivers/scsi/ibmvscsi/ibmvscsi.c (((u64) lun) << 48)); lun 2730 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c srp->lun.scsi_lun[0] &= 0x3f; lun 2733 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c cmd->sense_buf, scsilun_to_int(&srp->lun), lun 2810 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c srp_tsk->lun.scsi_lun[0] &= 0x3f; lun 2815 drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c scsilun_to_int(&srp_tsk->lun), srp_tsk, lun 875 drivers/scsi/initio.c scbp_tarlun = (tmp->lun << 8) | (tmp->target); lun 1903 drivers/scsi/initio.c u8 tar, lun; lun 1914 drivers/scsi/initio.c lun = inb(host->addr + TUL_SIdent) & 0x0F; lun 1948 drivers/scsi/initio.c if (scb->target != tar || scb->lun != lun) { lun 1959 drivers/scsi/initio.c if ((scb = initio_find_busy_scb(host, tar | (lun << 8))) == NULL) { lun 2546 drivers/scsi/initio.c cblk->lun = cmnd->device->lun; lun 2547 drivers/scsi/initio.c cblk->ident = cmnd->device->lun | DISC_ALLOW; lun 370 drivers/scsi/initio.h u8 lun; /*27 Lun */ lun 1206 drivers/scsi/ipr.c memcpy(&res->dev_lun.scsi_lun, &cfgtew->u.cfgte64->lun, lun 1208 drivers/scsi/ipr.c res->lun = scsilun_to_int(&res->dev_lun); lun 1252 drivers/scsi/ipr.c res->lun = cfgtew->u.cfgte->res_addr.lun; lun 1273 drivers/scsi/ipr.c !memcmp(&res->dev_lun.scsi_lun, &cfgtew->u.cfgte64->lun, lun 1274 drivers/scsi/ipr.c sizeof(cfgtew->u.cfgte64->lun))) { lun 1280 drivers/scsi/ipr.c res->lun == cfgtew->u.cfgte->res_addr.lun) lun 1358 drivers/scsi/ipr.c memcpy(&res->dev_lun.scsi_lun, &cfgtew->u.cfgte64->lun, lun 1843 drivers/scsi/ipr.c error->last_func_vset_res_addr.lun); lun 1894 drivers/scsi/ipr.c error->last_func_vset_res_addr.lun); lun 3331 drivers/scsi/ipr.c u8 bus, target, lun; lun 3368 drivers/scsi/ipr.c lun = res->lun; lun 3371 drivers/scsi/ipr.c scsi_add_device(ioa_cfg->host, bus, target, lun); lun 4565 drivers/scsi/ipr.c res->bus, res->target, res->lun); lun 4886 drivers/scsi/ipr.c (res->lun == sdev->lun)) lun 333 drivers/scsi/ipr.h u8 lun; lun 335 drivers/scsi/ipr.h (((res_addr).bus << 16) | ((res_addr).target << 8) | (res_addr).lun) lun 428 drivers/scsi/ipr.h __be64 lun; lun 1299 drivers/scsi/ipr.h u32 lun; lun 1306 drivers/scsi/ipr.h (((res)->bus << 24) | ((res)->target << 8) | (res)->lun) lun 1782 drivers/scsi/ipr.h #define ipr_res_printk(level, ioa_cfg, bus, target, lun, fmt, ...) \ lun 1784 drivers/scsi/ipr.h bus, target, lun, ##__VA_ARGS__) lun 1787 drivers/scsi/ipr.h ipr_res_printk(KERN_ERR, ioa_cfg, (res)->bus, (res)->target, (res)->lun, fmt, ##__VA_ARGS__) lun 1791 drivers/scsi/ipr.h (ra).bus, (ra).target, (ra).lun, ##__VA_ARGS__) lun 1803 drivers/scsi/ipr.h (res).bus, (res).target, (res).lun); \ lun 1073 drivers/scsi/ips.c SC->device->channel, SC->device->id, SC->device->lun); lun 1494 drivers/scsi/ips.c (SC->device->lun == 0) && scsi_sglist(SC)) { lun 1850 drivers/scsi/ips.c scb->lun = scb->scsi_cmd->device->lun; lun 1919 drivers/scsi/ips.c scb->lun = scb->scsi_cmd->device->lun; lun 2648 drivers/scsi/ips.c scb->lun = SC->device->lun; lun 3259 drivers/scsi/ips.c scb->scsi_cmd->device->id, scb->scsi_cmd->device->lun, lun 3862 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); lun 5285 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); lun 5339 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); lun 5390 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); lun 5422 drivers/scsi/ips.c scb->bus, scb->target_id, scb->lun); lun 1069 drivers/scsi/ips.h uint8_t lun; lun 1096 drivers/scsi/ips.h uint8_t lun; lun 382 drivers/scsi/isci/task.c u8 *lun) lun 412 drivers/scsi/isci/task.c int isci_task_lu_reset(struct domain_device *dev, u8 *lun) lun 448 drivers/scsi/isci/task.c ret = isci_task_send_lu_reset_sas(ihost, idev, lun); lun 622 drivers/scsi/isci/task.c u8 *lun) lun 639 drivers/scsi/isci/task.c u8 *lun) lun 657 drivers/scsi/isci/task.c u8 *lun) lun 93 drivers/scsi/isci/task.h unsigned char lun[8]; lun 141 drivers/scsi/isci/task.h u8 *lun); lun 145 drivers/scsi/isci/task.h u8 *lun); lun 149 drivers/scsi/isci/task.h u8 *lun); lun 156 drivers/scsi/isci/task.h u8 *lun); lun 80 drivers/scsi/iscsi_boot_sysfs.c iscsi_boot_rd_attr(tgt_lun, lun, ISCSI_BOOT_TGT_LUN); lun 1064 drivers/scsi/libfc/fc_fcp.c unsigned int lun, int error) lun 1078 drivers/scsi/libfc/fc_fcp.c if (lun != -1 && sc_cmd->device->lun != lun) lun 1143 drivers/scsi/libfc/fc_fcp.c int_to_scsilun(fsp->cmd->device->lun, &fsp->cdb_cmd.fc_lun); lun 1313 drivers/scsi/libfc/fc_fcp.c unsigned int id, unsigned int lun) lun 1319 drivers/scsi/libfc/fc_fcp.c int_to_scsilun(lun, &fsp->cdb_cmd.fc_lun); lun 1355 drivers/scsi/libfc/fc_fcp.c FC_SCSI_DBG(lport, "lun reset to lun %u completed\n", lun); lun 1356 drivers/scsi/libfc/fc_fcp.c fc_fcp_cleanup_each_cmd(lport, id, lun, FC_CMD_ABORTED); lun 2188 drivers/scsi/libfc/fc_fcp.c rc = fc_lun_reset(lport, fsp, scmd_id(sc_cmd), sc_cmd->device->lun); lun 147 drivers/scsi/libiscsi.c hdr->lun = task->lun; lun 248 drivers/scsi/libiscsi.c hdr_lun = scsilun_to_int(&tmf->lun); lun 249 drivers/scsi/libiscsi.c if (hdr_lun != task->sc->device->lun) lun 341 drivers/scsi/libiscsi.c int_to_scsilun(sc->device->lun, &hdr->lun); lun 342 drivers/scsi/libiscsi.c task->lun = hdr->lun; lun 952 drivers/scsi/libiscsi.c hdr.lun = rhdr->lun; lun 1854 drivers/scsi/libiscsi.c static void fail_scsi_tasks(struct iscsi_conn *conn, u64 lun, int error) lun 1864 drivers/scsi/libiscsi.c if (lun != -1 && lun != task->sc->device->lun) lun 2133 drivers/scsi/libiscsi.c hdr->lun = task->lun; lun 2272 drivers/scsi/libiscsi.c int_to_scsilun(sc->device->lun, &hdr->lun); lun 2288 drivers/scsi/libiscsi.c sc->device->lun); lun 2333 drivers/scsi/libiscsi.c fail_scsi_tasks(conn, sc->device->lun, DID_ERROR); lun 136 drivers/scsi/libsas/sas_scsi_host.c struct scsi_lun lun; lun 148 drivers/scsi/libsas/sas_scsi_host.c int_to_scsilun(cmd->device->lun, &lun); lun 149 drivers/scsi/libsas/sas_scsi_host.c memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); lun 238 drivers/scsi/libsas/sas_scsi_host.c cmd->device->lun == my_cmd->device->lun) lun 327 drivers/scsi/libsas/sas_scsi_host.c struct scsi_lun lun; lun 331 drivers/scsi/libsas/sas_scsi_host.c int_to_scsilun(cmd->device->lun, &lun); lun 335 drivers/scsi/libsas/sas_scsi_host.c cmd->device->lun); lun 338 drivers/scsi/libsas/sas_scsi_host.c res = i->dft->lldd_abort_task_set(dev, lun.scsi_lun); lun 342 drivers/scsi/libsas/sas_scsi_host.c res = i->dft->lldd_clear_task_set(dev, lun.scsi_lun); lun 347 drivers/scsi/libsas/sas_scsi_host.c res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); lun 419 drivers/scsi/libsas/sas_scsi_host.c u64 lun, int wait) lun 441 drivers/scsi/libsas/sas_scsi_host.c int_to_scsilun(lun, &dev->ssp_dev.reset_lun); lun 495 drivers/scsi/libsas/sas_scsi_host.c struct scsi_lun lun; lun 501 drivers/scsi/libsas/sas_scsi_host.c return sas_queue_reset(dev, SAS_DEV_LU_RESET, cmd->device->lun, 0); lun 503 drivers/scsi/libsas/sas_scsi_host.c int_to_scsilun(cmd->device->lun, &lun); lun 508 drivers/scsi/libsas/sas_scsi_host.c res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); lun 620 drivers/scsi/libsas/sas_scsi_host.c cmd->device->lun); lun 671 drivers/scsi/libsas/sas_scsi_host.c cmd->device->lun); lun 855 drivers/scsi/libsas/sas_scsi_host.c SAS_ADDR(dev->sas_addr), scsi_dev->lun); lun 3285 drivers/scsi/lpfc/lpfc_attr.c uint8_t tgt_wwpn[], uint64_t lun, lun 3297 drivers/scsi/lpfc/lpfc_attr.c lun, pri)) lun 3301 drivers/scsi/lpfc/lpfc_attr.c (struct lpfc_name *)tgt_wwpn, lun, pri); lun 3363 drivers/scsi/lpfc/lpfc_attr.c uint8_t tgt_wwpn[], uint64_t lun, lun 3369 drivers/scsi/lpfc/lpfc_attr.c rc = lpfc_oas_lun_state_set(phba, vpt_wwpn, tgt_wwpn, lun, lun 111 drivers/scsi/lpfc/lpfc_nl.h uint32_t lun; lun 121 drivers/scsi/lpfc/lpfc_nl.h uint32_t lun; lun 3510 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.scsi_evt.lun = cmnd->device->lun; lun 3524 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.check_cond_evt.scsi_event.lun = lun 3525 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun; lun 3554 drivers/scsi/lpfc/lpfc_scsi.c fast_path_evt->un.read_check_error.lun = cmnd->device->lun; lun 3639 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun, cmnd->cmnd[0], lun 3650 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun, cmnd->cmnd[0], lun 3897 drivers/scsi/lpfc/lpfc_scsi.c cmd->device ? cmd->device->lun : 0xffff, lun 4005 drivers/scsi/lpfc/lpfc_scsi.c cmd->device->id, cmd->device->lun, cmd, lun 4100 drivers/scsi/lpfc/lpfc_scsi.c int_to_scsilun(lpfc_cmd->pCmd->device->lun, lun 4195 drivers/scsi/lpfc/lpfc_scsi.c uint64_t lun, lun 4216 drivers/scsi/lpfc/lpfc_scsi.c int_to_scsilun(lun, &fcp_cmnd->fcp_lun); lun 4647 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device ? cmnd->device->lun : (u64) -1, lun 4754 drivers/scsi/lpfc/lpfc_scsi.c SUCCESS, cmnd->device->id, cmnd->device->lun); lun 4886 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->id, cmnd->device->lun); lun 4905 drivers/scsi/lpfc/lpfc_scsi.c cmnd->device->lun); lun 5219 drivers/scsi/lpfc/lpfc_scsi.c uint64_t lun_id = cmnd->device->lun; lun 5244 drivers/scsi/lpfc/lpfc_scsi.c scsi_event.lun = lun_id; lun 5290 drivers/scsi/lpfc/lpfc_scsi.c uint64_t lun_id = cmnd->device->lun; lun 5323 drivers/scsi/lpfc/lpfc_scsi.c scsi_event.lun = 0; lun 5372 drivers/scsi/lpfc/lpfc_scsi.c scsi_event.lun = 0; lun 5526 drivers/scsi/lpfc/lpfc_scsi.c sdev->lun); lun 5532 drivers/scsi/lpfc/lpfc_scsi.c sdev->lun, lun 5674 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_name *target_wwpn, uint64_t lun, lun 5700 drivers/scsi/lpfc/lpfc_scsi.c lun_info->device_id.lun = lun; lun 5749 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_name *target_wwpn, uint64_t lun) lun 5765 drivers/scsi/lpfc/lpfc_scsi.c (lun_info->device_id.lun == lun)) lun 5811 drivers/scsi/lpfc/lpfc_scsi.c uint64_t lun; lun 5821 drivers/scsi/lpfc/lpfc_scsi.c lun = *starting_lun; lun 5838 drivers/scsi/lpfc/lpfc_scsi.c ((lun == FIND_FIRST_OAS_LUN) || lun 5839 drivers/scsi/lpfc/lpfc_scsi.c (device_id->lun == lun))) { lun 5840 drivers/scsi/lpfc/lpfc_scsi.c *found_lun = device_id->lun; lun 5861 drivers/scsi/lpfc/lpfc_scsi.c *starting_lun = device_id->lun; lun 5896 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_name *target_wwpn, uint64_t lun, uint8_t pri) lun 5910 drivers/scsi/lpfc/lpfc_scsi.c target_wwpn, lun); lun 5920 drivers/scsi/lpfc/lpfc_scsi.c lun_info = lpfc_create_device_data(phba, vport_wwpn, target_wwpn, lun, lun 5955 drivers/scsi/lpfc/lpfc_scsi.c struct lpfc_name *target_wwpn, uint64_t lun, uint8_t pri) lun 5970 drivers/scsi/lpfc/lpfc_scsi.c target_wwpn, lun); lun 49 drivers/scsi/lpfc/lpfc_scsi.h uint64_t lun; lun 583 drivers/scsi/megaraid.c if (cmd->device->lun) { lun 610 drivers/scsi/megaraid.c if( cmd->device->lun > 7) { lun 970 drivers/scsi/megaraid.c pthru->logdrv = cmd->device->lun; lun 1034 drivers/scsi/megaraid.c epthru->logdrv = cmd->device->lun; lun 1940 drivers/scsi/megaraid.c cmd->device->id, (u32)cmd->device->lun); lun 203 drivers/scsi/megaraid/mega_common.h #define SCP2LUN(scp) (u32)(scp)->device->lun // to LUN lun 1734 drivers/scsi/megaraid/megaraid_sas.h u8 lun; /*05h */ lun 1875 drivers/scsi/megaraid/megaraid_sas.h u8 lun; /*05h */ lun 1412 drivers/scsi/megaraid/megaraid_sas_base.c pthru->lun = scp->device->lun; lun 1685 drivers/scsi/megaraid/megaraid_sas_base.c pthru->lun, pthru->cdb_len, le32_to_cpu(pthru->data_xfer_len), lun 1812 drivers/scsi/megaraid/megaraid_sas_base.c scmd->device->lun)) { lun 3028 drivers/scsi/megaraid/megaraid_sas_fusion.c io_request->LUN[1] = scmd->device->lun; lun 3104 drivers/scsi/megaraid/megaraid_sas_fusion.c io_request->LUN[1] = scmd->device->lun; lun 1232 drivers/scsi/mesh.c } else if (code != cmd->device->lun + IDENTIFY_BASE) { lun 1236 drivers/scsi/mesh.c cmd->device->lun, ms->conn_tgt); lun 1548 drivers/scsi/mesh.c (cmd? cmd->device->lun: 0)); lun 451 drivers/scsi/mpt3sas/mpt3sas_base.h unsigned int lun; lun 1561 drivers/scsi/mpt3sas/mpt3sas_base.h int mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, u64 lun, lun 1564 drivers/scsi/mpt3sas/mpt3sas_base.h u64 lun, u8 type, u16 smid_task, u16 msix_task, lun 572 drivers/scsi/mpt3sas/mpt3sas_ctl.c u32 lun; lun 582 drivers/scsi/mpt3sas/mpt3sas_ctl.c lun = scsilun_to_int((struct scsi_lun *)tm_request->LUN); lun 591 drivers/scsi/mpt3sas/mpt3sas_ctl.c if (lun != scmd->device->lun) lun 615 drivers/scsi/mpt3sas/mpt3sas_ctl.c lun)); lun 633 drivers/scsi/mpt3sas/mpt3sas_ctl.c desc, le16_to_cpu(tm_request->DevHandle), lun, lun 272 drivers/scsi/mpt3sas/mpt3sas_scsih.c u32 lun; lun 1771 drivers/scsi/mpt3sas/mpt3sas_scsih.c sas_device_priv_data->lun = sdev->lun; lun 2668 drivers/scsi/mpt3sas/mpt3sas_scsih.c mpt3sas_scsih_issue_tm(struct MPT3SAS_ADAPTER *ioc, u16 handle, u64 lun, lun 2723 drivers/scsi/mpt3sas/mpt3sas_scsih.c int_to_scsilun(lun, (struct scsi_lun *)mpi_request->LUN); lun 2766 drivers/scsi/mpt3sas/mpt3sas_scsih.c u64 lun, u8 type, u16 smid_task, u16 msix_task, lun 2772 drivers/scsi/mpt3sas/mpt3sas_scsih.c ret = mpt3sas_scsih_issue_tm(ioc, handle, lun, type, smid_task, lun 2916 drivers/scsi/mpt3sas/mpt3sas_scsih.c r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->lun, lun 2992 drivers/scsi/mpt3sas/mpt3sas_scsih.c r = mpt3sas_scsih_issue_locked_tm(ioc, handle, scmd->device->lun, lun 4755 drivers/scsi/mpt3sas/mpt3sas_scsih.c int_to_scsilun(sas_device_priv_data->lun, (struct scsi_lun *) lun 7373 drivers/scsi/mpt3sas/mpt3sas_scsih.c u32 lun; lun 7433 drivers/scsi/mpt3sas/mpt3sas_scsih.c lun = sas_device_priv_data->lun; lun 7440 drivers/scsi/mpt3sas/mpt3sas_scsih.c r = mpt3sas_scsih_issue_tm(ioc, handle, lun, lun 7481 drivers/scsi/mpt3sas/mpt3sas_scsih.c r = mpt3sas_scsih_issue_tm(ioc, handle, sdev->lun, lun 1355 drivers/scsi/mvsas/mv_sas.c u8 *lun, struct mvs_tmf_task *tmf) lun 1361 drivers/scsi/mvsas/mv_sas.c memcpy(ssp_task.LUN, lun, 8); lun 1383 drivers/scsi/mvsas/mv_sas.c int mvs_lu_reset(struct domain_device *dev, u8 *lun) lun 1393 drivers/scsi/mvsas/mv_sas.c rc = mvs_debug_issue_ssp_tmf(dev, lun, &tmf_task); lun 1430 drivers/scsi/mvsas/mv_sas.c struct scsi_lun lun; lun 1440 drivers/scsi/mvsas/mv_sas.c int_to_scsilun(cmnd->device->lun, &lun); lun 1450 drivers/scsi/mvsas/mv_sas.c rc = mvs_debug_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); lun 1467 drivers/scsi/mvsas/mv_sas.c struct scsi_lun lun; lun 1494 drivers/scsi/mvsas/mv_sas.c int_to_scsilun(cmnd->device->lun, &lun); lun 1505 drivers/scsi/mvsas/mv_sas.c rc = mvs_debug_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); lun 1542 drivers/scsi/mvsas/mv_sas.c int mvs_abort_task_set(struct domain_device *dev, u8 *lun) lun 1548 drivers/scsi/mvsas/mv_sas.c rc = mvs_debug_issue_ssp_tmf(dev, lun, &tmf_task); lun 1553 drivers/scsi/mvsas/mv_sas.c int mvs_clear_aca(struct domain_device *dev, u8 *lun) lun 1559 drivers/scsi/mvsas/mv_sas.c rc = mvs_debug_issue_ssp_tmf(dev, lun, &tmf_task); lun 1564 drivers/scsi/mvsas/mv_sas.c int mvs_clear_task_set(struct domain_device *dev, u8 *lun) lun 1570 drivers/scsi/mvsas/mv_sas.c rc = mvs_debug_issue_ssp_tmf(dev, lun, &tmf_task); lun 443 drivers/scsi/mvsas/mv_sas.h int mvs_abort_task_set(struct domain_device *dev, u8 *lun); lun 444 drivers/scsi/mvsas/mv_sas.h int mvs_clear_aca(struct domain_device *dev, u8 *lun); lun 445 drivers/scsi/mvsas/mv_sas.h int mvs_clear_task_set(struct domain_device *dev, u8 * lun); lun 450 drivers/scsi/mvsas/mv_sas.h int mvs_lu_reset(struct domain_device *dev, u8 *lun); lun 2034 drivers/scsi/mvumi.c (((unsigned short) scmd->device->lun) << 8); lun 1737 drivers/scsi/myrb.c if (sdev->lun > 0) lun 1757 drivers/scsi/myrb.c if (sdev->lun != 0) lun 381 drivers/scsi/myrb.h unsigned char lun:6; /* Byte 3 Bits 0-5 */ lun 308 drivers/scsi/myrs.c unsigned char channel, unsigned char target, unsigned char lun, lun 330 drivers/scsi/myrs.c mbox->pdev_info.pdev.lun = lun; lun 339 drivers/scsi/myrs.c channel, target, lun); lun 377 drivers/scsi/myrs.c unsigned char channel, unsigned char target, unsigned char lun, lun 403 drivers/scsi/myrs.c mbox->pdev_info.pdev.lun = lun; lun 885 drivers/scsi/myrs.c ev->ev_seq, ev->lun, ev_msg); lun 891 drivers/scsi/myrs.c ev->ev_seq, ev->lun, ev_msg); lun 918 drivers/scsi/myrs.c sprintf(msg_buf, ev_msg, ev->lun); lun 1005 drivers/scsi/myrs.c sdev->lun, pdev_devmap); lun 1644 drivers/scsi/myrs.c mbox->SCSI_10.pdev.lun = ldev_info->lun; lun 1650 drivers/scsi/myrs.c mbox->SCSI_10.pdev.lun = sdev->lun; lun 1690 drivers/scsi/myrs.c mbox->SCSI_255.pdev.lun = ldev_info->lun; lun 1696 drivers/scsi/myrs.c mbox->SCSI_255.pdev.lun = sdev->lun; lun 1805 drivers/scsi/myrs.c if (sdev->lun > 0) lun 1824 drivers/scsi/myrs.c ldev_info->lun, ldev_info->ldev_num); lun 1877 drivers/scsi/myrs.c sdev->id, sdev->lun, lun 1904 drivers/scsi/myrs.c if (sdev->lun != 0) lun 409 drivers/scsi/myrs.h unsigned char lun; /* Byte 3 */ lun 491 drivers/scsi/myrs.h unsigned char lun; /* Byte 3 */ lun 580 drivers/scsi/myrs.h unsigned char lun; /* Byte 15 */ lun 617 drivers/scsi/myrs.h unsigned char lun; /* Byte 0 */ lun 787 drivers/scsi/ncr53c8xx.c static int device_queue_depth(int unit, int target, int lun) lun 810 drivers/scsi/ncr53c8xx.c if (u != lun) lun 811 drivers/scsi/ncr53c8xx.c u = (lun == v) ? v : NO_LUN; lun 816 drivers/scsi/ncr53c8xx.c (u == ALL_LUNS || u == lun)) lun 1127 drivers/scsi/ncr53c8xx.c u_long lun; lun 1567 drivers/scsi/ncr53c8xx.c u_char lun; lun 4114 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[sdev->lun]; lun 4131 drivers/scsi/ncr53c8xx.c (sdev->lun >= MAX_LUN )) { lun 4183 drivers/scsi/ncr53c8xx.c idmsg = IDENTIFY(0, sdev->lun); lun 4700 drivers/scsi/ncr53c8xx.c int target, lun; lun 4773 drivers/scsi/ncr53c8xx.c for (lun = 0 ; lun < MAX_LUN ; lun++) { lun 4774 drivers/scsi/ncr53c8xx.c lp = tp->lp[lun]; lun 4835 drivers/scsi/ncr53c8xx.c lp = tp->lp[cmd->device->lun]; lun 4929 drivers/scsi/ncr53c8xx.c ncr_alloc_lcb (np, cmd->device->id, cmd->device->lun); lun 5086 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[cp->lun]; lun 5625 drivers/scsi/ncr53c8xx.c unsigned char tn = sdev->id, ln = sdev->lun; lun 6536 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[cmd->device->lun]; lun 6613 drivers/scsi/ncr53c8xx.c cp->scsi_smsg2[0] = IDENTIFY(0, cmd->device->lun); lun 6627 drivers/scsi/ncr53c8xx.c cp->sensecmd[1] = (cmd->device->lun & 0x7) << 5; lun 7138 drivers/scsi/ncr53c8xx.c u_char ln = cmd->device->lun; lun 7228 drivers/scsi/ncr53c8xx.c cp->lun = ln; lun 7249 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[cp->lun]; lun 7575 drivers/scsi/ncr53c8xx.c unsigned char tn = sdev->id, ln = sdev->lun; lun 7970 drivers/scsi/ncr53c8xx.c struct lcb *lp = tp->lp[device->lun]; lun 7981 drivers/scsi/ncr53c8xx.c numtags = device_queue_depth(np->unit, device->id, device->lun); lun 8011 drivers/scsi/ncr53c8xx.c np->unit, device->id, device->lun, depth_to_use); lun 366 drivers/scsi/nsp32.c data->msgoutbuf[pos] = IDENTIFY(mode, SCpnt->device->lun); pos++; lun 907 drivers/scsi/nsp32.c SCpnt->device->id, SCpnt->device->lun, SCpnt->cmnd[0], SCpnt->cmd_len, lun 927 drivers/scsi/nsp32.c if (SCpnt->device->lun >= MAX_LUN) { lun 950 drivers/scsi/nsp32.c cur_lunt = &(data->lunt[SCpnt->device->id][SCpnt->device->lun]); lun 956 drivers/scsi/nsp32.c data->cur_lun = SCpnt->device->lun; lun 198 drivers/scsi/pcmcia/nsp_cs.c SCpnt, target, SCpnt->device->lun, scsi_sglist(SCpnt), lun 960 drivers/scsi/pcmcia/nsp_cs.c unsigned char target, lun; lun 1055 drivers/scsi/pcmcia/nsp_cs.c lun = tmpSC->device->lun; lun 1225 drivers/scsi/pcmcia/nsp_cs.c data->MsgBuffer[i] = IDENTIFY(TRUE, lun); i++; lun 552 drivers/scsi/pcmcia/sym53c500_cs.c (u8)SCpnt->device->lun, scsi_bufflen(SCpnt))); lun 4320 drivers/scsi/pm8001/pm8001_hwi.c memcpy(ssp_cmd.ssp_iu.lun, task->ssp_task.LUN, 8); lun 4727 drivers/scsi/pm8001/pm8001_hwi.c memcpy(sspTMCmd.lun, task->ssp_task.LUN, 8); lun 542 drivers/scsi/pm8001/pm8001_hwi.h u8 lun[8]; lun 549 drivers/scsi/pm8001/pm8001_hwi.h u8 lun[8];/* SCSI Logical Unit Number */ lun 911 drivers/scsi/pm8001/pm8001_sas.c u8 *lun, struct pm8001_tmf_task *tmf) lun 917 drivers/scsi/pm8001/pm8001_sas.c strncpy((u8 *)&ssp_task.LUN, lun, 8); lun 1109 drivers/scsi/pm8001/pm8001_sas.c int pm8001_lu_reset(struct domain_device *dev, u8 *lun) lun 1128 drivers/scsi/pm8001/pm8001_sas.c rc = pm8001_issue_ssp_tmf(dev, lun, &tmf_task); lun 1141 drivers/scsi/pm8001/pm8001_sas.c struct scsi_lun lun; lun 1153 drivers/scsi/pm8001/pm8001_sas.c int_to_scsilun(cmnd->device->lun, &lun); lun 1166 drivers/scsi/pm8001/pm8001_sas.c rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); lun 1193 drivers/scsi/pm8001/pm8001_sas.c struct scsi_lun lun; lun 1223 drivers/scsi/pm8001/pm8001_sas.c int_to_scsilun(cmnd->device->lun, &lun); lun 1226 drivers/scsi/pm8001/pm8001_sas.c rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); lun 1309 drivers/scsi/pm8001/pm8001_sas.c int pm8001_abort_task_set(struct domain_device *dev, u8 *lun) lun 1314 drivers/scsi/pm8001/pm8001_sas.c return pm8001_issue_ssp_tmf(dev, lun, &tmf_task); lun 1317 drivers/scsi/pm8001/pm8001_sas.c int pm8001_clear_aca(struct domain_device *dev, u8 *lun) lun 1322 drivers/scsi/pm8001/pm8001_sas.c return pm8001_issue_ssp_tmf(dev, lun, &tmf_task); lun 1325 drivers/scsi/pm8001/pm8001_sas.c int pm8001_clear_task_set(struct domain_device *dev, u8 *lun) lun 1335 drivers/scsi/pm8001/pm8001_sas.c return pm8001_issue_ssp_tmf(dev, lun, &tmf_task); lun 646 drivers/scsi/pm8001/pm8001_sas.h int pm8001_abort_task_set(struct domain_device *dev, u8 *lun); lun 647 drivers/scsi/pm8001/pm8001_sas.h int pm8001_clear_aca(struct domain_device *dev, u8 *lun); lun 648 drivers/scsi/pm8001/pm8001_sas.h int pm8001_clear_task_set(struct domain_device *dev, u8 *lun); lun 651 drivers/scsi/pm8001/pm8001_sas.h int pm8001_lu_reset(struct domain_device *dev, u8 *lun); lun 4064 drivers/scsi/pm8001/pm80xx_hwi.c memcpy(ssp_cmd.ssp_iu.lun, task->ssp_task.LUN, 8); lun 771 drivers/scsi/pm8001/pm80xx_hwi.h u8 lun[8]; lun 777 drivers/scsi/pm8001/pm80xx_hwi.h u8 lun[8];/* SCSI Logical Unit Number */ lun 141 drivers/scsi/pmcraid.c u8 target, bus, lun; lun 168 drivers/scsi/pmcraid.c lun = 0; lun 172 drivers/scsi/pmcraid.c lun = RES_LUN(temp->cfg_entry.resource_address); lun 179 drivers/scsi/pmcraid.c lun == scsi_dev->lun) { lun 226 drivers/scsi/pmcraid.c (u8)scsi_dev->lun); lun 4298 drivers/scsi/pmcraid.c u8 bus, target, lun; lun 4356 drivers/scsi/pmcraid.c lun = PMCRAID_VSET_LUN_ID; lun 4362 drivers/scsi/pmcraid.c lun = RES_LUN(res->cfg_entry.resource_address); lun 4368 drivers/scsi/pmcraid.c scsi_add_device(pinstance->host, bus, target, lun); lun 318 drivers/scsi/pmcraid.h __u8 lun[PMCRAID_LUN_LEN]; lun 70 drivers/scsi/ps3rom.c __LINE__, scsi_dev->id, scsi_dev->lun, scsi_dev->channel); lun 151 drivers/scsi/qedf/qedf.h int lun; lun 284 drivers/scsi/qedf/qedf.h int lun; lun 489 drivers/scsi/qedf/qedf.h extern void qedf_flush_active_ios(struct qedf_rport *fcport, int lun); lun 259 drivers/scsi/qedf/qedf_debugfs.c seq_printf(s, "%d:", io_log->lun); lun 379 drivers/scsi/qedf/qedf_io.c io_req->lun = -1; lun 565 drivers/scsi/qedf/qedf_io.c int_to_scsilun(sc_cmd->device->lun, lun 823 drivers/scsi/qedf/qedf_io.c io_log->lun = sc_cmd->device->lun; lun 909 drivers/scsi/qedf/qedf_io.c io_req->lun = (int)sc_cmd->device->lun; lun 1194 drivers/scsi/qedf/qedf_io.c sc_cmd->device->lun == (u64)fcport->lun_reset_lun)) { lun 1250 drivers/scsi/qedf/qedf_io.c sc_cmd->device->lun, io_req->xid, lun 1399 drivers/scsi/qedf/qedf_io.c sc_cmd->device->lun, sc_cmd, sc_cmd->result, sc_cmd->cmnd[0], lun 1565 drivers/scsi/qedf/qedf_io.c void qedf_flush_active_ios(struct qedf_rport *fcport, int lun) lun 1596 drivers/scsi/qedf/qedf_io.c (lun == -1)) { lun 1620 drivers/scsi/qedf/qedf_io.c if (lun == -1) { lun 1624 drivers/scsi/qedf/qedf_io.c fcport->lun_reset_lun = lun; lun 1683 drivers/scsi/qedf/qedf_io.c lun == -1) { lun 1709 drivers/scsi/qedf/qedf_io.c if (lun != -1 && io_req->lun != lun) lun 1751 drivers/scsi/qedf/qedf_io.c if (lun > -1) { lun 1752 drivers/scsi/qedf/qedf_io.c if (io_req->lun != lun) lun 1784 drivers/scsi/qedf/qedf_io.c (lun == -1)) { lun 2278 drivers/scsi/qedf/qedf_io.c int lun = 0; lun 2288 drivers/scsi/qedf/qedf_io.c lun = (int)sc_cmd->device->lun; lun 2376 drivers/scsi/qedf/qedf_io.c qedf_flush_active_ios(fcport, lun); lun 2407 drivers/scsi/qedf/qedf_io.c rport->scsi_target_id, (int)sc_cmd->device->lun); lun 795 drivers/scsi/qedf/qedf_main.c sc_cmd->device->lun); lun 803 drivers/scsi/qedf/qedf_main.c sc_cmd->device->lun); lun 226 drivers/scsi/qedi/qedi.h int lun; lun 192 drivers/scsi/qedi/qedi_debugfs.c seq_printf(s, "lun-%d:", io_log->lun); lun 413 drivers/scsi/qedi/qedi_fw.c u32 lun[2]; lun 449 drivers/scsi/qedi/qedi_fw.c lun[0] = 0xffffffff; lun 450 drivers/scsi/qedi/qedi_fw.c lun[1] = 0xffffffff; lun 451 drivers/scsi/qedi/qedi_fw.c memcpy(&hdr->lun, lun, sizeof(struct scsi_lun)); lun 484 drivers/scsi/qedi/qedi_fw.c u32 lun[2]; lun 508 drivers/scsi/qedi/qedi_fw.c lun[0] = cpu_to_be32(cqe_async_msg->lun.lo); lun 509 drivers/scsi/qedi/qedi_fw.c lun[1] = cpu_to_be32(cqe_async_msg->lun.hi); lun 510 drivers/scsi/qedi/qedi_fw.c memcpy(&resp_hdr->lun, lun, sizeof(struct scsi_lun)); lun 1189 drivers/scsi/qedi/qedi_fw.c unsigned int lun = 0; lun 1201 drivers/scsi/qedi/qedi_fw.c lun = scsilun_to_int(&tmf_hdr->lun); lun 1232 drivers/scsi/qedi/qedi_fw.c if (cmd->scsi_cmd->device->lun != lun) lun 1500 drivers/scsi/qedi/qedi_fw.c memcpy(scsi_lun, &tmf_hdr->lun, sizeof(struct scsi_lun)); lun 1501 drivers/scsi/qedi/qedi_fw.c tmf_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); lun 1502 drivers/scsi/qedi/qedi_fw.c tmf_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); lun 1739 drivers/scsi/qedi/qedi_fw.c memcpy(scsi_lun, &nopout_hdr->lun, sizeof(struct scsi_lun)); lun 1740 drivers/scsi/qedi/qedi_fw.c nop_out_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); lun 1741 drivers/scsi/qedi/qedi_fw.c nop_out_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); lun 1988 drivers/scsi/qedi/qedi_fw.c io_log->lun = sc_cmd->device->lun; lun 2061 drivers/scsi/qedi/qedi_fw.c int_to_scsilun(sc->device->lun, (struct scsi_lun *)scsi_lun); lun 2097 drivers/scsi/qedi/qedi_fw.c cmd_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); lun 2098 drivers/scsi/qedi/qedi_fw.c cmd_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); lun 2170 drivers/scsi/qedi/qedi_main.c block->target[idx].lun.value[1], lun 2171 drivers/scsi/qedi/qedi_main.c block->target[idx].lun.value[0]); lun 161 drivers/scsi/qedi/qedi_nvm_iscsi_cfg.h union nvm_iscsi_lun lun; /* 0x3C */ lun 498 drivers/scsi/qla1280.c #define SCSI_LUN_32(Cmnd) Cmnd->device->lun lun 823 drivers/scsi/qla1280.c int bus, target, lun; lun 837 drivers/scsi/qla1280.c lun = SCSI_LUN_32(cmd); lun 872 drivers/scsi/qla1280.c target, lun); lun 893 drivers/scsi/qla1280.c "command.\n", ha->host_no, bus, target, lun); lun 945 drivers/scsi/qla1280.c ha->host_no, bus, target, lun); lun 1120 drivers/scsi/qla1280.c int status, lun; lun 1152 drivers/scsi/qla1280.c for (lun = 0; lun < MAX_LUNS; lun++) { lun 1155 drivers/scsi/qla1280.c mb[1] |= lun; lun 1244 drivers/scsi/qla1280.c int bus, target, lun; lun 1259 drivers/scsi/qla1280.c lun = SCSI_LUN_32(cmd); lun 2067 drivers/scsi/qla1280.c int status, lun; lun 2108 drivers/scsi/qla1280.c for (lun = 0; lun < MAX_LUNS; lun++) { lun 2111 drivers/scsi/qla1280.c mb[1] |= lun; lun 2639 drivers/scsi/qla1280.c unsigned int bus, target, lun; lun 2646 drivers/scsi/qla1280.c lun = SCSI_LUN_32(sp->cmd); lun 2651 drivers/scsi/qla1280.c mb[1] = (bus ? target | BIT_7 : target) << 8 | lun; lun 2702 drivers/scsi/qla1280.c qla1280_marker(struct scsi_qla_host *ha, int bus, int id, int lun, u8 type) lun 2711 drivers/scsi/qla1280.c pkt->lun = (uint8_t) lun; lun 2828 drivers/scsi/qla1280.c pkt->lun = SCSI_LUN_32(cmd); lun 3083 drivers/scsi/qla1280.c pkt->lun = SCSI_LUN_32(cmd); lun 3599 drivers/scsi/qla1280.c unsigned int bus, target, lun; lun 3628 drivers/scsi/qla1280.c lun = SCSI_LUN_32(cmd); lun 3668 drivers/scsi/qla1280.c "l %i\n", bus, target, lun); lun 3893 drivers/scsi/qla1280.c int bus, target, lun; lun 3897 drivers/scsi/qla1280.c lun = device->lun; lun 3906 drivers/scsi/qla1280.c printk(KERN_INFO "scsi(%li:%d:%d:%d):", ha->host_no, bus, target, lun); lun 512 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 598 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 619 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 639 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 685 drivers/scsi/qla1280.h __le16 lun; /* Bit 15 is bus number. */ lun 713 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 738 drivers/scsi/qla1280.h uint8_t lun; lun 764 drivers/scsi/qla1280.h uint8_t lun; lun 785 drivers/scsi/qla1280.h uint8_t lun; lun 808 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 841 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 871 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 901 drivers/scsi/qla1280.h uint8_t lun; /* SCSI LUN */ lun 175 drivers/scsi/qla2xxx/qla_bsg.h uint16_t lun; lun 479 drivers/scsi/qla2xxx/qla_def.h uint64_t lun; lun 1827 drivers/scsi/qla2xxx/qla_def.h uint16_t lun; /* SCSI LUN */ lun 1856 drivers/scsi/qla2xxx/qla_def.h uint16_t lun; /* SCSI LUN */ lun 1962 drivers/scsi/qla2xxx/qla_def.h #define CRC_CONTEXT_LEN_FW (offsetof(struct crc_context, fcp_cmnd.lun)) lun 1963 drivers/scsi/qla2xxx/qla_def.h #define CRC_CONTEXT_FCPCMND_OFF (offsetof(struct crc_context, fcp_cmnd.lun)) lun 2114 drivers/scsi/qla2xxx/qla_def.h uint16_t lun; /* SCSI LUN */ lun 2206 drivers/scsi/qla2xxx/qla_def.h uint16_t lun; lun 450 drivers/scsi/qla2xxx/qla_fw.h struct scsi_lun lun; /* FCP LUN (BE). */ lun 487 drivers/scsi/qla2xxx/qla_fw.h struct scsi_lun lun; /* FCP LUN (BE). */ lun 525 drivers/scsi/qla2xxx/qla_fw.h struct scsi_lun lun; /* FCP LUN (BE). */ lun 572 drivers/scsi/qla2xxx/qla_fw.h struct scsi_lun lun; /* FCP LUN (BE). */ lun 685 drivers/scsi/qla2xxx/qla_fw.h uint8_t lun[8]; /* FCP LUN (BE). */ lun 901 drivers/scsi/qla2xxx/qla_fw.h struct scsi_lun lun; /* FCP LUN (BE). */ lun 1781 drivers/scsi/qla2xxx/qla_init.c qla2x00_async_tm_cmd(fc_port_t *fcport, uint32_t flags, uint32_t lun, lun 1802 drivers/scsi/qla2xxx/qla_init.c tm_iocb->u.tmf.lun = lun; lun 1825 drivers/scsi/qla2xxx/qla_init.c lun = (uint16_t)tm_iocb->u.tmf.lun; lun 1829 drivers/scsi/qla2xxx/qla_init.c fcport->loop_id, lun, lun 406 drivers/scsi/qla2xxx/qla_iocb.c cmd_pkt->lun = cpu_to_le16(cmd->device->lun); lun 508 drivers/scsi/qla2xxx/qla_iocb.c uint16_t loop_id, uint64_t lun, uint8_t type) lun 530 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(lun, (struct scsi_lun *)&mrk24->lun); lun 531 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap(mrk24->lun, sizeof(mrk24->lun)); lun 536 drivers/scsi/qla2xxx/qla_iocb.c mrk->lun = cpu_to_le16((uint16_t)lun); lun 548 drivers/scsi/qla2xxx/qla_iocb.c uint16_t loop_id, uint64_t lun, uint8_t type) lun 554 drivers/scsi/qla2xxx/qla_iocb.c ret = __qla2x00_marker(vha, qpair, loop_id, lun, type); lun 1482 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &fcp_cmnd->lun); lun 1673 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &cmd_pkt->lun); lun 1674 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); lun 1857 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &cmd_pkt->lun); lun 1858 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); lun 1993 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &cmd_pkt->lun); lun 1994 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); lun 2192 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &cmd_pkt->lun); lun 2193 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); lun 2480 drivers/scsi/qla2xxx/qla_iocb.c uint64_t lun; lun 2488 drivers/scsi/qla2xxx/qla_iocb.c lun = iocb->u.tmf.lun; lun 2502 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(lun, &tsk->lun); lun 2503 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap((uint8_t *)&tsk->lun, lun 2504 drivers/scsi/qla2xxx/qla_iocb.c sizeof(tsk->lun)); lun 3252 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &cmd_pkt->lun); lun 3253 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, sizeof(cmd_pkt->lun)); lun 3256 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &ctx->fcp_cmnd->lun); lun 3319 drivers/scsi/qla2xxx/qla_iocb.c int_to_scsilun(cmd->device->lun, &cmd_pkt->lun); lun 3320 drivers/scsi/qla2xxx/qla_iocb.c host_to_fcp_swap((uint8_t *)&cmd_pkt->lun, lun 3321 drivers/scsi/qla2xxx/qla_iocb.c sizeof(cmd_pkt->lun)); lun 2112 drivers/scsi/qla2xxx/qla_isr.c sp->vha->host_no, cp->device->id, cp->device->lun, lun 2770 drivers/scsi/qla2xxx/qla_isr.c cp->device->id, cp->device->lun, fcport->d_id.b24, lun 2789 drivers/scsi/qla2xxx/qla_isr.c cp->device->id, cp->device->lun, fcport->d_id.b.domain, lun 1502 drivers/scsi/qla2xxx/qla_mbx.c mcp->mb[6] = (uint16_t)cmd->device->lun; lun 3236 drivers/scsi/qla2xxx/qla_mbx.c int_to_scsilun(l, &tsk->p.tsk.lun); lun 3237 drivers/scsi/qla2xxx/qla_mbx.c host_to_fcp_swap((uint8_t *)&tsk->p.tsk.lun, lun 3238 drivers/scsi/qla2xxx/qla_mbx.c sizeof(tsk->p.tsk.lun)); lun 2168 drivers/scsi/qla2xxx/qla_mr.c sp->vha->host_no, cp->device->id, cp->device->lun, lun 2535 drivers/scsi/qla2xxx/qla_mr.c cp->device->id, cp->device->lun, fcport->tgt_id, lun 3146 drivers/scsi/qla2xxx/qla_mr.c int_to_scsilun(cmd->device->lun, &llun); lun 3147 drivers/scsi/qla2xxx/qla_mr.c host_to_adap((uint8_t *)&llun, (uint8_t *)&lcmd_pkt.lun, lun 3148 drivers/scsi/qla2xxx/qla_mr.c sizeof(lcmd_pkt.lun)); lun 3214 drivers/scsi/qla2xxx/qla_mr.c int_to_scsilun(fxio->u.tmf.lun, &llun); lun 3215 drivers/scsi/qla2xxx/qla_mr.c host_to_adap((uint8_t *)&llun, (uint8_t *)&tm_iocb.lun, lun 38 drivers/scsi/qla2xxx/qla_mr.h struct scsi_lun lun; /* LUN (LE). */ lun 109 drivers/scsi/qla2xxx/qla_mr.h struct scsi_lun lun; /* LUN (LE). */ lun 852 drivers/scsi/qla2xxx/qla_nx.h struct scsi_lun lun; lun 1232 drivers/scsi/qla2xxx/qla_os.c uint64_t lun; lun 1272 drivers/scsi/qla2xxx/qla_os.c lun = cmd->device->lun; lun 1276 drivers/scsi/qla2xxx/qla_os.c vha->host_no, id, lun, sp, cmd, sp->handle); lun 1311 drivers/scsi/qla2xxx/qla_os.c vha->host_no, id, lun, ret); lun 1354 drivers/scsi/qla2xxx/qla_os.c cmd->device->lun == l); lun 1397 drivers/scsi/qla2xxx/qla_os.c cmd->device->id, cmd->device->lun, cmd); lun 1406 drivers/scsi/qla2xxx/qla_os.c if (do_reset(fcport, cmd->device->lun, 1) lun 1414 drivers/scsi/qla2xxx/qla_os.c cmd->device->lun, type) != QLA_SUCCESS) { lun 1422 drivers/scsi/qla2xxx/qla_os.c vha->host_no, cmd->device->id, cmd->device->lun, cmd); lun 1429 drivers/scsi/qla2xxx/qla_os.c reset_errors[err], vha->host_no, cmd->device->id, cmd->device->lun, lun 1488 drivers/scsi/qla2xxx/qla_os.c uint64_t lun; lun 1498 drivers/scsi/qla2xxx/qla_os.c lun = cmd->device->lun; lun 1513 drivers/scsi/qla2xxx/qla_os.c "BUS RESET ISSUED nexus=%ld:%d:%llu.\n", vha->host_no, id, lun); lun 1538 drivers/scsi/qla2xxx/qla_os.c (ret == FAILED) ? "FAILED" : "SUCCEEDED", vha->host_no, id, lun); lun 1565 drivers/scsi/qla2xxx/qla_os.c uint64_t lun; lun 1576 drivers/scsi/qla2xxx/qla_os.c lun = cmd->device->lun; lun 1579 drivers/scsi/qla2xxx/qla_os.c "ADAPTER RESET ISSUED nexus=%ld:%d:%llu.\n", vha->host_no, id, lun); lun 1626 drivers/scsi/qla2xxx/qla_os.c (ret == FAILED) ? "FAILED" : "SUCCEEDED", vha->host_no, id, lun); lun 114 drivers/scsi/qla2xxx/qla_target.c static int qlt_issue_task_mgmt(struct fc_port *sess, u64 lun, lun 1953 drivers/scsi/qla2xxx/qla_target.c static void abort_cmds_for_lun(struct scsi_qla_host *vha, u64 lun, be_id_t s_id) lun 1968 drivers/scsi/qla2xxx/qla_target.c (struct scsi_lun *)&op->atio.u.isp24.fcp_cmnd.lun); lun 1969 drivers/scsi/qla2xxx/qla_target.c if (op_key == key && op_lun == lun) lun 1979 drivers/scsi/qla2xxx/qla_target.c (struct scsi_lun *)&op->atio.u.isp24.fcp_cmnd.lun); lun 1980 drivers/scsi/qla2xxx/qla_target.c if (op_key == key && op_lun == lun) lun 1990 drivers/scsi/qla2xxx/qla_target.c (struct scsi_lun *)&cmd->atio.u.isp24.fcp_cmnd.lun); lun 1991 drivers/scsi/qla2xxx/qla_target.c if (cmd_key == key && cmd_lun == lun) lun 4296 drivers/scsi/qla2xxx/qla_target.c (struct scsi_lun *)&atio->u.isp24.fcp_cmnd.lun); lun 4382 drivers/scsi/qla2xxx/qla_target.c static int qlt_issue_task_mgmt(struct fc_port *sess, u64 lun, lun 4412 drivers/scsi/qla2xxx/qla_target.c mcmd->unpacked_lun = lun; lun 4418 drivers/scsi/qla2xxx/qla_target.c abort_cmds_for_lun(vha, lun, a->u.isp24.fcp_hdr.s_id); lun 4460 drivers/scsi/qla2xxx/qla_target.c scsilun_to_int((struct scsi_lun *)&a->u.isp24.fcp_cmnd.lun); lun 4492 drivers/scsi/qla2xxx/qla_target.c scsilun_to_int((struct scsi_lun *)&a->u.isp24.fcp_cmnd.lun); lun 5229 drivers/scsi/qla2xxx/qla_target.c le16_to_cpu(iocb->u.isp2x.lun)); lun 6267 drivers/scsi/qla2xxx/qla_target.c scsilun_to_int((struct scsi_lun *)&a->u.isp24.fcp_cmnd.lun); lun 289 drivers/scsi/qla2xxx/qla_target.h uint64_t lun; lun 333 drivers/scsi/qla2xxx/qla_target.h uint16_t lun; lun 548 drivers/scsi/qla2xxx/tcm_qla2xxx.c static int tcm_qla2xxx_handle_tmr(struct qla_tgt_mgmt_cmd *mcmd, u64 lun, lun 592 drivers/scsi/qla2xxx/tcm_qla2xxx.c return target_submit_tmr(se_cmd, sess->se_sess, NULL, lun, mcmd, lun 1133 drivers/scsi/qla4xxx/ql4_fw.h struct scsi_lun lun; /* FCP LUN (BE). */ lun 1170 drivers/scsi/qla4xxx/ql4_fw.h struct scsi_lun lun; /* FCP LUN (BE). */ lun 26 drivers/scsi/qla4xxx/ql4_glbl.h uint64_t lun); lun 79 drivers/scsi/qla4xxx/ql4_glbl.h struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod); lun 86 drivers/scsi/qla4xxx/ql4_iocb.c struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod) lun 107 drivers/scsi/qla4xxx/ql4_iocb.c int_to_scsilun(lun, &marker_entry->lun); lun 328 drivers/scsi/qla4xxx/ql4_iocb.c int_to_scsilun(cmd->device->lun, &cmd_entry->lun); lun 32 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, __func__)); lun 49 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, __func__, lun 178 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, __func__, lun 202 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->id, cmd->device->lun, __func__)); lun 210 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->id, cmd->device->lun, __func__)); lun 218 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->id, cmd->device->lun)); lun 238 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, __func__)); lun 266 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, __func__, lun 298 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, __func__, lun 319 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, sts_entry->completionStatus)); lun 339 drivers/scsi/qla4xxx/ql4_isr.c cmd->device->lun, __func__, lun 1205 drivers/scsi/qla4xxx/ql4_mbx.c ha->host_no, cmd->device->id, cmd->device->lun, mbox_sts[0], lun 1223 drivers/scsi/qla4xxx/ql4_mbx.c uint64_t lun) lun 1231 drivers/scsi/qla4xxx/ql4_mbx.c ddb_entry->fw_ddb_index, lun)); lun 1239 drivers/scsi/qla4xxx/ql4_mbx.c int_to_scsilun(lun, (struct scsi_lun *) scsi_lun); lun 9189 drivers/scsi/qla4xxx/ql4_os.c uint64_t lun = cmd->device->lun; lun 9197 drivers/scsi/qla4xxx/ql4_os.c ha->host_no, id, lun, cmd, cmd->cmnd[0]); lun 9210 drivers/scsi/qla4xxx/ql4_os.c ha->host_no, id, lun); lun 9218 drivers/scsi/qla4xxx/ql4_os.c ha->host_no, id, lun)); lun 9222 drivers/scsi/qla4xxx/ql4_os.c ha->host_no, id, lun)); lun 9232 drivers/scsi/qla4xxx/ql4_os.c ha->host_no, id, lun)); lun 9239 drivers/scsi/qla4xxx/ql4_os.c ha->host_no, id, lun, (ret == SUCCESS) ? "succeeded" : "failed"); lun 9268 drivers/scsi/qla4xxx/ql4_os.c cmd->device->channel, cmd->device->id, cmd->device->lun); lun 9283 drivers/scsi/qla4xxx/ql4_os.c stat = qla4xxx_reset_lun(ha, ddb_entry, cmd->device->lun); lun 9298 drivers/scsi/qla4xxx/ql4_os.c if (qla4xxx_send_marker_iocb(ha, ddb_entry, cmd->device->lun, lun 9305 drivers/scsi/qla4xxx/ql4_os.c cmd->device->lun); lun 9365 drivers/scsi/qla4xxx/ql4_os.c if (qla4xxx_send_marker_iocb(ha, ddb_entry, cmd->device->lun, lun 9435 drivers/scsi/qla4xxx/ql4_os.c cmd->device->channel, cmd->device->id, cmd->device->lun); lun 875 drivers/scsi/qlogicpti.c cmd->target_lun = Cmnd->device->lun; lun 1236 drivers/scsi/qlogicpti.c qpti->qpti_id, (int)Cmnd->device->id, (int)Cmnd->device->lun); lun 1249 drivers/scsi/qlogicpti.c param[1] = (((u_short) Cmnd->device->id) << 8) | Cmnd->device->lun; lun 656 drivers/scsi/scsi.c u64 lun) lun 663 drivers/scsi/scsi.c if (sdev->lun ==lun) lun 681 drivers/scsi/scsi.c u64 lun) lun 688 drivers/scsi/scsi.c sdev = __scsi_device_lookup_by_target(starget, lun); lun 714 drivers/scsi/scsi.c uint channel, uint id, u64 lun) lun 722 drivers/scsi/scsi.c sdev->lun ==lun) lun 742 drivers/scsi/scsi.c uint channel, uint id, u64 lun) lun 748 drivers/scsi/scsi.c sdev = __scsi_device_lookup(shost, channel, id, lun); lun 80 drivers/scsi/scsi_common.c u64 lun; lun 82 drivers/scsi/scsi_common.c lun = 0; lun 83 drivers/scsi/scsi_common.c for (i = 0; i < sizeof(lun); i += 2) lun 84 drivers/scsi/scsi_common.c lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | lun 86 drivers/scsi/scsi_common.c return lun; lun 105 drivers/scsi/scsi_common.c void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) lun 111 drivers/scsi/scsi_common.c for (i = 0; i < sizeof(lun); i += 2) { lun 112 drivers/scsi/scsi_common.c scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; lun 113 drivers/scsi/scsi_common.c scsilun->scsi_lun[i+1] = lun & 0xFF; lun 114 drivers/scsi/scsi_common.c lun = lun >> 16; lun 250 drivers/scsi/scsi_debug.c u64 lun; lun 1402 drivers/scsi/scsi_debug.c have_wlun = scsi_is_wlun(scp->device->lun); lun 1405 drivers/scsi/scsi_debug.c else if (sdebug_no_lun_0 && (devip->lun == SDEBUG_LUN_0_VAL)) lun 1424 drivers/scsi/scsi_debug.c (devip->target * 1000) + devip->lun); lun 3611 drivers/scsi/scsi_debug.c u64 lun; lun 3665 drivers/scsi/scsi_debug.c lun = sdebug_no_lun_0 ? 1 : 0; lun 3677 drivers/scsi/scsi_debug.c int_to_scsilun(lun++, lun_p); lun 3839 drivers/scsi/scsi_debug.c (devip->lun == sdev->lun)) lun 3856 drivers/scsi/scsi_debug.c open_devip->lun = sdev->lun; lun 3868 drivers/scsi/scsi_debug.c sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); lun 3879 drivers/scsi/scsi_debug.c sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); lun 3901 drivers/scsi/scsi_debug.c sdp->host->host_no, sdp->channel, sdp->id, sdp->lun); lun 5629 drivers/scsi/scsi_debug.c has_wlun_rl = (sdp->lun == SCSI_W_LUN_REPORT_LUNS); lun 5630 drivers/scsi/scsi_debug.c if (unlikely((sdp->lun >= sdebug_max_luns) && !has_wlun_rl)) lun 1007 drivers/scsi/scsi_error.c (sdev->lun << 5 & 0xe0); lun 229 drivers/scsi/scsi_ioctl.c + ((sdev->lun & 0xff) << 8) lun 1531 drivers/scsi/scsi_lib.c (cmd->device->lun << 5 & 0xe0); lun 190 drivers/scsi/scsi_proc.c sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); lun 243 drivers/scsi/scsi_proc.c static int scsi_add_single_device(uint host, uint channel, uint id, uint lun) lun 253 drivers/scsi/scsi_proc.c error = shost->transportt->user_scan(shost, channel, id, lun); lun 255 drivers/scsi/scsi_proc.c error = scsi_scan_host_selected(shost, channel, id, lun, lun 271 drivers/scsi/scsi_proc.c static int scsi_remove_single_device(uint host, uint channel, uint id, uint lun) lun 280 drivers/scsi/scsi_proc.c sdev = scsi_device_lookup(shost, channel, id, lun); lun 313 drivers/scsi/scsi_proc.c int host, channel, id, lun; lun 344 drivers/scsi/scsi_proc.c lun = simple_strtoul(p + 1, &p, 0); lun 346 drivers/scsi/scsi_proc.c err = scsi_add_single_device(host, channel, id, lun); lun 358 drivers/scsi/scsi_proc.c lun = simple_strtoul(p + 1, &p, 0); lun 360 drivers/scsi/scsi_proc.c err = scsi_remove_single_device(host, channel, id, lun); lun 216 drivers/scsi/scsi_scan.c u64 lun, void *hostdata) lun 233 drivers/scsi/scsi_scan.c sdev->lun = lun; lun 821 drivers/scsi/scsi_scan.c if (scsi_is_wlun(sdev->lun) && sdev->type != TYPE_WLUN) { lun 824 drivers/scsi/scsi_scan.c __func__, sdev->type, (unsigned int)sdev->lun); lun 1044 drivers/scsi/scsi_scan.c u64 lun, blist_flags_t *bflagsp, lun 1059 drivers/scsi/scsi_scan.c sdev = scsi_device_lookup_by_target(starget, lun); lun 1078 drivers/scsi/scsi_scan.c sdev = scsi_alloc_sdev(starget, lun, hostdata); lun 1109 drivers/scsi/scsi_scan.c if (lun == 0) { lun 1149 drivers/scsi/scsi_scan.c !scsi_is_wlun(lun)) { lun 1202 drivers/scsi/scsi_scan.c u64 sparse_lun, lun; lun 1262 drivers/scsi/scsi_scan.c for (lun = 1; lun < max_dev_lun; ++lun) lun 1263 drivers/scsi/scsi_scan.c if ((scsi_probe_and_add_lun(starget, lun, NULL, NULL, rescan, lun 1294 drivers/scsi/scsi_scan.c u64 lun; lun 1424 drivers/scsi/scsi_scan.c lun = scsilun_to_int(lunp); lun 1426 drivers/scsi/scsi_scan.c if (lun > sdev->host->max_lun) { lun 1429 drivers/scsi/scsi_scan.c " allowed by the host adapter\n", lun); lun 1434 drivers/scsi/scsi_scan.c lun, NULL, NULL, rescan, NULL); lun 1442 drivers/scsi/scsi_scan.c " aborted\n", (unsigned long long)lun); lun 1461 drivers/scsi/scsi_scan.c uint id, u64 lun, void *hostdata) lun 1480 drivers/scsi/scsi_scan.c scsi_probe_and_add_lun(starget, lun, NULL, &sdev, 1, hostdata); lun 1497 drivers/scsi/scsi_scan.c uint target, u64 lun) lun 1500 drivers/scsi/scsi_scan.c __scsi_add_device(host, channel, target, lun, NULL); lun 1532 drivers/scsi/scsi_scan.c unsigned int id, u64 lun, enum scsi_scan_mode rescan) lun 1550 drivers/scsi/scsi_scan.c if (lun != SCAN_WILD_CARD) { lun 1554 drivers/scsi/scsi_scan.c scsi_probe_and_add_lun(starget, lun, NULL, NULL, rescan, NULL); lun 1603 drivers/scsi/scsi_scan.c unsigned int id, u64 lun, enum scsi_scan_mode rescan) lun 1619 drivers/scsi/scsi_scan.c __scsi_scan_target(parent, channel, id, lun, rescan); lun 1627 drivers/scsi/scsi_scan.c unsigned int id, u64 lun, lun 1651 drivers/scsi/scsi_scan.c order_id, lun, rescan); lun 1655 drivers/scsi/scsi_scan.c id, lun, rescan); lun 1659 drivers/scsi/scsi_scan.c unsigned int id, u64 lun, lun 1664 drivers/scsi/scsi_scan.c __func__, channel, id, lun)); lun 1668 drivers/scsi/scsi_scan.c ((lun != SCAN_WILD_CARD) && (lun >= shost->max_lun))) lun 1679 drivers/scsi/scsi_scan.c scsi_scan_channel(shost, channel, id, lun, lun 1682 drivers/scsi/scsi_scan.c scsi_scan_channel(shost, channel, id, lun, rescan); lun 135 drivers/scsi/scsi_sysfs.c unsigned long long channel, id, lun; lun 145 drivers/scsi/scsi_sysfs.c if (check_set(&lun, s3)) lun 148 drivers/scsi/scsi_sysfs.c res = shost->transportt->user_scan(shost, channel, id, lun); lun 150 drivers/scsi/scsi_sysfs.c res = scsi_scan_host_selected(shost, channel, id, lun, lun 1575 drivers/scsi/scsi_sysfs.c sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); lun 1581 drivers/scsi/scsi_sysfs.c sdev->host->host_no, sdev->channel, sdev->id, sdev->lun); lun 2086 drivers/scsi/scsi_transport_fc.c fc_user_scan_tgt(struct Scsi_Host *shost, uint channel, uint id, u64 lun) lun 2103 drivers/scsi/scsi_transport_fc.c scsi_scan_target(&rport->dev, channel, id, lun, lun 2119 drivers/scsi/scsi_transport_fc.c fc_user_scan(struct Scsi_Host *shost, uint channel, uint id, u64 lun) lun 2126 drivers/scsi/scsi_transport_fc.c ((lun != SCAN_WILD_CARD) && (lun > shost->max_lun))) lun 2147 drivers/scsi/scsi_transport_fc.c fc_user_scan_tgt(shost, chlo, tgtlo, lun); lun 1782 drivers/scsi/scsi_transport_iscsi.c u64 lun; lun 1820 drivers/scsi/scsi_transport_iscsi.c scan_data->lun, scan_data->rescan); lun 1830 drivers/scsi/scsi_transport_iscsi.c uint id, u64 lun) lun 1836 drivers/scsi/scsi_transport_iscsi.c scan_data.lun = lun; lun 1853 drivers/scsi/scsi_transport_iscsi.c scan_data.lun = SCAN_WILD_CARD; lun 1537 drivers/scsi/scsi_transport_sas.c int lun; lun 1540 drivers/scsi/scsi_transport_sas.c lun = SCAN_WILD_CARD; lun 1542 drivers/scsi/scsi_transport_sas.c lun = 0; lun 1544 drivers/scsi/scsi_transport_sas.c scsi_scan_target(&rphy->dev, 0, rphy->scsi_target_id, lun, lun 1657 drivers/scsi/scsi_transport_sas.c uint id, u64 lun) lun 1671 drivers/scsi/scsi_transport_sas.c lun, SCSI_SCAN_MANUAL); lun 756 drivers/scsi/ses.c if (tmp_sdev->lun != 0 || scsi_device_enclosure(tmp_sdev)) lun 982 drivers/scsi/sg.c __put_user((int) sdp->device->lun, &sg_idp->lun); lun 2487 drivers/scsi/sg.c scsidp->id, scsidp->lun, (int) scsidp->type, lun 2605 drivers/scsi/sg.c scsidp->lun, lun 906 drivers/scsi/smartpqi/smartpqi.h int lun; lun 1037 drivers/scsi/smartpqi/smartpqi_init.c int bus, int target, int lun) lun 1041 drivers/scsi/smartpqi/smartpqi_init.c device->lun = lun; lun 1050 drivers/scsi/smartpqi/smartpqi_init.c int lun; lun 1066 drivers/scsi/smartpqi/smartpqi_init.c lun = lunid & 0xff; lun 1070 drivers/scsi/smartpqi/smartpqi_init.c lun = lunid & 0x3fff; lun 1072 drivers/scsi/smartpqi/smartpqi_init.c pqi_set_bus_target_lun(device, bus, target, lun); lun 1472 drivers/scsi/smartpqi/smartpqi_init.c device->bus, device->target, device->lun, status); lun 1492 drivers/scsi/smartpqi/smartpqi_init.c device->target, device->lun); lun 1514 drivers/scsi/smartpqi/smartpqi_init.c device->target, device->lun, lun 1526 drivers/scsi/smartpqi/smartpqi_init.c int bus, int target, int lun) lun 1533 drivers/scsi/smartpqi/smartpqi_init.c device->lun == lun) lun 1605 drivers/scsi/smartpqi/smartpqi_init.c device->lun); lun 1660 drivers/scsi/smartpqi/smartpqi_init.c existing_device->lun = new_device->lun; lun 1866 drivers/scsi/smartpqi/smartpqi_init.c device->lun); lun 2678 drivers/scsi/smartpqi/smartpqi_init.c device->target, device->lun); lun 2759 drivers/scsi/smartpqi/smartpqi_init.c ctrl_info->scsi_host->host_no, device->bus, device->target, device->lun); lun 2767 drivers/scsi/smartpqi/smartpqi_init.c sshdr.ascq, ctrl_info->scsi_host->host_no, device->bus, device->target, device->lun); lun 5741 drivers/scsi/smartpqi/smartpqi_init.c shost->host_no, device->bus, device->target, device->lun); lun 5759 drivers/scsi/smartpqi/smartpqi_init.c shost->host_no, device->bus, device->target, device->lun, lun 5783 drivers/scsi/smartpqi/smartpqi_init.c device->lun = sdev->lun; lun 5788 drivers/scsi/smartpqi/smartpqi_init.c sdev_id(sdev), sdev->lun); lun 6342 drivers/scsi/smartpqi/smartpqi_init.c device->lun, lun 29 drivers/scsi/snic/snic_res.h u16 flags, u64 tgt_id, u8 *lun, u8 *scsi_cdb, u8 cdb_len, lun 38 drivers/scsi/snic/snic_res.h memcpy(&req->u.icmnd.lun_id, lun, LUN_ADDR_LEN); lun 50 drivers/scsi/snic/snic_res.h u16 flags, u32 req_id, u64 tgt_id, u8 *lun, u8 tm_type) lun 59 drivers/scsi/snic/snic_res.h memcpy(&req->u.itmf.lun_id, lun, LUN_ADDR_LEN); lun 171 drivers/scsi/snic/snic_scsi.c struct scsi_lun lun; lun 201 drivers/scsi/snic/snic_scsi.c int_to_scsilun(sc->device->lun, &lun); lun 214 drivers/scsi/snic/snic_scsi.c lun.scsi_lun, lun 359 drivers/scsi/snic/snic_scsi.c sc, snic_cmd_tag(sc), sc->cmnd[0], sc->device->lun); lun 598 drivers/scsi/snic/snic_scsi.c sc->device->lun, sc, sc->cmnd[0], snic_cmd_tag(sc), lun 1314 drivers/scsi/snic/snic_scsi.c struct scsi_lun lun; lun 1322 drivers/scsi/snic/snic_scsi.c int_to_scsilun(sc->device->lun, &lun); lun 1332 drivers/scsi/snic/snic_scsi.c lun.scsi_lun, lun 232 drivers/scsi/stex.c u8 lun; lun 244 drivers/scsi/stex.c u8 lun; lun 601 drivers/scsi/stex.c unsigned int id, lun; lun 607 drivers/scsi/stex.c lun = cmd->device->lun; lun 653 drivers/scsi/stex.c if (lun >= host->max_lun) { lun 660 drivers/scsi/stex.c if (!lun && !cmd->device->channel && lun 701 drivers/scsi/stex.c req->lun = lun; lun 198 drivers/scsi/storvsc_drv.c u8 lun; lun 491 drivers/scsi/storvsc_drv.c u8 lun; lun 502 drivers/scsi/storvsc_drv.c sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); lun 550 drivers/scsi/storvsc_drv.c sdev = scsi_device_lookup(wrk->host, 0, wrk->tgt_id, wrk->lun); lun 994 drivers/scsi/storvsc_drv.c wrk->lun = vm_srb->lun; lun 1632 drivers/scsi/storvsc_drv.c vm_srb->lun = scmnd->device->lun; lun 211 drivers/scsi/sym53c8xx_2/sym_glue.c cp->target,cp->lun, -1); lun 303 drivers/scsi/sym53c8xx_2/sym_glue.c lp = sym_lp(tp, sdev->lun); lun 702 drivers/scsi/sym53c8xx_2/sym_glue.c static void sym_tune_dev_queuing(struct sym_tcb *tp, int lun, u_short reqtags) lun 704 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_lcb *lp = sym_lp(tp, lun); lun 732 drivers/scsi/sym53c8xx_2/sym_glue.c if (sdev->id >= SYM_CONF_MAX_TARGET || sdev->lun >= SYM_CONF_MAX_LUN) lun 755 drivers/scsi/sym53c8xx_2/sym_glue.c if (sdev->lun != 0) { lun 763 drivers/scsi/sym53c8xx_2/sym_glue.c lp = sym_alloc_lcb(np, sdev->id, sdev->lun); lun 788 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_lcb *lp = sym_lp(tp, sdev->lun); lun 812 drivers/scsi/sym53c8xx_2/sym_glue.c sym_tune_dev_queuing(tp, sdev->lun, reqtags); lun 824 drivers/scsi/sym53c8xx_2/sym_glue.c struct sym_lcb *lp = sym_lp(tp, sdev->lun); lun 839 drivers/scsi/sym53c8xx_2/sym_glue.c "Removing busy LCB (%d)\n", (u8)sdev->lun); lun 843 drivers/scsi/sym53c8xx_2/sym_glue.c if (sym_free_lcb(np, sdev->id, sdev->lun) == 0) { lun 880 drivers/scsi/sym53c8xx_2/sym_glue.c u_long lun; lun 1646 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_lcb *lp = sym_lp(tp, cp->lun); lun 2704 drivers/scsi/sym53c8xx_2/sym_hipd.c np->msgout[0] = IDENTIFY(0, cp->lun); lun 2965 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_dequeue_from_squeue(struct sym_hcb *np, int i, int target, int lun, int task) lun 2988 drivers/scsi/sym53c8xx_2/sym_hipd.c (lun == -1 || cp->lun == lun) && lun 3080 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_dequeue_from_squeue(np, i, cp->target, cp->lun, -1); lun 3096 drivers/scsi/sym53c8xx_2/sym_hipd.c cp->scsi_smsg2[0] = IDENTIFY(0, cp->lun); lun 3128 drivers/scsi/sym53c8xx_2/sym_hipd.c if (cp->cmd->device->scsi_level <= SCSI_2 && cp->lun <= 7) lun 3129 drivers/scsi/sym53c8xx_2/sym_hipd.c cp->sensecmd[1] = cp->lun << 5; lun 3186 drivers/scsi/sym53c8xx_2/sym_hipd.c int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, int task) lun 3210 drivers/scsi/sym53c8xx_2/sym_hipd.c (lun != -1 && cp->lun != lun) || lun 3275 drivers/scsi/sym53c8xx_2/sym_hipd.c int target=-1, lun=-1, task; lun 3381 drivers/scsi/sym53c8xx_2/sym_hipd.c i = sym_dequeue_from_squeue(np, i, cp->target, cp->lun, -1); lun 3431 drivers/scsi/sym53c8xx_2/sym_hipd.c lun = 0; lun 3435 drivers/scsi/sym53c8xx_2/sym_hipd.c lun = k; lun 3445 drivers/scsi/sym53c8xx_2/sym_hipd.c if (lun != -1) { lun 3446 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_lcb *lp = sym_lp(tp, lun); lun 3448 drivers/scsi/sym53c8xx_2/sym_hipd.c np->abrt_msg[0] = IDENTIFY(0, lun); lun 3489 drivers/scsi/sym53c8xx_2/sym_hipd.c np->abrt_msg[0] = IDENTIFY(0, cp->lun); lun 3539 drivers/scsi/sym53c8xx_2/sym_hipd.c lun = -1; lun 3562 drivers/scsi/sym53c8xx_2/sym_hipd.c lun = np->abrt_msg[0] & 0x3f; lun 3572 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_dequeue_from_squeue(np, i, target, lun, -1); lun 3573 drivers/scsi/sym53c8xx_2/sym_hipd.c sym_clear_tasks(np, DID_ABORT, target, lun, task); lun 4648 drivers/scsi/sym53c8xx_2/sym_hipd.c u_char ln = cmd->device->lun; lun 4756 drivers/scsi/sym53c8xx_2/sym_hipd.c cp->lun = ln; lun 4775 drivers/scsi/sym53c8xx_2/sym_hipd.c struct sym_lcb *lp = sym_lp(tp, cp->lun); lun 5153 drivers/scsi/sym53c8xx_2/sym_hipd.c lp = sym_lp(tp, sdev->lun); lun 5160 drivers/scsi/sym53c8xx_2/sym_hipd.c msgptr[msglen++] = IDENTIFY(can_disconnect, sdev->lun); lun 5377 drivers/scsi/sym53c8xx_2/sym_hipd.c lp = sym_lp(tp, sdev->lun); lun 5408 drivers/scsi/sym53c8xx_2/sym_hipd.c i = sym_dequeue_from_squeue(np, i, cp->target, sdev->lun, -1); lun 5505 drivers/scsi/sym53c8xx_2/sym_hipd.c lp = sym_lp(tp, cp->lun); lun 568 drivers/scsi/sym53c8xx_2/sym_hipd.h #define sym_lp(tp, lun) (!lun) ? (tp)->lun0p : NULL lun 570 drivers/scsi/sym53c8xx_2/sym_hipd.h #define sym_lp(tp, lun) \ lun 571 drivers/scsi/sym53c8xx_2/sym_hipd.h (!lun) ? (tp)->lun0p : (tp)->lunmp ? (tp)->lunmp[((u8)lun)] : NULL lun 773 drivers/scsi/sym53c8xx_2/sym_hipd.h u_char lun; lun 1052 drivers/scsi/sym53c8xx_2/sym_hipd.h int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, int task); lun 735 drivers/scsi/ufs/ufs-sysfs.c u8 lun = ufshcd_scsi_to_upiu_lun(sdev->lun); \ lun 736 drivers/scsi/ufs/ufs-sysfs.c if (!ufs_is_valid_unit_desc_lun(lun)) \ lun 739 drivers/scsi/ufs/ufs-sysfs.c lun, _duname##_DESC_PARAM##_puname, buf, _size); \ lun 788 drivers/scsi/ufs/ufs-sysfs.c u8 lun = ufshcd_scsi_to_upiu_lun(sdev->lun); lun 791 drivers/scsi/ufs/ufs-sysfs.c QUERY_ATTR_IDN_DYN_CAP_NEEDED, lun, 0, &value)) lun 552 drivers/scsi/ufs/ufs.h static inline bool ufs_is_valid_unit_desc_lun(u8 lun) lun 554 drivers/scsi/ufs/ufs.h return lun == UFS_UPIU_RPMB_WLUN || (lun < UFS_UPIU_MAX_GENERAL_LUN); lun 2250 drivers/scsi/ufs/ufshcd.c lrbp->lun, lrbp->task_tag); lun 2284 drivers/scsi/ufs/ufshcd.c lrbp->lun, lrbp->task_tag); lun 2475 drivers/scsi/ufs/ufshcd.c lrbp->lun = ufshcd_scsi_to_upiu_lun(cmd->device->lun); lun 2509 drivers/scsi/ufs/ufshcd.c lrbp->lun = 0; /* device management cmd is not specific to any LUN */ lun 3342 drivers/scsi/ufs/ufshcd.c int lun, lun 3351 drivers/scsi/ufs/ufshcd.c if (!ufs_is_valid_unit_desc_lun(lun)) lun 3354 drivers/scsi/ufs/ufshcd.c return ufshcd_read_desc_param(hba, QUERY_DESC_IDN_UNIT, lun, lun 4521 drivers/scsi/ufs/ufshcd.c ufshcd_scsi_to_upiu_lun(sdev->lun), lun 4552 drivers/scsi/ufs/ufshcd.c u8 lun, lun 4564 drivers/scsi/ufs/ufshcd.c else if (lun >= UFS_UPIU_MAX_GENERAL_LUN) lun 4568 drivers/scsi/ufs/ufshcd.c lun, lun 4589 drivers/scsi/ufs/ufshcd.c if (!ufshcd_get_lu_wp(hba, ufshcd_scsi_to_upiu_lun(sdev->lun), lun 4665 drivers/scsi/ufs/ufshcd.c if (ufshcd_scsi_to_upiu_lun(sdev->lun) == UFS_UPIU_UFS_DEVICE_WLUN) { lun 5820 drivers/scsi/ufs/ufshcd.c lrbp->lun = 0; lun 5984 drivers/scsi/ufs/ufshcd.c err = ufshcd_issue_tm_cmd(hba, lrbp->lun, 0, UFS_LOGICAL_RESET, &resp); lun 5993 drivers/scsi/ufs/ufshcd.c if (hba->lrb[pos].lun == lrbp->lun) { lun 6068 drivers/scsi/ufs/ufshcd.c if (lrbp->lun == UFS_UPIU_UFS_DEVICE_WLUN) lun 6116 drivers/scsi/ufs/ufshcd.c err = ufshcd_issue_tm_cmd(hba, lrbp->lun, lrbp->task_tag, lun 6155 drivers/scsi/ufs/ufshcd.c err = ufshcd_issue_tm_cmd(hba, lrbp->lun, lrbp->task_tag, lun 191 drivers/scsi/ufs/ufshcd.h u8 lun; /* UPIU LUN id field is only 8-bit wide */ lun 282 drivers/scsi/virtio_scsi.c unsigned int target = event->lun[1]; lun 283 drivers/scsi/virtio_scsi.c unsigned int lun = (event->lun[2] << 8) | event->lun[3]; lun 287 drivers/scsi/virtio_scsi.c scsi_add_device(shost, 0, target, lun); lun 290 drivers/scsi/virtio_scsi.c sdev = scsi_device_lookup(shost, 0, target, lun); lun 296 drivers/scsi/virtio_scsi.c shost->host_no, target, lun); lun 309 drivers/scsi/virtio_scsi.c unsigned int target = event->lun[1]; lun 310 drivers/scsi/virtio_scsi.c unsigned int lun = (event->lun[2] << 8) | event->lun[3]; lun 314 drivers/scsi/virtio_scsi.c sdev = scsi_device_lookup(shost, 0, target, lun); lun 317 drivers/scsi/virtio_scsi.c shost->host_no, target, lun); lun 496 drivers/scsi/virtio_scsi.c cmd->lun[0] = 1; lun 497 drivers/scsi/virtio_scsi.c cmd->lun[1] = sc->device->id; lun 498 drivers/scsi/virtio_scsi.c cmd->lun[2] = (sc->device->lun >> 8) | 0x40; lun 499 drivers/scsi/virtio_scsi.c cmd->lun[3] = sc->device->lun & 0xff; lun 637 drivers/scsi/virtio_scsi.c .lun[0] = 1, lun 638 drivers/scsi/virtio_scsi.c .lun[1] = sc->device->id, lun 639 drivers/scsi/virtio_scsi.c .lun[2] = (sc->device->lun >> 8) | 0x40, lun 640 drivers/scsi/virtio_scsi.c .lun[3] = sc->device->lun & 0xff, lun 694 drivers/scsi/virtio_scsi.c .lun[0] = 1, lun 695 drivers/scsi/virtio_scsi.c .lun[1] = sc->device->id, lun 696 drivers/scsi/virtio_scsi.c .lun[2] = (sc->device->lun >> 8) | 0x40, lun 697 drivers/scsi/virtio_scsi.c .lun[3] = sc->device->lun & 0xff, lun 707 drivers/scsi/vmw_pvscsi.c memset(e->lun, 0, sizeof(e->lun)); lun 708 drivers/scsi/vmw_pvscsi.c e->lun[1] = sdev->lun; lun 1037 drivers/scsi/vmw_pvscsi.c desc->bus, desc->target, desc->lun[1]); lun 1043 drivers/scsi/vmw_pvscsi.c desc->lun[1]); lun 1049 drivers/scsi/vmw_pvscsi.c desc->target, desc->lun[1]); lun 1058 drivers/scsi/vmw_pvscsi.c desc->bus, desc->target, desc->lun[1]); lun 1064 drivers/scsi/vmw_pvscsi.c desc->lun[1]); lun 1071 drivers/scsi/vmw_pvscsi.c desc->bus, desc->target, desc->lun[1]); lun 130 drivers/scsi/vmw_pvscsi.h u8 lun[8]; lun 247 drivers/scsi/vmw_pvscsi.h u8 lun[8]; lun 332 drivers/scsi/vmw_pvscsi.h u8 lun[8]; lun 497 drivers/scsi/wd33c93.c (1 << (cmd->device->lun & 0xff)))) lun 567 drivers/scsi/wd33c93.c (prev->device->lun != cmd->device->lun)) { lun 588 drivers/scsi/wd33c93.c write_wd33c93(regs, WD_TARGET_LUN, (u8)cmd->device->lun); lun 591 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] |= (1 << (cmd->device->lun & 0xFF)); lun 799 drivers/scsi/wd33c93.c uchar asr, sr, phs, id, lun, *ucp, msg; lun 857 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); lun 890 drivers/scsi/wd33c93.c hostdata->outgoing_msg[0] = IDENTIFY(0, cmd->device->lun); lun 1171 drivers/scsi/wd33c93.c lun = read_wd33c93(regs, WD_TARGET_LUN); lun 1172 drivers/scsi/wd33c93.c DB(DB_INTR, printk(":%d.%d", cmd->SCp.Status, lun)) lun 1174 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); lun 1177 drivers/scsi/wd33c93.c cmd->SCp.Status = lun; lun 1263 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); lun 1295 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); lun 1348 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); lun 1360 drivers/scsi/wd33c93.c ~(1 << (cmd->device->lun & 0xff)); lun 1386 drivers/scsi/wd33c93.c lun = read_wd33c93(regs, WD_DATA); lun 1389 drivers/scsi/wd33c93.c lun &= 7; lun 1392 drivers/scsi/wd33c93.c for (lun = 255; lun; lun--) { lun 1400 drivers/scsi/wd33c93.c lun = 0; lun 1409 drivers/scsi/wd33c93.c lun = read_1_byte(regs); lun 1426 drivers/scsi/wd33c93.c lun &= 7; lun 1433 drivers/scsi/wd33c93.c lun = 0; lun 1443 drivers/scsi/wd33c93.c if (id == cmd->device->id && lun == (u8)cmd->device->lun) lun 1454 drivers/scsi/wd33c93.c id, (u8)lun); lun 1702 drivers/scsi/wd33c93.c hostdata->busy[cmd->device->id] &= ~(1 << (cmd->device->lun & 0xff)); lun 2168 drivers/scsi/wd33c93.c cmd->device->id, cmd->device->lun, cmd->cmnd[0]); lun 2176 drivers/scsi/wd33c93.c cmd->device->id, cmd->device->lun, cmd->cmnd[0]); lun 2185 drivers/scsi/wd33c93.c cmd->device->id, cmd->device->lun, cmd->cmnd[0]); lun 126 drivers/scsi/wd719x.c static int wd719x_direct_cmd(struct wd719x *wd, u8 opcode, u8 dev, u8 lun, lun 143 drivers/scsi/wd719x.c wd719x_writeb(wd, WD719X_AMR_CMD_PARAM_2, lun); lun 218 drivers/scsi/wd719x.c scb->lun = cmd->device->lun; lun 476 drivers/scsi/wd719x.c cmd->device->lun, cmd->tag, scb->phys, 0); lun 34 drivers/scsi/wd719x.h u8 lun; /* 06 SCSI LUN */ lun 206 drivers/scsi/xen-scsifront.c ring_req->lun = sc->device->lun; lun 976 drivers/scsi/xen-scsifront.c unsigned int hst, chn, tgt, lun; lun 998 drivers/scsi/xen-scsifront.c "%u:%u:%u:%u", &hst, &chn, &tgt, &lun); lun 1015 drivers/scsi/xen-scsifront.c if (scsi_add_device(info->host, chn, tgt, lun)) { lun 1029 drivers/scsi/xen-scsifront.c sdev = scsi_device_lookup(info->host, chn, tgt, lun); lun 3396 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 3430 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 3447 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3462 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3472 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3483 drivers/staging/rts5208/ms.c (chip, lun, lun 3487 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3499 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3503 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3511 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3546 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3585 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 3627 drivers/staging/rts5208/ms.c (chip, lun, lun 3803 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 3807 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3819 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_ESTAB); lun 3831 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_ESTAB); lun 3835 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_ESTAB); lun 3847 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 3867 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 3874 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 3879 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 3899 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 3910 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3917 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3921 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3931 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3938 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3954 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3958 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3973 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 3984 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 3991 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 3995 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 4014 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 4028 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 4039 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 4055 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 4059 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_KEY_FAIL_NOT_AUTHEN); lun 4074 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 4094 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR); lun 4101 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR); lun 4106 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR); lun 4128 drivers/staging/rts5208/ms.c unsigned int lun = SCSI_LUN(srb); lun 4149 drivers/staging/rts5208/ms.c (chip, lun, lun 4152 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 4155 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_WRITE_ERR); lun 4188 drivers/staging/rts5208/ms.c (chip, lun, lun 4191 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 4194 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 4209 drivers/staging/rts5208/ms.c (chip, lun, lun 4212 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, lun 4215 drivers/staging/rts5208/ms.c set_sense_type(chip, lun, SENSE_TYPE_MG_WRITE_ERR); lun 413 drivers/staging/rts5208/rtsx.c (u8)chip->srb->device->lun); lun 417 drivers/staging/rts5208/rtsx.c else if (chip->srb->device->lun > chip->max_lun) { lun 420 drivers/staging/rts5208/rtsx.c (u8)chip->srb->device->lun); lun 77 drivers/staging/rts5208/rtsx.h #define SCSI_LUN(srb) ((srb)->device->lun) lun 942 drivers/staging/rts5208/rtsx_card.c unsigned int lun = SCSI_LUN(srb); lun 945 drivers/staging/rts5208/rtsx_card.c if (!chip->rw_card[lun]) lun 951 drivers/staging/rts5208/rtsx_card.c retval = chip->rw_card[lun](srb, chip, sec_addr, sec_cnt); lun 1095 drivers/staging/rts5208/rtsx_card.c int check_card_exist(struct rtsx_chip *chip, unsigned int lun) lun 1097 drivers/staging/rts5208/rtsx_card.c if (chip->card_exist & chip->lun2card[lun]) lun 1103 drivers/staging/rts5208/rtsx_card.c int check_card_ready(struct rtsx_chip *chip, unsigned int lun) lun 1105 drivers/staging/rts5208/rtsx_card.c if (chip->card_ready & chip->lun2card[lun]) lun 1111 drivers/staging/rts5208/rtsx_card.c int check_card_wp(struct rtsx_chip *chip, unsigned int lun) lun 1113 drivers/staging/rts5208/rtsx_card.c if (chip->card_wp & chip->lun2card[lun]) lun 1119 drivers/staging/rts5208/rtsx_card.c u8 get_lun_card(struct rtsx_chip *chip, unsigned int lun) lun 1121 drivers/staging/rts5208/rtsx_card.c if ((chip->card_ready & chip->lun2card[lun]) == XD_CARD) lun 1123 drivers/staging/rts5208/rtsx_card.c else if ((chip->card_ready & chip->lun2card[lun]) == SD_CARD) lun 1125 drivers/staging/rts5208/rtsx_card.c else if ((chip->card_ready & chip->lun2card[lun]) == MS_CARD) lun 1131 drivers/staging/rts5208/rtsx_card.c void eject_card(struct rtsx_chip *chip, unsigned int lun) lun 1135 drivers/staging/rts5208/rtsx_card.c if ((chip->card_ready & chip->lun2card[lun]) == SD_CARD) { lun 1139 drivers/staging/rts5208/rtsx_card.c chip->capacity[lun] = 0; lun 1140 drivers/staging/rts5208/rtsx_card.c } else if ((chip->card_ready & chip->lun2card[lun]) == XD_CARD) { lun 1144 drivers/staging/rts5208/rtsx_card.c chip->capacity[lun] = 0; lun 1145 drivers/staging/rts5208/rtsx_card.c } else if ((chip->card_ready & chip->lun2card[lun]) == MS_CARD) { lun 1149 drivers/staging/rts5208/rtsx_card.c chip->capacity[lun] = 0; lun 1012 drivers/staging/rts5208/rtsx_card.h int check_card_exist(struct rtsx_chip *chip, unsigned int lun); lun 1013 drivers/staging/rts5208/rtsx_card.h int check_card_ready(struct rtsx_chip *chip, unsigned int lun); lun 1014 drivers/staging/rts5208/rtsx_card.h int check_card_wp(struct rtsx_chip *chip, unsigned int lun); lun 1015 drivers/staging/rts5208/rtsx_card.h void eject_card(struct rtsx_chip *chip, unsigned int lun); lun 1016 drivers/staging/rts5208/rtsx_card.h u8 get_lun_card(struct rtsx_chip *chip, unsigned int lun); lun 1018 drivers/staging/rts5208/rtsx_card.h static inline u32 get_card_size(struct rtsx_chip *chip, unsigned int lun) lun 1023 drivers/staging/rts5208/rtsx_card.h if ((get_lun_card(chip, lun) == SD_CARD) && lun 1027 drivers/staging/rts5208/rtsx_card.h return chip->capacity[lun]; lun 1029 drivers/staging/rts5208/rtsx_card.h return chip->capacity[lun]; lun 313 drivers/staging/rts5208/rtsx_scsi.c void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type) lun 317 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x06, 0, 0x28, 0, 0, 0); lun 321 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x3A, 0, 0, 0); lun 325 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x21, 0, 0, 0); lun 329 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x25, 0, 0, 0); lun 333 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x27, 0, 0, 0); lun 337 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x11, 0, 0, 0); lun 341 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x0C, 0x02, 0, 0); lun 345 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, ILGAL_REQ, 0, lun 350 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x04, 0x04, 0, 0); lun 354 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x31, 0x01, 0, 0); lun 359 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x6F, 0x02, 0, 0); lun 363 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x05, 0, 0x6F, 0x00, 0, 0); lun 367 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x30, 0x00, 0, 0); lun 371 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x03, 0, 0x0C, 0x00, 0, 0); lun 377 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x07, 0, 0x11, 0x13, 0, 0); lun 383 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0, 0, 0, 0, 0, 0); lun 388 drivers/staging/rts5208/rtsx_scsi.c void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, lun 392 drivers/staging/rts5208/rtsx_scsi.c struct sense_data_t *sense = &chip->sense_buffer[lun]; lun 413 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 415 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 416 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 420 drivers/staging/rts5208/rtsx_scsi.c if (!(CHK_BIT(chip->lun_mc, lun))) { lun 421 drivers/staging/rts5208/rtsx_scsi.c SET_BIT(chip->lun_mc, lun); lun 422 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 432 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 435 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 465 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 473 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); lun 487 drivers/staging/rts5208/rtsx_scsi.c if (chip->lun2card[lun] == SD_CARD) lun 504 drivers/staging/rts5208/rtsx_scsi.c (chip->lun2card[lun] & MS_CARD)) lun 550 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 564 drivers/staging/rts5208/rtsx_scsi.c if (check_card_ready(chip, lun)) lun 565 drivers/staging/rts5208/rtsx_scsi.c eject_card(chip, lun); lun 570 drivers/staging/rts5208/rtsx_scsi.c if (check_card_ready(chip, lun)) lun 572 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 601 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 605 drivers/staging/rts5208/rtsx_scsi.c sense = &chip->sense_buffer[lun]; lun 607 drivers/staging/rts5208/rtsx_scsi.c if ((get_lun_card(chip, lun) == MS_CARD) && lun 610 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE); lun 615 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x04, 0x04, lun 619 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_FORMAT_CMD_FAILED); lun 639 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE); lun 644 drivers/staging/rts5208/rtsx_scsi.c int lun, u8 *buf, int buf_len) lun 668 drivers/staging/rts5208/rtsx_scsi.c if (check_card_ready(chip, lun)) { lun 680 drivers/staging/rts5208/rtsx_scsi.c if (check_card_wp(chip, lun)) lun 738 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 743 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); lun 746 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 747 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 756 drivers/staging/rts5208/rtsx_scsi.c if ((chip->lun2card[lun] & MS_CARD)) { lun 784 drivers/staging/rts5208/rtsx_scsi.c lun, buf, data_size); lun 789 drivers/staging/rts5208/rtsx_scsi.c if (check_card_wp(chip, lun)) lun 799 drivers/staging/rts5208/rtsx_scsi.c lun, buf, data_size); lun 805 drivers/staging/rts5208/rtsx_scsi.c if (check_card_wp(chip, lun)) lun 817 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 838 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 851 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun) || (get_card_size(chip, lun) == 0)) { lun 852 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 856 drivers/staging/rts5208/rtsx_scsi.c if (!(CHK_BIT(chip->lun_mc, lun))) { lun 857 drivers/staging/rts5208/rtsx_scsi.c SET_BIT(chip->lun_mc, lun); lun 858 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 868 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_READ_FORBIDDEN); lun 872 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) == SD_CARD) { lun 875 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 901 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 909 drivers/staging/rts5208/rtsx_scsi.c if ((start_sec > get_card_size(chip, lun)) || lun 910 drivers/staging/rts5208/rtsx_scsi.c ((start_sec + sec_cnt) > get_card_size(chip, lun))) { lun 911 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LBA_OVER_RANGE); lun 920 drivers/staging/rts5208/rtsx_scsi.c if (chip->rw_fail_cnt[lun] == 3) { lun 923 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 926 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR); lun 932 drivers/staging/rts5208/rtsx_scsi.c if (check_card_wp(chip, lun)) { lun 934 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 942 drivers/staging/rts5208/rtsx_scsi.c if (chip->need_release & chip->lun2card[lun]) { lun 943 drivers/staging/rts5208/rtsx_scsi.c chip->rw_fail_cnt[lun] = 0; lun 944 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 946 drivers/staging/rts5208/rtsx_scsi.c chip->rw_fail_cnt[lun]++; lun 949 drivers/staging/rts5208/rtsx_scsi.c (chip, lun, lun 952 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 958 drivers/staging/rts5208/rtsx_scsi.c chip->rw_fail_cnt[lun] = 0; lun 971 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 973 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); lun 978 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 980 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 997 drivers/staging/rts5208/rtsx_scsi.c (chip->lun2card[lun] & MS_CARD) && lun 1007 drivers/staging/rts5208/rtsx_scsi.c if (check_card_ready(chip, lun)) { lun 1008 drivers/staging/rts5208/rtsx_scsi.c card_size = get_card_size(chip, lun); lun 1049 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 1052 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 1053 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 1057 drivers/staging/rts5208/rtsx_scsi.c if (!(CHK_BIT(chip->lun_mc, lun))) { lun 1058 drivers/staging/rts5208/rtsx_scsi.c SET_BIT(chip->lun_mc, lun); lun 1059 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 1067 drivers/staging/rts5208/rtsx_scsi.c card_size = get_card_size(chip, lun); lun 1297 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 1299 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 1300 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 1304 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) != SD_CARD) { lun 1305 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR); lun 1395 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 1417 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 1448 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 1457 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 1479 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 1490 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 1500 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 1524 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 1527 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 1542 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 1543 drivers/staging/rts5208/rtsx_scsi.c u8 card = get_lun_card(chip, lun); lun 1572 drivers/staging/rts5208/rtsx_scsi.c (chip->lun2card[lun] == MS_CARD)) { lun 1722 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 1742 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 1760 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 1769 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 1774 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR); lun 2411 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2419 drivers/staging/rts5208/rtsx_scsi.c rtsx_status[4] = (u8)lun; lun 2422 drivers/staging/rts5208/rtsx_scsi.c if (chip->lun2card[lun] == SD_CARD) lun 2449 drivers/staging/rts5208/rtsx_scsi.c if (check_card_exist(chip, lun)) lun 2460 drivers/staging/rts5208/rtsx_scsi.c if (chip->lun2card[lun] == SD_CARD) lun 2468 drivers/staging/rts5208/rtsx_scsi.c if (check_card_ready(chip, lun)) lun 2473 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) == XD_CARD) { lun 2475 drivers/staging/rts5208/rtsx_scsi.c } else if (get_lun_card(chip, lun) == SD_CARD) { lun 2491 drivers/staging/rts5208/rtsx_scsi.c } else if (get_lun_card(chip, lun) == MS_CARD) { lun 2516 drivers/staging/rts5208/rtsx_scsi.c if (chip->lun2card[lun] == SD_CARD) lun 2538 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2541 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 2542 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 2546 drivers/staging/rts5208/rtsx_scsi.c card = get_lun_card(chip, lun); lun 2548 drivers/staging/rts5208/rtsx_scsi.c bus_width = chip->card_bus_width[lun]; lun 2550 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR); lun 2563 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2567 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 2616 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 2685 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2698 drivers/staging/rts5208/rtsx_scsi.c if (chip->rw_cap[lun] >= GPIO_TOGGLE_THRESHOLD) { lun 2700 drivers/staging/rts5208/rtsx_scsi.c chip->rw_cap[lun] = 0; lun 2702 drivers/staging/rts5208/rtsx_scsi.c chip->rw_cap[lun] += sec_cnt; lun 2710 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2714 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) != MS_CARD) { lun 2715 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT); lun 2722 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 2732 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun) || lun 2733 drivers/staging/rts5208/rtsx_scsi.c (get_card_size(chip, lun) == 0)) { lun 2734 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 2746 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 2751 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_PROTECT); lun 2756 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT); lun 2762 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_FORMAT_CMD_FAILED); lun 2774 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2780 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 2781 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 2784 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) != MS_CARD) { lun 2785 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT); lun 2792 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 2800 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 2886 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2899 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 2900 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 2903 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) != SD_CARD) { lun 2904 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT); lun 2934 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 2946 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 2960 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 2961 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 2964 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) != MS_CARD) { lun 2965 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT); lun 2970 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 2975 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 2992 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 3007 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 3027 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 3034 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3045 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 3059 drivers/staging/rts5208/rtsx_scsi.c if (!check_card_ready(chip, lun)) { lun 3060 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 3063 drivers/staging/rts5208/rtsx_scsi.c if (check_card_wp(chip, lun)) { lun 3064 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_PROTECT); lun 3067 drivers/staging/rts5208/rtsx_scsi.c if (get_lun_card(chip, lun) != MS_CARD) { lun 3068 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_LUN_NOT_SUPPORT); lun 3073 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3078 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MG_INCOMPATIBLE_MEDIUM); lun 3095 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 3110 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 3125 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 3145 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, lun 3152 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3167 drivers/staging/rts5208/rtsx_scsi.c unsigned int lun = SCSI_LUN(srb); lun 3180 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, lun 3187 drivers/staging/rts5208/rtsx_scsi.c if ((get_lun_card(chip, lun) == MS_CARD) && lun 3192 drivers/staging/rts5208/rtsx_scsi.c set_sense_data(chip, lun, CUR_ERR, 0x02, 0, 0x04, 0x04, lun 3278 drivers/staging/rts5208/rtsx_scsi.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 125 drivers/staging/rts5208/rtsx_scsi.h void set_sense_type(struct rtsx_chip *chip, unsigned int lun, int sense_type); lun 126 drivers/staging/rts5208/rtsx_scsi.h void set_sense_data(struct rtsx_chip *chip, unsigned int lun, u8 err_code, lun 3744 drivers/staging/rts5208/sd.c unsigned int lun = SCSI_LUN(srb); lun 3769 drivers/staging/rts5208/sd.c if (!(CHK_BIT(chip->lun_mc, lun))) { lun 3770 drivers/staging/rts5208/sd.c SET_BIT(chip->lun_mc, lun); lun 3771 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 3779 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3793 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3854 drivers/staging/rts5208/sd.c unsigned int lun = SCSI_LUN(srb); lun 3861 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3871 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 3887 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3954 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE); lun 3958 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 3966 drivers/staging/rts5208/sd.c unsigned int lun = SCSI_LUN(srb); lun 3974 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 3980 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 4003 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 4185 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE); lun 4187 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_UNRECOVER_READ_ERR); lun 4192 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 4200 drivers/staging/rts5208/sd.c unsigned int lun = SCSI_LUN(srb); lun 4213 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 4219 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 4251 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 4521 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE); lun 4531 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_NO_SENSE); lun 4533 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR); lun 4538 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 4546 drivers/staging/rts5208/sd.c unsigned int lun = SCSI_LUN(srb); lun 4551 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 4557 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 4564 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 4585 drivers/staging/rts5208/sd.c unsigned int lun = SCSI_LUN(srb); lun 4589 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 4595 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); lun 4603 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 4618 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 4630 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 4637 drivers/staging/rts5208/sd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); lun 1832 drivers/staging/rts5208/xd.c unsigned int lun = SCSI_LUN(srb); lun 1858 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 1871 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 1889 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1905 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1914 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1924 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1928 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1940 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1944 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1952 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1963 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 1978 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 1988 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 2009 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 2018 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 2021 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 2030 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 2050 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); lun 2058 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, lun 2062 drivers/staging/rts5208/xd.c set_sense_type(chip, lun, SENSE_TYPE_MEDIA_WRITE_ERR); lun 154 drivers/staging/unisys/include/iochannel.h u32 lun; lun 498 drivers/staging/unisys/include/iochannel.h u32 channel, id, lun; lun 331 drivers/staging/unisys/visorhba/visorhba_main.c cmdrsp->scsitaskmgmt.vdest.lun = scsidev->lun; lun 538 drivers/staging/unisys/visorhba/visorhba_main.c cmdrsp->scsi.vdest.lun = scsidev->lun; lun 865 drivers/staging/unisys/visorhba/visorhba_main.c scsidev->lun == 0); lun 1171 drivers/target/iscsi/iscsi_target.c scsilun_to_int(&hdr->lun)); lun 2042 drivers/target/iscsi/iscsi_target.c scsilun_to_int(&hdr->lun)); lun 2788 drivers/target/iscsi/iscsi_target.c (struct scsi_lun *)&hdr->lun); lun 2790 drivers/target/iscsi/iscsi_target.c put_unaligned_le64(0xFFFFFFFFFFFFFFFFULL, &hdr->lun); lun 2991 drivers/target/iscsi/iscsi_target.c put_unaligned_le64(0xFFFFFFFFFFFFFFFFULL, &hdr->lun); lun 3074 drivers/target/iscsi/iscsi_target.c (struct scsi_lun *)&hdr->lun); lun 156 drivers/target/iscsi/iscsi_target_tmr.c ref_lun = scsilun_to_int(&hdr->lun); lun 146 drivers/target/loopback/tcm_loop.c &tl_cmd->tl_sense_buf[0], tl_cmd->sc->device->lun, lun 173 drivers/target/loopback/tcm_loop.c sc->device->channel, sc->device->lun, sc->cmnd[0], lun 195 drivers/target/loopback/tcm_loop.c u64 lun, int task, enum tcm_tmreq_table tmr) lun 221 drivers/target/loopback/tcm_loop.c rc = target_submit_tmr(se_cmd, se_sess, tl_cmd->tl_sense_buf, lun, lun 249 drivers/target/loopback/tcm_loop.c ret = tcm_loop_issue_tmr(tl_tpg, sc->device->lun, lun 270 drivers/target/loopback/tcm_loop.c ret = tcm_loop_issue_tmr(tl_tpg, sc->device->lun, lun 628 drivers/target/loopback/tcm_loop.c struct se_lun *lun) lun 638 drivers/target/loopback/tcm_loop.c scsi_add_device(tl_hba->sh, 0, tl_tpg->tl_tpgt, lun->unpacked_lun); lun 1800 drivers/target/sbp/sbp_target.c struct se_lun *lun; lun 1804 drivers/target/sbp/sbp_target.c hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) lun 1813 drivers/target/sbp/sbp_target.c struct se_lun *lun; lun 1877 drivers/target/sbp/sbp_target.c hlist_for_each_entry_rcu(lun, &tport->tpg->se_tpg.tpg_lun_hlist, link) { lun 1884 drivers/target/sbp/sbp_target.c dev = rcu_dereference_raw(lun->lun_se_dev); lun 1890 drivers/target/sbp/sbp_target.c (lun->unpacked_lun & 0xffff); lun 35 drivers/target/target_core_alua.c struct se_lun *lun, int explicit, int offline); lun 39 drivers/target/target_core_alua.c static void __target_attach_tg_pt_gp(struct se_lun *lun, lun 140 drivers/target/target_core_alua.c struct se_lun *lun; lun 214 drivers/target/target_core_alua.c list_for_each_entry(lun, &tg_pt_gp->tg_pt_gp_lun_list, lun 225 drivers/target/target_core_alua.c put_unaligned_be16(lun->lun_rtpi, &buf[off]); lun 384 drivers/target/target_core_alua.c struct se_lun *lun; lun 397 drivers/target/target_core_alua.c list_for_each_entry(lun, &dev->dev_sep_list, lun 399 drivers/target/target_core_alua.c if (lun->lun_rtpi != rtpi) lun 406 drivers/target/target_core_alua.c lun, 1, 1)) lun 674 drivers/target/target_core_alua.c struct se_lun *lun = cmd->se_lun; lun 687 drivers/target/target_core_alua.c if (atomic_read(&lun->lun_tg_pt_secondary_offline)) { lun 694 drivers/target/target_core_alua.c if (!lun->lun_tg_pt_gp) lun 697 drivers/target/target_core_alua.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 698 drivers/target/target_core_alua.c tg_pt_gp = lun->lun_tg_pt_gp; lun 703 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 939 drivers/target/target_core_alua.c struct se_lun *lun; lun 943 drivers/target/target_core_alua.c list_for_each_entry(lun, &tg_pt_gp->tg_pt_gp_lun_list, lun 959 drivers/target/target_core_alua.c if (!percpu_ref_tryget_live(&lun->lun_ref)) lun 963 drivers/target/target_core_alua.c spin_lock(&lun->lun_deve_lock); lun 964 drivers/target/target_core_alua.c list_for_each_entry(se_deve, &lun->lun_deve_list, lun_link) { lun 966 drivers/target/target_core_alua.c lockdep_is_held(&lun->lun_deve_lock)); lun 981 drivers/target/target_core_alua.c (tg_pt_gp->tg_pt_gp_alua_lun == lun)) lun 995 drivers/target/target_core_alua.c spin_unlock(&lun->lun_deve_lock); lun 998 drivers/target/target_core_alua.c percpu_ref_put(&lun->lun_ref); lun 1195 drivers/target/target_core_alua.c static int core_alua_update_tpg_secondary_metadata(struct se_lun *lun) lun 1197 drivers/target/target_core_alua.c struct se_portal_group *se_tpg = lun->lun_tpg; lun 1202 drivers/target/target_core_alua.c mutex_lock(&lun->lun_tg_pt_md_mutex); lun 1213 drivers/target/target_core_alua.c atomic_read(&lun->lun_tg_pt_secondary_offline), lun 1214 drivers/target/target_core_alua.c lun->lun_tg_pt_secondary_stat); lun 1221 drivers/target/target_core_alua.c lun->unpacked_lun); lun 1226 drivers/target/target_core_alua.c lun->unpacked_lun); lun 1238 drivers/target/target_core_alua.c mutex_unlock(&lun->lun_tg_pt_md_mutex); lun 1243 drivers/target/target_core_alua.c struct se_lun *lun, lun 1250 drivers/target/target_core_alua.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 1251 drivers/target/target_core_alua.c tg_pt_gp = lun->lun_tg_pt_gp; lun 1253 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1264 drivers/target/target_core_alua.c atomic_set(&lun->lun_tg_pt_secondary_offline, 1); lun 1266 drivers/target/target_core_alua.c atomic_set(&lun->lun_tg_pt_secondary_offline, 0); lun 1268 drivers/target/target_core_alua.c lun->lun_tg_pt_secondary_stat = (explicit) ? lun 1277 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1288 drivers/target/target_core_alua.c if (lun->lun_tg_pt_secondary_write_md) lun 1289 drivers/target/target_core_alua.c core_alua_update_tpg_secondary_metadata(lun); lun 1739 drivers/target/target_core_alua.c struct se_lun *lun, *next; lun 1770 drivers/target/target_core_alua.c list_for_each_entry_safe(lun, next, lun 1772 drivers/target/target_core_alua.c list_del_init(&lun->lun_tg_pt_gp_link); lun 1781 drivers/target/target_core_alua.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 1783 drivers/target/target_core_alua.c __target_attach_tg_pt_gp(lun, lun 1786 drivers/target/target_core_alua.c lun->lun_tg_pt_gp = NULL; lun 1787 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1829 drivers/target/target_core_alua.c static void __target_attach_tg_pt_gp(struct se_lun *lun, lun 1834 drivers/target/target_core_alua.c assert_spin_locked(&lun->lun_tg_pt_gp_lock); lun 1837 drivers/target/target_core_alua.c lun->lun_tg_pt_gp = tg_pt_gp; lun 1838 drivers/target/target_core_alua.c list_add_tail(&lun->lun_tg_pt_gp_link, &tg_pt_gp->tg_pt_gp_lun_list); lun 1840 drivers/target/target_core_alua.c spin_lock(&lun->lun_deve_lock); lun 1841 drivers/target/target_core_alua.c list_for_each_entry(se_deve, &lun->lun_deve_list, lun_link) lun 1844 drivers/target/target_core_alua.c spin_unlock(&lun->lun_deve_lock); lun 1848 drivers/target/target_core_alua.c void target_attach_tg_pt_gp(struct se_lun *lun, lun 1851 drivers/target/target_core_alua.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 1852 drivers/target/target_core_alua.c __target_attach_tg_pt_gp(lun, tg_pt_gp); lun 1853 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1856 drivers/target/target_core_alua.c static void __target_detach_tg_pt_gp(struct se_lun *lun, lun 1859 drivers/target/target_core_alua.c assert_spin_locked(&lun->lun_tg_pt_gp_lock); lun 1862 drivers/target/target_core_alua.c list_del_init(&lun->lun_tg_pt_gp_link); lun 1866 drivers/target/target_core_alua.c lun->lun_tg_pt_gp = NULL; lun 1869 drivers/target/target_core_alua.c void target_detach_tg_pt_gp(struct se_lun *lun) lun 1873 drivers/target/target_core_alua.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 1874 drivers/target/target_core_alua.c tg_pt_gp = lun->lun_tg_pt_gp; lun 1876 drivers/target/target_core_alua.c __target_detach_tg_pt_gp(lun, tg_pt_gp); lun 1877 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1880 drivers/target/target_core_alua.c ssize_t core_alua_show_tg_pt_gp_info(struct se_lun *lun, char *page) lun 1886 drivers/target/target_core_alua.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 1887 drivers/target/target_core_alua.c tg_pt_gp = lun->lun_tg_pt_gp; lun 1899 drivers/target/target_core_alua.c atomic_read(&lun->lun_tg_pt_secondary_offline) ? lun 1901 drivers/target/target_core_alua.c core_alua_dump_status(lun->lun_tg_pt_secondary_stat)); lun 1903 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1909 drivers/target/target_core_alua.c struct se_lun *lun, lun 1913 drivers/target/target_core_alua.c struct se_portal_group *tpg = lun->lun_tpg; lun 1918 drivers/target/target_core_alua.c struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); lun 1949 drivers/target/target_core_alua.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 1950 drivers/target/target_core_alua.c tg_pt_gp = lun->lun_tg_pt_gp; lun 1963 drivers/target/target_core_alua.c config_item_name(&lun->lun_group.cg_item), lun 1968 drivers/target/target_core_alua.c __target_detach_tg_pt_gp(lun, tg_pt_gp); lun 1969 drivers/target/target_core_alua.c __target_attach_tg_pt_gp(lun, lun 1971 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1975 drivers/target/target_core_alua.c __target_detach_tg_pt_gp(lun, tg_pt_gp); lun 1979 drivers/target/target_core_alua.c __target_attach_tg_pt_gp(lun, tg_pt_gp_new); lun 1980 drivers/target/target_core_alua.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 1985 drivers/target/target_core_alua.c config_item_name(&lun->lun_group.cg_item), lun 2161 drivers/target/target_core_alua.c ssize_t core_alua_show_offline_bit(struct se_lun *lun, char *page) lun 2164 drivers/target/target_core_alua.c atomic_read(&lun->lun_tg_pt_secondary_offline)); lun 2168 drivers/target/target_core_alua.c struct se_lun *lun, lun 2176 drivers/target/target_core_alua.c struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); lun 2195 drivers/target/target_core_alua.c ret = core_alua_set_tg_pt_secondary_state(lun, 0, (int)tmp); lun 2203 drivers/target/target_core_alua.c struct se_lun *lun, lun 2206 drivers/target/target_core_alua.c return sprintf(page, "%d\n", lun->lun_tg_pt_secondary_stat); lun 2210 drivers/target/target_core_alua.c struct se_lun *lun, lun 2229 drivers/target/target_core_alua.c lun->lun_tg_pt_secondary_stat = (int)tmp; lun 2235 drivers/target/target_core_alua.c struct se_lun *lun, lun 2238 drivers/target/target_core_alua.c return sprintf(page, "%d\n", lun->lun_tg_pt_secondary_write_md); lun 2242 drivers/target/target_core_alua.c struct se_lun *lun, lun 2259 drivers/target/target_core_alua.c lun->lun_tg_pt_secondary_write_md = (int)tmp; lun 2955 drivers/target/target_core_configfs.c struct se_lun *lun; lun 2962 drivers/target/target_core_configfs.c list_for_each_entry(lun, &tg_pt_gp->tg_pt_gp_lun_list, lun 2964 drivers/target/target_core_configfs.c struct se_portal_group *tpg = lun->lun_tpg; lun 2970 drivers/target/target_core_configfs.c config_item_name(&lun->lun_group.cg_item)); lun 218 drivers/target/target_core_device.c struct se_lun *lun; lun 223 drivers/target/target_core_device.c lun = rcu_dereference(deve->se_lun); lun 224 drivers/target/target_core_device.c if (!lun) { lun 230 drivers/target/target_core_device.c if (lun->lun_rtpi != rtpi) lun 251 drivers/target/target_core_device.c struct se_lun *lun = rcu_dereference_check(deve->se_lun, lun 253 drivers/target/target_core_device.c core_disable_device_list_for_node(lun, deve, nacl, tpg); lun 311 drivers/target/target_core_device.c struct se_lun *lun, lun 344 drivers/target/target_core_device.c if (orig_lun != lun) { lun 362 drivers/target/target_core_device.c rcu_assign_pointer(new->se_lun, lun); lun 368 drivers/target/target_core_device.c spin_lock(&lun->lun_deve_lock); lun 370 drivers/target/target_core_device.c list_add_tail(&new->lun_link, &lun->lun_deve_list); lun 371 drivers/target/target_core_device.c spin_unlock(&lun->lun_deve_lock); lun 381 drivers/target/target_core_device.c rcu_assign_pointer(new->se_lun, lun); lun 386 drivers/target/target_core_device.c spin_lock(&lun->lun_deve_lock); lun 387 drivers/target/target_core_device.c list_add_tail(&new->lun_link, &lun->lun_deve_list); lun 388 drivers/target/target_core_device.c spin_unlock(&lun->lun_deve_lock); lun 395 drivers/target/target_core_device.c struct se_lun *lun, lun 404 drivers/target/target_core_device.c struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); lun 421 drivers/target/target_core_device.c spin_lock(&lun->lun_deve_lock); lun 423 drivers/target/target_core_device.c spin_unlock(&lun->lun_deve_lock); lun 454 drivers/target/target_core_device.c void core_clear_lun_from_tpg(struct se_lun *lun, struct se_portal_group *tpg) lun 467 drivers/target/target_core_device.c if (lun != tmp_lun) lun 470 drivers/target/target_core_device.c core_disable_device_list_for_node(lun, deve, nacl, tpg); lun 477 drivers/target/target_core_device.c int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev) lun 501 drivers/target/target_core_device.c lun->lun_rtpi = dev->dev_rpti_counter++; lun 502 drivers/target/target_core_device.c if (!lun->lun_rtpi) lun 510 drivers/target/target_core_device.c if (lun->lun_rtpi == tmp->lun_rtpi) lun 552 drivers/target/target_core_device.c struct se_lun *lun) lun 556 drivers/target/target_core_device.c rc = core_tpg_add_lun(tpg, lun, false, dev); lun 562 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lun 576 drivers/target/target_core_device.c core_tpg_add_node_to_devs(acl, tpg, lun); lun 591 drivers/target/target_core_device.c struct se_lun *lun) lun 595 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lun 598 drivers/target/target_core_device.c core_tpg_remove_lun(tpg, lun); lun 631 drivers/target/target_core_device.c struct se_lun *lun, lun 639 drivers/target/target_core_device.c struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); lun 644 drivers/target/target_core_device.c if (lun->lun_access_ro) lun 647 drivers/target/target_core_device.c lacl->se_lun = lun; lun 649 drivers/target/target_core_device.c if (core_enable_device_list_for_node(lun, lacl, lacl->mapped_lun, lun 655 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lacl->mapped_lun, lun 662 drivers/target/target_core_device.c core_scsi3_check_aptpl_registration(dev, tpg, lun, nacl, lun 668 drivers/target/target_core_device.c struct se_lun *lun, lun 671 drivers/target/target_core_device.c struct se_portal_group *tpg = lun->lun_tpg; lun 682 drivers/target/target_core_device.c core_disable_device_list_for_node(lun, deve, nacl, tpg); lun 688 drivers/target/target_core_device.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lun 70 drivers/target/target_core_fabric_configfs.c struct se_lun *lun; lun 82 drivers/target/target_core_fabric_configfs.c lun = container_of(to_config_group(lun_ci), struct se_lun, lun_group); lun 87 drivers/target/target_core_fabric_configfs.c if (!lun->lun_se_dev) { lun 91 drivers/target/target_core_fabric_configfs.c if (lun->lun_shutdown) { lun 96 drivers/target/target_core_fabric_configfs.c se_tpg = lun->lun_tpg; lun 138 drivers/target/target_core_fabric_configfs.c return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); lun 147 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = container_of(to_config_group(lun_ci), lun 150 drivers/target/target_core_fabric_configfs.c core_dev_del_initiator_node_lun_acl(lun, lacl); lun 521 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 523 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 526 drivers/target/target_core_fabric_configfs.c return core_alua_show_tg_pt_gp_info(lun, page); lun 532 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 534 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 537 drivers/target/target_core_fabric_configfs.c return core_alua_store_tg_pt_gp_info(lun, page, count); lun 543 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 545 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 548 drivers/target/target_core_fabric_configfs.c return core_alua_show_offline_bit(lun, page); lun 554 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 556 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 559 drivers/target/target_core_fabric_configfs.c return core_alua_store_offline_bit(lun, page, count); lun 565 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 567 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 570 drivers/target/target_core_fabric_configfs.c return core_alua_show_secondary_status(lun, page); lun 576 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 578 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 581 drivers/target/target_core_fabric_configfs.c return core_alua_store_secondary_status(lun, page, count); lun 587 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 589 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 592 drivers/target/target_core_fabric_configfs.c return core_alua_show_secondary_write_metadata(lun, page); lun 598 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = item_to_lun(item); lun 600 drivers/target/target_core_fabric_configfs.c if (!lun || !lun->lun_se_dev) lun 603 drivers/target/target_core_fabric_configfs.c return core_alua_store_secondary_write_metadata(lun, page, count); lun 624 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = container_of(to_config_group(lun_ci), lun 648 drivers/target/target_core_fabric_configfs.c if (lun->lun_se_dev != NULL) { lun 653 drivers/target/target_core_fabric_configfs.c ret = core_dev_add_lun(se_tpg, dev, lun); lun 665 drivers/target/target_core_fabric_configfs.c tf->tf_ops->fabric_post_link(se_tpg, lun); lun 677 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = container_of(to_config_group(lun_ci), lun 679 drivers/target/target_core_fabric_configfs.c struct se_portal_group *se_tpg = lun->lun_tpg; lun 688 drivers/target/target_core_fabric_configfs.c tf->tf_ops->fabric_pre_unlink(se_tpg, lun); lun 691 drivers/target/target_core_fabric_configfs.c core_dev_del_lun(se_tpg, lun); lun 696 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = container_of(to_config_group(item), lun 699 drivers/target/target_core_fabric_configfs.c kfree_rcu(lun, rcu_head); lun 743 drivers/target/target_core_fabric_configfs.c struct se_lun *lun; lun 759 drivers/target/target_core_fabric_configfs.c lun = core_tpg_alloc_lun(se_tpg, unpacked_lun); lun 760 drivers/target/target_core_fabric_configfs.c if (IS_ERR(lun)) lun 761 drivers/target/target_core_fabric_configfs.c return ERR_CAST(lun); lun 763 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&lun->lun_group, name, lun 766 drivers/target/target_core_fabric_configfs.c config_group_init_type_name(&lun->port_stat_grps.stat_group, lun 768 drivers/target/target_core_fabric_configfs.c configfs_add_default_group(&lun->port_stat_grps.stat_group, lun 769 drivers/target/target_core_fabric_configfs.c &lun->lun_group); lun 771 drivers/target/target_core_fabric_configfs.c target_stat_setup_port_default_groups(lun); lun 773 drivers/target/target_core_fabric_configfs.c return &lun->lun_group; lun 780 drivers/target/target_core_fabric_configfs.c struct se_lun *lun = container_of(to_config_group(item), lun 783 drivers/target/target_core_fabric_configfs.c configfs_remove_default_groups(&lun->port_stat_grps.stat_group); lun 784 drivers/target/target_core_fabric_configfs.c configfs_remove_default_groups(&lun->lun_group); lun 61 drivers/target/target_core_internal.h int core_alloc_rtpi(struct se_lun *lun, struct se_device *dev); lun 74 drivers/target/target_core_internal.h struct se_lun *lun); lun 79 drivers/target/target_core_internal.h struct se_lun_acl *, struct se_lun *lun, bool); lun 617 drivers/target/target_core_pr.c struct se_lun *lun, lun 664 drivers/target/target_core_pr.c pr_reg->pr_aptpl_target_lun = lun->unpacked_lun; lun 665 drivers/target/target_core_pr.c pr_reg->tg_pt_sep_rtpi = lun->lun_rtpi; lun 692 drivers/target/target_core_pr.c struct se_lun *lun, lun 711 drivers/target/target_core_pr.c pr_reg = __core_scsi3_do_alloc_registration(dev, nacl, lun, deve, mapped_lun, lun 923 drivers/target/target_core_pr.c struct se_lun *lun, lun 974 drivers/target/target_core_pr.c pr_reg->tg_pt_sep_rtpi = lun->lun_rtpi; lun 1005 drivers/target/target_core_pr.c struct se_lun *lun, lun 1012 drivers/target/target_core_pr.c return __core_scsi3_check_aptpl_registration(dev, tpg, lun, lun 1013 drivers/target/target_core_pr.c lun->unpacked_lun, nacl, lun 1132 drivers/target/target_core_pr.c struct se_lun *lun, lun 1144 drivers/target/target_core_pr.c pr_reg = __core_scsi3_alloc_registration(dev, nacl, lun, deve, mapped_lun, lun 300 drivers/target/target_core_pscsi.c sd->lun, sd->queue_depth); lun 365 drivers/target/target_core_pscsi.c sh->host_no, sd->channel, sd->id, sd->lun); lun 392 drivers/target/target_core_pscsi.c sh->host_no, sd->channel, sd->id, sd->lun); lun 408 drivers/target/target_core_pscsi.c sh->host_no, sd->channel, sd->id, sd->lun); lun 421 drivers/target/target_core_pscsi.c sd->channel, sd->id, sd->lun); lun 502 drivers/target/target_core_pscsi.c (pdv->pdv_lun_id != sd->lun)) lun 28 drivers/target/target_core_spc.c static void spc_fill_alua_data(struct se_lun *lun, unsigned char *buf) lun 43 drivers/target/target_core_spc.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 44 drivers/target/target_core_spc.c tg_pt_gp = lun->lun_tg_pt_gp; lun 47 drivers/target/target_core_spc.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 53 drivers/target/target_core_spc.c struct se_lun *lun = cmd->se_lun; lun 78 drivers/target/target_core_spc.c spc_fill_alua_data(lun, buf); lun 171 drivers/target/target_core_spc.c struct se_lun *lun = cmd->se_lun; lun 267 drivers/target/target_core_spc.c tpg = lun->lun_tpg; lun 287 drivers/target/target_core_spc.c put_unaligned_be16(lun->lun_rtpi, &buf[off]); lun 297 drivers/target/target_core_spc.c spin_lock(&lun->lun_tg_pt_gp_lock); lun 298 drivers/target/target_core_spc.c tg_pt_gp = lun->lun_tg_pt_gp; lun 300 drivers/target/target_core_spc.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 304 drivers/target/target_core_spc.c spin_unlock(&lun->lun_tg_pt_gp_lock); lun 348 drivers/target/target_core_stat.c CONFIGFS_ATTR_RO(target_stat_lu_, lun); lun 426 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_port(item); lun 431 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 440 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_port(item); lun 445 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 454 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_port(item); lun 459 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 461 drivers/target/target_core_stat.c ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); lun 468 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_port(item); lun 473 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 483 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_port(item); lun 488 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 530 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 535 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 545 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 550 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 560 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 565 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 567 drivers/target/target_core_stat.c ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); lun 575 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 576 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; lun 581 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 585 drivers/target/target_core_stat.c lun->lun_rtpi); lun 593 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 594 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; lun 599 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 611 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 616 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 619 drivers/target/target_core_stat.c atomic_long_read(&lun->lun_stats.cmd_pdus)); lun 627 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 632 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 635 drivers/target/target_core_stat.c (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); lun 643 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 648 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 651 drivers/target/target_core_stat.c (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); lun 659 drivers/target/target_core_stat.c struct se_lun *lun = to_stat_tgt_port(item); lun 664 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 714 drivers/target/target_core_stat.c struct se_lun *lun = to_transport_stat(item); lun 719 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 729 drivers/target/target_core_stat.c struct se_lun *lun = to_transport_stat(item); lun 731 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; lun 735 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 748 drivers/target/target_core_stat.c struct se_lun *lun = to_transport_stat(item); lun 750 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; lun 754 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 765 drivers/target/target_core_stat.c struct se_lun *lun = to_transport_stat(item); lun 767 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; lun 772 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 788 drivers/target/target_core_stat.c struct se_lun *lun = to_transport_stat(item); lun 790 drivers/target/target_core_stat.c struct se_portal_group *tpg = lun->lun_tpg; lun 794 drivers/target/target_core_stat.c dev = rcu_dereference(lun->lun_se_dev); lun 825 drivers/target/target_core_stat.c void target_stat_setup_port_default_groups(struct se_lun *lun) lun 827 drivers/target/target_core_stat.c config_group_init_type_name(&lun->port_stat_grps.scsi_port_group, lun 829 drivers/target/target_core_stat.c configfs_add_default_group(&lun->port_stat_grps.scsi_port_group, lun 830 drivers/target/target_core_stat.c &lun->port_stat_grps.stat_group); lun 832 drivers/target/target_core_stat.c config_group_init_type_name(&lun->port_stat_grps.scsi_tgt_port_group, lun 834 drivers/target/target_core_stat.c configfs_add_default_group(&lun->port_stat_grps.scsi_tgt_port_group, lun 835 drivers/target/target_core_stat.c &lun->port_stat_grps.stat_group); lun 837 drivers/target/target_core_stat.c config_group_init_type_name(&lun->port_stat_grps.scsi_transport_group, lun 839 drivers/target/target_core_stat.c configfs_add_default_group(&lun->port_stat_grps.scsi_transport_group, lun 840 drivers/target/target_core_stat.c &lun->port_stat_grps.stat_group); lun 883 drivers/target/target_core_stat.c struct se_lun *lun; lun 892 drivers/target/target_core_stat.c lun = rcu_dereference(deve->se_lun); lun 894 drivers/target/target_core_stat.c ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); lun 1223 drivers/target/target_core_stat.c struct se_lun *lun; lun 1232 drivers/target/target_core_stat.c lun = rcu_dereference(deve->se_lun); lun 1234 drivers/target/target_core_stat.c ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); lun 112 drivers/target/target_core_tpg.c struct se_lun *lun; lun 116 drivers/target/target_core_tpg.c hlist_for_each_entry_rcu(lun, &tpg->tpg_lun_hlist, link) { lun 117 drivers/target/target_core_tpg.c if (lun_orig && lun != lun_orig) lun 120 drivers/target/target_core_tpg.c dev = rcu_dereference_check(lun->lun_se_dev, lun 142 drivers/target/target_core_tpg.c tpg->se_tpg_tfo->tpg_get_tag(tpg), lun->unpacked_lun, lun 145 drivers/target/target_core_tpg.c core_enable_device_list_for_node(lun, NULL, lun->unpacked_lun, lun 152 drivers/target/target_core_tpg.c core_scsi3_check_aptpl_registration(dev, tpg, lun, acl, lun 153 drivers/target/target_core_tpg.c lun->unpacked_lun); lun 440 drivers/target/target_core_tpg.c struct se_lun *lun = container_of(ref, struct se_lun, lun_ref); lun 442 drivers/target/target_core_tpg.c complete(&lun->lun_shutdown_comp); lun 558 drivers/target/target_core_tpg.c struct se_lun *lun; lun 560 drivers/target/target_core_tpg.c lun = kzalloc(sizeof(*lun), GFP_KERNEL); lun 561 drivers/target/target_core_tpg.c if (!lun) { lun 565 drivers/target/target_core_tpg.c lun->unpacked_lun = unpacked_lun; lun 566 drivers/target/target_core_tpg.c atomic_set(&lun->lun_acl_count, 0); lun 567 drivers/target/target_core_tpg.c init_completion(&lun->lun_shutdown_comp); lun 568 drivers/target/target_core_tpg.c INIT_LIST_HEAD(&lun->lun_deve_list); lun 569 drivers/target/target_core_tpg.c INIT_LIST_HEAD(&lun->lun_dev_link); lun 570 drivers/target/target_core_tpg.c atomic_set(&lun->lun_tg_pt_secondary_offline, 0); lun 571 drivers/target/target_core_tpg.c spin_lock_init(&lun->lun_deve_lock); lun 572 drivers/target/target_core_tpg.c mutex_init(&lun->lun_tg_pt_md_mutex); lun 573 drivers/target/target_core_tpg.c INIT_LIST_HEAD(&lun->lun_tg_pt_gp_link); lun 574 drivers/target/target_core_tpg.c spin_lock_init(&lun->lun_tg_pt_gp_lock); lun 575 drivers/target/target_core_tpg.c lun->lun_tpg = tpg; lun 577 drivers/target/target_core_tpg.c return lun; lun 582 drivers/target/target_core_tpg.c struct se_lun *lun, lun 588 drivers/target/target_core_tpg.c ret = percpu_ref_init(&lun->lun_ref, core_tpg_lun_ref_release, 0, lun 593 drivers/target/target_core_tpg.c ret = core_alloc_rtpi(lun, dev); lun 600 drivers/target/target_core_tpg.c target_attach_tg_pt_gp(lun, dev->t10_alua.default_tg_pt_gp); lun 605 drivers/target/target_core_tpg.c lun->lun_index = dev->dev_index; lun 606 drivers/target/target_core_tpg.c rcu_assign_pointer(lun->lun_se_dev, dev); lun 608 drivers/target/target_core_tpg.c list_add_tail(&lun->lun_dev_link, &dev->dev_sep_list); lun 612 drivers/target/target_core_tpg.c lun->lun_access_ro = true; lun 614 drivers/target/target_core_tpg.c lun->lun_access_ro = lun_access_ro; lun 616 drivers/target/target_core_tpg.c hlist_add_head_rcu(&lun->link, &tpg->tpg_lun_hlist); lun 622 drivers/target/target_core_tpg.c percpu_ref_exit(&lun->lun_ref); lun 629 drivers/target/target_core_tpg.c struct se_lun *lun) lun 635 drivers/target/target_core_tpg.c struct se_device *dev = rcu_dereference_raw(lun->lun_se_dev); lun 637 drivers/target/target_core_tpg.c lun->lun_shutdown = true; lun 639 drivers/target/target_core_tpg.c core_clear_lun_from_tpg(lun, tpg); lun 646 drivers/target/target_core_tpg.c transport_clear_lun_ref(lun); lun 649 drivers/target/target_core_tpg.c if (lun->lun_se_dev) { lun 650 drivers/target/target_core_tpg.c target_detach_tg_pt_gp(lun); lun 653 drivers/target/target_core_tpg.c list_del(&lun->lun_dev_link); lun 655 drivers/target/target_core_tpg.c rcu_assign_pointer(lun->lun_se_dev, NULL); lun 659 drivers/target/target_core_tpg.c hlist_del_rcu(&lun->link); lun 661 drivers/target/target_core_tpg.c lun->lun_shutdown = false; lun 664 drivers/target/target_core_tpg.c percpu_ref_exit(&lun->lun_ref); lun 703 drivers/target/target_core_transport.c struct se_lun *lun = cmd->se_lun; lun 705 drivers/target/target_core_transport.c if (!lun) lun 709 drivers/target/target_core_transport.c percpu_ref_put(&lun->lun_ref); lun 2972 drivers/target/target_core_transport.c void transport_clear_lun_ref(struct se_lun *lun) lun 2974 drivers/target/target_core_transport.c percpu_ref_kill(&lun->lun_ref); lun 2975 drivers/target/target_core_transport.c wait_for_completion(&lun->lun_shutdown_comp); lun 286 drivers/usb/gadget/function/f_mass_storage.c unsigned int lun; lun 1662 drivers/usb/gadget/function/f_mass_storage.c unsigned int lun = common->cmnd[1] >> 5; lun 1727 drivers/usb/gadget/function/f_mass_storage.c if (common->lun != lun) lun 1729 drivers/usb/gadget/function/f_mass_storage.c common->lun, lun); lun 1748 drivers/usb/gadget/function/f_mass_storage.c DBG(common, "unsupported LUN %u\n", common->lun); lun 2139 drivers/usb/gadget/function/f_mass_storage.c common->lun = cbw->Lun; lun 2140 drivers/usb/gadget/function/f_mass_storage.c if (common->lun < ARRAY_SIZE(common->luns)) lun 2141 drivers/usb/gadget/function/f_mass_storage.c common->curlun = common->luns[common->lun]; lun 2646 drivers/usb/gadget/function/f_mass_storage.c void fsg_common_remove_lun(struct fsg_lun *lun) lun 2648 drivers/usb/gadget/function/f_mass_storage.c if (device_is_registered(&lun->dev)) lun 2649 drivers/usb/gadget/function/f_mass_storage.c device_unregister(&lun->dev); lun 2650 drivers/usb/gadget/function/f_mass_storage.c fsg_lun_close(lun); lun 2651 drivers/usb/gadget/function/f_mass_storage.c kfree(lun); lun 2719 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun *lun = fsg_lun_from_dev(dev); lun 2722 drivers/usb/gadget/function/f_mass_storage.c return lun->cdrom ? S_IRUGO : (S_IWUSR | S_IRUGO); lun 2724 drivers/usb/gadget/function/f_mass_storage.c return lun->removable ? (S_IWUSR | S_IRUGO) : S_IRUGO; lun 2742 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun *lun; lun 2757 drivers/usb/gadget/function/f_mass_storage.c lun = kzalloc(sizeof(*lun), GFP_KERNEL); lun 2758 drivers/usb/gadget/function/f_mass_storage.c if (!lun) lun 2761 drivers/usb/gadget/function/f_mass_storage.c lun->name_pfx = name_pfx; lun 2763 drivers/usb/gadget/function/f_mass_storage.c lun->cdrom = !!cfg->cdrom; lun 2764 drivers/usb/gadget/function/f_mass_storage.c lun->ro = cfg->cdrom || cfg->ro; lun 2765 drivers/usb/gadget/function/f_mass_storage.c lun->initially_ro = lun->ro; lun 2766 drivers/usb/gadget/function/f_mass_storage.c lun->removable = !!cfg->removable; lun 2770 drivers/usb/gadget/function/f_mass_storage.c lun->name = name; lun 2772 drivers/usb/gadget/function/f_mass_storage.c lun->dev.release = fsg_lun_release; lun 2773 drivers/usb/gadget/function/f_mass_storage.c lun->dev.parent = &common->gadget->dev; lun 2774 drivers/usb/gadget/function/f_mass_storage.c lun->dev.groups = fsg_lun_dev_groups; lun 2775 drivers/usb/gadget/function/f_mass_storage.c dev_set_drvdata(&lun->dev, &common->filesem); lun 2776 drivers/usb/gadget/function/f_mass_storage.c dev_set_name(&lun->dev, "%s", name); lun 2777 drivers/usb/gadget/function/f_mass_storage.c lun->name = dev_name(&lun->dev); lun 2779 drivers/usb/gadget/function/f_mass_storage.c rc = device_register(&lun->dev); lun 2782 drivers/usb/gadget/function/f_mass_storage.c put_device(&lun->dev); lun 2787 drivers/usb/gadget/function/f_mass_storage.c common->luns[id] = lun; lun 2790 drivers/usb/gadget/function/f_mass_storage.c rc = fsg_lun_open(lun, cfg->filename); lun 2797 drivers/usb/gadget/function/f_mass_storage.c if (fsg_lun_is_open(lun)) { lun 2800 drivers/usb/gadget/function/f_mass_storage.c p = file_path(lun->filp, pathbuf, PATH_MAX); lun 2806 drivers/usb/gadget/function/f_mass_storage.c lun->removable ? "removable " : "", lun 2807 drivers/usb/gadget/function/f_mass_storage.c lun->ro ? "read only " : "", lun 2808 drivers/usb/gadget/function/f_mass_storage.c lun->cdrom ? "CD-ROM " : "", lun 2815 drivers/usb/gadget/function/f_mass_storage.c if (device_is_registered(&lun->dev)) lun 2816 drivers/usb/gadget/function/f_mass_storage.c device_unregister(&lun->dev); lun 2817 drivers/usb/gadget/function/f_mass_storage.c fsg_lun_close(lun); lun 2820 drivers/usb/gadget/function/f_mass_storage.c kfree(lun); lun 2877 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun *lun = common->luns[i]; lun 2878 drivers/usb/gadget/function/f_mass_storage.c if (!lun) lun 2880 drivers/usb/gadget/function/f_mass_storage.c fsg_lun_close(lun); lun 2881 drivers/usb/gadget/function/f_mass_storage.c if (device_is_registered(&lun->dev)) lun 2882 drivers/usb/gadget/function/f_mass_storage.c device_unregister(&lun->dev); lun 2883 drivers/usb/gadget/function/f_mass_storage.c kfree(lun); lun 3037 drivers/usb/gadget/function/f_mass_storage.c return fsg_show_file(opts->lun, &fsg_opts->common->filesem, page); lun 3046 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_file(opts->lun, &fsg_opts->common->filesem, page, len); lun 3053 drivers/usb/gadget/function/f_mass_storage.c return fsg_show_ro(to_fsg_lun_opts(item)->lun, page); lun 3062 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_ro(opts->lun, &fsg_opts->common->filesem, page, len); lun 3070 drivers/usb/gadget/function/f_mass_storage.c return fsg_show_removable(to_fsg_lun_opts(item)->lun, page); lun 3076 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_removable(to_fsg_lun_opts(item)->lun, page, len); lun 3083 drivers/usb/gadget/function/f_mass_storage.c return fsg_show_cdrom(to_fsg_lun_opts(item)->lun, page); lun 3092 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_cdrom(opts->lun, &fsg_opts->common->filesem, page, lun 3100 drivers/usb/gadget/function/f_mass_storage.c return fsg_show_nofua(to_fsg_lun_opts(item)->lun, page); lun 3106 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_nofua(to_fsg_lun_opts(item)->lun, page, len); lun 3114 drivers/usb/gadget/function/f_mass_storage.c return fsg_show_inquiry_string(to_fsg_lun_opts(item)->lun, page); lun 3120 drivers/usb/gadget/function/f_mass_storage.c return fsg_store_inquiry_string(to_fsg_lun_opts(item)->lun, page, len); lun 3188 drivers/usb/gadget/function/f_mass_storage.c opts->lun = fsg_opts->common->luns[num]; lun 3216 drivers/usb/gadget/function/f_mass_storage.c fsg_common_remove_lun(lun_opts->lun); lun 3376 drivers/usb/gadget/function/f_mass_storage.c opts->lun0.lun = opts->common->luns[0]; lun 3448 drivers/usb/gadget/function/f_mass_storage.c struct fsg_lun_config *lun; lun 3455 drivers/usb/gadget/function/f_mass_storage.c for (i = 0, lun = cfg->luns; i < cfg->nluns; ++i, ++lun) { lun 3456 drivers/usb/gadget/function/f_mass_storage.c lun->ro = !!params->ro[i]; lun 3457 drivers/usb/gadget/function/f_mass_storage.c lun->cdrom = !!params->cdrom[i]; lun 3458 drivers/usb/gadget/function/f_mass_storage.c lun->removable = !!params->removable[i]; lun 3459 drivers/usb/gadget/function/f_mass_storage.c lun->filename = lun 66 drivers/usb/gadget/function/f_mass_storage.h struct fsg_lun *lun; lun 127 drivers/usb/gadget/function/f_mass_storage.h void fsg_common_remove_lun(struct fsg_lun *lun); lun 1155 drivers/usb/gadget/function/f_tcm.c cmd->unpacked_lun = scsilun_to_int(&cmd_iu->lun); lun 1683 drivers/usb/gadget/function/f_tcm.c static int usbg_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) lun 18 drivers/usb/gadget/function/storage_common.h #define VLDBG(lun, fmt, args...) do { } while (0) lun 21 drivers/usb/gadget/function/storage_common.h #define _LMSG(func, lun, fmt, args...) \ lun 23 drivers/usb/gadget/function/storage_common.h if ((lun)->name_pfx && *(lun)->name_pfx) \ lun 24 drivers/usb/gadget/function/storage_common.h func("%s/%s: " fmt, *(lun)->name_pfx, \ lun 25 drivers/usb/gadget/function/storage_common.h (lun)->name, ## args); \ lun 27 drivers/usb/gadget/function/storage_common.h func("%s: " fmt, (lun)->name, ## args); \ lun 30 drivers/usb/gadget/function/storage_common.h #define LDBG(lun, fmt, args...) _LMSG(pr_debug, lun, fmt, ## args) lun 31 drivers/usb/gadget/function/storage_common.h #define LERROR(lun, fmt, args...) _LMSG(pr_err, lun, fmt, ## args) lun 32 drivers/usb/gadget/function/storage_common.h #define LWARN(lun, fmt, args...) _LMSG(pr_warn, lun, fmt, ## args) lun 33 drivers/usb/gadget/function/storage_common.h #define LINFO(lun, fmt, args...) _LMSG(pr_info, lun, fmt, ## args) lun 576 drivers/usb/image/microtek.c if ( srb->device->lun || srb->device->id || srb->device->channel ) { lun 578 drivers/usb/image/microtek.c MTS_DEBUG("Command to LUN=%d ID=%d CHANNEL=%d from SCSI layer\n",(int)srb->device->lun,(int)srb->device->id, (int)srb->device->channel ); lun 114 drivers/usb/storage/alauda.c #define MEDIA_PORT(us) us->srb->device->lun lun 62 drivers/usb/storage/datafab.c signed char lun; /* used for dual-slot readers */ lun 156 drivers/usb/storage/datafab.c if (info->lun == -1) { lun 186 drivers/usb/storage/datafab.c command[5] = 0xE0 + (info->lun << 4); lun 240 drivers/usb/storage/datafab.c if (info->lun == -1) { lun 274 drivers/usb/storage/datafab.c command[5] = 0xE0 + (info->lun << 4); lun 351 drivers/usb/storage/datafab.c info->lun = 0; lun 366 drivers/usb/storage/datafab.c info->lun = 1; lun 396 drivers/usb/storage/datafab.c if (info->lun == -1) { lun 407 drivers/usb/storage/datafab.c command[5] += (info->lun << 4); lun 564 drivers/usb/storage/datafab.c ((struct datafab_info *)us->extra)->lun = -1; lun 67 drivers/usb/storage/realtek_cr.c #define SET_LUN_READY(chip, lun) ((chip)->lun_ready |= ((u8)1 << (lun))) lun 68 drivers/usb/storage/realtek_cr.c #define CLR_LUN_READY(chip, lun) ((chip)->lun_ready &= ~((u8)1 << (lun))) lun 69 drivers/usb/storage/realtek_cr.c #define TST_LUN_READY(chip, lun) ((chip)->lun_ready & ((u8)1 << (lun))) lun 117 drivers/usb/storage/realtek_cr.c #define SCSI_LUN(srb) ((srb)->device->lun) lun 201 drivers/usb/storage/realtek_cr.c static int rts51x_bulk_transport(struct us_data *us, u8 lun, lun 217 drivers/usb/storage/realtek_cr.c bcb->Lun = lun; lun 291 drivers/usb/storage/realtek_cr.c static int rts51x_bulk_transport_special(struct us_data *us, u8 lun, lun 306 drivers/usb/storage/realtek_cr.c bcb->Lun = lun; lun 420 drivers/usb/storage/realtek_cr.c u8 lun, u8 *status, int len, int *actlen) lun 430 drivers/usb/storage/realtek_cr.c usb_stor_dbg(us, "lun = %d\n", lun); lun 435 drivers/usb/storage/realtek_cr.c retval = rts51x_bulk_transport(us, lun, cmnd, 12, lun 447 drivers/usb/storage/realtek_cr.c static int rts51x_check_status(struct us_data *us, u8 lun) lun 453 drivers/usb/storage/realtek_cr.c retval = rts51x_read_status(us, lun, buf, 16, &(chip->status_len)); lun 459 drivers/usb/storage/realtek_cr.c chip->status[lun].vid = ((u16) buf[0] << 8) | buf[1]; lun 460 drivers/usb/storage/realtek_cr.c chip->status[lun].pid = ((u16) buf[2] << 8) | buf[3]; lun 461 drivers/usb/storage/realtek_cr.c chip->status[lun].cur_lun = buf[4]; lun 462 drivers/usb/storage/realtek_cr.c chip->status[lun].card_type = buf[5]; lun 463 drivers/usb/storage/realtek_cr.c chip->status[lun].total_lun = buf[6]; lun 464 drivers/usb/storage/realtek_cr.c chip->status[lun].fw_ver = ((u16) buf[7] << 8) | buf[8]; lun 465 drivers/usb/storage/realtek_cr.c chip->status[lun].phy_exist = buf[9]; lun 466 drivers/usb/storage/realtek_cr.c chip->status[lun].multi_flag = buf[10]; lun 467 drivers/usb/storage/realtek_cr.c chip->status[lun].multi_card = buf[11]; lun 468 drivers/usb/storage/realtek_cr.c chip->status[lun].log_exist = buf[12]; lun 470 drivers/usb/storage/realtek_cr.c chip->status[lun].detailed_type.detailed_type1 = buf[13]; lun 471 drivers/usb/storage/realtek_cr.c chip->status[lun].function[0] = buf[14]; lun 472 drivers/usb/storage/realtek_cr.c chip->status[lun].function[1] = buf[15]; lun 824 drivers/usb/storage/realtek_cr.c if (TST_LUN_READY(chip, srb->device->lun)) { lun 854 drivers/usb/storage/realtek_cr.c SET_LUN_READY(chip, srb->device->lun); lun 860 drivers/usb/storage/realtek_cr.c CLR_LUN_READY(chip, srb->device->lun); lun 1500 drivers/usb/storage/sddr09.c usb_stor_dbg(us, "LUN=%d\n", (u8)srb->device->lun); lun 1502 drivers/usb/storage/sddr09.c switch (srb->device->lun) { lun 1520 drivers/usb/storage/sddr09.c srb->device->lun = 0; lun 1522 drivers/usb/storage/sddr09.c srb->device->lun = 1; lun 1526 drivers/usb/storage/sddr09.c usb_stor_dbg(us, "Invalid LUN %d\n", (u8)srb->device->lun); lun 1126 drivers/usb/storage/transport.c bcb->Lun = srb->device->lun; lun 519 drivers/usb/storage/uas.c int_to_scsilun(sdev->lun, &iu->lun); lun 351 drivers/usb/storage/usb.c srb->device->lun); lun 355 drivers/usb/storage/usb.c else if (srb->device->lun > us->max_lun) { lun 358 drivers/usb/storage/usb.c srb->device->lun); lun 570 drivers/vhost/scsi.c unsigned char *cdb, u64 scsi_tag, u16 lun, u8 task_attr, lun 604 drivers/vhost/scsi.c cmd->tvc_lun = lun; lun 922 drivers/vhost/scsi.c u16 lun; lun 953 drivers/vhost/scsi.c vc.lunp = &v_req_pi.lun[0]; lun 954 drivers/vhost/scsi.c vc.target = &v_req_pi.lun[1]; lun 958 drivers/vhost/scsi.c vc.lunp = &v_req.lun[0]; lun 959 drivers/vhost/scsi.c vc.target = &v_req.lun[1]; lun 1048 drivers/vhost/scsi.c lun = ((v_req_pi.lun[2] << 8) | v_req_pi.lun[3]) & 0x3FFF; lun 1053 drivers/vhost/scsi.c lun = ((v_req.lun[2] << 8) | v_req.lun[3]) & 0x3FFF; lun 1068 drivers/vhost/scsi.c cmd = vhost_scsi_get_tag(vq, tpg, cdb, tag, lun, task_attr, lun 1223 drivers/vhost/scsi.c vc.lunp = &v_req.tmf.lun[0]; lun 1224 drivers/vhost/scsi.c vc.target = &v_req.tmf.lun[1]; lun 1231 drivers/vhost/scsi.c vc.lunp = &v_req.an.lun[0]; lun 1291 drivers/vhost/scsi.c struct se_lun *lun, lun 1301 drivers/vhost/scsi.c if (tpg && lun) { lun 1307 drivers/vhost/scsi.c evt->event.lun[0] = 0x01; lun 1308 drivers/vhost/scsi.c evt->event.lun[1] = tpg->tport_tpgt; lun 1309 drivers/vhost/scsi.c if (lun->unpacked_lun >= 256) lun 1310 drivers/vhost/scsi.c evt->event.lun[2] = lun->unpacked_lun >> 8 | 0x40 ; lun 1311 drivers/vhost/scsi.c evt->event.lun[3] = lun->unpacked_lun & 0xFF; lun 1783 drivers/vhost/scsi.c struct se_lun *lun, bool plug) lun 1803 drivers/vhost/scsi.c vhost_scsi_send_evt(vs, tpg, lun, lun 1809 drivers/vhost/scsi.c static void vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) lun 1811 drivers/vhost/scsi.c vhost_scsi_do_plug(tpg, lun, true); lun 1814 drivers/vhost/scsi.c static void vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) lun 1816 drivers/vhost/scsi.c vhost_scsi_do_plug(tpg, lun, false); lun 1820 drivers/vhost/scsi.c struct se_lun *lun) lun 1831 drivers/vhost/scsi.c vhost_scsi_hotplug(tpg, lun); lun 1839 drivers/vhost/scsi.c struct se_lun *lun) lun 1850 drivers/vhost/scsi.c vhost_scsi_hotunplug(tpg, lun); lun 76 drivers/xen/xen-scsiback.c unsigned int lun; /* LUN */ lun 82 drivers/xen/xen-scsiback.c unsigned int lun; lun 264 drivers/xen/xen-scsiback.c tpg->tport->tport_name, pending_req->v2p->lun, lun 405 drivers/xen/xen-scsiback.c pending_req->sense_buffer, pending_req->v2p->lun, lun 599 drivers/xen/xen-scsiback.c u64 unpacked_lun = pending_req->v2p->lun; lun 638 drivers/xen/xen-scsiback.c (entry->v.lun == v->lun)) { lun 701 drivers/xen/xen-scsiback.c vir.lun = ring_req->lun; lun 706 drivers/xen/xen-scsiback.c vir.chn, vir.tgt, vir.lun); lun 883 drivers/xen/xen-scsiback.c (entry->v.lun == v->lun)) lun 966 drivers/xen/xen-scsiback.c new->lun = unpacked_lun; lun 1088 drivers/xen/xen-scsiback.c &vir.hst, &vir.chn, &vir.tgt, &vir.lun); lun 1711 drivers/xen/xen-scsiback.c struct se_lun *lun) lun 1724 drivers/xen/xen-scsiback.c struct se_lun *lun) lun 589 include/linux/ide.h int lun; /* logical unit */ lun 46 include/linux/lightnvm.h u64 lun : NVM_GEN_LUN_BITS; lun 54 include/linux/lightnvm.h u64 lun : NVM_GEN_LUN_BITS; lun 450 include/linux/lightnvm.h l.ppa |= ((u64)r.g.lun) << ppaf->lun_offset; lun 479 include/linux/lightnvm.h l.g.lun = (r.ppa & ppaf->lun_mask) >> ppaf->lun_offset; lun 535 include/linux/lightnvm.h ppa64.g.lun = (ppa32 & ppaf->lun_mask) >> lun 579 include/linux/lightnvm.h ppa32 |= ppa64.g.lun << ppaf->lun_offset; lun 77 include/linux/mtd/nand.h unsigned int lun; lun 465 include/linux/mtd/nand.h pos->lun = do_div(tmp, nand->memorg.luns_per_target); lun 486 include/linux/mtd/nand.h if (a->lun != b->lun) lun 487 include/linux/mtd/nand.h return a->lun < b->lun ? -1 : 1; lun 516 include/linux/mtd/nand.h (pos->lun + lun 537 include/linux/mtd/nand.h return (pos->lun << nand->rowconv.lun_addr_shift) | lun 556 include/linux/mtd/nand.h pos->lun = 0; lun 571 include/linux/mtd/nand.h if (pos->lun >= nand->memorg.luns_per_target - 1) lun 574 include/linux/mtd/nand.h pos->lun++; lun 744 include/linux/mtd/nand.h ((pos->lun + (pos->target * nand->memorg.luns_per_target)) * lun 299 include/linux/qed/iscsi_common.h struct regpair lun; lun 327 include/linux/qed/iscsi_common.h struct regpair lun; lun 392 include/linux/qed/iscsi_common.h struct regpair lun; lun 422 include/linux/qed/iscsi_common.h struct regpair lun; lun 438 include/linux/qed/iscsi_common.h struct regpair lun; lun 459 include/linux/qed/iscsi_common.h struct regpair lun; lun 484 include/linux/qed/iscsi_common.h struct regpair lun; lun 569 include/linux/qed/iscsi_common.h struct regpair lun; lun 593 include/linux/qed/iscsi_common.h struct regpair lun; lun 612 include/linux/qed/iscsi_common.h struct regpair lun; lun 652 include/linux/qed/iscsi_common.h struct regpair lun; lun 698 include/linux/qed/iscsi_common.h struct regpair lun; lun 939 include/linux/qed/iscsi_common.h struct regpair lun; lun 54 include/linux/usb/uas.h struct scsi_lun lun; lun 65 include/linux/usb/uas.h struct scsi_lun lun; lun 82 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 144 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 220 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 248 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 263 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 279 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 337 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 355 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 375 include/scsi/iscsi_proto.h struct scsi_lun lun; lun 581 include/scsi/iscsi_proto.h uint8_t lun[8]; lun 108 include/scsi/libiscsi.h struct scsi_lun lun; lun 636 include/scsi/libsas.h int (*lldd_abort_task_set)(struct domain_device *, u8 *lun); lun 637 include/scsi/libsas.h int (*lldd_clear_aca)(struct domain_device *, u8 *lun); lun 638 include/scsi/libsas.h int (*lldd_clear_task_set)(struct domain_device *, u8 *lun); lun 642 include/scsi/libsas.h int (*lldd_lu_reset)(struct domain_device *, u8 *lun); lun 331 include/scsi/sas.h u8 lun[8]; lun 359 include/scsi/sas.h u8 lun[8]; lun 562 include/scsi/sas.h u8 lun[8]; lun 590 include/scsi/sas.h u8 lun[8]; lun 86 include/scsi/scsi.h static inline int scsi_is_wlun(u64 lun) lun 88 include/scsi/scsi.h return (lun & 0xff00) == SCSI_W_LUN_BASE; lun 230 include/scsi/scsi.h #define IDENTIFY(can_disconnect, lun) (IDENTIFY_BASE |\ lun 232 include/scsi/scsi.h ((lun) & 0x07)) lun 126 include/scsi/scsi_device.h u64 lun; lun 332 include/scsi/scsi_device.h uint target, u64 lun); lun 421 include/scsi/scsi_device.h unsigned int id, u64 lun, lun 109 include/scsi/sg.h int lun; lun 220 include/scsi/srp.h struct scsi_lun lun; lun 241 include/scsi/srp.h struct scsi_lun lun; lun 306 include/scsi/srp.h struct scsi_lun lun; lun 210 include/trace/events/scsi.h __field( unsigned int, lun ) lun 223 include/trace/events/scsi.h __entry->lun = cmd->device->lun; lun 235 include/trace/events/scsi.h __entry->lun, __entry->data_sglen, __entry->prot_sglen, lun 252 include/trace/events/scsi.h __field( unsigned int, lun ) lun 266 include/trace/events/scsi.h __entry->lun = cmd->device->lun; lun 279 include/trace/events/scsi.h __entry->lun, __entry->data_sglen, __entry->prot_sglen, lun 297 include/trace/events/scsi.h __field( unsigned int, lun ) lun 311 include/trace/events/scsi.h __entry->lun = cmd->device->lun; lun 325 include/trace/events/scsi.h __entry->lun, __entry->data_sglen, __entry->prot_sglen, lun 124 include/uapi/linux/edd.h __u8 lun; lun 132 include/uapi/linux/edd.h __u64 lun; lun 146 include/uapi/linux/edd.h __u64 lun; lun 68 include/uapi/linux/ipmi.h unsigned char lun; lun 80 include/uapi/linux/ipmi.h unsigned char lun; lun 108 include/uapi/linux/ipmi.h unsigned char lun; lun 45 include/uapi/linux/virtio_scsi.h __u8 lun[8]; /* Logical Unit Number */ lun 55 include/uapi/linux/virtio_scsi.h __u8 lun[8]; /* Logical Unit Number */ lun 79 include/uapi/linux/virtio_scsi.h __u8 lun[8]; lun 90 include/uapi/linux/virtio_scsi.h __u8 lun[8]; lun 101 include/uapi/linux/virtio_scsi.h __u8 lun[8]; lun 197 include/xen/interface/io/vscsiif.h uint16_t channel, id, lun; /* (virtual) device specification */