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

/freebsd-13-stable/usr.sbin/mpsutil/
H A Dmps_flash.c128 MPI2_IOC_FACTS_REPLY *facts; local
182 if ((facts = mps_get_iocfacts(fd)) == NULL) {
195 free(facts);
202 free(facts);
214 free(facts);
218 if (le16toh(fwheader->ProductID) != facts->ProductID) {
220 warnx(" Expected Product ID: %04x", facts->ProductID);
224 free(facts);
234 free(facts);
240 free(facts);
[all...]
H A Dmps_show.c74 MPI2_IOC_FACTS_REPLY *facts; local
121 if ((facts = mps_get_iocfacts(fd)) == NULL) {
126 v = facts->FWVersion.Word;
131 (facts->IOCCapabilities & MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID)
133 free(facts);
238 MPI2_IOC_FACTS_REPLY *facts; local
250 if ((facts = mps_get_iocfacts(fd)) == NULL) {
256 fb = (uint8_t *)facts;
264 mps_parse_flags(facts->IOCCapabilities, IOCCAP, tmpbuf, sizeof(tmpbuf));
267 facts
323 MPI2_IOC_FACTS_REPLY *facts; local
[all...]
H A Dmps_cmd.c245 static void adjust_iocfacts_endianness(MPI2_IOC_FACTS_REPLY *facts);
729 MPI2_IOC_FACTS_REPLY *facts; local
746 facts = malloc(factslen);
747 if (facts == NULL) {
757 facts, factslen, NULL, 0, NULL, 0, 10);
760 facts, factslen, NULL, 0, 0);
763 free(facts);
767 if (!IOC_STATUS_SUCCESS(facts->IOCStatus)) {
768 free(facts);
772 adjust_iocfacts_endianness(facts);
777 adjust_iocfacts_endianness(MPI2_IOC_FACTS_REPLY *facts) argument
[all...]
/freebsd-13-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);
114 static void adjust_iocfacts_endianness(MPI2_IOC_FACTS_REPLY *facts);
395 prireqcr = MIN(prireqcr, sc->facts->HighPriorityCredit);
398 reqcr = MIN(reqcr, sc->facts->RequestCredit);
403 sc->facts->MaxReplyDescriptorPostQueueDepth) - 1;
406 sc->reqframesz = sc->facts->IOCRequestFrameSize * 4;
416 if (sc->facts->MsgVersion >= MPI2_VERSION_02_05) {
417 chain_seg_size = sc->facts->IOCMaxChainSegmentSize;
436 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE;
460 if (sc->facts
1167 adjust_iocfacts_endianness(MPI2_IOC_FACTS_REPLY *facts) argument
1195 mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument
[all...]
H A Dmprvar.h400 MPI2_IOC_FACTS_REPLY *facts; member in struct:mpr_softc
765 #define MPR_PRINTFIELD(sc, facts, attr, fmt) \
766 mpr_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
767 #define MPR_PRINTFIELD_16(sc, facts, attr, fmt) \
768 mpr_print_field((sc), #attr ": " #fmt "\n", le16toh((facts)->attr))
769 #define MPR_PRINTFIELD_32(sc, facts, attr, fmt) \
770 mpr_print_field((sc), #attr ": " #fmt "\n", le32toh((facts)->attr))
H A Dmpr_mapping.c2573 sc->max_enclosures = sc->facts->MaxEnclosures + 1;
2574 sc->max_expanders = sc->facts->MaxSasExpanders;
2575 sc->max_volumes = sc->facts->MaxVolumes;
2576 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
H A Dmpr_sas.c711 if (sc->facts->MsgVersion >= MPI2_VERSION_02_06) {
744 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
H A Dmpr_user.c1179 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
/freebsd-13-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);
394 prireqcr = MIN(prireqcr, sc->facts->HighPriorityCredit);
397 reqcr = MIN(reqcr, sc->facts->RequestCredit);
402 sc->facts->MaxReplyDescriptorPostQueueDepth) - 1;
405 sc->reqframesz = sc->facts->IOCRequestFrameSize * 4;
417 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE;
441 if (sc->facts->MaxMSIxVectors < 2)
446 sc->msi_msgs = MIN(sc->msi_msgs, sc->facts->MaxMSIxVectors);
474 bcopy(sc->facts, &saved_facts, sizeof(MPI2_IOC_FACTS_REPLY));
482 if ((error = mps_get_iocfacts(sc, sc->facts)) !
1129 mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument
[all...]
H A Dmpsvar.h356 MPI2_IOC_FACTS_REPLY *facts; member in struct:mps_softc
692 #define MPS_PRINTFIELD(sc, facts, attr, fmt) \
693 mps_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
H A Dmps_mapping.c2104 sc->max_enclosures = sc->facts->MaxEnclosures + 1;
2105 sc->max_expanders = sc->facts->MaxSasExpanders;
2106 sc->max_volumes = sc->facts->MaxVolumes;
2107 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
H A Dmps_sas.c726 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
H A Dmps_user.c1084 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;

Completed in 120 milliseconds