/illumos-gate/usr/src/uts/common/sys/dktp/ |
H A D | cmdev.h | 33 #define CMDEV_TARG(devp) (devp)->sd_address.a_target 34 #define CMDEV_LUN(devp) (devp)->sd_address.a_lun
|
/illumos-gate/usr/src/uts/common/io/scsi/conf/ |
H A D | scsi_confsubr.c | 43 if ((sd->sd_address.a_lun > 0) && \ 46 sd->sd_address.a_lun; \ 287 #define ROUTE (&sd->sd_address) 1028 scsi_hba_tran_t *tran = sd->sd_address.a_hba_tran; in scsi_probe() 1046 lr_cap = (*tran->tran_getcap)(&sd->sd_address, "lun-reset", 1); in scsi_probe() 1047 sr_ret = scsi_reset(&sd->sd_address, RESET_LUN); in scsi_probe() 1335 (sd->sd_address.a_lun > 0) && (sd->sd_inq->inq_ansi == 0x1)) { in scsi_hba_probe_pi() 1337 if (sd->sd_address.a_lun <= 7) in scsi_hba_probe_pi() 1606 ASSERT(sd->sd_address.a_hba_tran->tran_hba_flags & in scsi_device_hba_private_set() 1614 ASSERT(sd->sd_address.a_hba_tran->tran_hba_flags & in scsi_device_hba_private_get() [all …]
|
/illumos-gate/usr/src/uts/common/io/cpqary3/ |
H A D | cpqary3.h | 134 #define SD2TGT(sd) (sd)->sd_address.a_target /* SCSI Dev to Target ID */ 135 #define SD2LUN(sd) (sd)->sd_address.a_lun /* SCSI Dev to Lun */ 136 #define SD2SA(sd) ((sd)->sd_address) /* SCSI Dev to SCSI Addr */ 140 ((cpqary3_t *)sd->sd_address.a_hba_tran->tran_hba_private)
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/lmrc/ |
H A D | lmrc_raid.c | 403 sd.sd_address.a_hba_tran = ddi_get_driver_private(lmrc->l_raid_dip); in lmrc_raid_send_inquiry() 404 sd.sd_address.a.a_sd = &sd; in lmrc_raid_send_inquiry() 410 inq_bp = scsi_alloc_consistent_buf(&sd.sd_address, NULL, in lmrc_raid_send_inquiry() 416 inq_pkt = scsi_init_pkt(&sd.sd_address, NULL, inq_bp, CDB_GROUP0, in lmrc_raid_send_inquiry()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | emul64var.h | 199 #define SDEV2TRAN(sd) ((sd)->sd_address.a_hba_tran) 200 #define SDEV2ADDR(sd) (&((sd)->sd_address))
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/ |
H A D | scsi_vhci.c | 1359 rel_pkt = scsi_init_pkt(&svp_resrv->svp_psd->sd_address, in vhci_scsi_start() 1669 pap = &svp->svp_psd->sd_address; in vhci_scsi_reset_target() 2174 vlun = ADDR2VLUN(&sd->sd_address); in vhci_scsi_get_name_bus_addr() 2500 address = &psd->sd_address; in vhci_bind_transport() 2595 new_pkt = scsi_init_pkt(&svp->svp_psd->sd_address, NULL, bp, in vhci_do_prout() 2929 new_bp = scsi_alloc_consistent_buf(&svp->svp_psd->sd_address, in vhci_do_prin() 3131 vhci_scsi_destroy_pkt(&svp->svp_psd->sd_address, in vhci_do_prin() 3528 vhci_scsi_destroy_pkt(&svp->svp_psd->sd_address, in vhci_intr() 3950 &svp->svp_psd->sd_address, (struct buf *)NULL, in vhci_update_pathstates() 3959 pkt = scsi_init_pkt(&svp->svp_psd->sd_address, NULL, bp, in vhci_update_pathstates() [all …]
|
H A D | scsi_vhci_tpgs.c | 223 ap = &sd->sd_address; in vhci_tpgs_get_target_fo_mode()
|
/illumos-gate/usr/src/uts/common/sys/scsi/conf/ |
H A D | device.h | 75 struct scsi_address sd_address; member
|
/illumos-gate/usr/src/uts/common/sys/scsi/targets/ |
H A D | sgendef.h | 90 #define sgen_scsiaddr sgen_scsidev->sd_address
|
H A D | ses.h | 61 #define SES_ROUTE(softc) (&SES_DEVP(softc)->sd_address)
|
/illumos-gate/usr/src/uts/common/io/scsi/impl/ |
H A D | scsi_watch.c | 66 if ((devp->sd_address.a_lun > 0) && \ 69 devp->sd_address.a_lun; \ 192 #define ROUTE &devp->sd_address
|
H A D | scsi_hba.c | 1967 sd->sd_address.a.a_sd = sd; in scsi_busctl_initchild() 1977 sd->sd_address.a_target = (ushort_t)tgt; in scsi_busctl_initchild() 1978 sd->sd_address.a_lun = (uchar_t)lun; in scsi_busctl_initchild() 1980 sd->sd_address.a_sublun = (uchar_t)0; in scsi_busctl_initchild() 1982 sd->sd_address.a_sublun = (uchar_t)sfunc + 1; in scsi_busctl_initchild() 2011 sd->sd_address.a_hba_tran = tran; in scsi_busctl_initchild() 2146 tran_clone = sd->sd_address.a_hba_tran; in scsi_busctl_uninitchild() 3225 if (scsi_reset(&sd->sd_address, RESET_LUN) == 1) in scsi_hba_ioctl() 3227 if (scsi_reset(&sd->sd_address, RESET_TARGET) != 1) in scsi_hba_ioctl() 3264 (scsi_reset(&sd->sd_address, RESET_ALL) == 1)) { in scsi_hba_ioctl() [all …]
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | emul64.c | 533 tgt = find_tgt(emul64, sd->sd_address.a_target, sd->sd_address.a_lun); in emul64_tran_tgt_init() 541 sd->sd_address.a_target, sd->sd_address.a_lun); in emul64_tran_tgt_init()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/scsi_vhci/fops/ |
H A D | sym_hds.c | 248 ap = &sd->sd_address; in hds_get_inquiry_vpd_page()
|
H A D | tpgs.c | 241 ap = &sd->sd_address; in std_path_activate()
|
/illumos-gate/usr/src/uts/sun/sys/scsi/adapters/ |
H A D | fasvar.h | 85 #define SDEV2TRAN(sd) ((sd)->sd_address.a_hba_tran) 86 #define SDEV2ADDR(sd) (&((sd)->sd_address))
|
/illumos-gate/usr/src/uts/sun/sys/dada/adapters/ghd/ |
H A D | ghd.h | 379 #define SDEV2ADDR(sdp) (&(sdp)->sd_address)
|
/illumos-gate/usr/src/uts/intel/io/scsi/adapters/arcmsr/ |
H A D | arcmsr.c | 775 target = sd->sd_address.a_target; in arcmsr_tran_tgt_init() 776 lun = sd->sd_address.a_lun; in arcmsr_tran_tgt_init() 2307 int tgt = sd->sd_address.a_target; in arcmsr_config_child() 2308 int lun = sd->sd_address.a_lun; in arcmsr_config_child() 2379 sd.sd_address.a_hba_tran = acb->scsi_hba_transport; in arcmsr_config_lun() 2380 sd.sd_address.a_target = tgt; in arcmsr_config_lun() 2381 sd.sd_address.a_lun = lun; in arcmsr_config_lun() 3254 sd.sd_address.a_hba_tran = acb->scsi_hba_transport; in arcmsr_scsi_device_probe() 3255 sd.sd_address.a_target = (uint16_t)tgt; in arcmsr_scsi_device_probe() 3256 sd.sd_address.a_lun = (uint8_t)lun; in arcmsr_scsi_device_probe()
|
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/ |
H A D | ghd.h | 444 #define SDEV2ADDR(sdp) (&(sdp)->sd_address)
|
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_disk.c | 379 devp->sd_address.a_hba_tran = (scsi_hba_tran_t *)ctlobjp; in ata_disk_init_drive() 380 devp->sd_address.a_target = (ushort_t)ata_drvp->ad_targ; in ata_disk_init_drive() 381 devp->sd_address.a_lun = (uchar_t)ata_drvp->ad_lun; in ata_disk_init_drive() 867 ctlobjp = (struct ctl_obj *)devp->sd_address.a_hba_tran; in ata_disk_bus_ctl()
|
/illumos-gate/usr/src/uts/common/io/mr_sas/ |
H A D | mr_sas.c | 1610 uint16_t tgt = sd->sd_address.a_target; in mrsas_tran_tgt_init() 1611 uint8_t lun = sd->sd_address.a_lun; in mrsas_tran_tgt_init() 1617 instance = ADDR2MR(&sd->sd_address); in mrsas_tran_tgt_init() 1672 int tgt = sd->sd_address.a_target; in mrsas_tran_tgt_free() 1673 int lun = sd->sd_address.a_lun; in mrsas_tran_tgt_free() 1675 instance = ADDR2MR(&sd->sd_address); in mrsas_tran_tgt_free() 7602 sd->sd_address.a_hba_tran = instance->tran; in mrsas_config_ld() 7603 sd->sd_address.a_target = (uint16_t)tgt; in mrsas_config_ld() 7604 sd->sd_address.a_lun = (uint8_t)lun; in mrsas_config_ld() 7632 int tgt = sd->sd_address.a_target; in mrsas_config_scsi_device() [all …]
|
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/mpt_sas/ |
H A D | mptsas_var.h | 1128 #define SDEV2ADDR(devp) (&((devp)->sd_address)) 1129 #define SDEV2TRAN(devp) ((devp)->sd_address.a_hba_tran)
|
/illumos-gate/usr/src/uts/intel/io/amr/ |
H A D | amr.c | 1480 ushort_t target = sd->sd_address.a_target; in amr_tran_tgt_init() 1481 uchar_t lun = sd->sd_address.a_lun; in amr_tran_tgt_init() 1484 (sd->sd_address.a_hba_tran->tran_hba_private); in amr_tran_tgt_init()
|
/illumos-gate/usr/src/uts/common/io/aac/ |
H A D | aac.c | 74 #define SD2TRAN(sd) ((sd)->sd_address.a_hba_tran) 4158 uint16_t tgt = sd->sd_address.a_target; in aac_tran_tgt_init() 4159 uint8_t lun = sd->sd_address.a_lun; in aac_tran_tgt_init() 4243 int tgt = sd->sd_address.a_target; in aac_tran_tgt_free() 7148 int tgt = sd->sd_address.a_target; in aac_config_child() 7149 int lun = sd->sd_address.a_lun; in aac_config_child() 7212 int tgt = sd->sd_address.a_target; in aac_probe_lun() 7213 int lun = sd->sd_address.a_lun; in aac_probe_lun() 7284 sd.sd_address.a_hba_tran = softs->hba_tran; in aac_config_lun() 7285 sd.sd_address.a_target = (uint16_t)tgt; in aac_config_lun() [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/ |
H A D | hba.c | 1047 lp = &sp->s_lun[sd->sd_address.a_lun]; in scsa1394_scsi_tgt_probe() 1083 pkt = scsi_init_pkt(&sd->sd_address, NULL, NULL, CDB_GROUP0, in scsa1394_probe_g0_nodata() 1092 ((union scsi_cdb *)(pkt)->pkt_cdbp)->scc_lun = sd->sd_address.a_lun; in scsa1394_probe_g0_nodata()
|