Lines Matching refs:mpi_request

156 		u8 status, void *mpi_request, int sz)  in mpt3sas_base_check_cmd_timeout()  argument
165 _debug_dump_mf(mpi_request, sz); in mpt3sas_base_check_cmd_timeout()
418 void *mpi_request, u16 smid) in _clone_sg_entries() argument
436 request_hdr = (MPI2RequestHeader_t *) mpi_request; in _clone_sg_entries()
440 (Mpi25SCSIIORequest_t *)mpi_request; in _clone_sg_entries()
445 (Mpi2ConfigRequest_t *)mpi_request; in _clone_sg_entries()
615 Mpi26IoUnitControlRequest_t *mpi_request; in _base_sync_drv_fw_timestamp() local
634 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_sync_drv_fw_timestamp()
636 memset(mpi_request, 0, sizeof(Mpi26IoUnitControlRequest_t)); in _base_sync_drv_fw_timestamp()
637 mpi_request->Function = MPI2_FUNCTION_IO_UNIT_CONTROL; in _base_sync_drv_fw_timestamp()
638 mpi_request->Operation = MPI26_CTRL_OP_SET_IOC_PARAMETER; in _base_sync_drv_fw_timestamp()
639 mpi_request->IOCParameter = MPI26_SET_IOC_PARAMETER_SYNC_TIMESTAMP; in _base_sync_drv_fw_timestamp()
642 mpi_request->Reserved7 = cpu_to_le32(TimeStamp >> 32); in _base_sync_drv_fw_timestamp()
643 mpi_request->IOCParameterValue = cpu_to_le32(TimeStamp & 0xFFFFFFFF); in _base_sync_drv_fw_timestamp()
653 ioc->scsih_cmds.status, mpi_request, in _base_sync_drv_fw_timestamp()
2426 Mpi25SCSIIORequest_t *mpi_request, in base_make_prp_nvme() argument
2464 main_chain_element = (pMpi25IeeeSgeChain64_t)&mpi_request->SGL; in base_make_prp_nvme()
2488 ptr_first_sgl = (pMpi25IeeeSgeChain64_t)&mpi_request->SGL; in base_make_prp_nvme()
2590 Mpi25SCSIIORequest_t *mpi_request, u16 smid, struct scsi_cmnd *scmd, in _base_check_pcie_native_sgl() argument
2610 base_make_prp_nvme(ioc, scmd, mpi_request, in _base_check_pcie_native_sgl()
2676 Mpi2SCSIIORequest_t *mpi_request; in _base_build_sg_scmd() local
2690 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_build_sg_scmd()
2708 sg_local = &mpi_request->SGL; in _base_build_sg_scmd()
2713 mpi_request->ChainOffset = (offsetof(Mpi2SCSIIORequest_t, SGL) + in _base_build_sg_scmd()
2817 Mpi25SCSIIORequest_t *mpi_request; in _base_build_sg_scmd_ieee() local
2830 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_build_sg_scmd_ieee()
2841 if ((pcie_device) && (_base_check_pcie_native_sgl(ioc, mpi_request, in _base_build_sg_scmd_ieee()
2852 sg_local = &mpi_request->SGL; in _base_build_sg_scmd_ieee()
2858 mpi_request->ChainOffset = (sges_in_segment - 1 /* chain element */) + in _base_build_sg_scmd_ieee()
4653 Mpi25FWUploadRequest_t *mpi_request; in _base_display_fwpkg_version() local
4687 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_display_fwpkg_version()
4689 memset(mpi_request, 0, sizeof(Mpi25FWUploadRequest_t)); in _base_display_fwpkg_version()
4690 mpi_request->Function = MPI2_FUNCTION_FW_UPLOAD; in _base_display_fwpkg_version()
4691 mpi_request->ImageType = MPI2_FW_UPLOAD_ITYPE_FW_FLASH; in _base_display_fwpkg_version()
4692 mpi_request->ImageSize = cpu_to_le32(data_length); in _base_display_fwpkg_version()
4693 ioc->build_sg(ioc, &mpi_request->SGL, 0, 0, fwpkg_data_dma, in _base_display_fwpkg_version()
4703 _debug_dump_mf(mpi_request, in _base_display_fwpkg_version()
7147 Mpi2SasIoUnitControlRequest_t *mpi_request) in mpt3sas_base_sas_iounit_control() argument
7179 memcpy(request, mpi_request, sizeof(Mpi2SasIoUnitControlRequest_t)); in mpt3sas_base_sas_iounit_control()
7180 if (mpi_request->Operation == MPI2_SAS_OP_PHY_HARD_RESET || in mpt3sas_base_sas_iounit_control()
7181 mpi_request->Operation == MPI2_SAS_OP_PHY_LINK_RESET) in mpt3sas_base_sas_iounit_control()
7187 if ((mpi_request->Operation == MPI2_SAS_OP_PHY_HARD_RESET || in mpt3sas_base_sas_iounit_control()
7188 mpi_request->Operation == MPI2_SAS_OP_PHY_LINK_RESET) && in mpt3sas_base_sas_iounit_control()
7193 mpi_request, sizeof(Mpi2SasIoUnitControlRequest_t)/4, in mpt3sas_base_sas_iounit_control()
7228 Mpi2SepReply_t *mpi_reply, Mpi2SepRequest_t *mpi_request) in mpt3sas_base_scsi_enclosure_processor() argument
7261 memcpy(request, mpi_request, sizeof(Mpi2SepReply_t)); in mpt3sas_base_scsi_enclosure_processor()
7268 ioc->base_cmds.status, mpi_request, in mpt3sas_base_scsi_enclosure_processor()
7300 Mpi2PortFactsRequest_t mpi_request; in _base_get_port_facts() local
7309 memset(&mpi_request, 0, mpi_request_sz); in _base_get_port_facts()
7310 mpi_request.Function = MPI2_FUNCTION_PORT_FACTS; in _base_get_port_facts()
7311 mpi_request.PortNumber = port; in _base_get_port_facts()
7313 (u32 *)&mpi_request, mpi_reply_sz, (u16 *)&mpi_reply, 5); in _base_get_port_facts()
7401 Mpi2IOCFactsRequest_t mpi_request; in _base_get_ioc_facts() local
7417 memset(&mpi_request, 0, mpi_request_sz); in _base_get_ioc_facts()
7418 mpi_request.Function = MPI2_FUNCTION_IOC_FACTS; in _base_get_ioc_facts()
7420 (u32 *)&mpi_request, mpi_reply_sz, (u16 *)&mpi_reply, 5); in _base_get_ioc_facts()
7504 Mpi2IOCInitRequest_t mpi_request; in _base_send_ioc_init() local
7513 memset(&mpi_request, 0, sizeof(Mpi2IOCInitRequest_t)); in _base_send_ioc_init()
7514 mpi_request.Function = MPI2_FUNCTION_IOC_INIT; in _base_send_ioc_init()
7515 mpi_request.WhoInit = MPI2_WHOINIT_HOST_DRIVER; in _base_send_ioc_init()
7516 mpi_request.VF_ID = 0; /* TODO */ in _base_send_ioc_init()
7517 mpi_request.VP_ID = 0; in _base_send_ioc_init()
7518 mpi_request.MsgVersion = cpu_to_le16(ioc->hba_mpi_version_belonged); in _base_send_ioc_init()
7519 mpi_request.HeaderVersion = cpu_to_le16(MPI2_HEADER_VERSION); in _base_send_ioc_init()
7520 mpi_request.HostPageSize = MPT3SAS_HOST_PAGE_SIZE_4K; in _base_send_ioc_init()
7523 mpi_request.HostMSIxVectors = ioc->reply_queue_count; in _base_send_ioc_init()
7524 mpi_request.SystemRequestFrameSize = cpu_to_le16(ioc->request_sz/4); in _base_send_ioc_init()
7525 mpi_request.ReplyDescriptorPostQueueDepth = in _base_send_ioc_init()
7527 mpi_request.ReplyFreeQueueDepth = in _base_send_ioc_init()
7530 mpi_request.SenseBufferAddressHigh = in _base_send_ioc_init()
7532 mpi_request.SystemReplyAddressHigh = in _base_send_ioc_init()
7534 mpi_request.SystemRequestFrameBaseAddress = in _base_send_ioc_init()
7536 mpi_request.ReplyFreeQueueAddress = in _base_send_ioc_init()
7547 mpi_request.MsgFlags = MPI2_IOCINIT_MSGFLAG_RDPQ_ARRAY_MODE; in _base_send_ioc_init()
7548 mpi_request.ReplyDescriptorPostQueueAddress = in _base_send_ioc_init()
7551 mpi_request.ReplyDescriptorPostQueueAddress = in _base_send_ioc_init()
7558 mpi_request.ConfigurationFlags |= in _base_send_ioc_init()
7565 mpi_request.TimeStamp = cpu_to_le64(ktime_to_ms(current_time)); in _base_send_ioc_init()
7571 mfp = (__le32 *)&mpi_request; in _base_send_ioc_init()
7579 sizeof(Mpi2IOCInitRequest_t), (u32 *)&mpi_request, in _base_send_ioc_init()
7658 Mpi2PortEnableRequest_t *mpi_request; in _base_send_port_enable() local
7678 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_send_port_enable()
7680 memset(mpi_request, 0, sizeof(Mpi2PortEnableRequest_t)); in _base_send_port_enable()
7681 mpi_request->Function = MPI2_FUNCTION_PORT_ENABLE; in _base_send_port_enable()
7688 _debug_dump_mf(mpi_request, in _base_send_port_enable()
7721 Mpi2PortEnableRequest_t *mpi_request; in mpt3sas_port_enable() local
7739 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in mpt3sas_port_enable()
7741 memset(mpi_request, 0, sizeof(Mpi2PortEnableRequest_t)); in mpt3sas_port_enable()
7742 mpi_request->Function = MPI2_FUNCTION_PORT_ENABLE; in mpt3sas_port_enable()
7832 Mpi2EventNotificationRequest_t *mpi_request; in _base_event_notification() local
7850 mpi_request = mpt3sas_base_get_msg_frame(ioc, smid); in _base_event_notification()
7852 memset(mpi_request, 0, sizeof(Mpi2EventNotificationRequest_t)); in _base_event_notification()
7853 mpi_request->Function = MPI2_FUNCTION_EVENT_NOTIFICATION; in _base_event_notification()
7854 mpi_request->VF_ID = 0; /* TODO */ in _base_event_notification()
7855 mpi_request->VP_ID = 0; in _base_event_notification()
7857 mpi_request->EventMasks[i] = in _base_event_notification()
7864 _debug_dump_mf(mpi_request, in _base_event_notification()