Lines Matching refs:mpi_request
101 Mpi2ConfigRequest_t *mpi_request; in _config_display_some_debug() local
104 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _config_display_some_debug()
105 switch (mpi_request->Header.PageType & MPI2_CONFIG_PAGETYPE_MASK) { in _config_display_some_debug()
125 switch (mpi_request->ExtPageType) { in _config_display_some_debug()
177 mpi_request->Header.PageNumber, mpi_request->Action, in _config_display_some_debug()
178 le32_to_cpu(mpi_request->PageAddress), smid); in _config_display_some_debug()
297 *mpi_request, Mpi2ConfigReply_t *mpi_reply, int timeout, in _config_request()
317 mpi_request->VF_ID = 0; /* TODO */ in _config_request()
318 mpi_request->VP_ID = 0; in _config_request()
321 mpi_request->Header.PageVersion = mpi_reply->Header.PageVersion; in _config_request()
322 mpi_request->Header.PageNumber = mpi_reply->Header.PageNumber; in _config_request()
323 mpi_request->Header.PageType = mpi_reply->Header.PageType; in _config_request()
324 mpi_request->Header.PageLength = mpi_reply->Header.PageLength; in _config_request()
325 mpi_request->ExtPageLength = mpi_reply->ExtPageLength; in _config_request()
326 mpi_request->ExtPageType = mpi_reply->ExtPageType; in _config_request()
327 if (mpi_request->Header.PageLength) in _config_request()
328 mem.sz = mpi_request->Header.PageLength * 4; in _config_request()
334 if (mpi_request->Action == in _config_request()
336 mpi_request->Action == in _config_request()
338 ioc->base_add_sg_single(&mpi_request->PageBufferSGE, in _config_request()
345 ioc->base_add_sg_single(&mpi_request->PageBufferSGE, in _config_request()
381 memcpy(config_request, mpi_request, sizeof(Mpi2ConfigRequest_t)); in _config_request()
393 mpi_request, sizeof(Mpi2ConfigRequest_t) / 4); in _config_request()
412 if ((mpi_request->Header.PageType & 0xF) != in _config_request()
417 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
421 mpi_request->Header.PageType & 0xF, in _config_request()
425 if (((mpi_request->Header.PageType & 0xF) == in _config_request()
427 mpi_request->ExtPageType != mpi_reply->ExtPageType) { in _config_request()
431 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
435 mpi_request->ExtPageType, in _config_request()
447 config_page && mpi_request->Action == in _config_request()
453 if ((mpi_request->Header.PageType & 0xF) != in _config_request()
458 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
464 mpi_request->Header.PageType & 0xF, in _config_request()
468 if (((mpi_request->Header.PageType & 0xF) == in _config_request()
470 (mpi_request->ExtPageType != p[6])) { in _config_request()
474 _debug_dump_mf(mpi_request, ioc->request_sz/4); in _config_request()
480 mpi_request->ExtPageType, p[6]); in _config_request()
520 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg0() local
523 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg0()
524 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg0()
525 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg0()
526 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg0()
527 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_manufacturing_pg0()
528 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg0()
529 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg0()
530 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg0()
535 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg0()
536 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg0()
556 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg1() local
559 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg1()
560 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg1()
561 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg1()
562 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg1()
563 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_manufacturing_pg1()
564 mpi_request.Header.PageVersion = MPI2_MANUFACTURING1_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg1()
565 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg1()
566 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg1()
571 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg1()
572 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg1()
594 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg7() local
597 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg7()
598 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg7()
599 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg7()
600 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg7()
601 mpi_request.Header.PageNumber = 7; in mpt3sas_config_get_manufacturing_pg7()
602 mpi_request.Header.PageVersion = MPI2_MANUFACTURING7_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg7()
603 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg7()
604 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg7()
609 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg7()
610 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg7()
631 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg10() local
634 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg10()
635 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg10()
636 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg10()
637 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg10()
638 mpi_request.Header.PageNumber = 10; in mpt3sas_config_get_manufacturing_pg10()
639 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg10()
640 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg10()
641 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg10()
646 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg10()
647 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg10()
668 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_manufacturing_pg11() local
671 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_manufacturing_pg11()
672 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_manufacturing_pg11()
673 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_manufacturing_pg11()
674 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_get_manufacturing_pg11()
675 mpi_request.Header.PageNumber = 11; in mpt3sas_config_get_manufacturing_pg11()
676 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_get_manufacturing_pg11()
677 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_manufacturing_pg11()
678 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg11()
683 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_manufacturing_pg11()
684 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_manufacturing_pg11()
705 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_manufacturing_pg11() local
708 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_manufacturing_pg11()
709 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_manufacturing_pg11()
710 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_manufacturing_pg11()
711 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_MANUFACTURING; in mpt3sas_config_set_manufacturing_pg11()
712 mpi_request.Header.PageNumber = 11; in mpt3sas_config_set_manufacturing_pg11()
713 mpi_request.Header.PageVersion = MPI2_MANUFACTURING0_PAGEVERSION; in mpt3sas_config_set_manufacturing_pg11()
714 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_manufacturing_pg11()
715 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_manufacturing_pg11()
720 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_manufacturing_pg11()
721 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_manufacturing_pg11()
741 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_bios_pg2() local
744 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_bios_pg2()
745 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_bios_pg2()
746 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_bios_pg2()
747 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_BIOS; in mpt3sas_config_get_bios_pg2()
748 mpi_request.Header.PageNumber = 2; in mpt3sas_config_get_bios_pg2()
749 mpi_request.Header.PageVersion = MPI2_BIOSPAGE2_PAGEVERSION; in mpt3sas_config_get_bios_pg2()
750 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_bios_pg2()
751 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg2()
756 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_bios_pg2()
757 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg2()
777 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_bios_pg3() local
780 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_bios_pg3()
781 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_bios_pg3()
782 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_bios_pg3()
783 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_BIOS; in mpt3sas_config_get_bios_pg3()
784 mpi_request.Header.PageNumber = 3; in mpt3sas_config_get_bios_pg3()
785 mpi_request.Header.PageVersion = MPI2_BIOSPAGE3_PAGEVERSION; in mpt3sas_config_get_bios_pg3()
786 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_bios_pg3()
787 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg3()
792 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_bios_pg3()
793 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg3()
816 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_bios_pg4() local
819 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_bios_pg4()
821 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_bios_pg4()
822 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_bios_pg4()
823 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_BIOS; in mpt3sas_config_set_bios_pg4()
824 mpi_request.Header.PageNumber = 4; in mpt3sas_config_set_bios_pg4()
825 mpi_request.Header.PageVersion = MPI2_BIOSPAGE4_PAGEVERSION; in mpt3sas_config_set_bios_pg4()
827 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_bios_pg4()
829 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_bios_pg4()
834 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_bios_pg4()
835 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_bios_pg4()
857 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_bios_pg4() local
860 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_bios_pg4()
861 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_bios_pg4()
862 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_bios_pg4()
863 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_BIOS; in mpt3sas_config_get_bios_pg4()
864 mpi_request.Header.PageNumber = 4; in mpt3sas_config_get_bios_pg4()
865 mpi_request.Header.PageVersion = MPI2_BIOSPAGE4_PAGEVERSION; in mpt3sas_config_get_bios_pg4()
866 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_bios_pg4()
867 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg4()
877 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_bios_pg4()
879 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_bios_pg4()
901 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg0() local
904 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg0()
905 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg0()
906 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg0()
907 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg0()
908 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_iounit_pg0()
909 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE0_PAGEVERSION; in mpt3sas_config_get_iounit_pg0()
910 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg0()
911 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg0()
916 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg0()
917 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg0()
937 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg1() local
940 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg1()
941 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg1()
942 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg1()
943 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg1()
944 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_iounit_pg1()
945 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE1_PAGEVERSION; in mpt3sas_config_get_iounit_pg1()
946 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg1()
947 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg1()
952 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg1()
953 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg1()
973 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_iounit_pg1() local
976 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_iounit_pg1()
977 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_iounit_pg1()
978 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_iounit_pg1()
979 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_set_iounit_pg1()
980 mpi_request.Header.PageNumber = 1; in mpt3sas_config_set_iounit_pg1()
981 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE1_PAGEVERSION; in mpt3sas_config_set_iounit_pg1()
982 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_iounit_pg1()
983 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_iounit_pg1()
988 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_iounit_pg1()
989 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_iounit_pg1()
1010 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg3() local
1013 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg3()
1014 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg3()
1015 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg3()
1016 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg3()
1017 mpi_request.Header.PageNumber = 3; in mpt3sas_config_get_iounit_pg3()
1018 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE3_PAGEVERSION; in mpt3sas_config_get_iounit_pg3()
1019 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg3()
1020 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg3()
1025 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg3()
1026 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg3()
1045 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_iounit_pg8() local
1048 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_iounit_pg8()
1049 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_iounit_pg8()
1050 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_iounit_pg8()
1051 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IO_UNIT; in mpt3sas_config_get_iounit_pg8()
1052 mpi_request.Header.PageNumber = 8; in mpt3sas_config_get_iounit_pg8()
1053 mpi_request.Header.PageVersion = MPI2_IOUNITPAGE8_PAGEVERSION; in mpt3sas_config_get_iounit_pg8()
1054 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_iounit_pg8()
1055 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg8()
1060 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_iounit_pg8()
1061 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_iounit_pg8()
1081 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_ioc_pg8() local
1084 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_ioc_pg8()
1085 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_ioc_pg8()
1086 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_ioc_pg8()
1087 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IOC; in mpt3sas_config_get_ioc_pg8()
1088 mpi_request.Header.PageNumber = 8; in mpt3sas_config_get_ioc_pg8()
1089 mpi_request.Header.PageVersion = MPI2_IOCPAGE8_PAGEVERSION; in mpt3sas_config_get_ioc_pg8()
1090 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_ioc_pg8()
1091 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg8()
1096 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_ioc_pg8()
1097 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg8()
1116 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_ioc_pg1() local
1119 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_ioc_pg1()
1120 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_ioc_pg1()
1121 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_ioc_pg1()
1122 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IOC; in mpt3sas_config_get_ioc_pg1()
1123 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_ioc_pg1()
1124 mpi_request.Header.PageVersion = MPI2_IOCPAGE8_PAGEVERSION; in mpt3sas_config_get_ioc_pg1()
1125 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_ioc_pg1()
1126 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg1()
1131 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_ioc_pg1()
1132 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_ioc_pg1()
1152 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_ioc_pg1() local
1155 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_ioc_pg1()
1156 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_ioc_pg1()
1157 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_ioc_pg1()
1158 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_IOC; in mpt3sas_config_set_ioc_pg1()
1159 mpi_request.Header.PageNumber = 1; in mpt3sas_config_set_ioc_pg1()
1160 mpi_request.Header.PageVersion = MPI2_IOCPAGE8_PAGEVERSION; in mpt3sas_config_set_ioc_pg1()
1161 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_ioc_pg1()
1162 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_ioc_pg1()
1167 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_ioc_pg1()
1168 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_ioc_pg1()
1191 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_device_pg0() local
1194 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_device_pg0()
1195 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_device_pg0()
1196 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_device_pg0()
1197 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_device_pg0()
1198 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_DEVICE; in mpt3sas_config_get_sas_device_pg0()
1199 mpi_request.Header.PageVersion = MPI2_SASDEVICE0_PAGEVERSION; in mpt3sas_config_get_sas_device_pg0()
1200 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_sas_device_pg0()
1201 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_device_pg0()
1202 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg0()
1207 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_sas_device_pg0()
1208 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_device_pg0()
1209 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg0()
1232 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_device_pg1() local
1235 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_device_pg1()
1236 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_device_pg1()
1237 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_device_pg1()
1238 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_device_pg1()
1239 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_DEVICE; in mpt3sas_config_get_sas_device_pg1()
1240 mpi_request.Header.PageVersion = MPI2_SASDEVICE1_PAGEVERSION; in mpt3sas_config_get_sas_device_pg1()
1241 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_sas_device_pg1()
1242 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_device_pg1()
1243 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg1()
1248 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_sas_device_pg1()
1249 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_device_pg1()
1250 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_device_pg1()
1273 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_pcie_device_pg0() local
1276 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_pcie_device_pg0()
1277 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_pcie_device_pg0()
1278 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_pcie_device_pg0()
1279 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_pcie_device_pg0()
1280 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_PCIE_DEVICE; in mpt3sas_config_get_pcie_device_pg0()
1281 mpi_request.Header.PageVersion = MPI26_PCIEDEVICE0_PAGEVERSION; in mpt3sas_config_get_pcie_device_pg0()
1282 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_pcie_device_pg0()
1283 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_pcie_device_pg0()
1284 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg0()
1289 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_pcie_device_pg0()
1290 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_pcie_device_pg0()
1291 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg0()
1313 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_pcie_iounit_pg1() local
1316 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_pcie_iounit_pg1()
1317 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_pcie_iounit_pg1()
1318 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_pcie_iounit_pg1()
1319 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_pcie_iounit_pg1()
1320 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_PCIE_IO_UNIT; in mpt3sas_config_get_pcie_iounit_pg1()
1321 mpi_request.Header.PageVersion = MPI26_PCIEIOUNITPAGE1_PAGEVERSION; in mpt3sas_config_get_pcie_iounit_pg1()
1322 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_pcie_iounit_pg1()
1323 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_pcie_iounit_pg1()
1324 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_iounit_pg1()
1328 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_pcie_iounit_pg1()
1329 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_iounit_pg1()
1351 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_pcie_device_pg2() local
1354 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_pcie_device_pg2()
1355 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_pcie_device_pg2()
1356 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_pcie_device_pg2()
1357 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_pcie_device_pg2()
1358 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_PCIE_DEVICE; in mpt3sas_config_get_pcie_device_pg2()
1359 mpi_request.Header.PageVersion = MPI26_PCIEDEVICE2_PAGEVERSION; in mpt3sas_config_get_pcie_device_pg2()
1360 mpi_request.Header.PageNumber = 2; in mpt3sas_config_get_pcie_device_pg2()
1361 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_pcie_device_pg2()
1362 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg2()
1367 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_pcie_device_pg2()
1368 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_pcie_device_pg2()
1369 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_pcie_device_pg2()
1387 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_number_hba_phys() local
1394 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_number_hba_phys()
1395 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_number_hba_phys()
1396 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_number_hba_phys()
1397 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_number_hba_phys()
1398 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_get_number_hba_phys()
1399 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_number_hba_phys()
1400 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE0_PAGEVERSION; in mpt3sas_config_get_number_hba_phys()
1401 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_number_hba_phys()
1402 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_hba_phys()
1407 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_number_hba_phys()
1408 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_hba_phys()
1439 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_iounit_pg0() local
1442 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_iounit_pg0()
1443 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_iounit_pg0()
1444 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_iounit_pg0()
1445 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_iounit_pg0()
1446 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_get_sas_iounit_pg0()
1447 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_sas_iounit_pg0()
1448 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE0_PAGEVERSION; in mpt3sas_config_get_sas_iounit_pg0()
1449 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_iounit_pg0()
1450 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg0()
1455 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_iounit_pg0()
1456 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg0()
1480 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_sas_iounit_pg1() local
1483 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_sas_iounit_pg1()
1484 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_sas_iounit_pg1()
1485 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_sas_iounit_pg1()
1486 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_sas_iounit_pg1()
1487 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_get_sas_iounit_pg1()
1488 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_sas_iounit_pg1()
1489 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE1_PAGEVERSION; in mpt3sas_config_get_sas_iounit_pg1()
1490 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_sas_iounit_pg1()
1491 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg1()
1496 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_sas_iounit_pg1()
1497 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_sas_iounit_pg1()
1521 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_set_sas_iounit_pg1() local
1524 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_set_sas_iounit_pg1()
1525 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_set_sas_iounit_pg1()
1526 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_set_sas_iounit_pg1()
1527 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_set_sas_iounit_pg1()
1528 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_IO_UNIT; in mpt3sas_config_set_sas_iounit_pg1()
1529 mpi_request.Header.PageNumber = 1; in mpt3sas_config_set_sas_iounit_pg1()
1530 mpi_request.Header.PageVersion = MPI2_SASIOUNITPAGE1_PAGEVERSION; in mpt3sas_config_set_sas_iounit_pg1()
1531 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_set_sas_iounit_pg1()
1532 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_sas_iounit_pg1()
1537 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in mpt3sas_config_set_sas_iounit_pg1()
1538 _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_sas_iounit_pg1()
1540 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; in mpt3sas_config_set_sas_iounit_pg1()
1541 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_set_sas_iounit_pg1()
1562 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_expander_pg0() local
1565 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_expander_pg0()
1566 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_expander_pg0()
1567 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_expander_pg0()
1568 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_expander_pg0()
1569 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_EXPANDER; in mpt3sas_config_get_expander_pg0()
1570 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_expander_pg0()
1571 mpi_request.Header.PageVersion = MPI2_SASEXPANDER0_PAGEVERSION; in mpt3sas_config_get_expander_pg0()
1572 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_expander_pg0()
1573 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg0()
1578 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_expander_pg0()
1579 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_expander_pg0()
1580 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg0()
1603 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_expander_pg1() local
1606 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_expander_pg1()
1607 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_expander_pg1()
1608 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_expander_pg1()
1609 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_expander_pg1()
1610 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_EXPANDER; in mpt3sas_config_get_expander_pg1()
1611 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_expander_pg1()
1612 mpi_request.Header.PageVersion = MPI2_SASEXPANDER1_PAGEVERSION; in mpt3sas_config_get_expander_pg1()
1613 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_expander_pg1()
1614 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg1()
1619 mpi_request.PageAddress = in mpt3sas_config_get_expander_pg1()
1622 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_expander_pg1()
1623 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_expander_pg1()
1645 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_enclosure_pg0() local
1648 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_enclosure_pg0()
1649 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_enclosure_pg0()
1650 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_enclosure_pg0()
1651 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_enclosure_pg0()
1652 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_ENCLOSURE; in mpt3sas_config_get_enclosure_pg0()
1653 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_enclosure_pg0()
1654 mpi_request.Header.PageVersion = MPI2_SASENCLOSURE0_PAGEVERSION; in mpt3sas_config_get_enclosure_pg0()
1655 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_enclosure_pg0()
1656 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_enclosure_pg0()
1661 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_enclosure_pg0()
1662 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_enclosure_pg0()
1663 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_enclosure_pg0()
1684 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_phy_pg0() local
1687 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_phy_pg0()
1688 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_phy_pg0()
1689 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_phy_pg0()
1690 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_phy_pg0()
1691 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_PHY; in mpt3sas_config_get_phy_pg0()
1692 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_phy_pg0()
1693 mpi_request.Header.PageVersion = MPI2_SASPHY0_PAGEVERSION; in mpt3sas_config_get_phy_pg0()
1694 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_phy_pg0()
1695 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg0()
1700 mpi_request.PageAddress = in mpt3sas_config_get_phy_pg0()
1702 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_phy_pg0()
1703 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg0()
1724 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_phy_pg1() local
1727 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_phy_pg1()
1728 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_phy_pg1()
1729 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_phy_pg1()
1730 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_phy_pg1()
1731 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_SAS_PHY; in mpt3sas_config_get_phy_pg1()
1732 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_phy_pg1()
1733 mpi_request.Header.PageVersion = MPI2_SASPHY1_PAGEVERSION; in mpt3sas_config_get_phy_pg1()
1734 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_phy_pg1()
1735 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg1()
1740 mpi_request.PageAddress = in mpt3sas_config_get_phy_pg1()
1742 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_phy_pg1()
1743 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phy_pg1()
1766 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_raid_volume_pg1() local
1769 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_raid_volume_pg1()
1770 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_raid_volume_pg1()
1771 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_raid_volume_pg1()
1772 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_VOLUME; in mpt3sas_config_get_raid_volume_pg1()
1773 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_raid_volume_pg1()
1774 mpi_request.Header.PageVersion = MPI2_RAIDVOLPAGE1_PAGEVERSION; in mpt3sas_config_get_raid_volume_pg1()
1775 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_raid_volume_pg1()
1776 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg1()
1781 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_raid_volume_pg1()
1782 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_raid_volume_pg1()
1783 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg1()
1803 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_number_pds() local
1809 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_number_pds()
1811 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_number_pds()
1812 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_number_pds()
1813 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_VOLUME; in mpt3sas_config_get_number_pds()
1814 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_number_pds()
1815 mpi_request.Header.PageVersion = MPI2_RAIDVOLPAGE0_PAGEVERSION; in mpt3sas_config_get_number_pds()
1816 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_number_pds()
1817 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_pds()
1822 mpi_request.PageAddress = in mpt3sas_config_get_number_pds()
1824 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_number_pds()
1825 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_number_pds()
1856 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_raid_volume_pg0() local
1859 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_raid_volume_pg0()
1860 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_raid_volume_pg0()
1861 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_raid_volume_pg0()
1862 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_VOLUME; in mpt3sas_config_get_raid_volume_pg0()
1863 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_raid_volume_pg0()
1864 mpi_request.Header.PageVersion = MPI2_RAIDVOLPAGE0_PAGEVERSION; in mpt3sas_config_get_raid_volume_pg0()
1865 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_raid_volume_pg0()
1866 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg0()
1871 mpi_request.PageAddress = cpu_to_le32(form | handle); in mpt3sas_config_get_raid_volume_pg0()
1872 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_raid_volume_pg0()
1873 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_raid_volume_pg0()
1895 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_phys_disk_pg0() local
1898 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_phys_disk_pg0()
1899 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_phys_disk_pg0()
1900 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_phys_disk_pg0()
1901 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_RAID_PHYSDISK; in mpt3sas_config_get_phys_disk_pg0()
1902 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_phys_disk_pg0()
1903 mpi_request.Header.PageVersion = MPI2_RAIDPHYSDISKPAGE0_PAGEVERSION; in mpt3sas_config_get_phys_disk_pg0()
1904 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_phys_disk_pg0()
1905 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phys_disk_pg0()
1910 mpi_request.PageAddress = cpu_to_le32(form | form_specific); in mpt3sas_config_get_phys_disk_pg0()
1911 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_phys_disk_pg0()
1912 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_phys_disk_pg0()
1932 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_driver_trigger_pg0() local
1935 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_driver_trigger_pg0()
1936 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_driver_trigger_pg0()
1937 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_driver_trigger_pg0()
1938 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_driver_trigger_pg0()
1939 mpi_request.ExtPageType = in mpt3sas_config_get_driver_trigger_pg0()
1941 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_driver_trigger_pg0()
1942 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE0_PAGEVERSION; in mpt3sas_config_get_driver_trigger_pg0()
1943 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_driver_trigger_pg0()
1944 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg0()
1949 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_driver_trigger_pg0()
1950 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg0()
1970 Mpi2ConfigRequest_t mpi_request; in _config_set_driver_trigger_pg0() local
1973 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in _config_set_driver_trigger_pg0()
1974 mpi_request.Function = MPI2_FUNCTION_CONFIG; in _config_set_driver_trigger_pg0()
1975 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in _config_set_driver_trigger_pg0()
1976 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in _config_set_driver_trigger_pg0()
1977 mpi_request.ExtPageType = in _config_set_driver_trigger_pg0()
1979 mpi_request.Header.PageNumber = 0; in _config_set_driver_trigger_pg0()
1980 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE0_PAGEVERSION; in _config_set_driver_trigger_pg0()
1981 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in _config_set_driver_trigger_pg0()
1982 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg0()
1987 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in _config_set_driver_trigger_pg0()
1988 _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg0()
1991 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; in _config_set_driver_trigger_pg0()
1992 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg0()
2066 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_driver_trigger_pg1() local
2069 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_driver_trigger_pg1()
2070 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_driver_trigger_pg1()
2071 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_driver_trigger_pg1()
2072 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_driver_trigger_pg1()
2073 mpi_request.ExtPageType = in mpt3sas_config_get_driver_trigger_pg1()
2075 mpi_request.Header.PageNumber = 1; in mpt3sas_config_get_driver_trigger_pg1()
2076 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE1_PAGEVERSION; in mpt3sas_config_get_driver_trigger_pg1()
2077 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_driver_trigger_pg1()
2078 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg1()
2083 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_driver_trigger_pg1()
2084 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg1()
2104 Mpi2ConfigRequest_t mpi_request; in _config_set_driver_trigger_pg1() local
2107 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in _config_set_driver_trigger_pg1()
2108 mpi_request.Function = MPI2_FUNCTION_CONFIG; in _config_set_driver_trigger_pg1()
2109 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in _config_set_driver_trigger_pg1()
2110 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in _config_set_driver_trigger_pg1()
2111 mpi_request.ExtPageType = in _config_set_driver_trigger_pg1()
2113 mpi_request.Header.PageNumber = 1; in _config_set_driver_trigger_pg1()
2114 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE1_PAGEVERSION; in _config_set_driver_trigger_pg1()
2115 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in _config_set_driver_trigger_pg1()
2116 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg1()
2121 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in _config_set_driver_trigger_pg1()
2122 _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg1()
2125 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; in _config_set_driver_trigger_pg1()
2126 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg1()
2217 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_driver_trigger_pg2() local
2220 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_driver_trigger_pg2()
2221 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_driver_trigger_pg2()
2222 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_driver_trigger_pg2()
2223 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_driver_trigger_pg2()
2224 mpi_request.ExtPageType = in mpt3sas_config_get_driver_trigger_pg2()
2226 mpi_request.Header.PageNumber = 2; in mpt3sas_config_get_driver_trigger_pg2()
2227 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE2_PAGEVERSION; in mpt3sas_config_get_driver_trigger_pg2()
2228 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_driver_trigger_pg2()
2229 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg2()
2234 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_driver_trigger_pg2()
2235 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg2()
2255 Mpi2ConfigRequest_t mpi_request; in _config_set_driver_trigger_pg2() local
2258 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in _config_set_driver_trigger_pg2()
2259 mpi_request.Function = MPI2_FUNCTION_CONFIG; in _config_set_driver_trigger_pg2()
2260 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in _config_set_driver_trigger_pg2()
2261 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in _config_set_driver_trigger_pg2()
2262 mpi_request.ExtPageType = in _config_set_driver_trigger_pg2()
2264 mpi_request.Header.PageNumber = 2; in _config_set_driver_trigger_pg2()
2265 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE2_PAGEVERSION; in _config_set_driver_trigger_pg2()
2266 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in _config_set_driver_trigger_pg2()
2267 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg2()
2272 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in _config_set_driver_trigger_pg2()
2273 _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg2()
2276 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; in _config_set_driver_trigger_pg2()
2277 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg2()
2377 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_driver_trigger_pg3() local
2380 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_driver_trigger_pg3()
2381 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_driver_trigger_pg3()
2382 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_driver_trigger_pg3()
2383 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_driver_trigger_pg3()
2384 mpi_request.ExtPageType = in mpt3sas_config_get_driver_trigger_pg3()
2386 mpi_request.Header.PageNumber = 3; in mpt3sas_config_get_driver_trigger_pg3()
2387 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE3_PAGEVERSION; in mpt3sas_config_get_driver_trigger_pg3()
2388 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_driver_trigger_pg3()
2389 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg3()
2394 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_driver_trigger_pg3()
2395 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg3()
2415 Mpi2ConfigRequest_t mpi_request; in _config_set_driver_trigger_pg3() local
2418 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in _config_set_driver_trigger_pg3()
2419 mpi_request.Function = MPI2_FUNCTION_CONFIG; in _config_set_driver_trigger_pg3()
2420 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in _config_set_driver_trigger_pg3()
2421 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in _config_set_driver_trigger_pg3()
2422 mpi_request.ExtPageType = in _config_set_driver_trigger_pg3()
2424 mpi_request.Header.PageNumber = 3; in _config_set_driver_trigger_pg3()
2425 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE3_PAGEVERSION; in _config_set_driver_trigger_pg3()
2426 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in _config_set_driver_trigger_pg3()
2427 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg3()
2432 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in _config_set_driver_trigger_pg3()
2433 _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg3()
2436 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; in _config_set_driver_trigger_pg3()
2437 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg3()
2534 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_driver_trigger_pg4() local
2537 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_driver_trigger_pg4()
2538 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_driver_trigger_pg4()
2539 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_driver_trigger_pg4()
2540 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_driver_trigger_pg4()
2541 mpi_request.ExtPageType = in mpt3sas_config_get_driver_trigger_pg4()
2543 mpi_request.Header.PageNumber = 4; in mpt3sas_config_get_driver_trigger_pg4()
2544 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE4_PAGEVERSION; in mpt3sas_config_get_driver_trigger_pg4()
2545 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_driver_trigger_pg4()
2546 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg4()
2551 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_driver_trigger_pg4()
2552 r = _config_request(ioc, &mpi_request, mpi_reply, in mpt3sas_config_get_driver_trigger_pg4()
2572 Mpi2ConfigRequest_t mpi_request; in _config_set_driver_trigger_pg4() local
2575 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in _config_set_driver_trigger_pg4()
2576 mpi_request.Function = MPI2_FUNCTION_CONFIG; in _config_set_driver_trigger_pg4()
2577 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in _config_set_driver_trigger_pg4()
2578 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in _config_set_driver_trigger_pg4()
2579 mpi_request.ExtPageType = in _config_set_driver_trigger_pg4()
2581 mpi_request.Header.PageNumber = 4; in _config_set_driver_trigger_pg4()
2582 mpi_request.Header.PageVersion = MPI26_DRIVER_TRIGGER_PAGE4_PAGEVERSION; in _config_set_driver_trigger_pg4()
2583 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in _config_set_driver_trigger_pg4()
2584 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg4()
2589 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_CURRENT; in _config_set_driver_trigger_pg4()
2590 _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg4()
2593 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_WRITE_NVRAM; in _config_set_driver_trigger_pg4()
2594 r = _config_request(ioc, &mpi_request, mpi_reply, in _config_set_driver_trigger_pg4()
2694 Mpi2ConfigRequest_t mpi_request; in mpt3sas_config_get_volume_handle() local
2703 memset(&mpi_request, 0, sizeof(Mpi2ConfigRequest_t)); in mpt3sas_config_get_volume_handle()
2704 mpi_request.Function = MPI2_FUNCTION_CONFIG; in mpt3sas_config_get_volume_handle()
2705 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_HEADER; in mpt3sas_config_get_volume_handle()
2706 mpi_request.Header.PageType = MPI2_CONFIG_PAGETYPE_EXTENDED; in mpt3sas_config_get_volume_handle()
2707 mpi_request.ExtPageType = MPI2_CONFIG_EXTPAGETYPE_RAID_CONFIG; in mpt3sas_config_get_volume_handle()
2708 mpi_request.Header.PageVersion = MPI2_RAIDCONFIG0_PAGEVERSION; in mpt3sas_config_get_volume_handle()
2709 mpi_request.Header.PageNumber = 0; in mpt3sas_config_get_volume_handle()
2710 ioc->build_zero_len_sge_mpi(ioc, &mpi_request.PageBufferSGE); in mpt3sas_config_get_volume_handle()
2711 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_volume_handle()
2716 mpi_request.Action = MPI2_CONFIG_ACTION_PAGE_READ_CURRENT; in mpt3sas_config_get_volume_handle()
2726 mpi_request.PageAddress = cpu_to_le32(config_num + in mpt3sas_config_get_volume_handle()
2728 r = _config_request(ioc, &mpi_request, &mpi_reply, in mpt3sas_config_get_volume_handle()