Lines Matching refs:treq
7065 struct utp_task_req_desc *treq, u8 tm_function)
7088 treq->upiu_req.req_header.task_tag = task_tag;
7090 memcpy(hba->utmrdl_base_addr + task_tag, treq, sizeof(*treq));
7117 memcpy(treq, hba->utmrdl_base_addr + task_tag, sizeof(*treq));
7146 struct utp_task_req_desc treq = { };
7151 treq.header.interrupt = 1;
7152 treq.header.ocs = OCS_INVALID_COMMAND_STATUS;
7155 treq.upiu_req.req_header.transaction_code = UPIU_TRANSACTION_TASK_REQ;
7156 treq.upiu_req.req_header.lun = lun_id;
7157 treq.upiu_req.req_header.tm_function = tm_function;
7163 treq.upiu_req.input_param1 = cpu_to_be32(lun_id);
7164 treq.upiu_req.input_param2 = cpu_to_be32(task_id);
7166 err = __ufshcd_issue_tm_cmd(hba, &treq, tm_function);
7170 ocs_value = treq.header.ocs & MASK_OCS;
7175 *tm_response = be32_to_cpu(treq.upiu_rsp.output_param1) &
7311 struct utp_task_req_desc treq = { };
7330 treq.header.interrupt = 1;
7331 treq.header.ocs = OCS_INVALID_COMMAND_STATUS;
7333 memcpy(&treq.upiu_req, req_upiu, sizeof(*req_upiu));
7335 err = __ufshcd_issue_tm_cmd(hba, &treq, tm_f);
7339 ocs_value = treq.header.ocs & MASK_OCS;
7346 memcpy(rsp_upiu, &treq.upiu_rsp, sizeof(*rsp_upiu));