Lines Matching refs:hba
24 static int tc_dwc_g210_setup_40bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_40bit_rmmi() argument
77 return ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_40bit_rmmi()
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()
141 static int tc_dwc_g210_setup_20bit_rmmi_lane1(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi_lane1() argument
188 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILRXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1()
190 ufshcd_dme_get(hba, UIC_ARG_MIB(PA_AVAILTXDATALANES), in tc_dwc_g210_setup_20bit_rmmi_lane1()
195 ret = ufshcd_dwc_dme_set_attrs(hba, setup_tx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1()
203 ret = ufshcd_dwc_dme_set_attrs(hba, setup_rx_attrs, in tc_dwc_g210_setup_20bit_rmmi_lane1()
218 static int tc_dwc_g210_setup_20bit_rmmi(struct ufs_hba *hba) in tc_dwc_g210_setup_20bit_rmmi() argument
232 ret = ufshcd_dwc_dme_set_attrs(hba, setup_attrs, in tc_dwc_g210_setup_20bit_rmmi()
238 ret = tc_dwc_g210_setup_20bit_rmmi_lane0(hba); in tc_dwc_g210_setup_20bit_rmmi()
243 ret = tc_dwc_g210_setup_20bit_rmmi_lane1(hba); in tc_dwc_g210_setup_20bit_rmmi()
259 int tc_dwc_g210_config_40_bit(struct ufs_hba *hba) in tc_dwc_g210_config_40_bit() argument
263 dev_info(hba->dev, "Configuring Test Chip 40-bit RMMI\n"); in tc_dwc_g210_config_40_bit()
264 ret = tc_dwc_g210_setup_40bit_rmmi(hba); in tc_dwc_g210_config_40_bit()
266 dev_err(hba->dev, "Configuration failed\n"); in tc_dwc_g210_config_40_bit()
271 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_MPHYCFGUPDT), 0x01); in tc_dwc_g210_config_40_bit()
276 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_DEBUGOMC), 0x01); in tc_dwc_g210_config_40_bit()
291 int tc_dwc_g210_config_20_bit(struct ufs_hba *hba) in tc_dwc_g210_config_20_bit() argument
295 dev_info(hba->dev, "Configuring Test Chip 20-bit RMMI\n"); in tc_dwc_g210_config_20_bit()
296 ret = tc_dwc_g210_setup_20bit_rmmi(hba); in tc_dwc_g210_config_20_bit()
298 dev_err(hba->dev, "Configuration failed\n"); in tc_dwc_g210_config_20_bit()
303 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_MPHYCFGUPDT), 0x01); in tc_dwc_g210_config_20_bit()
308 ret = ufshcd_dme_set(hba, UIC_ARG_MIB(VS_DEBUGOMC), 0x01); in tc_dwc_g210_config_20_bit()