Lines Matching full:hba
21 * @hba: Pointer to drivers structure
25 static int tc_dwc_g210_setup_40bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_40bit_rmmi() argument
78 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_40bit_rmmi()
84 * @hba: Pointer to drivers structure
88 static int tc_dwc_g210_setup_20bit_rmmi_lane0(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane0() argument
130 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane0()
136 * @hba: Pointer to drivers structure
140 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1() argument
187 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILRXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1()
189 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILTXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1()
194 ret = ufshcd_dwc_dme_set_attrs(hba, setup_tx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1()
202 ret = ufshcd_dwc_dme_set_attrs(hba, setup_rx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1()
212 * @hba: Pointer to drivers structure
216 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi() argument
230 ret = ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi()
236 ret = tc_dwc_g210_setup_20bit_rmmi_lane0(hba); in tc_dwc_g210_setup_20bit_rmmi()
241 ret = tc_dwc_g210_setup_20bit_rmmi_lane1(hba); in tc_dwc_g210_setup_20bit_rmmi()
251 * @hba: Pointer to drivers structure
255 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba) in tc_dwc_g210_config_40_bit() argument
259 dev_info(hba->dev, "Configuring Test Chip 40-bit RMMI\n"); in tc_dwc_g210_config_40_bit()
260 ret = tc_dwc_g210_setup_40bit_rmmi(hba); in tc_dwc_g210_config_40_bit()
262 dev_err(hba->dev, "Configuration failed\n"); in tc_dwc_g210_config_40_bit()
267 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_MPHYCFGUPDT), 0x01); in tc_dwc_g210_config_40_bit()
272 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_DEBUGOMC), 0x01); in tc_dwc_g210_config_40_bit()
281 * @hba: Pointer to drivers structure
285 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba) in tc_dwc_g210_config_20_bit() argument
289 dev_info(hba->dev, "Configuring Test Chip 20-bit RMMI\n"); in tc_dwc_g210_config_20_bit()
290 ret = tc_dwc_g210_setup_20bit_rmmi(hba); in tc_dwc_g210_config_20_bit()
292 dev_err(hba->dev, "Configuration failed\n"); in tc_dwc_g210_config_20_bit()
297 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_MPHYCFGUPDT), 0x01); in tc_dwc_g210_config_20_bit()
302 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_DEBUGOMC), 0x01); in tc_dwc_g210_config_20_bit()