/freebsd-12-stable/usr.sbin/mpsutil/ |
H A D | mps_show.c | 73 MPI2_IOC_FACTS_REPLY *facts; local 120 if ((facts = mps_get_iocfacts(fd)) == NULL) { 125 v = facts->FWVersion.Word; 130 (facts->IOCCapabilities & MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID) 132 free(facts); 237 MPI2_IOC_FACTS_REPLY *facts; local 248 if ((facts = mps_get_iocfacts(fd)) == NULL) { 260 mps_parse_flags(facts->IOCCapabilities, IOCCAP, tmpbuf, sizeof(tmpbuf)); 263 facts->MsgVersion >> 8, facts 313 MPI2_IOC_FACTS_REPLY *facts; local [all...] |
H A D | mps_flash.c | 127 MPI2_IOC_FACTS_REPLY *facts; local 181 if ((facts = mps_get_iocfacts(fd)) == NULL) { 194 free(facts); 201 free(facts); 213 free(facts); 217 if (fwheader->ProductID != facts->ProductID) { 219 warnx(" Expected Product ID: %04x", facts->ProductID); 223 free(facts); 233 free(facts); 239 free(facts); [all...] |
H A D | mps_cmd.c | 725 MPI2_IOC_FACTS_REPLY *facts; local 729 facts = malloc(sizeof(MPI2_IOC_FACTS_REPLY)); 730 if (facts == NULL) { 740 facts, sizeof(MPI2_IOC_FACTS_REPLY), NULL, 0, NULL, 0, 10); 743 facts, sizeof(MPI2_IOC_FACTS_REPLY), NULL, 0, 0); 746 free(facts); 750 if (!IOC_STATUS_SUCCESS(facts->IOCStatus)) { 751 free(facts); 755 return (facts);
|
/freebsd-12-stable/sys/dev/mpr/ |
H A D | mpr_table.c | 273 mpr_print_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument 276 MPR_PRINTFIELD(sc, facts, MsgVersion, 0x%x); 277 MPR_PRINTFIELD(sc, facts, HeaderVersion, 0x%x); 278 MPR_PRINTFIELD(sc, facts, IOCNumber, %d); 279 MPR_PRINTFIELD(sc, facts, IOCExceptions, 0x%x); 280 MPR_PRINTFIELD(sc, facts, MaxChainDepth, %d); 282 mpr_describe_table(mpr_whoinit_names, facts->WhoInit)); 283 MPR_PRINTFIELD(sc, facts, NumberOfPorts, %d); 284 MPR_PRINTFIELD(sc, facts, MaxMSIxVectors, %d); 285 MPR_PRINTFIELD(sc, facts, RequestCredi 313 mpr_print_portfacts(struct mpr_softc *sc, MPI2_PORT_FACTS_REPLY *facts) argument [all...] |
H A D | mpr.c | 109 static int mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts); 397 prireqcr = MIN(prireqcr, sc->facts->HighPriorityCredit); 400 reqcr = MIN(reqcr, sc->facts->RequestCredit); 405 sc->facts->MaxReplyDescriptorPostQueueDepth) - 1; 408 sc->reqframesz = sc->facts->IOCRequestFrameSize * 4; 418 if (sc->facts->MsgVersion >= MPI2_VERSION_02_05) { 419 chain_seg_size = htole16(sc->facts->IOCMaxChainSegmentSize); 438 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; 462 if (sc->facts->MaxMSIxVectors < 2) 467 sc->msi_msgs = MIN(sc->msi_msgs, sc->facts 1160 mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument [all...] |
H A D | mprvar.h | 396 MPI2_IOC_FACTS_REPLY *facts; member in struct:mpr_softc 761 #define MPR_PRINTFIELD(sc, facts, attr, fmt) \ 762 mpr_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
|
H A D | mpr_mapping.c | 2568 sc->max_enclosures = sc->facts->MaxEnclosures + 1; 2569 sc->max_expanders = sc->facts->MaxSasExpanders; 2570 sc->max_volumes = sc->facts->MaxVolumes; 2571 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
|
H A D | mpr_sas.c | 731 if (sc->facts->MsgVersion >= MPI2_VERSION_02_06) { 764 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
|
H A D | mpr_user.c | 1179 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
|
/freebsd-12-stable/sys/dev/mps/ |
H A D | mps_table.c | 252 mps_print_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument 256 MPS_PRINTFIELD(sc, facts, MsgVersion, 0x%x); 257 MPS_PRINTFIELD(sc, facts, HeaderVersion, 0x%x); 258 MPS_PRINTFIELD(sc, facts, IOCNumber, %d); 259 MPS_PRINTFIELD(sc, facts, IOCExceptions, 0x%x); 260 MPS_PRINTFIELD(sc, facts, MaxChainDepth, %d); 262 mps_describe_table(mps_whoinit_names, facts->WhoInit)); 263 MPS_PRINTFIELD(sc, facts, NumberOfPorts, %d); 264 MPS_PRINTFIELD(sc, facts, MaxMSIxVectors, %d); 265 MPS_PRINTFIELD(sc, facts, RequestCredi 293 mps_print_portfacts(struct mps_softc *sc, MPI2_PORT_FACTS_REPLY *facts) argument [all...] |
H A D | mps.c | 107 static int mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts); 393 prireqcr = MIN(prireqcr, sc->facts->HighPriorityCredit); 396 reqcr = MIN(reqcr, sc->facts->RequestCredit); 401 sc->facts->MaxReplyDescriptorPostQueueDepth) - 1; 404 sc->reqframesz = sc->facts->IOCRequestFrameSize * 4; 416 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; 440 if (sc->facts->MaxMSIxVectors < 2) 445 sc->msi_msgs = MIN(sc->msi_msgs, sc->facts->MaxMSIxVectors); 473 bcopy(sc->facts, &saved_facts, sizeof(MPI2_IOC_FACTS_REPLY)); 481 if ((error = mps_get_iocfacts(sc, sc->facts)) ! 1122 mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument [all...] |
H A D | mpsvar.h | 352 MPI2_IOC_FACTS_REPLY *facts; member in struct:mps_softc 688 #define MPS_PRINTFIELD(sc, facts, attr, fmt) \ 689 mps_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
|
H A D | mps_mapping.c | 2106 sc->max_enclosures = sc->facts->MaxEnclosures + 1; 2107 sc->max_expanders = sc->facts->MaxSasExpanders; 2108 sc->max_volumes = sc->facts->MaxVolumes; 2109 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
|
H A D | mps_sas.c | 747 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
|
H A D | mps_user.c | 1084 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
|