Lines Matching refs:phy_cfg

63 struct phy_cfg {  struct
88 struct phy_cfg *phy_cfg; argument
152 struct phy_cfg *phy_cfg = rtk_phy->phy_cfg; in do_rtk_usb3_phy_toggle() local
163 if (!phy_cfg->do_toggle) in do_rtk_usb3_phy_toggle()
167 phy_data = phy_cfg->param + i; in do_rtk_usb3_phy_toggle()
185 struct phy_cfg *phy_cfg; in do_rtk_phy_init() local
190 phy_cfg = rtk_phy->phy_cfg; in do_rtk_phy_init()
194 if (phy_cfg->use_default_parameter) in do_rtk_phy_init()
197 for (i = 0; i < phy_cfg->param_size; i++) { in do_rtk_phy_init()
198 struct phy_data *phy_data = phy_cfg->param + i; in do_rtk_phy_init()
209 if (phy_cfg->do_toggle_once) in do_rtk_phy_init()
210 phy_cfg->do_toggle = true; in do_rtk_phy_init()
214 if (phy_cfg->do_toggle_once) { in do_rtk_phy_init()
246 phy_cfg->do_toggle = false; in do_rtk_phy_init()
249 if (phy_cfg->check_rx_front_end_offset) { in do_rtk_phy_init()
359 struct phy_cfg *phy_cfg; in rtk_usb3_parameter_show() local
362 phy_cfg = rtk_phy->phy_cfg; in rtk_usb3_parameter_show()
366 phy_cfg->check_efuse ? "Enable" : "Disable"); in rtk_usb3_parameter_show()
368 phy_cfg->do_toggle ? "Enable" : "Disable"); in rtk_usb3_parameter_show()
370 phy_cfg->do_toggle_once ? "Enable" : "Disable"); in rtk_usb3_parameter_show()
372 phy_cfg->use_default_parameter ? "Enable" : "Disable"); in rtk_usb3_parameter_show()
383 for (i = 0; i < phy_cfg->param_size; i++) { in rtk_usb3_parameter_show()
384 struct phy_data *phy_data = phy_cfg->param + i; in rtk_usb3_parameter_show()
436 struct phy_cfg *phy_cfg = rtk_phy->phy_cfg; in get_phy_data_by_efuse() local
440 if (!phy_cfg->check_efuse) in get_phy_data_by_efuse()
471 struct phy_cfg *phy_cfg; in update_amplitude_control_value() local
475 phy_cfg = rtk_phy->phy_cfg; in update_amplitude_control_value()
481 if (!phy_cfg->param[PHY_ADDR_0X20].addr && !phy_cfg->param[PHY_ADDR_0X20].data) { in update_amplitude_control_value()
482 phy_cfg->param[PHY_ADDR_0X20].addr = PHY_ADDR_0X20; in update_amplitude_control_value()
485 data = phy_cfg->param[PHY_ADDR_0X20].data; in update_amplitude_control_value()
491 phy_cfg->param[PHY_ADDR_0X20].data = data; in update_amplitude_control_value()
500 if (!phy_cfg->param[PHY_ADDR_0X20].addr && !phy_cfg->param[PHY_ADDR_0X20].data) { in update_amplitude_control_value()
501 phy_cfg->param[PHY_ADDR_0X20].addr = PHY_ADDR_0X20; in update_amplitude_control_value()
504 data = phy_cfg->param[PHY_ADDR_0X20].data; in update_amplitude_control_value()
510 phy_cfg->param[PHY_ADDR_0X20].data = data; in update_amplitude_control_value()
516 if (!phy_cfg->param[PHY_ADDR_0X21].addr && !phy_cfg->param[PHY_ADDR_0X21].data) in update_amplitude_control_value()
517 phy_cfg->param[PHY_ADDR_0X21].addr = PHY_ADDR_0X21; in update_amplitude_control_value()
519 phy_cfg->param[PHY_ADDR_0X21].data = in update_amplitude_control_value()
565 const struct phy_cfg *phy_cfg; in rtk_usb3phy_probe() local
568 phy_cfg = of_device_get_match_data(dev); in rtk_usb3phy_probe()
569 if (!phy_cfg) { in rtk_usb3phy_probe()
579 rtk_phy->phy_cfg = devm_kzalloc(dev, sizeof(*phy_cfg), GFP_KERNEL); in rtk_usb3phy_probe()
581 memcpy(rtk_phy->phy_cfg, phy_cfg, sizeof(*phy_cfg)); in rtk_usb3phy_probe()
614 static const struct phy_cfg rtd1295_phy_cfg = {
647 static const struct phy_cfg rtd1619_phy_cfg = {
659 static const struct phy_cfg rtd1319_phy_cfg = {
679 static const struct phy_cfg rtd1619b_phy_cfg = {
702 static const struct phy_cfg rtd1319d_phy_cfg = {