/linux-master/drivers/scsi/ |
H A D | scsi.c | 863 * @lun: SCSI Logical Unit Number 865 * Description: Looks up the scsi_device with the specified @lun for a given 876 u64 lun) 883 if (sdev->lun ==lun) 894 * @lun: SCSI Logical Unit Number 896 * Description: Looks up the scsi_device with the specified @lun for a given 901 u64 lun) 908 sdev = __scsi_device_lookup_by_target(starget, lun); 922 * @lun 875 __scsi_device_lookup_by_target(struct scsi_target *starget, u64 lun) argument 900 scsi_device_lookup_by_target(struct scsi_target *starget, u64 lun) argument 933 __scsi_device_lookup(struct Scsi_Host *shost, uint channel, uint id, u64 lun) argument 961 scsi_device_lookup(struct Scsi_Host *shost, uint channel, uint id, u64 lun) argument [all...] |
H A D | ch.c | 255 cmd[1] = ((ch->device->lun & 0x7) << 5) | 292 cmd[1] = (ch->device->lun & 0x7) << 5; 303 int result,id,lun,i; local 312 cmd[1] = (ch->device->lun & 0x7) << 5; 377 lun = 0; 380 lun = dt_lun[elem]; 397 lun = 0; 399 if (data[6] & 0x10) lun = data[6] & 7; 403 VPRINTK(KERN_CONT, "ID %i, LUN %i, ",id,lun); 407 id,lun); [all...] |
H A D | qla1280.h | 513 uint8_t lun; /* SCSI LUN */ member in struct:cmd_entry 599 uint8_t lun; /* SCSI LUN */ member in struct:mrk_entry 620 uint8_t lun; /* SCSI LUN */ member in struct:ecmd_entry 640 uint8_t lun; /* SCSI LUN */ member in struct:__anon3037 686 __le16 lun; /* Bit 15 is bus number. */ member in struct:elun_entry 714 uint8_t lun; /* SCSI LUN */ member in struct:modify_lun_entry 739 uint8_t lun; member in struct:notify_entry 765 uint8_t lun; member in struct:nack_entry 786 uint8_t lun; member in struct:atio_entry 809 uint8_t lun; /* SCS member in struct:ctio_entry 842 uint8_t lun; /* SCSI LUN */ member in struct:ctio_ret_entry 872 uint8_t lun; /* SCSI LUN */ member in struct:ctio_a64_entry 902 uint8_t lun; /* SCSI LUN */ member in struct:ctio_a64_ret_entry [all...] |
H A D | vmw_pvscsi.h | 128 u8 lun[8]; member in struct:PVSCSICmdDescResetDevice 245 u8 lun[8]; member in struct:PVSCSIMsgDescDevStatusChanged 330 u8 lun[8]; member in struct:PVSCSIRingReqDesc
|
H A D | NCR5380.c | 644 dsprintk(NDEBUG_QUEUES, instance, "dequeue: cmd=%p target=%d busy=0x%02x lun=%llu\n", 645 cmd, scmd_id(cmd), hostdata->busy[scmd_id(cmd)], cmd->device->lun); 647 if (!(hostdata->busy[scmd_id(cmd)] & (1 << cmd->device->lun))) { 1196 tmp[0] = IDENTIFY(can_disconnect, cmd->device->lun); 1214 hostdata->busy[cmd->device->id] |= 1 << cmd->device->lun; 1747 hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); 1823 "COMMAND COMPLETE %p target %d lun %llu\n", 1824 cmd, scmd_id(cmd), cmd->device->lun); 1827 hostdata->busy[scmd_id(cmd)] &= ~(1 << cmd->device->lun); 1861 hostdata->busy[cmd->device->id] |= (1 << (cmd->device->lun 2029 unsigned char lun; local [all...] |
H A D | dc395x.c | 834 static struct DeviceCtlBlk *find_dcb(struct AdapterCtlBlk *acb, u8 id, u8 lun) argument 836 return acb->children[id][lun]; 970 cmd, cmd->device->id, (u8)cmd->device->lun, cmd->cmnd[0]); 977 cmd->device->lun >= acb->scsi_host->max_lun || 978 cmd->device->lun >31) { 982 /* does the specified lun on the specified device exist */ 983 if (!(acb->dcb_map[cmd->device->id] & (1 << cmd->device->lun))) { 985 cmd->device->id, (u8)cmd->device->lun); 990 dcb = find_dcb(acb, cmd->device->id, cmd->device->lun); 994 cmd->device->id, (u8)cmd->device->lun); 2967 u8 id, lun; local 3543 device_alloc(struct AdapterCtlBlk *acb, u8 target, u8 lun) argument [all...] |
/linux-master/drivers/scsi/aic7xxx/ |
H A D | aic79xx.h | 84 ((scb)->hscb->lun) 104 #define BUILD_TCL(scsiid, lun) \ 105 ((lun) | (((scsiid) & TID) << 4)) 106 #define BUILD_TCL_RAW(target, channel, lun) \ 107 ((lun) | ((target) << 8)) 117 #define AHD_BUILD_COL_IDX(target, lun) \ 118 ((((u8)lun) << 4) | target) 126 (scb)->hscb->lun = ((col_idx) >> 4) & (AHD_NUM_LUNS_NONPKT-1); \ 132 dst->hscb->lun = src->hscb->lun; \ 496 /*20*/ uint8_t lun; member in struct:hardware_scb 1290 u_int lun; member in struct:ahd_devinfo [all...] |
H A D | aic79xx_inline.h | 152 dst->hscb->lun = src->hscb->lun; \
|
H A D | aic7xxx_core.c | 262 char channel, int lun, u_int tag, 273 * transaction for this target or target lun. 283 * Allow the next untagged transaction for this target or target lun 619 scb->hscb->lun &= LID; 621 scb->hscb->lun |= SCB_XFERLEN_ODD; 1450 devinfo.lun); 2083 printk("scb:%p control:0x%x scsiid:0x%x lun:%d cdb_len:%d\n", 2087 hscb->lun, 2658 devinfo->lun, AC_TRANSFER_NEG); 2796 u_int lun, cha 2795 ahc_compile_devinfo(struct ahc_devinfo *devinfo, u_int our_id, u_int target, u_int lun, char channel, role_t role) argument 4302 u_int lun; local 5089 int lun; local 5691 ahc_match_scb(struct ahc_softc *ahc, struct scb *scb, int target, char channel, int lun, u_int tag, role_t role) argument 5731 int lun; local 5798 ahc_search_qinfifo(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, role_t role, uint32_t status, ahc_search_action action) argument 6005 ahc_search_untagged_queues(struct ahc_softc *ahc, ahc_io_ctx_t ctx, int target, char channel, int lun, uint32_t status, ahc_search_action action) argument 6103 ahc_search_disc_list(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, int stop_on_first, int remove, int save_state) argument 6266 ahc_abort_scbs(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, role_t role, uint32_t status) argument 6531 u_int lun; local 7333 u_int lun; local 7797 int lun; local [all...] |
H A D | aic7xxx_osm.c | 1342 int lun, u_int tag, role_t role, uint32_t status) 1391 sdev->sdev_target->id, sdev->lun, 1399 devinfo.lun, AC_TRANSFER_NEG); 1405 devinfo.lun, AC_TRANSFER_NEG); 1431 * we are storing a full busy target *lun* 1469 hscb->lun = cmd->device->lun; 1596 u_int target, u_int lun, ac_code code) 1659 WARN_ON(lun != CAM_LUN_WILDCARD); 1809 sdev->sdev_target->id, sdev->lun, 1341 ahc_platform_abort_scbs(struct ahc_softc *ahc, int target, char channel, int lun, u_int tag, role_t role, uint32_t status) argument 1595 ahc_send_async(struct ahc_softc *ahc, char channel, u_int target, u_int lun, ac_code code) argument [all...] |
/linux-master/drivers/scsi/esas2r/ |
H A D | esas2r_ioctl.c | 336 rq->vrq->scsi.flags |= cpu_to_le32(rq->func_rsp.ioctl_rsp.csmi.lun); 359 ioctl->csmi.lun = (u8)le32_to_cpu(rq->vrq->scsi.flags); 376 static bool check_lun(struct scsi_lun lun) argument 380 result = ((lun.scsi_lun[7] == 0) && 381 (lun.scsi_lun[6] == 0) && 382 (lun.scsi_lun[5] == 0) && 383 (lun.scsi_lun[4] == 0) && 384 (lun.scsi_lun[3] == 0) && 385 (lun.scsi_lun[2] == 0) && 387 (lun 401 u8 lun = 0; local 529 struct scsi_lun lun; local 978 struct scsi_lun lun; local [all...] |
/linux-master/drivers/vhost/ |
H A D | scsi.c | 596 unsigned char *cdb, u64 scsi_tag, u16 lun, u8 task_attr, 631 cmd->tvc_lun = lun; 1012 /* virtio-scsi spec requires byte 0 of the lun to be 1 */ 1013 vq_err(vq, "Illegal virtio-scsi lun: %u\n", *vc->lunp); 1049 u16 lun; local 1080 vc.lunp = &v_req_pi.lun[0]; 1081 vc.target = &v_req_pi.lun[1]; 1085 vc.lunp = &v_req.lun[0]; 1086 vc.target = &v_req.lun[1]; 1175 lun 595 vhost_scsi_get_cmd(struct vhost_virtqueue *vq, struct vhost_scsi_tpg *tpg, unsigned char *cdb, u64 scsi_tag, u16 lun, u8 task_attr, u32 exp_data_len, int data_direction) argument 1488 vhost_scsi_send_evt(struct vhost_scsi *vs, struct vhost_virtqueue *vq, struct vhost_scsi_tpg *tpg, struct se_lun *lun, u32 event, u32 reason) argument 2128 vhost_scsi_do_plug(struct vhost_scsi_tpg *tpg, struct se_lun *lun, bool plug) argument 2160 vhost_scsi_hotplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) argument 2165 vhost_scsi_hotunplug(struct vhost_scsi_tpg *tpg, struct se_lun *lun) argument 2170 vhost_scsi_port_link(struct se_portal_group *se_tpg, struct se_lun *lun) argument 2184 vhost_scsi_port_unlink(struct se_portal_group *se_tpg, struct se_lun *lun) argument [all...] |
/linux-master/drivers/staging/rts5208/ |
H A D | ms.c | 3396 unsigned int lun = SCSI_LUN(srb); local 3430 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_NOT_PRESENT); 3447 set_sense_type(chip, lun, 3462 set_sense_type(chip, lun, 3472 set_sense_type(chip, lun, 3483 (chip, lun, 3487 set_sense_type(chip, lun, 3499 set_sense_type(chip, lun, 3503 set_sense_type(chip, lun, 3511 set_sense_type(chip, lun, 3803 unsigned int lun = SCSI_LUN(srb); local 3847 unsigned int lun = SCSI_LUN(srb); local 3899 unsigned int lun = SCSI_LUN(srb); local 3973 unsigned int lun = SCSI_LUN(srb); local 4028 unsigned int lun = SCSI_LUN(srb); local 4074 unsigned int lun = SCSI_LUN(srb); local 4128 unsigned int lun = SCSI_LUN(srb); local [all...] |
H A D | sd.c | 3744 unsigned int lun = SCSI_LUN(srb); local 3769 if (!(CHK_BIT(chip->lun_mc, lun))) { 3770 SET_BIT(chip->lun_mc, lun); 3771 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); 3779 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); 3793 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); 3854 unsigned int lun = SCSI_LUN(srb); local 3861 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); 3871 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); 3887 set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIEL 3966 unsigned int lun = SCSI_LUN(srb); local 4200 unsigned int lun = SCSI_LUN(srb); local 4546 unsigned int lun = SCSI_LUN(srb); local 4585 unsigned int lun = SCSI_LUN(srb); local [all...] |
/linux-master/drivers/scsi/elx/efct/ |
H A D | efct_scsi.h | 164 efct_scsi_recv_cmd(struct efct_io *io, uint64_t lun, u8 *cdb, u32 cdb_len, 167 efct_scsi_recv_tmf(struct efct_io *tmfio, u32 lun, enum efct_scsi_tmf_cmd cmd,
|
/linux-master/drivers/s390/scsi/ |
H A D | zfcp_fc.h | 233 int_to_scsilun(scsi->device->lun, (struct scsi_lun *) &fcp->fc_lun); 262 int_to_scsilun(dev->lun, (struct scsi_lun *) &fcp->fc_lun);
|
H A D | zfcp_aux.c | 58 static void __init zfcp_init_device_configure(char *busid, u64 wwpn, u64 lun) argument 80 zfcp_unit_add(port, lun); 95 u64 wwpn, lun; local 113 if (!token || kstrtoull(token, 0, (unsigned long long *) &lun)) 117 zfcp_init_device_configure(busid, wwpn, lun);
|
/linux-master/drivers/target/ |
H A D | target_core_internal.h | 74 struct se_lun *lun); 79 struct se_lun_acl *, struct se_lun *lun, bool);
|
/linux-master/include/scsi/ |
H A D | srp.h | 216 struct scsi_lun lun; member in struct:srp_tsk_mgmt 233 struct scsi_lun lun; member in struct:srp_cmd 298 struct scsi_lun lun; member in struct:srp_aer_req
|
/linux-master/drivers/scsi/qla4xxx/ |
H A D | ql4_iocb.c | 79 * @lun: SCSI LUN 85 struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod) 106 int_to_scsilun(lun, &marker_entry->lun); 283 /* Get real lun and adapter */ 327 int_to_scsilun(cmd->device->lun, &cmd_entry->lun); 84 qla4xxx_send_marker_iocb(struct scsi_qla_host *ha, struct ddb_entry *ddb_entry, uint64_t lun, uint16_t mrkr_mod) argument
|
/linux-master/drivers/scsi/sym53c8xx_2/ |
H A D | sym_hipd.h | 359 * LUN #0 is a special case, since multi-lun devices are rare, 568 #define sym_lp(tp, lun) (!lun) ? (tp)->lun0p : NULL 570 #define sym_lp(tp, lun) \ 571 (!lun) ? (tp)->lun0p : (tp)->lunmp ? (tp)->lunmp[((u8)lun)] : NULL 773 u_char lun; member in struct:sym_ccb 817 * Dummy lun table to protect us against target 818 * returning bad lun number on reselection. 1052 int sym_clear_tasks(struct sym_hcb *np, int cam_status, int target, int lun, in [all...] |
/linux-master/drivers/scsi/qedi/ |
H A D | qedi_fw.c | 419 u32 lun[2]; local 455 lun[0] = 0xffffffff; 456 lun[1] = 0xffffffff; 457 memcpy(&hdr->lun, lun, sizeof(struct scsi_lun)); 489 u32 lun[2]; local 513 lun[0] = cpu_to_be32(cqe_async_msg->lun.lo); 514 lun[1] = cpu_to_be32(cqe_async_msg->lun 1142 unsigned int lun = 0; local [all...] |
/linux-master/drivers/scsi/qla2xxx/ |
H A D | qla_iocb.c | 408 cmd_pkt->lun = cpu_to_le16(cmd->device->lun); 501 * @lun: LUN 510 uint16_t loop_id, uint64_t lun, uint8_t type) 533 int_to_scsilun(lun, (struct scsi_lun *)&mrk24->lun); 534 host_to_fcp_swap(mrk24->lun, sizeof(mrk24->lun)); 538 mrk->lun = cpu_to_le16((uint16_t)lun); 509 __qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, uint16_t loop_id, uint64_t lun, uint8_t type) argument 553 qla2x00_marker(struct scsi_qla_host *vha, struct qla_qpair *qpair, uint16_t loop_id, uint64_t lun, uint8_t type) argument 2543 uint64_t lun; local [all...] |
/linux-master/drivers/char/ipmi/ |
H A D | ipmi_msghandler.c | 305 unsigned char lun; member in struct:ipmi_my_addrinfo 814 return (smi_addr1->lun == smi_addr2->lun); 824 && (ipmb_addr1->lun == ipmb_addr2->lun)); 848 && (lan_addr1->lun == lan_addr2->lun)); 1491 user->intf->addrinfo[channel].lun = LUN & 0x3; 1513 *address = user->intf->addrinfo[channel].lun; 1805 smi_msg->data[i+4] = (msg->netfn << 2) | (ipmb_addr->lun 2396 check_addr(struct ipmi_smi *intf, struct ipmi_addr *addr, unsigned char *saddr, unsigned char *lun) argument 2418 unsigned char saddr = 0, lun = 0; local 2457 unsigned char saddr = 0, lun = 0; local [all...] |
/linux-master/include/linux/qed/ |
H A D | iscsi_common.h | 273 struct regpair lun; member in struct:iscsi_cmd_hdr 301 struct regpair lun; member in struct:iscsi_ext_cdb_cmd_hdr 366 struct regpair lun; member in struct:iscsi_data_out_hdr 396 struct regpair lun; member in struct:iscsi_data_in_hdr 412 struct regpair lun; member in struct:iscsi_r2t_hdr 433 struct regpair lun; member in struct:iscsi_nop_out_hdr 458 struct regpair lun; member in struct:iscsi_nop_in_hdr 543 struct regpair lun; member in struct:iscsi_text_request_hdr 567 struct regpair lun; member in struct:iscsi_text_response_hdr 586 struct regpair lun; member in struct:iscsi_tmf_request_hdr 626 struct regpair lun; member in struct:iscsi_response_hdr 672 struct regpair lun; member in struct:iscsi_async_msg_hdr 913 struct regpair lun; member in struct:ustorm_iscsi_task_st_ctx [all...] |