Lines Matching defs:cfg_req
5054 * @cfg_req: Configuration request
5069 struct mpi3_config_request *cfg_req, int timeout, u16 *ioc_status)
5086 cfg_req->host_tag = cpu_to_le16(MPI3MR_HOSTTAG_CFG_CMDS);
5087 cfg_req->function = MPI3_FUNCTION_CONFIG;
5092 dprint_dump(cfg_req, sizeof(struct mpi3_config_request),
5094 retval = mpi3mr_admin_request_post(mrioc, cfg_req, sizeof(*cfg_req), 1);
5124 * @cfg_req: Configuration request
5134 * This function expects the cfg_req to be populated with page
5143 * buffer and set the SGE of the cfg_req.
5158 struct mpi3_config_request *cfg_req,
5169 if (cfg_req->action == MPI3_CONFIG_ACTION_PAGE_HEADER)
5174 cfg_req->action, cfg_req->page_type,
5175 cfg_req->page_number);
5180 if (cfg_req->action
5185 if ((cfg_req->action ==
5187 (cfg_req->action ==
5198 cfg_req->action, cfg_req->page_type,
5199 cfg_req->page_number, cfg_hdr->page_attribute);
5203 cfg_req->page_length = cfg_hdr->page_length;
5204 cfg_req->page_version = cfg_hdr->page_version;
5209 mpi3mr_add_sg_single(&cfg_req->sgl, sgl_flags, mem_desc.size,
5212 if ((cfg_req->action == MPI3_CONFIG_ACTION_WRITE_PERSISTENT) ||
5213 (cfg_req->action == MPI3_CONFIG_ACTION_WRITE_CURRENT)) {
5221 if (mpi3mr_post_cfg_req(mrioc, cfg_req, timeout, ioc_status))
5226 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_PERSISTENT) &&
5227 (cfg_req->action != MPI3_CONFIG_ACTION_WRITE_CURRENT)) {
5261 struct mpi3_config_request cfg_req;
5266 memset(&cfg_req, 0, sizeof(cfg_req));
5268 cfg_req.function = MPI3_FUNCTION_CONFIG;
5269 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5270 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DEVICE;
5271 cfg_req.page_number = 0;
5272 cfg_req.page_address = 0;
5274 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5284 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5287 cfg_req.page_address = cpu_to_le32(page_address);
5288 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5321 struct mpi3_config_request cfg_req;
5326 memset(&cfg_req, 0, sizeof(cfg_req));
5328 cfg_req.function = MPI3_FUNCTION_CONFIG;
5329 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5330 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY;
5331 cfg_req.page_number = 0;
5332 cfg_req.page_address = 0;
5334 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5344 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5347 cfg_req.page_address = cpu_to_le32(page_address);
5348 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5380 struct mpi3_config_request cfg_req;
5385 memset(&cfg_req, 0, sizeof(cfg_req));
5387 cfg_req.function = MPI3_FUNCTION_CONFIG;
5388 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5389 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_PHY;
5390 cfg_req.page_number = 1;
5391 cfg_req.page_address = 0;
5393 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5403 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5406 cfg_req.page_address = cpu_to_le32(page_address);
5407 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5440 struct mpi3_config_request cfg_req;
5445 memset(&cfg_req, 0, sizeof(cfg_req));
5447 cfg_req.function = MPI3_FUNCTION_CONFIG;
5448 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5449 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER;
5450 cfg_req.page_number = 0;
5451 cfg_req.page_address = 0;
5453 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5463 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5467 cfg_req.page_address = cpu_to_le32(page_address);
5468 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5500 struct mpi3_config_request cfg_req;
5505 memset(&cfg_req, 0, sizeof(cfg_req));
5507 cfg_req.function = MPI3_FUNCTION_CONFIG;
5508 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5509 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_EXPANDER;
5510 cfg_req.page_number = 1;
5511 cfg_req.page_address = 0;
5513 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5523 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5527 cfg_req.page_address = cpu_to_le32(page_address);
5528 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5560 struct mpi3_config_request cfg_req;
5565 memset(&cfg_req, 0, sizeof(cfg_req));
5567 cfg_req.function = MPI3_FUNCTION_CONFIG;
5568 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5569 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_ENCLOSURE;
5570 cfg_req.page_number = 0;
5571 cfg_req.page_address = 0;
5573 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5583 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5586 cfg_req.page_address = cpu_to_le32(page_address);
5587 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5614 struct mpi3_config_request cfg_req;
5619 memset(&cfg_req, 0, sizeof(cfg_req));
5621 cfg_req.function = MPI3_FUNCTION_CONFIG;
5622 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5623 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT;
5624 cfg_req.page_number = 0;
5625 cfg_req.page_address = 0;
5627 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5637 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5639 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5670 struct mpi3_config_request cfg_req;
5675 memset(&cfg_req, 0, sizeof(cfg_req));
5677 cfg_req.function = MPI3_FUNCTION_CONFIG;
5678 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5679 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT;
5680 cfg_req.page_number = 1;
5681 cfg_req.page_address = 0;
5683 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5693 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5695 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5727 struct mpi3_config_request cfg_req;
5731 memset(&cfg_req, 0, sizeof(cfg_req));
5733 cfg_req.function = MPI3_FUNCTION_CONFIG;
5734 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5735 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_SAS_IO_UNIT;
5736 cfg_req.page_number = 1;
5737 cfg_req.page_address = 0;
5739 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5749 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_CURRENT;
5751 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5762 cfg_req.action = MPI3_CONFIG_ACTION_WRITE_PERSISTENT;
5764 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,
5795 struct mpi3_config_request cfg_req;
5800 memset(&cfg_req, 0, sizeof(cfg_req));
5802 cfg_req.function = MPI3_FUNCTION_CONFIG;
5803 cfg_req.action = MPI3_CONFIG_ACTION_PAGE_HEADER;
5804 cfg_req.page_type = MPI3_CONFIG_PAGETYPE_DRIVER;
5805 cfg_req.page_number = 1;
5806 cfg_req.page_address = 0;
5808 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, NULL,
5818 cfg_req.action = MPI3_CONFIG_ACTION_READ_CURRENT;
5820 if (mpi3mr_process_cfg_req(mrioc, &cfg_req, &cfg_hdr,