Lines Matching refs:cfg_req
5068 struct mpi3_config_request *cfg_req, int timeout, u16 *ioc_status) in mpi3mr_post_cfg_req() argument
5085 cfg_req->host_tag = cpu_to_le16(MPI3MR_HOSTTAG_CFG_CMDS); in mpi3mr_post_cfg_req()
5086 cfg_req->function = MPI3_FUNCTION_CONFIG; in mpi3mr_post_cfg_req()
5091 dprint_dump(cfg_req, sizeof(struct mpi3_config_request), in mpi3mr_post_cfg_req()
5093 retval = mpi3mr_admin_request_post(mrioc, cfg_req, sizeof(*cfg_req), 1); in mpi3mr_post_cfg_req()
5157 struct mpi3_config_request *cfg_req, in mpi3mr_process_cfg_req() argument
5168 if (cfg_req->action == MPI3_CONFIG_ACTION_PAGE_HEADER) in mpi3mr_process_cfg_req()
5173 cfg_req->action, cfg_req->page_type, in mpi3mr_process_cfg_req()
5174 cfg_req->page_number); in mpi3mr_process_cfg_req()
5179 if (cfg_req->action in mpi3mr_process_cfg_req()
5184 if ((cfg_req->action == in mpi3mr_process_cfg_req()
5186 (cfg_req->action == in mpi3mr_process_cfg_req()
5197 cfg_req->action, cfg_req->page_type, in mpi3mr_process_cfg_req()
5198 cfg_req->page_number, cfg_hdr->page_attribute); in mpi3mr_process_cfg_req()
5202 cfg_req->page_length = cfg_hdr->page_length; in mpi3mr_process_cfg_req()
5203 cfg_req->page_version = cfg_hdr->page_version; in mpi3mr_process_cfg_req()
5208 mpi3mr_add_sg_single(&cfg_req->sgl, sgl_flags, mem_desc.size, in mpi3mr_process_cfg_req()
5211 if ((cfg_req->action == MPI3_CONFIG_ACTION_WRITE_PERSISTENT) || in mpi3mr_process_cfg_req()
5212 (cfg_req->action == MPI3_CONFIG_ACTION_WRITE_CURRENT)) { in mpi3mr_process_cfg_req()
5220 if (mpi3mr_post_cfg_req(mrioc, cfg_req, timeout, ioc_status)) in mpi3mr_process_cfg_req()
5225 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_PERSISTENT) && in mpi3mr_process_cfg_req()
5226 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_CURRENT)) { in mpi3mr_process_cfg_req()
5260 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_dev_pg0() local
5265 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_dev_pg0()
5267 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_dev_pg0()
5268 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_dev_pg0()
5269 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DEVICE; in mpi3mr_cfg_get_dev_pg0()
5270 cfg_req.page_number = 0; in mpi3mr_cfg_get_dev_pg0()
5271 cfg_req.page_address = 0; in mpi3mr_cfg_get_dev_pg0()
5273 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_dev_pg0()
5283 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_dev_pg0()
5286 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_dev_pg0()
5287 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_dev_pg0()
5320 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_phy_pg0() local
5325 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_phy_pg0()
5327 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_phy_pg0()
5328 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_phy_pg0()
5329 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY; in mpi3mr_cfg_get_sas_phy_pg0()
5330 cfg_req.page_number = 0; in mpi3mr_cfg_get_sas_phy_pg0()
5331 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_phy_pg0()
5333 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_phy_pg0()
5343 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_phy_pg0()
5346 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_phy_pg0()
5347 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_phy_pg0()
5379 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_phy_pg1() local
5384 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_phy_pg1()
5386 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_phy_pg1()
5387 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_phy_pg1()
5388 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY; in mpi3mr_cfg_get_sas_phy_pg1()
5389 cfg_req.page_number = 1; in mpi3mr_cfg_get_sas_phy_pg1()
5390 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_phy_pg1()
5392 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_phy_pg1()
5402 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_phy_pg1()
5405 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_phy_pg1()
5406 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_phy_pg1()
5439 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_exp_pg0() local
5444 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_exp_pg0()
5446 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_exp_pg0()
5447 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_exp_pg0()
5448 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER; in mpi3mr_cfg_get_sas_exp_pg0()
5449 cfg_req.page_number = 0; in mpi3mr_cfg_get_sas_exp_pg0()
5450 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_exp_pg0()
5452 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_exp_pg0()
5462 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_exp_pg0()
5466 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_exp_pg0()
5467 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_exp_pg0()
5499 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_exp_pg1() local
5504 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_exp_pg1()
5506 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_exp_pg1()
5507 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_exp_pg1()
5508 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER; in mpi3mr_cfg_get_sas_exp_pg1()
5509 cfg_req.page_number = 1; in mpi3mr_cfg_get_sas_exp_pg1()
5510 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_exp_pg1()
5512 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_exp_pg1()
5522 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_exp_pg1()
5526 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_sas_exp_pg1()
5527 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_exp_pg1()
5559 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_enclosure_pg0() local
5564 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_enclosure_pg0()
5566 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_enclosure_pg0()
5567 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_enclosure_pg0()
5568 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_ENCLOSURE; in mpi3mr_cfg_get_enclosure_pg0()
5569 cfg_req.page_number = 0; in mpi3mr_cfg_get_enclosure_pg0()
5570 cfg_req.page_address = 0; in mpi3mr_cfg_get_enclosure_pg0()
5572 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_enclosure_pg0()
5582 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_enclosure_pg0()
5585 cfg_req.page_address = cpu_to_le32(page_address); in mpi3mr_cfg_get_enclosure_pg0()
5586 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_enclosure_pg0()
5613 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_io_unit_pg0() local
5618 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_io_unit_pg0()
5620 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_io_unit_pg0()
5621 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_io_unit_pg0()
5622 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT; in mpi3mr_cfg_get_sas_io_unit_pg0()
5623 cfg_req.page_number = 0; in mpi3mr_cfg_get_sas_io_unit_pg0()
5624 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_io_unit_pg0()
5626 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_io_unit_pg0()
5636 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_io_unit_pg0()
5638 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_io_unit_pg0()
5669 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_sas_io_unit_pg1() local
5674 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_sas_io_unit_pg1()
5676 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_sas_io_unit_pg1()
5677 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_sas_io_unit_pg1()
5678 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT; in mpi3mr_cfg_get_sas_io_unit_pg1()
5679 cfg_req.page_number = 1; in mpi3mr_cfg_get_sas_io_unit_pg1()
5680 cfg_req.page_address = 0; in mpi3mr_cfg_get_sas_io_unit_pg1()
5682 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_sas_io_unit_pg1()
5692 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_sas_io_unit_pg1()
5694 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_sas_io_unit_pg1()
5726 struct mpi3_config_request cfg_req; in mpi3mr_cfg_set_sas_io_unit_pg1() local
5730 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_set_sas_io_unit_pg1()
5732 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_set_sas_io_unit_pg1()
5733 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_set_sas_io_unit_pg1()
5734 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT; in mpi3mr_cfg_set_sas_io_unit_pg1()
5735 cfg_req.page_number = 1; in mpi3mr_cfg_set_sas_io_unit_pg1()
5736 cfg_req.page_address = 0; in mpi3mr_cfg_set_sas_io_unit_pg1()
5738 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_set_sas_io_unit_pg1()
5748 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_CURRENT; in mpi3mr_cfg_set_sas_io_unit_pg1()
5750 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_set_sas_io_unit_pg1()
5761 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_PERSISTENT; in mpi3mr_cfg_set_sas_io_unit_pg1()
5763 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_set_sas_io_unit_pg1()
5794 struct mpi3_config_request cfg_req; in mpi3mr_cfg_get_driver_pg1() local
5799 memset(&cfg_req, 0, sizeof(cfg_req)); in mpi3mr_cfg_get_driver_pg1()
5801 cfg_req.function = MPI3_FUNCTION_CONFIG; in mpi3mr_cfg_get_driver_pg1()
5802 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER; in mpi3mr_cfg_get_driver_pg1()
5803 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DRIVER; in mpi3mr_cfg_get_driver_pg1()
5804 cfg_req.page_number = 1; in mpi3mr_cfg_get_driver_pg1()
5805 cfg_req.page_address = 0; in mpi3mr_cfg_get_driver_pg1()
5807 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL, in mpi3mr_cfg_get_driver_pg1()
5817 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT; in mpi3mr_cfg_get_driver_pg1()
5819 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr, in mpi3mr_cfg_get_driver_pg1()