Home
last modified time | relevance | path

Searched refs:ucd_rsp_ptr (Results 1 – 5 of 5) sorted by relevance

/OK3568_Linux_fs/u-boot/drivers/ufs/
H A Dufs.c618 hba->ucd_rsp_ptr = in ufshcd_host_memory_configure()
763 memset(hba->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); in ufshcd_prepare_utp_query_req_upiu()
779 memset(hba->ucd_rsp_ptr, 0, sizeof(struct utp_upiu_rsp)); in ufshcd_prepare_utp_nop_upiu()
845 static inline int ufshcd_get_req_rsp(struct utp_upiu_rsp *ucd_rsp_ptr) in ufshcd_get_req_rsp() argument
847 return be32_to_cpu(ucd_rsp_ptr->header.dword_0) >> 24; in ufshcd_get_req_rsp()
859 static inline int ufshcd_get_rsp_upiu_result(struct utp_upiu_rsp *ucd_rsp_ptr) in ufshcd_get_rsp_upiu_result() argument
861 return be32_to_cpu(ucd_rsp_ptr->header.dword_1) & MASK_RSP_UPIU_RESULT; in ufshcd_get_rsp_upiu_result()
869 query_res->response = ufshcd_get_rsp_upiu_result(hba->ucd_rsp_ptr) >> in ufshcd_check_query_response()
882 memcpy(&query_res->upiu_res, &hba->ucd_rsp_ptr->qr, QUERY_OSF_SIZE); in ufshcd_copy_query_response()
886 hba->ucd_rsp_ptr->qr.opcode == UPIU_QUERY_OPCODE_READ_DESC) { in ufshcd_copy_query_response()
[all …]
H A Dufs.h729 struct utp_upiu_rsp *ucd_rsp_ptr; member
/OK3568_Linux_fs/kernel/drivers/scsi/ufs/
H A Dufshcd.c500 ufshcd_hex_dump("UPIU RSP: ", lrbp->ucd_rsp_ptr, in ufshcd_print_trs()
784 ufshcd_get_req_rsp(struct utp_upiu_rsp *ucd_rsp_ptr) in ufshcd_get_req_rsp() argument
786 return be32_to_cpu(ucd_rsp_ptr->header.dword_0) >> 24; in ufshcd_get_req_rsp()
797 ufshcd_get_rsp_upiu_result(struct utp_upiu_rsp *ucd_rsp_ptr) in ufshcd_get_rsp_upiu_result() argument
799 return be32_to_cpu(ucd_rsp_ptr->header.dword_1) & MASK_RSP_UPIU_RESULT; in ufshcd_get_rsp_upiu_result()
810 ufshcd_get_rsp_upiu_data_seg_len(struct utp_upiu_rsp *ucd_rsp_ptr) in ufshcd_get_rsp_upiu_data_seg_len() argument
812 return be32_to_cpu(ucd_rsp_ptr->header.dword_2) & in ufshcd_get_rsp_upiu_data_seg_len()
825 static inline bool ufshcd_is_exception_event(struct utp_upiu_rsp *ucd_rsp_ptr) in ufshcd_is_exception_event() argument
827 return be32_to_cpu(ucd_rsp_ptr->header.dword_2) & in ufshcd_is_exception_event()
2128 ufshcd_get_rsp_upiu_data_seg_len(lrbp->ucd_rsp_ptr)) { in ufshcd_copy_sense_data()
[all …]
H A Dufshpb.c140 if (!(lrbp->ucd_rsp_ptr->header.dword_2 & in ufshpb_is_hpb_rsp_valid()
1540 struct utp_hpb_rsp *rsp_field = &lrbp->ucd_rsp_ptr->hr; in ufshpb_rsp_upiu()
1577 data_seg_len = be32_to_cpu(lrbp->ucd_rsp_ptr->header.dword_2) in ufshpb_rsp_upiu()
H A Dufshcd.h196 struct utp_upiu_rsp *ucd_rsp_ptr; member