Lines Matching refs:can_transceiver_phy

21 struct can_transceiver_phy {  struct
31 struct can_transceiver_phy *can_transceiver_phy = phy_get_drvdata(phy); in can_transceiver_phy_power_on() argument
34 if (can_transceiver_phy->mux_state) { in can_transceiver_phy_power_on()
35 ret = mux_state_select(can_transceiver_phy->mux_state); in can_transceiver_phy_power_on()
41 if (can_transceiver_phy->standby_gpio) in can_transceiver_phy_power_on()
42 gpiod_set_value_cansleep(can_transceiver_phy->standby_gpio, 0); in can_transceiver_phy_power_on()
43 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_on()
44 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 1); in can_transceiver_phy_power_on()
52 struct can_transceiver_phy *can_transceiver_phy = phy_get_drvdata(phy); in can_transceiver_phy_power_off() local
54 if (can_transceiver_phy->standby_gpio) in can_transceiver_phy_power_off()
55 gpiod_set_value_cansleep(can_transceiver_phy->standby_gpio, 1); in can_transceiver_phy_power_off()
56 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_off()
57 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 0); in can_transceiver_phy_power_off()
58 if (can_transceiver_phy->mux_state) in can_transceiver_phy_power_off()
59 mux_state_deselect(can_transceiver_phy->mux_state); in can_transceiver_phy_power_off()
95 struct can_transceiver_phy *can_transceiver_phy; in can_transceiver_phy_probe() local
103 can_transceiver_phy = devm_kzalloc(dev, sizeof(struct can_transceiver_phy), GFP_KERNEL); in can_transceiver_phy_probe()
104 if (!can_transceiver_phy) in can_transceiver_phy_probe()
117 can_transceiver_phy->mux_state = mux_state; in can_transceiver_phy_probe()
132 can_transceiver_phy->generic_phy = phy; in can_transceiver_phy_probe()
138 can_transceiver_phy->standby_gpio = standby_gpio; in can_transceiver_phy_probe()
145 can_transceiver_phy->enable_gpio = enable_gpio; in can_transceiver_phy_probe()
148 phy_set_drvdata(can_transceiver_phy->generic_phy, can_transceiver_phy); in can_transceiver_phy_probe()