/freebsd-current/usr.sbin/mpsutil/ |
H A D | mps_flash.c | 126 MPI2_IOC_FACTS_REPLY *facts; local 180 if ((facts = mps_get_iocfacts(fd)) == NULL) { 193 free(facts); 200 free(facts); 212 free(facts); 216 if (le16toh(fwheader->ProductID) != facts->ProductID) { 218 warnx(" Expected Product ID: %04x", facts->ProductID); 222 free(facts); 232 free(facts); 238 free(facts); [all...] |
H A D | mps_cmd.c | 242 static void adjust_iocfacts_endianness(MPI2_IOC_FACTS_REPLY *facts); 730 MPI2_IOC_FACTS_REPLY *facts = (MPI2_IOC_FACTS_REPLY*)factsbuf; local 742 return (facts->MsgLength * 4); 748 MPI2_IOC_FACTS_REPLY *facts; local 757 facts = malloc(factslen); 758 if (facts == NULL) { 768 facts, factslen, NULL, 0, NULL, 0, 10); 771 facts, factslen, NULL, 0, 0); 774 free(facts); 778 if (!IOC_STATUS_SUCCESS(facts 788 adjust_iocfacts_endianness(MPI2_IOC_FACTS_REPLY *facts) argument [all...] |
H A D | mps_show.c | 70 MPI2_IOC_FACTS_REPLY *facts; local 117 if ((facts = mps_get_iocfacts(fd)) == NULL) { 122 v = facts->FWVersion.Word; 127 (facts->IOCCapabilities & MPI2_IOCFACTS_CAPABILITY_INTEGRATED_RAID) 129 free(facts); 235 MPI2_IOC_FACTS_REPLY *facts; local 247 if ((facts = mps_get_iocfacts(fd)) == NULL) { 253 fb = (uint8_t *)facts; 261 mps_parse_flags(facts->IOCCapabilities, IOCCAP, tmpbuf, sizeof(tmpbuf)); 264 facts 320 MPI2_IOC_FACTS_REPLY *facts; local [all...] |
/freebsd-current/sys/dev/mpr/ |
H A D | mpr_table.c | 271 mpr_print_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument 274 MPR_PRINTFIELD(sc, facts, MsgVersion, 0x%x); 275 MPR_PRINTFIELD(sc, facts, HeaderVersion, 0x%x); 276 MPR_PRINTFIELD(sc, facts, IOCNumber, %d); 277 MPR_PRINTFIELD(sc, facts, IOCExceptions, 0x%x); 278 MPR_PRINTFIELD(sc, facts, MaxChainDepth, %d); 280 mpr_describe_table(mpr_whoinit_names, facts->WhoInit)); 281 MPR_PRINTFIELD(sc, facts, NumberOfPorts, %d); 282 MPR_PRINTFIELD(sc, facts, MaxMSIxVectors, %d); 283 MPR_PRINTFIELD(sc, facts, RequestCredi 311 mpr_print_portfacts(struct mpr_softc *sc, MPI2_PORT_FACTS_REPLY *facts) argument [all...] |
H A D | mpr.c | 107 static int mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts); 112 static void adjust_iocfacts_endianness(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; 414 if (sc->facts->MsgVersion >= MPI2_VERSION_02_05) { 415 chain_seg_size = sc->facts->IOCMaxChainSegmentSize; 434 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; 458 if (sc->facts 1166 adjust_iocfacts_endianness(MPI2_IOC_FACTS_REPLY *facts) argument 1194 mpr_get_iocfacts(struct mpr_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument [all...] |
H A D | mprvar.h | 399 MPI2_IOC_FACTS_REPLY *facts; member in struct:mpr_softc 771 #define MPR_PRINTFIELD(sc, facts, attr, fmt) \ 772 mpr_print_field((sc), #attr ": " #fmt "\n", (facts)->attr) 773 #define MPR_PRINTFIELD_16(sc, facts, attr, fmt) \ 774 mpr_print_field((sc), #attr ": " #fmt "\n", le16toh((facts)->attr)) 775 #define MPR_PRINTFIELD_32(sc, facts, attr, fmt) \ 776 mpr_print_field((sc), #attr ": " #fmt "\n", le32toh((facts)->attr))
|
H A D | mpr_mapping.c | 2571 sc->max_enclosures = sc->facts->MaxEnclosures + 1; 2572 sc->max_expanders = sc->facts->MaxSasExpanders; 2573 sc->max_volumes = sc->facts->MaxVolumes; 2574 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
|
H A D | mpr_sas.c | 733 if (sc->facts->MsgVersion >= MPI2_VERSION_02_06) { 766 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
|
H A D | mpr_user.c | 1189 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
|
/freebsd-current/sys/dev/mps/ |
H A D | mps_table.c | 250 mps_print_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument 254 MPS_PRINTFIELD(sc, facts, MsgVersion, 0x%x); 255 MPS_PRINTFIELD(sc, facts, HeaderVersion, 0x%x); 256 MPS_PRINTFIELD(sc, facts, IOCNumber, %d); 257 MPS_PRINTFIELD(sc, facts, IOCExceptions, 0x%x); 258 MPS_PRINTFIELD(sc, facts, MaxChainDepth, %d); 260 mps_describe_table(mps_whoinit_names, facts->WhoInit)); 261 MPS_PRINTFIELD(sc, facts, NumberOfPorts, %d); 262 MPS_PRINTFIELD(sc, facts, MaxMSIxVectors, %d); 263 MPS_PRINTFIELD(sc, facts, RequestCredi 291 mps_print_portfacts(struct mps_softc *sc, MPI2_PORT_FACTS_REPLY *facts) argument [all...] |
H A D | mps.c | 103 static int mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts); 390 prireqcr = MIN(prireqcr, sc->facts->HighPriorityCredit); 393 reqcr = MIN(reqcr, sc->facts->RequestCredit); 398 sc->facts->MaxReplyDescriptorPostQueueDepth) - 1; 401 sc->reqframesz = sc->facts->IOCRequestFrameSize * 4; 413 maxio = (sges_per_frame * sc->facts->MaxChainDepth + 1) * PAGE_SIZE; 437 if (sc->facts->MaxMSIxVectors < 2) 442 sc->msi_msgs = MIN(sc->msi_msgs, sc->facts->MaxMSIxVectors); 470 bcopy(sc->facts, &saved_facts, sizeof(MPI2_IOC_FACTS_REPLY)); 478 if ((error = mps_get_iocfacts(sc, sc->facts)) ! 1126 mps_get_iocfacts(struct mps_softc *sc, MPI2_IOC_FACTS_REPLY *facts) argument [all...] |
H A D | mpsvar.h | 355 MPI2_IOC_FACTS_REPLY *facts; member in struct:mps_softc 691 #define MPS_PRINTFIELD(sc, facts, attr, fmt) \ 692 mps_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
|
H A D | mps_mapping.c | 2102 sc->max_enclosures = sc->facts->MaxEnclosures + 1; 2103 sc->max_expanders = sc->facts->MaxSasExpanders; 2104 sc->max_volumes = sc->facts->MaxVolumes; 2105 sc->max_devices = sc->facts->MaxTargets + sc->max_volumes;
|
H A D | mps_sas.c | 714 sassc->maxtargets = sc->facts->MaxTargets + sc->facts->MaxVolumes;
|
H A D | mps_user.c | 1080 data->MpiFirmwareVersion = sc->facts->FWVersion.Word;
|
/freebsd-current/sys/dev/mpi3mr/ |
H A D | mpi3mr.c | 399 U16 req_sz = sc->facts.op_req_sz; 743 op_req_q->qsz = op_req_q->num_reqs * sc->facts.op_req_sz; 871 num_queues = min(sc->facts.max_op_reply_q, 872 sc->facts.max_op_req_q); 1293 { MPI3MR_RESET_FROM_IOCFACTS_TIMEOUT, "IOC facts timeout" }, 1419 * @facts_data: Cached IOC facts data 1553 * mpi3mr_process_factsdata - Process IOC facts data 1555 * @facts_data: Cached IOC facts data 1557 * Convert IOC facts data into cpu endianness and cache it in 1587 memset(&sc->facts, [all...] |
H A D | mpi3mr_app.c | 188 U64 sgemod_mask = ((U64)((sc->facts.sge_mod_mask) << 189 sc->facts.sge_mod_shift) << 32); 190 U64 sgemod_val = ((U64)(sc->facts.sge_mod_value) << 191 sc->facts.sge_mod_shift) << 32; 274 U64 sgemod_mask = ((U64)((sc->facts.sge_mod_mask) << 275 sc->facts.sge_mod_shift) << 32); 276 U64 sgemod_val = ((U64)(sc->facts.sge_mod_value) << 277 sc->facts.sge_mod_shift) << 32;
|
H A D | mpi3mr_pci.c | 597 num_queues = min(sc->facts.max_op_reply_q, sc->facts.max_op_req_q);
|
H A D | mpi3mr.h | 656 struct mpi3mr_ioc_facts facts; member in struct:mpi3mr_softc 817 #define MPI3MR_PRINTFIELD(sc, facts, attr, fmt) \ 818 mpi3mr_print_field((sc), #attr ": " #fmt "\n", (facts)->attr)
|
H A D | mpi3mr_cam.c | 164 sges_in_segment = (sc->facts.op_req_sz - 2073 cam_sc->maxtargets = sc->facts.max_perids + 1;
|