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

/freebsd-11-stable/usr.sbin/mpsutil/
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_show.c68 MPI2_IOC_FACTS_REPLY *facts; local
115 if ((facts = mps_get_iocfacts(fd)) == NULL) {
120 v = facts->FWVersion.Word;
125 (facts->IOCCapabilities & MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID)
127 free(facts);
204 MPI2_IOC_FACTS_REPLY *facts; local
214 if ((facts = mps_get_iocfacts(fd)) == NULL) {
220 printf(" MaxChainDepth: %d\n", facts->MaxChainDepth);
221 printf(" WhoInit: 0x%x\n", facts->WhoInit);
222 printf(" NumberOfPorts: %d\n", facts
253 MPI2_IOC_FACTS_REPLY *facts; local
[all...]
H A Dmps_cmd.c699 MPI2_IOC_FACTS_REPLY *facts; local
703 facts = malloc(sizeof(MPI2_IOC_FACTS_REPLY));
704 if (facts == NULL) {
714 facts, sizeof(MPI2_IOC_FACTS_REPLY), NULL, 0, NULL, 0, 10);
717 facts, sizeof(MPI2_IOC_FACTS_REPLY), NULL, 0, 0);
720 free(facts);
724 if (!IOC_STATUS_SUCCESS(facts->IOCStatus)) {
725 free(facts);
729 return (facts);
/freebsd-11-stable/sys/dev/mpr/
H A Dmpr_table.c222 mpr_print_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument
225 MPR_PRINTFIELD(sc, facts, MsgVersion, 0x%x);
226 MPR_PRINTFIELD(sc, facts, HeaderVersion, 0x%x);
227 MPR_PRINTFIELD(sc, facts, IOCNumber, %d);
228 MPR_PRINTFIELD(sc, facts, IOCExceptions, 0x%x);
229 MPR_PRINTFIELD(sc, facts, MaxChainDepth, %d);
231 mpr_describe_table(mpr_whoinit_names, facts->WhoInit));
232 MPR_PRINTFIELD(sc, facts, NumberOfPorts, %d);
233 MPR_PRINTFIELD(sc, facts, MaxMSIxVectors, %d);
234 MPR_PRINTFIELD(sc, facts, RequestCredi
262 mpr_print_portfacts(struct mpr_softc *sc, MPI2_PORT_FACTS_REPLY *facts) argument
[all...]
H A Dmpr.c103 static int mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts);
365 bcopy(sc->facts, &saved_facts, sizeof(MPI2_IOC_FACTS_REPLY));
373 if ((error = mpr_get_iocfacts(sc, sc->facts)) != 0) {
384 MPR_DPRINT_PAGE(sc, MPR_XINFO, iocfacts, sc->facts);
388 sc->facts->FWVersion.Struct.Major,
389 sc->facts->FWVersion.Struct.Minor,
390 sc->facts->FWVersion.Struct.Unit,
391 sc->facts->FWVersion.Struct.Dev);
395 mpr_printf(sc, "IOCCapabilities: %b\n", sc->facts->IOCCapabilities,
409 if ((sc->facts
1021 mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument
[all...]
H A Dmprvar.h330 MPI2_IOC_FACTS_REPLY *facts; member in struct:mpr_softc
670 #define MPR_PRINTFIELD(sc, facts, attr, fmt) \
671 mpr_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
H A Dmpr_mapping.c2570 sc->max_enclosures = sc->facts->MaxEnclosures + 1;
2571 sc->max_expanders = sc->facts->MaxSasExpanders;
2572 sc->max_volumes = sc->facts->MaxVolumes;
2573 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
H A Dmpr_user.c427 space = (int)cm->cm_sc->facts->IOCRequestFrameSize * 4;
667 if (cmd->req_len > (int)sc->facts->IOCRequestFrameSize * 4) {
803 if (data->RequestSize > (int)sc->facts->IOCRequestFrameSize * 4) {
1178 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
H A Dmpr_sas.c712 if (sc->facts->MsgVersion >= MPI2_VERSION_02_06) {
749 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
1052 cpi->maxio = (sges_per_frame * sc->facts->MaxChainDepth) + 1;
/freebsd-11-stable/sys/dev/mps/
H A Dmps_table.c199 mps_print_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument
203 MPS_PRINTFIELD(sc, facts, MsgVersion, 0x%x);
204 MPS_PRINTFIELD(sc, facts, HeaderVersion, 0x%x);
205 MPS_PRINTFIELD(sc, facts, IOCNumber, %d);
206 MPS_PRINTFIELD(sc, facts, IOCExceptions, 0x%x);
207 MPS_PRINTFIELD(sc, facts, MaxChainDepth, %d);
209 mps_describe_table(mps_whoinit_names, facts->WhoInit));
210 MPS_PRINTFIELD(sc, facts, NumberOfPorts, %d);
211 MPS_PRINTFIELD(sc, facts, MaxMSIxVectors, %d);
212 MPS_PRINTFIELD(sc, facts, RequestCredi
240 mps_print_portfacts(struct mps_softc *sc, MPI2_PORT_FACTS_REPLY *facts) argument
[all...]
H A Dmps.c100 static int mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts);
357 bcopy(sc->facts, &saved_facts, sizeof(MPI2_IOC_FACTS_REPLY));
365 if ((error = mps_get_iocfacts(sc, sc->facts)) != 0) {
376 MPS_DPRINT_PAGE(sc, MPS_XINFO, iocfacts, sc->facts);
380 sc->facts->FWVersion.Struct.Major,
381 sc->facts->FWVersion.Struct.Minor,
382 sc->facts->FWVersion.Struct.Unit,
383 sc->facts->FWVersion.Struct.Dev);
387 mps_printf(sc, "IOCCapabilities: %b\n", sc->facts->IOCCapabilities,
400 if ((sc->facts
997 mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument
[all...]
H A Dmpsvar.h316 MPI2_IOC_FACTS_REPLY *facts; member in struct:mps_softc
632 #define MPS_PRINTFIELD(sc, facts, attr, fmt) \
633 mps_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
H A Dmps_mapping.c2107 sc->max_enclosures = sc->facts->MaxEnclosures + 1;
2108 sc->max_expanders = sc->facts->MaxSasExpanders;
2109 sc->max_volumes = sc->facts->MaxVolumes;
2110 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
H A Dmps_user.c412 space = (int)cm->cm_sc->facts->IOCRequestFrameSize * 4;
680 if (cmd->req_len > (int)sc->facts->IOCRequestFrameSize * 4) {
813 if (data->RequestSize > (int)sc->facts->IOCRequestFrameSize * 4) {
1084 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
H A Dmps_sas.c736 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
991 sges_per_frame = ((sc->facts->IOCRequestFrameSize * 4) /
993 cpi->maxio = (sges_per_frame * sc->facts->MaxChainDepth) + 1;

Completed in 205 milliseconds