Lines Matching refs:cfg
27 inst->cfg->label); in samsung_usb2_phy_power_on()
41 if (inst->cfg->power_on) { in samsung_usb2_phy_power_on()
43 ret = inst->cfg->power_on(inst); in samsung_usb2_phy_power_on()
69 inst->cfg->label); in samsung_usb2_phy_power_off()
70 if (inst->cfg->power_off) { in samsung_usb2_phy_power_off()
72 ret = inst->cfg->power_off(inst); in samsung_usb2_phy_power_off()
100 if (WARN_ON(args->args[0] >= drv->cfg->num_phys)) in samsung_usb2_phy_xlate()
143 const struct samsung_usb2_phy_config *cfg; in samsung_usb2_phy_probe() local
155 cfg = of_device_get_match_data(dev); in samsung_usb2_phy_probe()
156 if (!cfg) in samsung_usb2_phy_probe()
159 drv = devm_kzalloc(dev, struct_size(drv, instances, cfg->num_phys), in samsung_usb2_phy_probe()
167 drv->cfg = cfg; in samsung_usb2_phy_probe()
184 if (drv->cfg->has_mode_switch) { in samsung_usb2_phy_probe()
206 if (drv->cfg->rate_to_clk) { in samsung_usb2_phy_probe()
207 ret = drv->cfg->rate_to_clk(drv->ref_rate, &drv->ref_reg_val); in samsung_usb2_phy_probe()
220 for (i = 0; i < drv->cfg->num_phys; i++) { in samsung_usb2_phy_probe()
221 char *label = drv->cfg->phys[i].label; in samsung_usb2_phy_probe()
232 p->cfg = &drv->cfg->phys[i]; in samsung_usb2_phy_probe()