Lines Matching refs:cfg_req

5016 	struct mpi3_config_request *cfg_req, int timeout, u16 *ioc_status)  in mpi3mr_post_cfg_req()  argument
5033 cfg_req->host_tag = cpu_to_le16(MPI3MR_HOSTTAG_CFG_CMDS); in mpi3mr_post_cfg_req()
5034 cfg_req->function = MPI3_FUNCTION_CONFIG; in mpi3mr_post_cfg_req()
5039 dprint_dump(cfg_req, sizeof(struct mpi3_config_request), in mpi3mr_post_cfg_req()
5041 retval = mpi3mr_admin_request_post(mrioc, cfg_req, sizeof(*cfg_req), 1); in mpi3mr_post_cfg_req()
5105 struct mpi3_config_request *cfg_req, in mpi3mr_process_cfg_req() argument
5116 if (cfg_req->action == MPI3_CONFIG_ACTION_PAGE_HEADER) in mpi3mr_process_cfg_req()
5121 cfg_req->action, cfg_req->page_type, in mpi3mr_process_cfg_req()
5122 cfg_req->page_number); in mpi3mr_process_cfg_req()
5127 if (cfg_req->action in mpi3mr_process_cfg_req()
5132 if ((cfg_req->action == in mpi3mr_process_cfg_req()
5134 (cfg_req->action == in mpi3mr_process_cfg_req()
5145 cfg_req->action, cfg_req->page_type, in mpi3mr_process_cfg_req()
5146 cfg_req->page_number, cfg_hdr->page_attribute); in mpi3mr_process_cfg_req()
5150 cfg_req->page_length = cfg_hdr->page_length; in mpi3mr_process_cfg_req()
5151 cfg_req->page_version = cfg_hdr->page_version; in mpi3mr_process_cfg_req()
5156 mpi3mr_add_sg_single(&cfg_req->sgl, sgl_flags, mem_desc.size, in mpi3mr_process_cfg_req()
5159 if ((cfg_req->action == MPI3_CONFIG_ACTION_WRITE_PERSISTENT) || in mpi3mr_process_cfg_req()
5160 (cfg_req->action == MPI3_CONFIG_ACTION_WRITE_CURRENT)) { in mpi3mr_process_cfg_req()
5168 if (mpi3mr_post_cfg_req(mrioc, cfg_req, timeout, ioc_status)) in mpi3mr_process_cfg_req()
5173 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_PERSISTENT) && in mpi3mr_process_cfg_req()
5174 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_CURRENT)) { in mpi3mr_process_cfg_req()
5208 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_dev_pg0() local
5213 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_dev_pg0()
5215 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_dev_pg0()
5216 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_dev_pg0()
5217 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DEVICE; in mpi3mr_cfg_get_dev_pg0()
5218 cfg_req.page_number = 0; in mpi3mr_cfg_get_dev_pg0()
5219 cfg_req.page_address = 0; in mpi3mr_cfg_get_dev_pg0()
5221 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_dev_pg0()
5231 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_dev_pg0()
5234 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_dev_pg0()
5235 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_dev_pg0()
5268 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_phy_pg0() local
5273 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_phy_pg0()
5275 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_phy_pg0()
5276 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_phy_pg0()
5277 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY; in mpi3mr_cfg_get_sas_phy_pg0()
5278 cfg_req.page_number = 0; in mpi3mr_cfg_get_sas_phy_pg0()
5279 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_phy_pg0()
5281 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_phy_pg0()
5291 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_phy_pg0()
5294 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_phy_pg0()
5295 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_phy_pg0()
5327 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_phy_pg1() local
5332 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_phy_pg1()
5334 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_phy_pg1()
5335 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_phy_pg1()
5336 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY; in mpi3mr_cfg_get_sas_phy_pg1()
5337 cfg_req.page_number = 1; in mpi3mr_cfg_get_sas_phy_pg1()
5338 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_phy_pg1()
5340 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_phy_pg1()
5350 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_phy_pg1()
5353 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_phy_pg1()
5354 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_phy_pg1()
5387 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_exp_pg0() local
5392 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_exp_pg0()
5394 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_exp_pg0()
5395 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_exp_pg0()
5396 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER; in mpi3mr_cfg_get_sas_exp_pg0()
5397 cfg_req.page_number = 0; in mpi3mr_cfg_get_sas_exp_pg0()
5398 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_exp_pg0()
5400 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_exp_pg0()
5410 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_exp_pg0()
5414 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_exp_pg0()
5415 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_exp_pg0()
5447 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_exp_pg1() local
5452 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_exp_pg1()
5454 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_exp_pg1()
5455 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_exp_pg1()
5456 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER; in mpi3mr_cfg_get_sas_exp_pg1()
5457 cfg_req.page_number = 1; in mpi3mr_cfg_get_sas_exp_pg1()
5458 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_exp_pg1()
5460 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_exp_pg1()
5470 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_exp_pg1()
5474 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_exp_pg1()
5475 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_exp_pg1()
5507 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_enclosure_pg0() local
5512 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_enclosure_pg0()
5514 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_enclosure_pg0()
5515 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_enclosure_pg0()
5516 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_ENCLOSURE; in mpi3mr_cfg_get_enclosure_pg0()
5517 cfg_req.page_number = 0; in mpi3mr_cfg_get_enclosure_pg0()
5518 cfg_req.page_address = 0; in mpi3mr_cfg_get_enclosure_pg0()
5520 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_enclosure_pg0()
5530 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_enclosure_pg0()
5533 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_enclosure_pg0()
5534 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_enclosure_pg0()
5561 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_io_unit_pg0() local
5566 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_io_unit_pg0()
5568 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_io_unit_pg0()
5569 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_io_unit_pg0()
5570 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT; in mpi3mr_cfg_get_sas_io_unit_pg0()
5571 cfg_req.page_number = 0; in mpi3mr_cfg_get_sas_io_unit_pg0()
5572 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_io_unit_pg0()
5574 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_io_unit_pg0()
5584 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_io_unit_pg0()
5586 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_io_unit_pg0()
5617 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_io_unit_pg1() local
5622 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_io_unit_pg1()
5624 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_io_unit_pg1()
5625 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_io_unit_pg1()
5626 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT; in mpi3mr_cfg_get_sas_io_unit_pg1()
5627 cfg_req.page_number = 1; in mpi3mr_cfg_get_sas_io_unit_pg1()
5628 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_io_unit_pg1()
5630 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_io_unit_pg1()
5640 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_io_unit_pg1()
5642 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_io_unit_pg1()
5674 struct mpi3_config_request cfg_req; in mpi3mr_cfg_set_sas_io_unit_pg1() local
5678 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_set_sas_io_unit_pg1()
5680 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_set_sas_io_unit_pg1()
5681 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_set_sas_io_unit_pg1()
5682 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT; in mpi3mr_cfg_set_sas_io_unit_pg1()
5683 cfg_req.page_number = 1; in mpi3mr_cfg_set_sas_io_unit_pg1()
5684 cfg_req.page_address = 0; in mpi3mr_cfg_set_sas_io_unit_pg1()
5686 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_set_sas_io_unit_pg1()
5696 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_CURRENT; in mpi3mr_cfg_set_sas_io_unit_pg1()
5698 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_set_sas_io_unit_pg1()
5709 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_PERSISTENT; in mpi3mr_cfg_set_sas_io_unit_pg1()
5711 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_set_sas_io_unit_pg1()
5742 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_driver_pg1() local
5747 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_driver_pg1()
5749 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_driver_pg1()
5750 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_driver_pg1()
5751 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DRIVER; in mpi3mr_cfg_get_driver_pg1()
5752 cfg_req.page_number = 1; in mpi3mr_cfg_get_driver_pg1()
5753 cfg_req.page_address = 0; in mpi3mr_cfg_get_driver_pg1()
5755 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_driver_pg1()
5765 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_driver_pg1()
5767 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_driver_pg1()