Lines Matching refs:desc_id
1139 static int ufshcd_read_desc_length(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_read_desc_length() argument
1146 if (desc_id >= QUERY_DESC_IDN_MAX) in ufshcd_read_desc_length()
1150 desc_id, desc_index, 0, header, in ufshcd_read_desc_length()
1155 __func__, desc_id); in ufshcd_read_desc_length()
1157 } else if (desc_id != header[QUERY_DESC_DESC_TYPE_OFFSET]) { in ufshcd_read_desc_length()
1160 desc_id); in ufshcd_read_desc_length()
1213 int ufshcd_map_desc_id_to_length(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_map_desc_id_to_length() argument
1216 switch (desc_id) { in ufshcd_map_desc_id_to_length()
1257 int ufshcd_read_desc_param(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_read_desc_param() argument
1267 if (desc_id >= QUERY_DESC_IDN_MAX || !param_size) in ufshcd_read_desc_param()
1273 ret = ufshcd_map_desc_id_to_length(hba, desc_id, &buff_len); in ufshcd_read_desc_param()
1294 desc_id, desc_index, 0, desc_buf, in ufshcd_read_desc_param()
1299 __func__, desc_id, desc_index, param_offset, ret); in ufshcd_read_desc_param()
1304 if (desc_buf[QUERY_DESC_DESC_TYPE_OFFSET] != desc_id) { in ufshcd_read_desc_param()
1495 static inline int ufshcd_read_desc(struct ufs_hba *hba, enum desc_idn desc_id, in ufshcd_read_desc() argument
1498 return ufshcd_read_desc_param(hba, desc_id, desc_index, 0, buf, size); in ufshcd_read_desc()