Lines Matching refs:can_transceiver_phy
20 struct can_transceiver_phy { struct
29 struct can_transceiver_phy *can_transceiver_phy = phy_get_drvdata(phy); in can_transceiver_phy_power_on() argument
31 if (can_transceiver_phy->standby_gpio) in can_transceiver_phy_power_on()
32 gpiod_set_value_cansleep(can_transceiver_phy->standby_gpio, 0); in can_transceiver_phy_power_on()
33 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_on()
34 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 1); in can_transceiver_phy_power_on()
42 struct can_transceiver_phy *can_transceiver_phy = phy_get_drvdata(phy); in can_transceiver_phy_power_off() local
44 if (can_transceiver_phy->standby_gpio) in can_transceiver_phy_power_off()
45 gpiod_set_value_cansleep(can_transceiver_phy->standby_gpio, 1); in can_transceiver_phy_power_off()
46 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_off()
47 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 0); in can_transceiver_phy_power_off()
83 struct can_transceiver_phy *can_transceiver_phy; in can_transceiver_phy_probe() local
91 can_transceiver_phy = devm_kzalloc(dev, sizeof(struct can_transceiver_phy), GFP_KERNEL); in can_transceiver_phy_probe()
92 if (!can_transceiver_phy) in can_transceiver_phy_probe()
110 can_transceiver_phy->generic_phy = phy; in can_transceiver_phy_probe()
116 can_transceiver_phy->standby_gpio = standby_gpio; in can_transceiver_phy_probe()
123 can_transceiver_phy->enable_gpio = enable_gpio; in can_transceiver_phy_probe()
126 phy_set_drvdata(can_transceiver_phy->generic_phy, can_transceiver_phy); in can_transceiver_phy_probe()