Lines Matching refs:phy_device
57 int (*run)(struct phy_device *phydev);
210 void phy_device_free(struct phy_device *phydev) in phy_device_free()
218 struct phy_device *phydev; in phy_mdio_device_free()
220 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_free()
232 struct phy_device *phydev; in phy_mdio_device_remove()
234 phydev = container_of(mdiodev, struct phy_device, mdio); in phy_mdio_device_remove()
243 static bool phy_drv_wol_enabled(struct phy_device *phydev) in phy_drv_wol_enabled()
252 bool phy_may_wakeup(struct phy_device *phydev) in phy_may_wakeup()
262 static void phy_link_change(struct phy_device *phydev, bool up) in phy_link_change()
293 static bool phy_uses_state_machine(struct phy_device *phydev) in phy_uses_state_machine()
301 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev) in mdio_bus_phy_may_suspend()
348 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_suspend()
380 struct phy_device *phydev = to_phy_device(dev); in mdio_bus_phy_resume()
439 int (*run)(struct phy_device *)) in phy_register_fixup() argument
461 int (*run)(struct phy_device *)) in phy_register_fixup_for_uid() argument
469 int (*run)(struct phy_device *)) in phy_register_fixup_for_id() argument
475 static bool phy_needs_fixup(struct phy_device *phydev, struct phy_fixup *fixup) in phy_needs_fixup()
488 static int phy_scan_fixups(struct phy_device *phydev) in phy_scan_fixups()
522 int genphy_match_phy_device(struct phy_device *phydev, in genphy_match_phy_device()
548 struct phy_device *phydev = to_phy_device(dev); in phy_bus_match()
563 struct phy_device *phydev = to_phy_device(dev); in phy_id_show()
572 struct phy_device *phydev = to_phy_device(dev); in phy_interface_show()
588 struct phy_device *phydev = to_phy_device(dev); in phy_has_fixups_show()
598 struct phy_device *phydev = to_phy_device(dev); in phy_dev_flags_show()
620 struct phy_device *phydev = to_phy_device(dev); \
697 struct phy_device *phydev = to_phy_device(dev); in phy_mmd_is_visible()
728 static int phy_request_driver_module(struct phy_device *dev, u32 phy_id) in phy_request_driver_module()
748 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id, in phy_device_create()
752 struct phy_device *dev; in phy_device_create()
1071 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45) in get_phy_device()
1109 int phy_device_register(struct phy_device *phydev) in phy_device_register()
1152 void phy_device_remove(struct phy_device *phydev) in phy_device_remove()
1173 int phy_get_c45_ids(struct phy_device *phydev) in phy_get_c45_ids()
1187 struct phy_device *phy_find_next(struct mii_bus *bus, struct phy_device *pos) in phy_find_next()
1191 struct phy_device *phydev = mdiobus_get_phy(bus, addr); in phy_find_next()
1212 static void phy_prepare_link(struct phy_device *phydev, in phy_prepare_link()
1225 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev, in phy_connect_direct()
1261 struct phy_device *phy_connect(struct net_device *dev, const char *bus_id, in phy_connect()
1265 struct phy_device *phydev; in phy_connect()
1293 void phy_disconnect(struct phy_device *phydev) in phy_disconnect()
1325 static int phy_poll_reset(struct phy_device *phydev) in phy_poll_reset()
1341 int phy_init_hw(struct phy_device *phydev) in phy_init_hw()
1382 void phy_attached_info(struct phy_device *phydev) in phy_attached_info()
1389 char *phy_attached_info_irq(struct phy_device *phydev) in phy_attached_info_irq()
1411 void phy_attached_print(struct phy_device *phydev, const char *fmt, ...) in phy_attached_print()
1433 static void phy_sysfs_create_links(struct phy_device *phydev) in phy_sysfs_create_links()
1465 struct phy_device *phydev = to_phy_device(dev); in phy_standalone_show()
1481 static int phy_sfp_connect_phy(void *upstream, struct phy_device *phy) in phy_sfp_connect_phy()
1483 struct phy_device *phydev = upstream; in phy_sfp_connect_phy()
1502 static void phy_sfp_disconnect_phy(void *upstream, struct phy_device *phy) in phy_sfp_disconnect_phy()
1504 struct phy_device *phydev = upstream; in phy_sfp_disconnect_phy()
1520 struct phy_device *phydev = upstream; in phy_sfp_attach()
1536 struct phy_device *phydev = upstream; in phy_sfp_detach()
1546 struct phy_device *phydev = upstream; in phy_sfp_module_insert()
1584 struct phy_device *phydev = upstream; in phy_sfp_module_remove()
1596 struct phy_device *phydev = upstream; in phy_sfp_link_up()
1605 struct phy_device *phydev = upstream; in phy_sfp_link_down()
1623 static int phy_add_port(struct phy_device *phydev, struct phy_port *port) in phy_add_port()
1658 static void phy_del_port(struct phy_device *phydev, struct phy_port *port) in phy_del_port()
1668 static int phy_setup_sfp_port(struct phy_device *phydev) in phy_setup_sfp_port()
1699 static int phy_sfp_probe(struct phy_device *phydev) in phy_sfp_probe()
1741 int phy_attach_direct(struct net_device *dev, struct phy_device *phydev, in phy_attach_direct()
1907 struct phy_device *phy_attach(struct net_device *dev, const char *bus_id, in phy_attach()
1910 struct phy_device *phydev; in phy_attach()
1943 void phy_detach(struct phy_device *phydev) in phy_detach()
2013 int phy_suspend(struct phy_device *phydev) in phy_suspend()
2039 int __phy_resume(struct phy_device *phydev) in __phy_resume()
2057 int phy_resume(struct phy_device *phydev) in phy_resume()
2078 int phy_reset_after_clk_enable(struct phy_device *phydev) in phy_reset_after_clk_enable()
2105 static int genphy_config_advert(struct phy_device *phydev, in genphy_config_advert()
2157 static int genphy_c37_config_advert(struct phy_device *phydev) in genphy_c37_config_advert()
2189 int genphy_setup_forced(struct phy_device *phydev) in genphy_setup_forced()
2203 static int genphy_setup_master_slave(struct phy_device *phydev) in genphy_setup_master_slave()
2235 int genphy_read_master_slave(struct phy_device *phydev) in genphy_read_master_slave()
2286 int genphy_restart_aneg(struct phy_device *phydev) in genphy_restart_aneg()
2301 int genphy_check_and_restart_aneg(struct phy_device *phydev, bool restart) in genphy_check_and_restart_aneg()
2333 int __genphy_config_aneg(struct phy_device *phydev, bool changed) in __genphy_config_aneg()
2390 int genphy_c37_config_aneg(struct phy_device *phydev) in genphy_c37_config_aneg()
2437 int genphy_aneg_done(struct phy_device *phydev) in genphy_aneg_done()
2453 int genphy_update_link(struct phy_device *phydev) in genphy_update_link()
2498 int genphy_read_lpa(struct phy_device *phydev) in genphy_read_lpa()
2552 int genphy_read_status_fixed(struct phy_device *phydev) in genphy_read_status_fixed()
2584 int genphy_read_status(struct phy_device *phydev) in genphy_read_status()
2637 int genphy_c37_read_status(struct phy_device *phydev, bool *changed) in genphy_c37_read_status()
2699 int genphy_soft_reset(struct phy_device *phydev) in genphy_soft_reset()
2729 irqreturn_t genphy_handle_interrupt_no_ack(struct phy_device *phydev) in genphy_handle_interrupt_no_ack()
2751 int genphy_read_abilities(struct phy_device *phydev) in genphy_read_abilities()
2801 int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, u16 regnum) in genphy_read_mmd_unsupported()
2807 int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum, in genphy_write_mmd_unsupported()
2814 int genphy_suspend(struct phy_device *phydev) in genphy_suspend()
2820 int genphy_resume(struct phy_device *phydev) in genphy_resume()
2826 int genphy_loopback(struct phy_device *phydev, bool enable, int speed) in genphy_loopback()
2866 void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode) in phy_remove_link_mode()
2888 void phy_advertise_supported(struct phy_device *phydev) in phy_advertise_supported()
2908 void phy_advertise_eee_all(struct phy_device *phydev) in phy_advertise_eee_all()
2934 void phy_support_eee(struct phy_device *phydev) in phy_support_eee()
2949 void phy_disable_eee(struct phy_device *phydev) in phy_disable_eee()
2966 void phy_support_sym_pause(struct phy_device *phydev) in phy_support_sym_pause()
2979 void phy_support_asym_pause(struct phy_device *phydev) in phy_support_asym_pause()
2996 void phy_set_sym_pause(struct phy_device *phydev, bool rx, bool tx, in phy_set_sym_pause()
3020 void phy_set_asym_pause(struct phy_device *phydev, bool rx, bool tx) in phy_set_asym_pause()
3042 bool phy_validate_pause(struct phy_device *phydev, in phy_validate_pause()
3070 void phy_get_pause(struct phy_device *phydev, bool *tx_pause, bool *rx_pause) in phy_get_pause()
3111 s32 phy_get_internal_delay(struct phy_device *phydev, const int *delay_values, in phy_get_internal_delay()
3184 int phy_get_tx_amplitude_gain(struct phy_device *phydev, struct device *dev, in phy_get_tx_amplitude_gain()
3207 int phy_get_mac_termination(struct phy_device *phydev, struct device *dev, in phy_get_mac_termination()
3218 struct phy_device *phydev = phyled->phydev; in phy_led_set_brightness()
3233 struct phy_device *phydev = phyled->phydev; in phy_led_blink_set()
3248 struct phy_device *phydev = phyled->phydev; in phy_led_hw_control_get_device()
3260 struct phy_device *phydev = phyled->phydev; in phy_led_hw_control_get()
3275 struct phy_device *phydev = phyled->phydev; in phy_led_hw_control_set()
3289 struct phy_device *phydev = phyled->phydev; in phy_led_hw_is_supported()
3299 static void phy_leds_unregister(struct phy_device *phydev) in phy_leds_unregister()
3309 static int of_phy_led(struct phy_device *phydev, in of_phy_led()
3386 static int of_phy_leds(struct phy_device *phydev) in of_phy_leds()
3426 static void phy_cleanup_ports(struct phy_device *phydev) in phy_cleanup_ports()
3436 static int phy_default_setup_single_port(struct phy_device *phydev) in phy_default_setup_single_port()
3471 static int of_phy_ports(struct phy_device *phydev) in of_phy_ports()
3516 static int phy_setup_ports(struct phy_device *phydev) in phy_setup_ports()
3572 struct phy_port *phy_get_sfp_port(struct phy_device *phydev) in phy_get_sfp_port()
3615 struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode) in fwnode_phy_find_device()
3664 struct phy_device *phydev = to_phy_device(dev); in phy_probe()
3803 struct phy_device *phydev = to_phy_device(dev); in phy_remove()