Lines Matching full:hba
22 * @hba: Pointer to drivers structure
26 static int tc_dwc_g210_setup_40bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_40bit_rmmi() argument
79 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_40bit_rmmi()
86 * @hba: Pointer to drivers structure
90 static int tc_dwc_g210_setup_20bit_rmmi_lane0(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane0() argument
132 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane0()
139 * @hba: Pointer to drivers structure
143 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1() argument
190 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILRXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1()
192 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILTXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1()
197 ret = ufshcd_dwc_dme_set_attrs(hba, setup_tx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1()
205 ret = ufshcd_dwc_dme_set_attrs(hba, setup_rx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1()
216 * @hba: Pointer to drivers structure
220 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi() argument
234 ret = ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi()
240 ret = tc_dwc_g210_setup_20bit_rmmi_lane0(hba); in tc_dwc_g210_setup_20bit_rmmi()
245 ret = tc_dwc_g210_setup_20bit_rmmi_lane1(hba); in tc_dwc_g210_setup_20bit_rmmi()
257 * @hba: Pointer to drivers structure
261 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba) in tc_dwc_g210_config_40_bit() argument
265 dev_info(hba->dev, "Configuring Test Chip 40-bit RMMI\n"); in tc_dwc_g210_config_40_bit()
266 ret = tc_dwc_g210_setup_40bit_rmmi(hba); in tc_dwc_g210_config_40_bit()
268 dev_err(hba->dev, "Configuration failed\n"); in tc_dwc_g210_config_40_bit()
273 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_MPHYCFGUPDT), 0x01); in tc_dwc_g210_config_40_bit()
278 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_DEBUGOMC), 0x01); in tc_dwc_g210_config_40_bit()
289 * @hba: Pointer to drivers structure
293 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba) in tc_dwc_g210_config_20_bit() argument
297 dev_info(hba->dev, "Configuring Test Chip 20-bit RMMI\n"); in tc_dwc_g210_config_20_bit()
298 ret = tc_dwc_g210_setup_20bit_rmmi(hba); in tc_dwc_g210_config_20_bit()
300 dev_err(hba->dev, "Configuration failed\n"); in tc_dwc_g210_config_20_bit()
305 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_MPHYCFGUPDT), 0x01); in tc_dwc_g210_config_20_bit()
310 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_DEBUGOMC), 0x01); in tc_dwc_g210_config_20_bit()