Searched refs:facts (Results 1 - 15 of 15) sorted by relevance

/freebsd-12-stable/usr.sbin/mpsutil/
H A Dmps_show.c73 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 Dmps_flash.c127 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 Dmps_cmd.c725 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 Dmpr_table.c273 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 Dmpr.c109 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 Dmprvar.h396 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 Dmpr_mapping.c2568 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 Dmpr_sas.c731 if (sc->facts->MsgVersion >= MPI2_VERSION_02_06) {
764 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
H A Dmpr_user.c1179 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
/freebsd-12-stable/sys/dev/mps/
H A Dmps_table.c252 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 Dmps.c107 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 Dmpsvar.h352 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 Dmps_mapping.c2106 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 Dmps_sas.c747 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
H A Dmps_user.c1084 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;

Completed in 140 milliseconds