Lines Matching refs:can_transceiver_phy

22 struct can_transceiver_phy {  struct
32 struct can_transceiver_phy *can_transceiver_phy = phy_get_drvdata(phy); in can_transceiver_phy_power_on() argument
35 if (can_transceiver_phy->mux_state) { in can_transceiver_phy_power_on()
36 ret = mux_state_select(can_transceiver_phy->mux_state); in can_transceiver_phy_power_on()
42 if (can_transceiver_phy->standby_gpio) in can_transceiver_phy_power_on()
43 gpiod_set_value_cansleep(can_transceiver_phy->standby_gpio, 0); in can_transceiver_phy_power_on()
44 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_on()
45 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 1); in can_transceiver_phy_power_on()
53 struct can_transceiver_phy *can_transceiver_phy = phy_get_drvdata(phy); in can_transceiver_phy_power_off() local
55 if (can_transceiver_phy->standby_gpio) in can_transceiver_phy_power_off()
56 gpiod_set_value_cansleep(can_transceiver_phy->standby_gpio, 1); in can_transceiver_phy_power_off()
57 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_off()
58 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 0); in can_transceiver_phy_power_off()
59 if (can_transceiver_phy->mux_state) in can_transceiver_phy_power_off()
60 mux_state_deselect(can_transceiver_phy->mux_state); in can_transceiver_phy_power_off()
100 struct can_transceiver_phy *can_transceiver_phy; in can_transceiver_phy_probe() local
109 can_transceiver_phy = devm_kzalloc(dev, sizeof(struct can_transceiver_phy), GFP_KERNEL); in can_transceiver_phy_probe()
110 if (!can_transceiver_phy) in can_transceiver_phy_probe()
123 can_transceiver_phy->mux_state = mux_state; in can_transceiver_phy_probe()
138 can_transceiver_phy->generic_phy = phy; in can_transceiver_phy_probe()
144 can_transceiver_phy->standby_gpio = standby_gpio; in can_transceiver_phy_probe()
151 can_transceiver_phy->enable_gpio = enable_gpio; in can_transceiver_phy_probe()
154 phy_set_drvdata(can_transceiver_phy->generic_phy, can_transceiver_phy); in can_transceiver_phy_probe()