Lines Matching refs:cfg_req

5177  * @cfg_req: Configuration request
5192 struct mpi3_config_request *cfg_req, int timeout, u16 *ioc_status)
5209 cfg_req->host_tag = cpu_to_le16(MPI3MR_HOSTTAG_CFG_CMDS);
5210 cfg_req->function = MPI3_FUNCTION_CONFIG;
5215 dprint_dump(cfg_req, sizeof(struct mpi3_config_request),
5217 retval = mpi3mr_admin_request_post(mrioc, cfg_req, sizeof(*cfg_req), 1);
5247 * @cfg_req: Configuration request
5257 * This function expects the cfg_req to be populated with page
5266 * buffer and set the SGE of the cfg_req.
5281 struct mpi3_config_request *cfg_req,
5292 if (cfg_req->action == MPI3_CONFIG_ACTION_PAGE_HEADER)
5297 cfg_req->action, cfg_req->page_type,
5298 cfg_req->page_number);
5303 if (cfg_req->action
5308 if ((cfg_req->action ==
5310 (cfg_req->action ==
5321 cfg_req->action, cfg_req->page_type,
5322 cfg_req->page_number, cfg_hdr->page_attribute);
5326 cfg_req->page_length = cfg_hdr->page_length;
5327 cfg_req->page_version = cfg_hdr->page_version;
5332 mpi3mr_add_sg_single(&cfg_req->sgl, sgl_flags, mem_desc.size,
5335 if ((cfg_req->action == MPI3_CONFIG_ACTION_WRITE_PERSISTENT) ||
5336 (cfg_req->action == MPI3_CONFIG_ACTION_WRITE_CURRENT)) {
5344 if (mpi3mr_post_cfg_req(mrioc, cfg_req, timeout, ioc_status))
5349 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_PERSISTENT) &&
5350 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_CURRENT)) {
5384 struct mpi3_config_request cfg_req;
5389 memset(&cfg_req, 0, sizeof(cfg_req));
5391 cfg_req.function = MPI3_FUNCTION_CONFIG;
5392 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5393 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DEVICE;
5394 cfg_req.page_number = 0;
5395 cfg_req.page_address = 0;
5397 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5407 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5410 cfg_req.page_address = cpu_to_le32(page_address);
5411 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5444 struct mpi3_config_request cfg_req;
5449 memset(&cfg_req, 0, sizeof(cfg_req));
5451 cfg_req.function = MPI3_FUNCTION_CONFIG;
5452 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5453 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY;
5454 cfg_req.page_number = 0;
5455 cfg_req.page_address = 0;
5457 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5467 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5470 cfg_req.page_address = cpu_to_le32(page_address);
5471 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5503 struct mpi3_config_request cfg_req;
5508 memset(&cfg_req, 0, sizeof(cfg_req));
5510 cfg_req.function = MPI3_FUNCTION_CONFIG;
5511 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5512 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY;
5513 cfg_req.page_number = 1;
5514 cfg_req.page_address = 0;
5516 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5526 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5529 cfg_req.page_address = cpu_to_le32(page_address);
5530 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5563 struct mpi3_config_request cfg_req;
5568 memset(&cfg_req, 0, sizeof(cfg_req));
5570 cfg_req.function = MPI3_FUNCTION_CONFIG;
5571 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5572 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER;
5573 cfg_req.page_number = 0;
5574 cfg_req.page_address = 0;
5576 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5586 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5590 cfg_req.page_address = cpu_to_le32(page_address);
5591 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5623 struct mpi3_config_request cfg_req;
5628 memset(&cfg_req, 0, sizeof(cfg_req));
5630 cfg_req.function = MPI3_FUNCTION_CONFIG;
5631 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5632 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER;
5633 cfg_req.page_number = 1;
5634 cfg_req.page_address = 0;
5636 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5646 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5650 cfg_req.page_address = cpu_to_le32(page_address);
5651 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5683 struct mpi3_config_request cfg_req;
5688 memset(&cfg_req, 0, sizeof(cfg_req));
5690 cfg_req.function = MPI3_FUNCTION_CONFIG;
5691 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5692 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_ENCLOSURE;
5693 cfg_req.page_number = 0;
5694 cfg_req.page_address = 0;
5696 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5706 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5709 cfg_req.page_address = cpu_to_le32(page_address);
5710 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5737 struct mpi3_config_request cfg_req;
5742 memset(&cfg_req, 0, sizeof(cfg_req));
5744 cfg_req.function = MPI3_FUNCTION_CONFIG;
5745 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5746 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT;
5747 cfg_req.page_number = 0;
5748 cfg_req.page_address = 0;
5750 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5760 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5762 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5793 struct mpi3_config_request cfg_req;
5798 memset(&cfg_req, 0, sizeof(cfg_req));
5800 cfg_req.function = MPI3_FUNCTION_CONFIG;
5801 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5802 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT;
5803 cfg_req.page_number = 1;
5804 cfg_req.page_address = 0;
5806 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5816 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5818 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5850 struct mpi3_config_request cfg_req;
5854 memset(&cfg_req, 0, sizeof(cfg_req));
5856 cfg_req.function = MPI3_FUNCTION_CONFIG;
5857 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5858 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT;
5859 cfg_req.page_number = 1;
5860 cfg_req.page_address = 0;
5862 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5872 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_CURRENT;
5874 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5885 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_PERSISTENT;
5887 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5918 struct mpi3_config_request cfg_req;
5923 memset(&cfg_req, 0, sizeof(cfg_req));
5925 cfg_req.function = MPI3_FUNCTION_CONFIG;
5926 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5927 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DRIVER;
5928 cfg_req.page_number = 1;
5929 cfg_req.page_address = 0;
5931 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5941 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5943 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,