/illumos-gate/usr/src/uts/common/os/ |
H A D | iscsiboot_prop.c | 297 uint16_t *lun_num; local 303 lun_num = (uint16_t *)(&iscsiboot_prop->boot_tgt.tgt_boot_lun[0]); 306 iscsiboot_prop->boot_tgt.tgt_tpgt, lun_num[0], 317 uint16_t lun_num = 0; local 328 lun_num = *(uint16_t *)(&iscsiboot_prop->boot_tgt.tgt_boot_lun[0]); 331 lun_num, iscsiboot_prop->boot_tgt.tgt_boot_par);
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/ |
H A D | iscsi_lun.c | 48 uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq); 50 uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq); 68 iscsi_lun_create(iscsi_sess_t *isp, uint16_t lun_num, uint8_t lun_addr_type, argument 94 if (ilp_tmp->lun_num == lun_num) { 111 isp->sess_tpgt_nego & 0xFFFF, lun_num); local 120 ilp->lun_num = lun_num; 157 rtn = iscsi_lun_virt_create(isp, lun_num, ilp, inq); 161 rtn = iscsi_lun_phys_create(isp, lun_num, il 297 iscsi_lun_virt_create(iscsi_sess_t *isp, uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq) argument 408 iscsi_lun_phys_create(iscsi_sess_t *isp, uint16_t lun_num, iscsi_lun_t *ilp, struct scsi_inquiry *inq) argument [all...] |
H A D | iscsi_io.c | 116 static void iscsi_flush_cmd_after_reset(uint32_t cmd_sn, uint16_t lun_num, 658 uint16_t lun_num = 0; local 758 ASSERT(icmdp->cmd_lun == NULL || icmdp->cmd_lun->lun_num == 763 lun_num = icmdp->cmd_un.scsi.lun & ISCSI_LUN_MASK; 769 iscsi_flush_cmd_after_reset(cmd_sn, lun_num, icp); 2349 ISCSI_LUN_BYTE_COPY(istmh->lun, icmdp->cmd_lun->lun_num); 2656 (icmd.cmd_lun->lun_num != 2657 t_icmdp->cmd_lun->lun_num)) { 3596 iscsi_flush_cmd_after_reset(uint32_t cmd_sn, uint16_t lun_num, argument 3624 t_icmdp->cmd_lun->lun_num [all...] |
H A D | iscsi_sess.c | 41 * lun_num: contains the lun_number 47 uint16_t lun_num; member in struct:replun_data 102 static void iscsi_sess_inquiry(iscsi_sess_t *isp, uint16_t lun_num, 1772 uint16_t lun_num = 0; local 1918 (saved_replun_ptr[lun_count].lun_num 1919 == ilp->lun_num)) { 1925 iscsi_sess_inquiry(isp, ilp->lun_num, 1942 &lun_num, &lun_addr_type) != 1947 saved_replun_ptr[lun_count].lun_num = lun_num; 2064 iscsi_sess_inquiry(iscsi_sess_t *isp, uint16_t lun_num, uint8_t lun_addr_type, uint32_t event_count, iscsi_lun_t *ilp) argument 2300 retrieve_lundata(uint32_t lun_count, unsigned char *buf, iscsi_sess_t *isp, uint16_t *lun_num, uint8_t *lun_addr_type) argument [all...] |
H A D | iscsid.c | 2450 uint16_t lun_num; local 2460 lun_num = *((uint64_t *)(iscsiboot_prop->boot_tgt.tgt_boot_lun)); 2473 if (lun_num == ilp->lun_num) {
|
H A D | iscsi.h | 538 uint16_t lun_num; /* LUN */ member in struct:iscsi_lun 1328 iscsi_status_t iscsi_lun_create(iscsi_sess_t *isp, uint16_t lun_num,
|
/illumos-gate/usr/src/uts/common/io/comstar/stmf/ |
H A D | lun_map.c | 933 uint16_t lun_num; local 939 lun_num = ((uint16_t)lun[1] | (((uint16_t)(lun[0] & 0x3F)) << 8)); 995 lun_num = stmf_get_next_free_lun(ve_map, lun); 996 if (lun_num > 0x3FFF) { 1002 if ((*conflicting = stmf_get_ent_from_map(ve_map, lun_num)) 1162 stmf_get_ent_from_map(stmf_lun_map_t *sm, uint16_t lun_num) argument 1164 if ((lun_num & 0xC000) == 0) { 1165 if (sm->lm_nentries > lun_num) 1166 return (sm->lm_plus[lun_num & 0x3FFF]); 1691 uint16_t lun_num; local [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/ |
H A D | pmcs_scsa.c | 161 uint64_t lun_num; local 245 lun_num = scsi_device_prop_get_int64(sd, SCSI_DEVICE_PROP_PATH, 247 if (lun_num == SCSI_LUN64_ILLEGAL) { 265 if ((tgt->dtype == SATA) && (lun_num > 0)) { 291 lun->lun_num = lun_num; 294 lun->scsi_lun = scsi_lun64_to_lun(lun_num); 672 lun = sp->cmd_lun->lun_num; 963 *lp = lun->lun_num;
|
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_list.c | 99 const int lun_num, ldata_list_t *ldatap, ldata_list_t **matchldpp); 107 static fpcfga_ret_t insert_FCP_dev_ldata(const char *port_wwn, int lun_num, 116 const char *dyncomp, uchar_t *lun_num, struct scsi_inquiry **inq_buf, 118 static void init_fcp_scsi_cmd(struct fcp_scsi_cmd *fscsi, uchar_t *lun_num, 843 uchar_t *lun_num, 867 memcpy(&fscsi->scsi_lun, lun_num, sizeof (fscsi->scsi_lun)); 933 uchar_t *lun_num, 955 init_fcp_scsi_cmd(&fscsi, lun_num, &pwwn, &scsi_inq_req, 2793 is_FCP_dev_ap_on_ldata_list(const char *port_wwn, const int lun_num, argument 2820 if ((ldata_lun = atoi(lunp)) == lun_num) { 841 init_fcp_scsi_cmd( struct fcp_scsi_cmd *fscsi, uchar_t *lun_num, la_wwn_t *pwwn, void *scmdbuf, size_t scmdbuf_len, void *respbuf, size_t respbuf_len, void *sensebuf, size_t sensebuf_len) argument 930 get_standard_inq_data( const char *xport_phys, const char *dyncomp, uchar_t *lun_num, struct scsi_inquiry **inq_buf, int *l_errnop) argument 3051 uint16_t lun_num; local 3594 insert_FCP_dev_ldata( const char *port_wwn, int lun_num, ldata_list_t *listp, ldata_list_t **ldatapp) argument [all...] |
/illumos-gate/usr/src/uts/common/sys/scsi/adapters/pmcs/ |
H A D | pmcs.h | 161 uint64_t lun_num; /* lun64 */ member in struct:pmcs_lun
|
/illumos-gate/usr/src/uts/common/sys/fibre-channel/ulp/ |
H A D | fcpvar.h | 1023 uint16_t lun_num; member in struct:fcp_lun 1365 fcp_tgt::tgt_port fcp_lun::lun_num fcp_lun::lun_tgt
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/ulp/ |
H A D | fcp.c | 461 uint16_t lun_num); 1856 map->osLUN = plun->lun_num; 2688 ptgt->tgt_d_id, plun->lun_num, 2865 uint16_t lun_num, i; local 2912 lun_num = ((lun_string[0] & 0x3F) << 8) 2915 lun_num) == TRUE) { 2950 lun_num = ((lun_string[0] & 0x3F) << 8) | lun_string[1]; 2953 &ptgt->tgt_port_wwn, lun_num) == TRUE)) { 2960 if (plun->lun_num == lun_num) { 7576 uint16_t lun_num; local 7916 fcp_get_lun(struct fcp_tgt *ptgt, uint16_t lun_num) argument 10816 uint16_t lun_num; local 10902 uint16_t lun_num; local 11955 uint16_t lun_num; local [all...] |
/illumos-gate/usr/src/uts/common/io/scsi/adapters/mpt_sas/ |
H A D | mptsas.c | 14111 mptsas_retrieve_lundata(int lun_cnt, uint8_t *buf, uint16_t *lun_num, argument 14116 ASSERT(lun_num != NULL); 14138 *lun_num = (buf[lun_idx] & 0x3F) << 8; 14139 *lun_num |= buf[lun_idx + 1]; 14155 uint16_t lun_num = 0; local 14255 &lun_num, &lun_addr_type) != DDI_SUCCESS) { 14258 saved_repluns[lun_cnt] = lun_num; 14259 if (cdip = mptsas_find_child_addr(pdip, sas_wwn, lun_num)) 14262 ret = mptsas_probe_lun(pdip, lun_num, &cdip,
|