Lines Matching refs:query
742 struct ufs_query *query = &hba->dev_cmd.query; in ufshcd_prepare_utp_query_req_upiu() local
743 u16 len = be16_to_cpu(query->request.upiu_req.length); in ufshcd_prepare_utp_query_req_upiu()
750 UPIU_HEADER_DWORD(0, query->request.query_func, in ufshcd_prepare_utp_query_req_upiu()
754 if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) in ufshcd_prepare_utp_query_req_upiu()
761 memcpy(&ucd_req_ptr->qr, &query->request.upiu_req, QUERY_OSF_SIZE); in ufshcd_prepare_utp_query_req_upiu()
764 if (query->request.upiu_req.opcode == UPIU_QUERY_OPCODE_WRITE_DESC) in ufshcd_prepare_utp_query_req_upiu()
765 memcpy(ucd_req_ptr + 1, query->descriptor, len); in ufshcd_prepare_utp_query_req_upiu()
870 struct ufs_query_res *query_res = &hba->dev_cmd.query.response; in ufshcd_check_query_response()
884 struct ufs_query_res *query_res = &hba->dev_cmd.query.response; in ufshcd_copy_query_response()
889 if (hba->dev_cmd.query.descriptor && in ufshcd_copy_query_response()
900 be16_to_cpu(hba->dev_cmd.query.request.upiu_req.length); in ufshcd_copy_query_response()
902 memcpy(hba->dev_cmd.query.descriptor, descp, resp_len); in ufshcd_copy_query_response()
970 *request = &hba->dev_cmd.query.request; in ufshcd_init_query()
971 *response = &hba->dev_cmd.query.response; in ufshcd_init_query()
1084 hba->dev_cmd.query.descriptor = desc_buf; in __ufshcd_query_descriptor()
1109 hba->dev_cmd.query.descriptor = NULL; in __ufshcd_query_descriptor()