Lines Matching refs:fcio
437 fcio_t fcio; in FCHBAPort() local
478 memset((caddr_t)&fcio, 0, sizeof (fcio)); in FCHBAPort()
479 fcio.fcio_cmd = FCIO_GET_NPIV_PORT_LIST; in FCHBAPort()
480 fcio.fcio_xfer = FCIO_XFER_READ; in FCHBAPort()
486 fcio.fcio_olen = bufSize; in FCHBAPort()
487 fcio.fcio_obuf = (char *)pathList; in FCHBAPort()
488 fp_ioctl(getPath(), FCIO_CMD, &fcio); in FCHBAPort()
510 fcio_t fcio; in deleteNPIVPort() local
514 memset(&fcio, 0, sizeof(fcio)); in deleteNPIVPort()
518 fcio.fcio_cmd = FCIO_DELETE_NPIV_PORT; in deleteNPIVPort()
519 fcio.fcio_xfer = FCIO_XFER_WRITE; in deleteNPIVPort()
520 fcio.fcio_ilen = sizeof (la_wwn_t) * 2; in deleteNPIVPort()
521 fcio.fcio_ibuf = (caddr_t)&lawwn; in deleteNPIVPort()
523 fp_ioctl(getPath(), FCIO_CMD, &fcio); in deleteNPIVPort()
530 fcio_t fcio; in createNPIVPort() local
535 memset(&fcio, 0, sizeof(fcio)); in createNPIVPort()
542 fcio.fcio_cmd = FCIO_CREATE_NPIV_PORT; in createNPIVPort()
543 fcio.fcio_xfer = FCIO_XFER_READ; in createNPIVPort()
544 fcio.fcio_olen = sizeof (uint32_t); in createNPIVPort()
545 fcio.fcio_obuf = (caddr_t)&vportindex; in createNPIVPort()
546 fcio.fcio_ilen = sizeof (HBA_NPIVCREATEENTRY); in createNPIVPort()
547 fcio.fcio_ibuf = (caddr_t)&entrybuf; in createNPIVPort()
549 fp_ioctl(getPath(), FCIO_CMD, &fcio); in createNPIVPort()
559 fcio_t fcio; in getPortNPIVAttributes() local
561 memset(&fcio, 0, sizeof(fcio)); in getPortNPIVAttributes()
564 fcio.fcio_cmd = FCIO_GET_ADAPTER_PORT_NPIV_ATTRIBUTES; in getPortNPIVAttributes()
565 fcio.fcio_olen = sizeof(attrs); in getPortNPIVAttributes()
566 fcio.fcio_xfer = FCIO_XFER_READ; in getPortNPIVAttributes()
567 fcio.fcio_obuf = (caddr_t)&attrs; in getPortNPIVAttributes()
569 fp_ioctl(getPath(), FCIO_CMD, &fcio); in getPortNPIVAttributes()
585 fcio_t fcio; in getPortAttributes() local
588 memset(&fcio, 0, sizeof (fcio)); in getPortAttributes()
591 fcio.fcio_cmd = FCIO_GET_ADAPTER_PORT_ATTRIBUTES; in getPortAttributes()
592 fcio.fcio_olen = sizeof (attrs); in getPortAttributes()
593 fcio.fcio_xfer = FCIO_XFER_READ; in getPortAttributes()
594 fcio.fcio_obuf = (caddr_t)&attrs; in getPortAttributes()
596 fp_ioctl(getPath(), FCIO_CMD, &fcio); in getPortAttributes()
624 fcio_t fcio; in getDiscoveredAttributes() local
627 memset(&fcio, 0, sizeof (fcio)); in getDiscoveredAttributes()
630 fcio.fcio_cmd = FCIO_GET_DISCOVERED_PORT_ATTRIBUTES; in getDiscoveredAttributes()
631 fcio.fcio_olen = sizeof (attrs); in getDiscoveredAttributes()
632 fcio.fcio_xfer = FCIO_XFER_READ; in getDiscoveredAttributes()
633 fcio.fcio_obuf = (caddr_t)&attrs; in getDiscoveredAttributes()
634 fcio.fcio_ilen = sizeof (discoveredport); in getDiscoveredAttributes()
635 fcio.fcio_ibuf = (caddr_t)&discoveredport; in getDiscoveredAttributes()
637 fp_ioctl(getPath(), FCIO_CMD, &fcio); in getDiscoveredAttributes()
665 fcio_t fcio; in getDiscoveredAttributes() local
669 memset(&fcio, 0, sizeof (fcio)); in getDiscoveredAttributes()
675 fcio.fcio_cmd = FCIO_GET_PORT_ATTRIBUTES; in getDiscoveredAttributes()
676 fcio.fcio_olen = sizeof (attrs); in getDiscoveredAttributes()
677 fcio.fcio_xfer = FCIO_XFER_READ; in getDiscoveredAttributes()
678 fcio.fcio_obuf = (caddr_t)&attrs; in getDiscoveredAttributes()
679 fcio.fcio_ilen = sizeof (wwn); in getDiscoveredAttributes()
680 fcio.fcio_ibuf = (caddr_t)&lawwn; in getDiscoveredAttributes()
682 fp_ioctl(getPath(), FCIO_CMD, &fcio); in getDiscoveredAttributes()
859 fcio_t fcio; in getRNIDMgmtInfo() local
869 memset((caddr_t)&fcio, 0, sizeof (fcio)); in getRNIDMgmtInfo()
871 fcio.fcio_cmd = FCIO_GET_NODE_ID; in getRNIDMgmtInfo()
872 fcio.fcio_olen = sizeof (fc_rnid_t); in getRNIDMgmtInfo()
873 fcio.fcio_xfer = FCIO_XFER_READ; in getRNIDMgmtInfo()
874 fcio.fcio_obuf = (caddr_t)&rnid; in getRNIDMgmtInfo()
875 fp_ioctl(getPath(), FCIO_CMD, &fcio); in getRNIDMgmtInfo()
893 fcio_t fcio; in sendCTPassThru() local
912 memset(&fcio, 0, sizeof (fcio_t)); in sendCTPassThru()
913 fcio.fcio_cmd = FCSMIO_CT_CMD; in sendCTPassThru()
914 fcio.fcio_xfer = FCIO_XFER_RW; in sendCTPassThru()
916 fcio.fcio_ilen = requestSize; in sendCTPassThru()
917 fcio.fcio_ibuf = (char *)requestBuffer; in sendCTPassThru()
918 fcio.fcio_olen = *responseSize; in sendCTPassThru()
919 fcio.fcio_obuf = (char *)responseBuffer; in sendCTPassThru()
921 fcio.fcio_alen = sizeof (minor_t); in sendCTPassThru()
922 fcio.fcio_abuf = (char *)&minor_node; in sendCTPassThru()
926 fcsm_ioctl(FCSMIO_CMD, &fcio); in sendCTPassThru()
942 fcio_t fcio; in sendRLS() local
965 memset((caddr_t)&fcio, 0, sizeof (fcio)); in sendRLS()
966 fcio.fcio_cmd = FCIO_LINK_STATUS; in sendRLS()
967 fcio.fcio_ibuf = (caddr_t)&rls_req; in sendRLS()
968 fcio.fcio_ilen = sizeof (rls_req); in sendRLS()
969 fcio.fcio_xfer = FCIO_XFER_RW; in sendRLS()
970 fcio.fcio_flags = 0; in sendRLS()
971 fcio.fcio_cmd_flags = FCIO_CFLAGS_RLS_DEST_NPORT; in sendRLS()
972 fcio.fcio_obuf = (char *)new uchar_t[*pRspBufferSize]; in sendRLS()
973 fcio.fcio_olen = *pRspBufferSize; in sendRLS()
975 if (fcio.fcio_obuf == NULL) { in sendRLS()
980 fp_ioctl(getPath(), FCIO_CMD, &fcio); in sendRLS()
981 memcpy(pRspBuffer, fcio.fcio_obuf, *pRspBufferSize); in sendRLS()
982 if (fcio.fcio_obuf != NULL) { in sendRLS()
983 delete(fcio.fcio_obuf); in sendRLS()
1114 fcio_t fcio; in sendRNID() local
1161 memset((caddr_t)&fcio, 0, sizeof (fcio)); in sendRNID()
1163 fcio.fcio_cmd = FCIO_SEND_NODE_ID; in sendRNID()
1164 fcio.fcio_xfer = FCIO_XFER_READ; in sendRNID()
1165 fcio.fcio_cmd_flags = nodeIdDataFormat; in sendRNID()
1166 fcio.fcio_ilen = sizeof (la_wwn_t); in sendRNID()
1167 fcio.fcio_ibuf = (caddr_t)&netdestwwn; in sendRNID()
1168 fcio.fcio_olen = *RspBufferSize; in sendRNID()
1169 fcio.fcio_obuf = (char *)new uchar_t[*RspBufferSize]; in sendRNID()
1172 if (fcio.fcio_obuf == NULL) { in sendRNID()
1177 fp_ioctl(getPath(), FCIO_CMD, &fcio); in sendRNID()
1179 memcpy(pRspBuffer, fcio.fcio_obuf, *RspBufferSize); in sendRNID()
1181 if (fcio.fcio_obuf != NULL) { in sendRNID()
1182 delete(fcio.fcio_obuf); in sendRNID()
1189 fcio_t fcio; in setRNID() local
1192 memset((caddr_t)&fcio, 0, sizeof (fcio)); in setRNID()
1195 fcio.fcio_cmd = FCIO_SET_NODE_ID; in setRNID()
1196 fcio.fcio_ilen = sizeof (fc_rnid_t); in setRNID()
1197 fcio.fcio_xfer = FCIO_XFER_WRITE; in setRNID()
1198 fcio.fcio_ibuf = (caddr_t)&rnid; in setRNID()
1213 fp_ioctl(getPath(), FCIO_CMD, &fcio, O_NDELAY | O_RDONLY | O_EXCL); in setRNID()
1216 void FCHBAPort::fp_ioctl(string path, int cmd, fcio_t *fcio, int openflag) { in fp_ioctl() argument
1222 HBA::_ioctl(fd, cmd, (uchar_t *)fcio); in fp_ioctl()
1223 while (fcio->fcio_errno == FC_STATEC_BUSY) { in fp_ioctl()
1225 HBA::_ioctl(fd, cmd, (uchar_t *)fcio); in fp_ioctl()
1231 if (fcio->fcio_errno) { in fp_ioctl()
1236 transportError(fcio->fcio_errno, fcioErrorString); in fp_ioctl()
1239 switch (fcio->fcio_errno) { in fp_ioctl()
1259 void FCHBAPort::fp_ioctl(string path, int cmd, fcio_t *fcio) { in fp_ioctl() argument
1261 fp_ioctl(path, cmd, fcio, O_NDELAY | O_RDONLY); in fp_ioctl()
1264 void FCHBAPort::fcsm_ioctl(int cmd, fcio_t *fcio) { in fcsm_ioctl() argument
1266 fp_ioctl(FCSM_DRIVER_PATH, cmd, fcio); in fcsm_ioctl()