Lines Matching refs:srp_cmd
606 struct srp_cmd *srp_cmd, in set_srp_direction() argument
621 srp_cmd->data_out_desc_cnt = numbuf; in set_srp_direction()
623 srp_cmd->data_in_desc_cnt = numbuf; in set_srp_direction()
627 srp_cmd->buf_fmt = fmt << 4; in set_srp_direction()
629 srp_cmd->buf_fmt = fmt; in set_srp_direction()
638 static void unmap_cmd_data(struct srp_cmd *cmd, in unmap_cmd_data()
682 struct srp_cmd *srp_cmd, struct device *dev) in map_sg_data() argument
688 (struct srp_direct_buf *) srp_cmd->add_data; in map_sg_data()
698 set_srp_direction(cmd, srp_cmd, sg_mapped); in map_sg_data()
756 struct srp_cmd *srp_cmd, struct device *dev) in map_data_for_srp_cmd() argument
775 return map_sg_data(cmd, evt_struct, srp_cmd, dev); in map_data_for_srp_cmd()
1044 struct srp_cmd *srp_cmd; in ibmvscsi_queuecommand_lck() local
1057 srp_cmd = &evt_struct->iu.srp.cmd; in ibmvscsi_queuecommand_lck()
1058 memset(srp_cmd, 0x00, SRP_MAX_IU_LEN); in ibmvscsi_queuecommand_lck()
1059 srp_cmd->opcode = SRP_CMD; in ibmvscsi_queuecommand_lck()
1060 memcpy(srp_cmd->cdb, cmnd->cmnd, sizeof(srp_cmd->cdb)); in ibmvscsi_queuecommand_lck()
1061 int_to_scsilun(lun, &srp_cmd->lun); in ibmvscsi_queuecommand_lck()
1063 if (!map_data_for_srp_cmd(cmnd, evt_struct, srp_cmd, hostdata->dev)) { in ibmvscsi_queuecommand_lck()
1080 indirect = (struct srp_indirect_buf *) srp_cmd->add_data; in ibmvscsi_queuecommand_lck()
1081 out_fmt = srp_cmd->buf_fmt >> 4; in ibmvscsi_queuecommand_lck()
1082 in_fmt = srp_cmd->buf_fmt & ((1U << 4) - 1); in ibmvscsi_queuecommand_lck()
1088 offsetof(struct srp_cmd, add_data) + in ibmvscsi_queuecommand_lck()