Lines Matching refs:mpi_request
143 u8 status, void *mpi_request, int sz) in mpt3sas_base_check_cmd_timeout() argument
152 _debug_dump_mf(mpi_request, sz); in mpt3sas_base_check_cmd_timeout()
405 void *mpi_request, u16 smid) in _clone_sg_entries() argument
423 request_hdr = (MPI2RequestHeader_t *) mpi_request; in _clone_sg_entries()
427 (Mpi25SCSIIORequest_t *)mpi_request; in _clone_sg_entries()
432 (Mpi2ConfigRequest_t *)mpi_request; in _clone_sg_entries()
2131 Mpi25SCSIIORequest_t *mpi_request, in base_make_prp_nvme() argument
2169 main_chain_element = (pMpi25IeeeSgeChain64_t)&mpi_request->SGL; in base_make_prp_nvme()
2193 ptr_first_sgl = (pMpi25IeeeSgeChain64_t)&mpi_request->SGL; in base_make_prp_nvme()
2295 Mpi25SCSIIORequest_t *mpi_request, u16 smid, struct scsi_cmnd *scmd, in _base_check_pcie_native_sgl() argument
2319 base_make_prp_nvme(ioc, scmd, mpi_request, in _base_check_pcie_native_sgl()
2385 Mpi2SCSIIORequest_t *mpi_request; in _base_build_sg_scmd() local
2399 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_build_sg_scmd()
2421 sg_local = &mpi_request->SGL; in _base_build_sg_scmd()
2426 mpi_request->ChainOffset = (offsetof(Mpi2SCSIIORequest_t, SGL) + in _base_build_sg_scmd()
2530 Mpi25SCSIIORequest_t *mpi_request; in _base_build_sg_scmd_ieee() local
2543 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_build_sg_scmd_ieee()
2554 if ((pcie_device) && (_base_check_pcie_native_sgl(ioc, mpi_request, in _base_build_sg_scmd_ieee()
2569 sg_local = &mpi_request->SGL; in _base_build_sg_scmd_ieee()
2575 mpi_request->ChainOffset = (sges_in_segment - 1 /* chain element */) + in _base_build_sg_scmd_ieee()
4246 Mpi25FWUploadRequest_t *mpi_request; in _base_display_fwpkg_version() local
4278 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_display_fwpkg_version()
4280 memset(mpi_request, 0, sizeof(Mpi25FWUploadRequest_t)); in _base_display_fwpkg_version()
4281 mpi_request->Function = MPI2_FUNCTION_FW_UPLOAD; in _base_display_fwpkg_version()
4282 mpi_request->ImageType = MPI2_FW_UPLOAD_ITYPE_FW_FLASH; in _base_display_fwpkg_version()
4283 mpi_request->ImageSize = cpu_to_le32(data_length); in _base_display_fwpkg_version()
4284 ioc->build_sg(ioc, &mpi_request->SGL, 0, 0, fwpkg_data_dma, in _base_display_fwpkg_version()
4294 _debug_dump_mf(mpi_request, in _base_display_fwpkg_version()
5795 Mpi2SasIoUnitControlRequest_t *mpi_request) in mpt3sas_base_sas_iounit_control() argument
5827 memcpy(request, mpi_request, sizeof(Mpi2SasIoUnitControlRequest_t)); in mpt3sas_base_sas_iounit_control()
5828 if (mpi_request->Operation == MPI2_SAS_OP_PHY_HARD_RESET || in mpt3sas_base_sas_iounit_control()
5829 mpi_request->Operation == MPI2_SAS_OP_PHY_LINK_RESET) in mpt3sas_base_sas_iounit_control()
5835 if ((mpi_request->Operation == MPI2_SAS_OP_PHY_HARD_RESET || in mpt3sas_base_sas_iounit_control()
5836 mpi_request->Operation == MPI2_SAS_OP_PHY_LINK_RESET) && in mpt3sas_base_sas_iounit_control()
5842 ioc->base_cmds.status, mpi_request, in mpt3sas_base_sas_iounit_control()
5877 Mpi2SepReply_t *mpi_reply, Mpi2SepRequest_t *mpi_request) in mpt3sas_base_scsi_enclosure_processor() argument
5910 memcpy(request, mpi_request, sizeof(Mpi2SepReply_t)); in mpt3sas_base_scsi_enclosure_processor()
5918 ioc->base_cmds.status, mpi_request, in mpt3sas_base_scsi_enclosure_processor()
5950 Mpi2PortFactsRequest_t mpi_request; in _base_get_port_facts() local
5959 memset(&mpi_request, 0, mpi_request_sz); in _base_get_port_facts()
5960 mpi_request.Function = MPI2_FUNCTION_PORT_FACTS; in _base_get_port_facts()
5961 mpi_request.PortNumber = port; in _base_get_port_facts()
5963 (u32 *)&mpi_request, mpi_reply_sz, (u16 *)&mpi_reply, 5); in _base_get_port_facts()
6045 Mpi2IOCFactsRequest_t mpi_request; in _base_get_ioc_facts() local
6061 memset(&mpi_request, 0, mpi_request_sz); in _base_get_ioc_facts()
6062 mpi_request.Function = MPI2_FUNCTION_IOC_FACTS; in _base_get_ioc_facts()
6064 (u32 *)&mpi_request, mpi_reply_sz, (u16 *)&mpi_reply, 5); in _base_get_ioc_facts()
6148 Mpi2IOCInitRequest_t mpi_request; in _base_send_ioc_init() local
6157 memset(&mpi_request, 0, sizeof(Mpi2IOCInitRequest_t)); in _base_send_ioc_init()
6158 mpi_request.Function = MPI2_FUNCTION_IOC_INIT; in _base_send_ioc_init()
6159 mpi_request.WhoInit = MPI2_WHOINIT_HOST_DRIVER; in _base_send_ioc_init()
6160 mpi_request.VF_ID = 0; /* TODO */ in _base_send_ioc_init()
6161 mpi_request.VP_ID = 0; in _base_send_ioc_init()
6162 mpi_request.MsgVersion = cpu_to_le16(ioc->hba_mpi_version_belonged); in _base_send_ioc_init()
6163 mpi_request.HeaderVersion = cpu_to_le16(MPI2_HEADER_VERSION); in _base_send_ioc_init()
6164 mpi_request.HostPageSize = MPT3SAS_HOST_PAGE_SIZE_4K; in _base_send_ioc_init()
6167 mpi_request.HostMSIxVectors = ioc->reply_queue_count; in _base_send_ioc_init()
6168 mpi_request.SystemRequestFrameSize = cpu_to_le16(ioc->request_sz/4); in _base_send_ioc_init()
6169 mpi_request.ReplyDescriptorPostQueueDepth = in _base_send_ioc_init()
6171 mpi_request.ReplyFreeQueueDepth = in _base_send_ioc_init()
6174 mpi_request.SenseBufferAddressHigh = in _base_send_ioc_init()
6176 mpi_request.SystemReplyAddressHigh = in _base_send_ioc_init()
6178 mpi_request.SystemRequestFrameBaseAddress = in _base_send_ioc_init()
6180 mpi_request.ReplyFreeQueueAddress = in _base_send_ioc_init()
6191 mpi_request.MsgFlags = MPI2_IOCINIT_MSGFLAG_RDPQ_ARRAY_MODE; in _base_send_ioc_init()
6192 mpi_request.ReplyDescriptorPostQueueAddress = in _base_send_ioc_init()
6195 mpi_request.ReplyDescriptorPostQueueAddress = in _base_send_ioc_init()
6203 mpi_request.TimeStamp = cpu_to_le64(ktime_to_ms(current_time)); in _base_send_ioc_init()
6209 mfp = (__le32 *)&mpi_request; in _base_send_ioc_init()
6217 sizeof(Mpi2IOCInitRequest_t), (u32 *)&mpi_request, in _base_send_ioc_init()
6293 Mpi2PortEnableRequest_t *mpi_request; in _base_send_port_enable() local
6313 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_send_port_enable()
6315 memset(mpi_request, 0, sizeof(Mpi2PortEnableRequest_t)); in _base_send_port_enable()
6316 mpi_request->Function = MPI2_FUNCTION_PORT_ENABLE; in _base_send_port_enable()
6323 _debug_dump_mf(mpi_request, in _base_send_port_enable()
6356 Mpi2PortEnableRequest_t *mpi_request; in mpt3sas_port_enable() local
6373 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_port_enable()
6375 memset(mpi_request, 0, sizeof(Mpi2PortEnableRequest_t)); in mpt3sas_port_enable()
6376 mpi_request->Function = MPI2_FUNCTION_PORT_ENABLE; in mpt3sas_port_enable()
6466 Mpi2EventNotificationRequest_t *mpi_request; in _base_event_notification() local
6484 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_event_notification()
6486 memset(mpi_request, 0, sizeof(Mpi2EventNotificationRequest_t)); in _base_event_notification()
6487 mpi_request->Function = MPI2_FUNCTION_EVENT_NOTIFICATION; in _base_event_notification()
6488 mpi_request->VF_ID = 0; /* TODO */ in _base_event_notification()
6489 mpi_request->VP_ID = 0; in _base_event_notification()
6491 mpi_request->EventMasks[i] = in _base_event_notification()
6498 _debug_dump_mf(mpi_request, in _base_event_notification()