Lines Matching refs:mpi_request
101 Mpi2ConfigRequest_t *mpi_request; in _config_display_some_debug() local
107 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _config_display_some_debug()
108 switch (mpi_request->Header.PageType & MPI2_CONFIG_PAGETYPE_MASK) { in _config_display_some_debug()
128 switch (mpi_request->ExtPageType) { in _config_display_some_debug()
180 mpi_request->Header.PageNumber, mpi_request->Action, in _config_display_some_debug()
181 le32_to_cpu(mpi_request->PageAddress), smid); in _config_display_some_debug()
299 *mpi_request, Mpi2ConfigReply_t *mpi_reply, int timeout, in _config_request()
319 mpi_request->VF_ID = 0; /* TODO */ in _config_request()
320 mpi_request->VP_ID = 0; in _config_request()
323 mpi_request->Header.PageVersion = mpi_reply->Header.PageVersion; in _config_request()
324 mpi_request->Header.PageNumber = mpi_reply->Header.PageNumber; in _config_request()
325 mpi_request->Header.PageType = mpi_reply->Header.PageType; in _config_request()
326 mpi_request->Header.PageLength = mpi_reply->Header.PageLength; in _config_request()
327 mpi_request->ExtPageLength = mpi_reply->ExtPageLength; in _config_request()
328 mpi_request->ExtPageType = mpi_reply->ExtPageType; in _config_request()
329 if (mpi_request->Header.PageLength) in _config_request()
330 mem.sz = mpi_request->Header.PageLength * 4; in _config_request()
336 if (mpi_request->Action == in _config_request()
338 mpi_request->Action == in _config_request()
340 ioc->base_add_sg_single(&mpi_request->PageBufferSGE, in _config_request()
347 ioc->base_add_sg_single(&mpi_request->PageBufferSGE, in _config_request()
380 memcpy(config_request, mpi_request, sizeof(Mpi2ConfigRequest_t)); in _config_request()
387 ioc->config_cmds.status, mpi_request, in _config_request()
405 if ((mpi_request->Header.PageType & 0xF) != in _config_request()
407 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
411 mpi_request->Header.PageType & 0xF, in _config_request()
415 if (((mpi_request->Header.PageType & 0xF) == in _config_request()
417 mpi_request->ExtPageType != mpi_reply->ExtPageType) { in _config_request()
418 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
422 mpi_request->ExtPageType, in _config_request()
434 config_page && mpi_request->Action == in _config_request()
440 if ((mpi_request->Header.PageType & 0xF) != in _config_request()
442 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
448 mpi_request->Header.PageType & 0xF, in _config_request()
452 if (((mpi_request->Header.PageType & 0xF) == in _config_request()
454 (mpi_request->ExtPageType != p[6])) { in _config_request()
455 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
461 mpi_request->ExtPageType, p[6]); in _config_request()
493 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg0() local
496 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg0()
497 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg0()
498 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg0()
499 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg0()
500 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_manufacturing_pg0()
501 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg0()
502 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg0()
503 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg0()
508 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg0()
509 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg0()
531 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg7() local
534 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg7()
535 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg7()
536 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg7()
537 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg7()
538 mpi_request.Header.PageNumber = 7; in mpt3sas_config_get_manufacturing_pg7()
539 mpi_request.Header.PageVersion = MPI2_MANUFACTURING7_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg7()
540 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg7()
541 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg7()
546 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg7()
547 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg7()
568 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg10() local
571 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg10()
572 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg10()
573 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg10()
574 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg10()
575 mpi_request.Header.PageNumber = 10; in mpt3sas_config_get_manufacturing_pg10()
576 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg10()
577 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg10()
578 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg10()
583 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg10()
584 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg10()
605 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg11() local
608 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg11()
609 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg11()
610 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg11()
611 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg11()
612 mpi_request.Header.PageNumber = 11; in mpt3sas_config_get_manufacturing_pg11()
613 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg11()
614 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg11()
615 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg11()
620 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg11()
621 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg11()
642 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_manufacturing_pg11() local
645 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_manufacturing_pg11()
646 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_manufacturing_pg11()
647 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_manufacturing_pg11()
648 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_set_manufacturing_pg11()
649 mpi_request.Header.PageNumber = 11; in mpt3sas_config_set_manufacturing_pg11()
650 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_set_manufacturing_pg11()
651 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_manufacturing_pg11()
652 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_manufacturing_pg11()
657 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_manufacturing_pg11()
658 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_manufacturing_pg11()
678 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_bios_pg2() local
681 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_bios_pg2()
682 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_bios_pg2()
683 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_bios_pg2()
684 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_BIOS; in mpt3sas_config_get_bios_pg2()
685 mpi_request.Header.PageNumber = 2; in mpt3sas_config_get_bios_pg2()
686 mpi_request.Header.PageVersion = MPI2_BIOSPAGE2_PAGEVERSION; in mpt3sas_config_get_bios_pg2()
687 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_bios_pg2()
688 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg2()
693 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_bios_pg2()
694 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg2()
714 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_bios_pg3() local
717 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_bios_pg3()
718 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_bios_pg3()
719 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_bios_pg3()
720 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_BIOS; in mpt3sas_config_get_bios_pg3()
721 mpi_request.Header.PageNumber = 3; in mpt3sas_config_get_bios_pg3()
722 mpi_request.Header.PageVersion = MPI2_BIOSPAGE3_PAGEVERSION; in mpt3sas_config_get_bios_pg3()
723 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_bios_pg3()
724 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg3()
729 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_bios_pg3()
730 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg3()
750 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg0() local
753 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg0()
754 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg0()
755 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg0()
756 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg0()
757 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_iounit_pg0()
758 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE0_PAGEVERSION; in mpt3sas_config_get_iounit_pg0()
759 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg0()
760 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg0()
765 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg0()
766 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg0()
786 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg1() local
789 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg1()
790 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg1()
791 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg1()
792 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg1()
793 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_iounit_pg1()
794 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE1_PAGEVERSION; in mpt3sas_config_get_iounit_pg1()
795 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg1()
796 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg1()
801 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg1()
802 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg1()
822 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_iounit_pg1() local
825 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_iounit_pg1()
826 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_iounit_pg1()
827 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_iounit_pg1()
828 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_set_iounit_pg1()
829 mpi_request.Header.PageNumber = 1; in mpt3sas_config_set_iounit_pg1()
830 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE1_PAGEVERSION; in mpt3sas_config_set_iounit_pg1()
831 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_iounit_pg1()
832 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_iounit_pg1()
837 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_iounit_pg1()
838 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_iounit_pg1()
859 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg3() local
862 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg3()
863 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg3()
864 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg3()
865 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg3()
866 mpi_request.Header.PageNumber = 3; in mpt3sas_config_get_iounit_pg3()
867 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE3_PAGEVERSION; in mpt3sas_config_get_iounit_pg3()
868 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg3()
869 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg3()
874 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg3()
875 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg3()
894 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg8() local
897 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg8()
898 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg8()
899 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg8()
900 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg8()
901 mpi_request.Header.PageNumber = 8; in mpt3sas_config_get_iounit_pg8()
902 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE8_PAGEVERSION; in mpt3sas_config_get_iounit_pg8()
903 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg8()
904 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg8()
909 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg8()
910 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg8()
930 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_ioc_pg8() local
933 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_ioc_pg8()
934 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_ioc_pg8()
935 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_ioc_pg8()
936 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IOC; in mpt3sas_config_get_ioc_pg8()
937 mpi_request.Header.PageNumber = 8; in mpt3sas_config_get_ioc_pg8()
938 mpi_request.Header.PageVersion = MPI2_IOCPAGE8_PAGEVERSION; in mpt3sas_config_get_ioc_pg8()
939 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_ioc_pg8()
940 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg8()
945 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_ioc_pg8()
946 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg8()
965 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_ioc_pg1() local
968 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_ioc_pg1()
969 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_ioc_pg1()
970 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_ioc_pg1()
971 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IOC; in mpt3sas_config_get_ioc_pg1()
972 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_ioc_pg1()
973 mpi_request.Header.PageVersion = MPI2_IOCPAGE8_PAGEVERSION; in mpt3sas_config_get_ioc_pg1()
974 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_ioc_pg1()
975 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg1()
980 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_ioc_pg1()
981 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg1()
1001 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_ioc_pg1() local
1004 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_ioc_pg1()
1005 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_ioc_pg1()
1006 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_ioc_pg1()
1007 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IOC; in mpt3sas_config_set_ioc_pg1()
1008 mpi_request.Header.PageNumber = 1; in mpt3sas_config_set_ioc_pg1()
1009 mpi_request.Header.PageVersion = MPI2_IOCPAGE8_PAGEVERSION; in mpt3sas_config_set_ioc_pg1()
1010 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_ioc_pg1()
1011 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_ioc_pg1()
1016 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_ioc_pg1()
1017 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_ioc_pg1()
1040 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_device_pg0() local
1043 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_device_pg0()
1044 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_device_pg0()
1045 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_device_pg0()
1046 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_device_pg0()
1047 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_DEVICE; in mpt3sas_config_get_sas_device_pg0()
1048 mpi_request.Header.PageVersion = MPI2_SASDEVICE0_PAGEVERSION; in mpt3sas_config_get_sas_device_pg0()
1049 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_sas_device_pg0()
1050 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_device_pg0()
1051 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg0()
1056 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_sas_device_pg0()
1057 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_device_pg0()
1058 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg0()
1081 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_device_pg1() local
1084 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_device_pg1()
1085 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_device_pg1()
1086 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_device_pg1()
1087 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_device_pg1()
1088 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_DEVICE; in mpt3sas_config_get_sas_device_pg1()
1089 mpi_request.Header.PageVersion = MPI2_SASDEVICE1_PAGEVERSION; in mpt3sas_config_get_sas_device_pg1()
1090 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_sas_device_pg1()
1091 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_device_pg1()
1092 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg1()
1097 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_sas_device_pg1()
1098 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_device_pg1()
1099 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg1()
1122 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_pcie_device_pg0() local
1125 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_pcie_device_pg0()
1126 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_pcie_device_pg0()
1127 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_pcie_device_pg0()
1128 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_pcie_device_pg0()
1129 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_PCIE_DEVICE; in mpt3sas_config_get_pcie_device_pg0()
1130 mpi_request.Header.PageVersion = MPI26_PCIEDEVICE0_PAGEVERSION; in mpt3sas_config_get_pcie_device_pg0()
1131 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_pcie_device_pg0()
1132 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_pcie_device_pg0()
1133 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg0()
1138 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_pcie_device_pg0()
1139 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_pcie_device_pg0()
1140 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg0()
1163 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_pcie_device_pg2() local
1166 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_pcie_device_pg2()
1167 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_pcie_device_pg2()
1168 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_pcie_device_pg2()
1169 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_pcie_device_pg2()
1170 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_PCIE_DEVICE; in mpt3sas_config_get_pcie_device_pg2()
1171 mpi_request.Header.PageVersion = MPI26_PCIEDEVICE2_PAGEVERSION; in mpt3sas_config_get_pcie_device_pg2()
1172 mpi_request.Header.PageNumber = 2; in mpt3sas_config_get_pcie_device_pg2()
1173 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_pcie_device_pg2()
1174 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg2()
1179 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_pcie_device_pg2()
1180 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_pcie_device_pg2()
1181 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg2()
1199 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_number_hba_phys() local
1206 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_number_hba_phys()
1207 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_number_hba_phys()
1208 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_number_hba_phys()
1209 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_number_hba_phys()
1210 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_get_number_hba_phys()
1211 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_number_hba_phys()
1212 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE0_PAGEVERSION; in mpt3sas_config_get_number_hba_phys()
1213 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_number_hba_phys()
1214 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_hba_phys()
1219 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_number_hba_phys()
1220 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_hba_phys()
1251 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_iounit_pg0() local
1254 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_iounit_pg0()
1255 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_iounit_pg0()
1256 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_iounit_pg0()
1257 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_iounit_pg0()
1258 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_get_sas_iounit_pg0()
1259 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_sas_iounit_pg0()
1260 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE0_PAGEVERSION; in mpt3sas_config_get_sas_iounit_pg0()
1261 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_iounit_pg0()
1262 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg0()
1267 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_iounit_pg0()
1268 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg0()
1292 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_iounit_pg1() local
1295 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_iounit_pg1()
1296 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_iounit_pg1()
1297 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_iounit_pg1()
1298 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_iounit_pg1()
1299 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_get_sas_iounit_pg1()
1300 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_sas_iounit_pg1()
1301 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE1_PAGEVERSION; in mpt3sas_config_get_sas_iounit_pg1()
1302 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_iounit_pg1()
1303 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg1()
1308 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_iounit_pg1()
1309 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg1()
1333 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_sas_iounit_pg1() local
1336 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_sas_iounit_pg1()
1337 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_sas_iounit_pg1()
1338 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_sas_iounit_pg1()
1339 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_set_sas_iounit_pg1()
1340 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_set_sas_iounit_pg1()
1341 mpi_request.Header.PageNumber = 1; in mpt3sas_config_set_sas_iounit_pg1()
1342 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE1_PAGEVERSION; in mpt3sas_config_set_sas_iounit_pg1()
1343 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_sas_iounit_pg1()
1344 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_sas_iounit_pg1()
1349 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_sas_iounit_pg1()
1350 _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_sas_iounit_pg1()
1352 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; in mpt3sas_config_set_sas_iounit_pg1()
1353 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_sas_iounit_pg1()
1374 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_expander_pg0() local
1377 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_expander_pg0()
1378 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_expander_pg0()
1379 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_expander_pg0()
1380 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_expander_pg0()
1381 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_EXPANDER; in mpt3sas_config_get_expander_pg0()
1382 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_expander_pg0()
1383 mpi_request.Header.PageVersion = MPI2_SASEXPANDER0_PAGEVERSION; in mpt3sas_config_get_expander_pg0()
1384 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_expander_pg0()
1385 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg0()
1390 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_expander_pg0()
1391 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_expander_pg0()
1392 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg0()
1415 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_expander_pg1() local
1418 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_expander_pg1()
1419 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_expander_pg1()
1420 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_expander_pg1()
1421 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_expander_pg1()
1422 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_EXPANDER; in mpt3sas_config_get_expander_pg1()
1423 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_expander_pg1()
1424 mpi_request.Header.PageVersion = MPI2_SASEXPANDER1_PAGEVERSION; in mpt3sas_config_get_expander_pg1()
1425 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_expander_pg1()
1426 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg1()
1431 mpi_request.PageAddress = in mpt3sas_config_get_expander_pg1()
1434 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_expander_pg1()
1435 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg1()
1457 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_enclosure_pg0() local
1460 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_enclosure_pg0()
1461 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_enclosure_pg0()
1462 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_enclosure_pg0()
1463 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_enclosure_pg0()
1464 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_ENCLOSURE; in mpt3sas_config_get_enclosure_pg0()
1465 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_enclosure_pg0()
1466 mpi_request.Header.PageVersion = MPI2_SASENCLOSURE0_PAGEVERSION; in mpt3sas_config_get_enclosure_pg0()
1467 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_enclosure_pg0()
1468 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_enclosure_pg0()
1473 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_enclosure_pg0()
1474 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_enclosure_pg0()
1475 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_enclosure_pg0()
1496 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_phy_pg0() local
1499 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_phy_pg0()
1500 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_phy_pg0()
1501 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_phy_pg0()
1502 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_phy_pg0()
1503 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_PHY; in mpt3sas_config_get_phy_pg0()
1504 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_phy_pg0()
1505 mpi_request.Header.PageVersion = MPI2_SASPHY0_PAGEVERSION; in mpt3sas_config_get_phy_pg0()
1506 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_phy_pg0()
1507 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg0()
1512 mpi_request.PageAddress = in mpt3sas_config_get_phy_pg0()
1514 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_phy_pg0()
1515 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg0()
1536 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_phy_pg1() local
1539 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_phy_pg1()
1540 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_phy_pg1()
1541 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_phy_pg1()
1542 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_phy_pg1()
1543 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_PHY; in mpt3sas_config_get_phy_pg1()
1544 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_phy_pg1()
1545 mpi_request.Header.PageVersion = MPI2_SASPHY1_PAGEVERSION; in mpt3sas_config_get_phy_pg1()
1546 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_phy_pg1()
1547 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg1()
1552 mpi_request.PageAddress = in mpt3sas_config_get_phy_pg1()
1554 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_phy_pg1()
1555 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg1()
1578 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_raid_volume_pg1() local
1581 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_raid_volume_pg1()
1582 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_raid_volume_pg1()
1583 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_raid_volume_pg1()
1584 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_VOLUME; in mpt3sas_config_get_raid_volume_pg1()
1585 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_raid_volume_pg1()
1586 mpi_request.Header.PageVersion = MPI2_RAIDVOLPAGE1_PAGEVERSION; in mpt3sas_config_get_raid_volume_pg1()
1587 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_raid_volume_pg1()
1588 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg1()
1593 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_raid_volume_pg1()
1594 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_raid_volume_pg1()
1595 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg1()
1615 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_number_pds() local
1621 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_number_pds()
1623 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_number_pds()
1624 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_number_pds()
1625 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_VOLUME; in mpt3sas_config_get_number_pds()
1626 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_number_pds()
1627 mpi_request.Header.PageVersion = MPI2_RAIDVOLPAGE0_PAGEVERSION; in mpt3sas_config_get_number_pds()
1628 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_number_pds()
1629 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_pds()
1634 mpi_request.PageAddress = in mpt3sas_config_get_number_pds()
1636 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_number_pds()
1637 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_pds()
1668 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_raid_volume_pg0() local
1671 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_raid_volume_pg0()
1672 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_raid_volume_pg0()
1673 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_raid_volume_pg0()
1674 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_VOLUME; in mpt3sas_config_get_raid_volume_pg0()
1675 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_raid_volume_pg0()
1676 mpi_request.Header.PageVersion = MPI2_RAIDVOLPAGE0_PAGEVERSION; in mpt3sas_config_get_raid_volume_pg0()
1677 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_raid_volume_pg0()
1678 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg0()
1683 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_raid_volume_pg0()
1684 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_raid_volume_pg0()
1685 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg0()
1707 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_phys_disk_pg0() local
1710 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_phys_disk_pg0()
1711 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_phys_disk_pg0()
1712 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_phys_disk_pg0()
1713 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_PHYSDISK; in mpt3sas_config_get_phys_disk_pg0()
1714 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_phys_disk_pg0()
1715 mpi_request.Header.PageVersion = MPI2_RAIDPHYSDISKPAGE0_PAGEVERSION; in mpt3sas_config_get_phys_disk_pg0()
1716 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_phys_disk_pg0()
1717 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phys_disk_pg0()
1722 mpi_request.PageAddress = cpu_to_le32(form | form_specific); in mpt3sas_config_get_phys_disk_pg0()
1723 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_phys_disk_pg0()
1724 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phys_disk_pg0()
1746 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_volume_handle() local
1755 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_volume_handle()
1756 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_volume_handle()
1757 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_volume_handle()
1758 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_volume_handle()
1759 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_RAID_CONFIG; in mpt3sas_config_get_volume_handle()
1760 mpi_request.Header.PageVersion = MPI2_RAIDCONFIG0_PAGEVERSION; in mpt3sas_config_get_volume_handle()
1761 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_volume_handle()
1762 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_volume_handle()
1763 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_volume_handle()
1768 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_volume_handle()
1778 mpi_request.PageAddress = cpu_to_le32(config_num + in mpt3sas_config_get_volume_handle()
1780 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_volume_handle()