Searched defs:lun (Results 1 - 25 of 83) sorted by relevance

1234

/illumos-gate/usr/src/lib/sun_fc/common/
H A DIOError.cc89 * @param lun The unit number which failed
91 IOError::IOError(HBAPort *port, uint64_t target, uint64_t lun) : argument
93 Trace log("IOError::IOError(HBAPort, wwn, lun)");
95 "On HBA port %016llx target %016llx lun %016llx (%s)",
98 lun, strerror(errno));
/illumos-gate/usr/src/lib/libinetutil/common/
H A Difspec.c46 getlun(const char *bp, int bpsize, uint_t *lun) argument
68 *lun = atoi(sp);
125 * dev[ppa][:lun]
127 * lun - logical unit number.
/illumos-gate/usr/src/uts/intel/io/dktp/hba/ghd/
H A Dghd_waitq.c45 uchar_t lun)
63 gtgtp->gt_lun = lun;
92 if (gdevp->gd_target == target && gdevp->gd_lun == lun) {
94 " gtgtp 0x%p max %lu\n", target, lun,
111 gdevp->gd_lun = lun;
120 " max %lu\n", target, lun, (void *)gdevp, (void *)gtgtp,
39 ghd_target_init(dev_info_t *hba_dip, dev_info_t *tgt_dip, ccc_t *cccp, size_t tgt_private_size, void *hba_private, ushort_t target, uchar_t lun) argument
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_scsi.c56 ushort_t controller, ushort_t sid, ushort_t lun);
416 int sid, lun; local
431 sid = lun = -1;
433 scsi_find_sid_lun(sa, devname, &sid, &lun);
434 if (ndmp_open_list_find(devname, sid, lun) == NULL &&
450 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) {
473 session->ns_scsi.sd_lun = lun;
494 * lun (input) - LUN number.
503 ushort_t controller, ushort_t sid, ushort_t lun)
514 lun)) {
502 common_set_target(ndmp_connection_t *connection, char *device, ushort_t controller, ushort_t sid, ushort_t lun) argument
576 scsi_find_sid_lun(scsi_adapter_t *sa, char *devname, int *sid, int *lun) argument
[all...]
H A Dndmpd_tape.c115 int sid, lun; local
137 sid = lun = -1;
141 scsi_find_sid_lun(sa, request->device.name, &sid, &lun);
142 if (ndmp_open_list_find(request->device.name, sid, lun) == 0 &&
161 switch (ndmp_open_list_add(connection, adptnm, sid, lun, devid)) {
187 (void) ndmp_open_list_del(adptnm, sid, lun);
212 (void) ndmp_open_list_del(adptnm, sid, lun);
219 session->ns_tape.td_lun = lun;
1208 int sid, lun; local
1224 sid = lun
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/fruaccess/
H A Dpiclsdr.c65 uint8_t lun; member in struct:__anon1226
73 static int get_sdr_info(int, int, uint8_t lun);
96 for (i = 0; i < NUM_OF_LUN; i++) { /* for each lun */
156 get_sdr_info(int src, int dest, uint8_t lun) argument
161 if (lun >= NUM_OF_LUN) {
179 SMC_NETFN_SENSOR_REQ, lun);
193 * if ((res_pkt.data[IPMI_DATA_OFFSET + 2] & lun_mask[lun]) != 1) {
201 get_sun_sdr(int num_records, uint8_t src, uint8_t dest, uint8_t lun) argument
211 sdr.lun = lun;
[all...]
/illumos-gate/usr/src/cmd/devfsadm/
H A Dsgen_link.c82 scsi_lun_t lun; local
88 /* Get lun property */
98 lun = scsi_lun64_to_lun(lun64);
100 addr_method = (lun.sl_lun1_msb & SCSI_LUN_AM_MASK);
104 (lun.sl_lun2_msb == 0) && (lun.sl_lun2_lsb == 0) &&
105 (lun.sl_lun3_msb == 0) && (lun.sl_lun3_lsb == 0) &&
106 (lun.sl_lun4_msb == 0) && (lun
144 int lun, *lunp, count; local
161 uint_t targ, lun; local
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/fcp/
H A Dfcp.c39 static struct fcp_lun lun; variable in typeref:struct:fcp_lun
199 if (mdb_vread(&lun, sizeof (struct fcp_lun), wsp->walk_addr) !=
205 wsp->walk_addr = (uintptr_t)(lun.lun_pkt_head);
543 { "cmds", "Walk list of SCSI commands in fcp's per-lun queue",
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_bay.c74 int lun; local
87 /* 'lun' property */
88 lun = pi_get_lun(mod, dnode);
89 if (lun < 0 || lun > PI_MAX_LUN) {
90 topo_mod_dprintf(mod, "pi_bay_ocpath: failed to get 'lun' "
101 * 'devfs_path' + "/disk@w" + 'target-port' + "," + 'lun'
104 (got_w ? "/disk@" : "/disk@w"), tgt_port, lun);
H A Dpi_subr.c490 * Return the "lun" property.
495 int lun; local
506 if (strcmp("lun",
509 bcopy(buf, &lun, sizeof (int));
519 if (strncmp("lun", di_prop_name(di_prop),
524 bcopy(chbuf, &lun, sizeof (uint_t));
534 topo_mod_dprintf(mod, "pi_get_lun: lun = (%d)\n", lun);
535 return (lun);
/illumos-gate/usr/src/uts/common/io/aac/
H A Daac_ioctl.h99 int32_t lun; member in struct:aac_query_disk
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_transport.c116 uint32_t lun = SD2LUN(sd); local
137 if ((tid >= CPQARY3_MAX_TGT) || (lun != 0)) {
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlc/
H A Dql_iocb.c905 * lun: device LUN
915 ql_marker(ql_adapter_state_t *ha, uint16_t loop_id, uint16_t lun, argument
934 pkt24->fcp_lun[2] = LSB(lun);
935 pkt24->fcp_lun[3] = MSB(lun);
946 pkt->lun_l = LSB(lun);
947 pkt->lun_h = MSB(lun);
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pmcs/
H A Dpmcs_ds.c752 pmcs_lun_t *lun = sp->cmd_lun; local
774 lun->lun_num, &status);
793 lun->lun_num, &status))
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Ddisks_private.h56 int lun; member in struct:alias_info
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/
H A Dcfga_cvt.c38 static fpcfga_ret_t update_lunlist(struct luninfo_list **lunlistpp, int lun,
377 /* is property name lun-wwn */
500 int lun,
515 newlun->lunnum = lun;
520 /* if lunlist is empty add the new lun info and return. */
526 /* if the first lun in the list is the same as the new lun return. */
527 if ((*lunlistpp)->lunnum == lun) {
533 * if the first lun in the list is less than the new lun ad
498 update_lunlist( struct luninfo_list **lunlistpp, int lun, uint_t state, char *pathp, int *l_errnop) argument
[all...]
H A Dcfga_cs.c371 * With MPXIO there will be only one entry per lun
608 * xport addr and the target addr with current lun
690 uint64_t lun = 0; local
736 * send the SCSI Inquiry call to lun 0
743 lun = 0;
779 * issue the inquiry to the first valid lun found
783 memcpy(&lun, lun_string, sizeof (lun));
787 *(HBA_WWN *)(pwwn), lun, 0, 0, &inq, &inquirySize,
791 * peripheral qualifier for the lun
[all...]
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/lib/libctsmc/
H A Dlibctsmc.c88 uint8_t netfn_lun; /* netfn and lun */
315 int ipmb_addr, smc_netfn_t netfn, smc_lun_t lun)
340 ipmi_header.netfn_lun = data[1] = (netfn << 2) | lun;
313 smc_init_ipmi_msg(sc_reqmsg_t *req_msg, uint8_t cmd, uint8_t msg_id, uint8_t msg_data_size, uint8_t *msg_data_buf, int8_t seq_num, int ipmb_addr, smc_netfn_t netfn, smc_lun_t lun) argument
/illumos-gate/usr/src/uts/common/io/1394/targets/scsa1394/
H A Dsbp2_driver.c302 scsa1394_sbp2_login(scsa1394_state_t *sp, int lun) argument
304 scsa1394_lun_t *lp = &sp->s_lun[lun];
316 scsa1394_sbp2_logout(scsa1394_state_t *sp, int lun, boolean_t phys) argument
318 scsa1394_lun_t *lp = &sp->s_lun[lun];
327 scsa1394_sbp2_req(scsa1394_state_t *sp, int lun, int req) argument
329 scsa1394_lun_t *lp = &sp->s_lun[lun];
/illumos-gate/usr/src/uts/common/sys/scsi/generic/
H A Dsas.h115 uint8_t lun[8]; member in struct:__anon8968
/illumos-gate/usr/src/uts/common/sys/
H A Dipmi.h129 unsigned char lun; member in struct:ipmi_system_interface_addr
136 unsigned char lun; member in struct:ipmi_ipmb_addr
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dbiosdisk.h38 unsigned char lun; /* for ATAPI only */ member in struct:device_path::__anon9408
53 uint64_t lun; member in struct:device_path::__anon9412
/illumos-gate/usr/src/common/devid/
H A Ddevid_scsi.c697 * descriptors associated with each lun. Some we care about and some
717 * don't represent unique identifiers for a lun. We also
1407 scsi_lun_to_lun64(scsi_lun_t lun) argument
1412 * Check to see if we have a single level lun that uses the
1416 if (((lun.sl_lun2_msb == 0) && (lun.sl_lun2_lsb == 0) &&
1417 (lun.sl_lun3_msb == 0) && (lun.sl_lun3_lsb == 0) &&
1418 (lun.sl_lun4_msb == 0) && (lun
1447 scsi_lun_t lun; local
[all...]
/illumos-gate/usr/src/cmd/fcinfo/
H A Dfcinfo-list.c30 struct lun { struct
43 struct lun lun[1]; member in struct:rep_luns_rsp
212 * This function handles the remoteport object. It will issue a report lun
219 * remotePortWWN - the port WWN we will be issuing the report lun call to
240 /* going to issue a report lun to check if this is a scsi-target */
540 fcLUN = ntohll(wwnConversion(lun_resp->lun[lunCount].val));
573 lun_string = lun_resp->lun[lunCount].val;
580 lun_string = lun_resp->lun[lunCount].val;
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_event.c1262 uint32_t lun, uint32_t opcode, uint32_t fcp_param)
1290 bp->sd_fcprdchkerr_lun = lun;
1303 HBA_WWN *remoteport, int32_t lun)
1331 bp->sd_scsi_generic_lun = lun;
1342 uint32_t lun, uint32_t cmdcode, uint32_t sensekey,
1371 bp->sd_scsi_checkcond_lun = lun;
1261 emlxs_log_sd_fc_rdchk_event(emlxs_port_t *port, HBA_WWN *remoteport, uint32_t lun, uint32_t opcode, uint32_t fcp_param) argument
1302 emlxs_log_sd_scsi_event(emlxs_port_t *port, uint32_t type, HBA_WWN *remoteport, int32_t lun) argument
1341 emlxs_log_sd_scsi_check_event(emlxs_port_t *port, HBA_WWN *remoteport, uint32_t lun, uint32_t cmdcode, uint32_t sensekey, uint32_t asc, uint32_t ascq) argument

Completed in 117 milliseconds

1234