Lines Matching full:srp
35 * The VSCSI client builds a SCSI Remote Protocol (SRP) Information Unit
38 * payload of a CRQ message. The server DMAs the SRP IU and processes it,
40 * DMAs the SRP response back to the same address as the request came from,
579 * @format: SRP or MAD format
600 * set_srp_direction: Set the fields in the srp related to data
677 * Called by map_data_for_srp_cmd() when building srp cmd from scsi cmd.
745 * map_data_for_srp_cmd: - Calls functions to map data for srp cmds
751 * Called by scsi_cmd_to_srp_cmd() when converting scsi cmds to srp cmds
797 unmap_cmd_data(&evt->iu.srp.cmd, evt, in purge_requests()
802 evt->iu.srp.login_req.opcode != SRP_LOGIN_REQ) in purge_requests()
812 * an adapter failure, reset, or SRP Login. Done under host lock to prevent
852 evt_struct->iu.srp.cmd.opcode); in ibmvscsi_timeout()
900 evt_struct->iu.srp.login_req.opcode != SRP_LOGIN_REQ) in ibmvscsi_send_srp_event()
907 evt_struct->iu.srp.cmd.opcode != SRP_TSK_MGMT) { in ibmvscsi_send_srp_event()
929 evt_struct->xfer_iu->srp.rsp.tag = (u64)evt_struct; in ibmvscsi_send_srp_event()
968 unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev); in ibmvscsi_send_srp_event()
976 unmap_cmd_data(&evt_struct->iu.srp.cmd, evt_struct, hostdata->dev); in ibmvscsi_send_srp_event()
997 struct srp_rsp *rsp = &evt_struct->xfer_iu->srp.rsp; in handle_cmd_rsp()
1003 "bad SRP RSP type %#02x\n", rsp->opcode); in handle_cmd_rsp()
1012 unmap_cmd_data(&evt_struct->iu.srp.cmd, in handle_cmd_rsp()
1057 /* Set up the actual SRP IU */ in ibmvscsi_queuecommand_lck()
1058 BUILD_BUG_ON(sizeof(evt_struct->iu.srp) != SRP_MAX_IU_LEN); in ibmvscsi_queuecommand_lck()
1059 memset(&evt_struct->iu.srp, 0x00, sizeof(evt_struct->iu.srp)); in ibmvscsi_queuecommand_lck()
1060 srp_cmd = &evt_struct->iu.srp.cmd; in ibmvscsi_queuecommand_lck()
1151 * login_rsp: - Handle response to SRP login request
1160 switch (evt_struct->xfer_iu->srp.login_rsp.opcode) { in login_rsp()
1165 evt_struct->xfer_iu->srp.login_rej.reason); in login_rsp()
1171 evt_struct->xfer_iu->srp.login_rsp.opcode); in login_rsp()
1185 be32_to_cpu(evt_struct->xfer_iu->srp.login_rsp.req_lim_delta)); in login_rsp()
1193 * send_srp_login: - Sends the srp login
1209 login = &evt_struct->iu.srp.login_req; in send_srp_login()
1225 dev_info(hostdata->dev, "sent SRP login\n"); in send_srp_login()
1395 dev_info(hostdata->dev, "host srp version: %s, " in adapter_info_rsp()
1429 * returned SRP version doesn't match ours.
1532 tsk_mgmt = &evt->iu.srp.tsk_mgmt; in ibmvscsi_eh_abort_handler()
1534 /* Set up an abort SRP command */ in ibmvscsi_eh_abort_handler()
1569 if (unlikely(srp_rsp.srp.rsp.opcode != SRP_RSP)) { in ibmvscsi_eh_abort_handler()
1571 sdev_printk(KERN_WARNING, cmd->device, "abort bad SRP RSP type %d\n", in ibmvscsi_eh_abort_handler()
1572 srp_rsp.srp.rsp.opcode); in ibmvscsi_eh_abort_handler()
1576 if (srp_rsp.srp.rsp.flags & SRP_RSP_FLAG_RSPVALID) in ibmvscsi_eh_abort_handler()
1577 rsp_rc = *((int *)srp_rsp.srp.rsp.data); in ibmvscsi_eh_abort_handler()
1579 rsp_rc = srp_rsp.srp.rsp.status; in ibmvscsi_eh_abort_handler()
1614 unmap_cmd_data(&found_evt->iu.srp.cmd, found_evt, in ibmvscsi_eh_abort_handler()
1655 tsk_mgmt = &evt->iu.srp.tsk_mgmt; in ibmvscsi_eh_device_reset_handler()
1657 /* Set up a lun reset SRP command */ in ibmvscsi_eh_device_reset_handler()
1690 if (unlikely(srp_rsp.srp.rsp.opcode != SRP_RSP)) { in ibmvscsi_eh_device_reset_handler()
1692 sdev_printk(KERN_WARNING, cmd->device, "reset bad SRP RSP type %d\n", in ibmvscsi_eh_device_reset_handler()
1693 srp_rsp.srp.rsp.opcode); in ibmvscsi_eh_device_reset_handler()
1697 if (srp_rsp.srp.rsp.flags & SRP_RSP_FLAG_RSPVALID) in ibmvscsi_eh_device_reset_handler()
1698 rsp_rc = *((int *)srp_rsp.srp.rsp.data); in ibmvscsi_eh_device_reset_handler()
1700 rsp_rc = srp_rsp.srp.rsp.status; in ibmvscsi_eh_device_reset_handler()
1719 unmap_cmd_data(&tmp_evt->iu.srp.cmd, tmp_evt, in ibmvscsi_eh_device_reset_handler()
1840 atomic_add(be32_to_cpu(evt_struct->xfer_iu->srp.rsp.req_lim_delta), in ibmvscsi_handle_crq()