Lines Matching defs:phy_device
202 void phy_device_free(struct phy_device *phydev)
210 struct phy_device *phydev;
212 phydev = container_of(mdiodev, struct phy_device, mdio);
224 struct phy_device *phydev;
226 phydev = container_of(mdiodev, struct phy_device, mdio);
232 static bool phy_drv_wol_enabled(struct phy_device *phydev)
241 bool phy_may_wakeup(struct phy_device *phydev)
251 static void phy_link_change(struct phy_device *phydev, bool up)
282 static bool phy_uses_state_machine(struct phy_device *phydev)
290 static bool mdio_bus_phy_may_suspend(struct phy_device *phydev)
337 struct phy_device *phydev = to_phy_device(dev);
369 struct phy_device *phydev = to_phy_device(dev);
421 * @phydev: target phy_device struct
432 int genphy_match_phy_device(struct phy_device *phydev,
458 struct phy_device *phydev = to_phy_device(dev);
473 struct phy_device *phydev = to_phy_device(dev);
482 struct phy_device *phydev = to_phy_device(dev);
498 struct phy_device *phydev = to_phy_device(dev);
508 struct phy_device *phydev = to_phy_device(dev);
530 struct phy_device *phydev = to_phy_device(dev); \
607 struct phy_device *phydev = to_phy_device(dev);
638 static int phy_request_driver_module(struct phy_device *dev, u32 phy_id)
658 struct phy_device *phy_device_create(struct mii_bus *bus, int addr, u32 phy_id,
662 struct phy_device *dev;
963 * get_phy_device - reads the specified PHY device and returns its @phy_device
972 * a valid ID, allocate and return a &struct phy_device.
976 * MMD, allocate and return a &struct phy_device.
978 * Returns an allocated &struct phy_device on success, %-ENODEV if there is
981 struct phy_device *get_phy_device(struct mii_bus *bus, int addr, bool is_c45)
1017 * @phydev: phy_device structure to be added to the MDIO bus
1019 int phy_device_register(struct phy_device *phydev)
1056 * @phydev: phy_device structure to remove
1058 * This doesn't free the phy_device itself, it merely reverses the effects
1062 void phy_device_remove(struct phy_device *phydev)
1078 * @phydev: phy_device structure to read 802.3-c45 IDs
1083 int phy_get_c45_ids(struct phy_device *phydev)
1095 * Return: next phy_device on the bus, or NULL
1097 struct phy_device *phy_find_next(struct mii_bus *bus, struct phy_device *pos)
1101 struct phy_device *phydev = mdiobus_get_phy(bus, addr);
1112 * @phydev: target phy_device struct
1122 static void phy_prepare_link(struct phy_device *phydev,
1129 * phy_connect_direct - connect an ethernet device to a specific phy_device
1135 int phy_connect_direct(struct net_device *dev, struct phy_device *phydev,
1171 struct phy_device *phy_connect(struct net_device *dev, const char *bus_id,
1175 struct phy_device *phydev;
1201 * @phydev: target phy_device struct
1203 void phy_disconnect(struct phy_device *phydev)
1235 static int phy_poll_reset(struct phy_device *phydev)
1251 int phy_init_hw(struct phy_device *phydev)
1300 void phy_attached_info(struct phy_device *phydev)
1307 char *phy_attached_info_irq(struct phy_device *phydev)
1329 void phy_attached_print(struct phy_device *phydev, const char *fmt, ...)
1351 static void phy_sysfs_create_links(struct phy_device *phydev)
1383 struct phy_device *phydev = to_phy_device(dev);
1399 static int phy_sfp_connect_phy(void *upstream, struct phy_device *phy)
1401 struct phy_device *phydev = upstream;
1431 static void phy_sfp_disconnect_phy(void *upstream, struct phy_device *phy)
1433 struct phy_device *phydev = upstream;
1453 struct phy_device *phydev = upstream;
1469 struct phy_device *phydev = upstream;
1479 struct phy_device *phydev = upstream;
1517 struct phy_device *phydev = upstream;
1529 struct phy_device *phydev = upstream;
1538 struct phy_device *phydev = upstream;
1545 static int phy_add_sfp_mod_port(struct phy_device *phydev)
1585 static void phy_del_sfp_mod_port(struct phy_device *phydev)
1599 struct phy_device *phydev = upstream;
1612 struct phy_device *phydev = upstream;
1632 static int phy_add_port(struct phy_device *phydev, struct phy_port *port)
1667 static void phy_del_port(struct phy_device *phydev, struct phy_port *port)
1680 static struct phy_port *phy_setup_sfp_port(struct phy_device *phydev)
1711 * @phydev: Pointer to phy_device
1713 static int phy_sfp_probe(struct phy_device *phydev)
1741 static int phy_sfp_add_upstream(struct phy_device *phydev)
1770 static void phy_sfp_release(struct phy_device *phydev)
1793 * @phydev: target phy_device struct
1799 static void phy_detach_internal(struct phy_device *phydev, bool notify_bus)
1885 * @phydev: target phy_device struct
1890 void phy_detach(struct phy_device *phydev)
1900 * @phydev: Pointer to phy_device to attach
1905 * device. The phy_device is found, and properly hooked up
1907 * generic driver is used. The phy_device is given a ptr to
1909 * change. The phy_device is returned to the attaching driver.
1912 int phy_attach_direct(struct net_device *dev, struct phy_device *phydev,
2088 int phy_suspend(struct phy_device *phydev)
2114 int __phy_resume(struct phy_device *phydev)
2132 int phy_resume(struct phy_device *phydev)
2146 * @phydev: target phy_device struct
2153 int phy_reset_after_clk_enable(struct phy_device *phydev)
2172 * @phydev: target phy_device struct
2180 static int genphy_config_advert(struct phy_device *phydev,
2224 * @phydev: target phy_device struct
2232 static int genphy_c37_config_advert(struct phy_device *phydev)
2258 * @phydev: target phy_device struct
2264 int genphy_setup_forced(struct phy_device *phydev)
2278 static int genphy_setup_master_slave(struct phy_device *phydev)
2310 int genphy_read_master_slave(struct phy_device *phydev)
2359 * @phydev: target phy_device struct
2361 int genphy_restart_aneg(struct phy_device *phydev)
2371 * @phydev: target phy_device struct
2376 int genphy_check_and_restart_aneg(struct phy_device *phydev, bool restart)
2401 * @phydev: target phy_device struct
2408 int __genphy_config_aneg(struct phy_device *phydev, bool changed)
2458 * @phydev: target phy_device struct
2465 int genphy_c37_config_aneg(struct phy_device *phydev)
2506 * @phydev: target phy_device struct
2512 int genphy_aneg_done(struct phy_device *phydev)
2522 * @phydev: target phy_device struct
2528 int genphy_update_link(struct phy_device *phydev)
2573 int genphy_read_lpa(struct phy_device *phydev)
2622 * @phydev: target phy_device struct
2627 int genphy_read_status_fixed(struct phy_device *phydev)
2652 * @phydev: target phy_device struct
2659 int genphy_read_status(struct phy_device *phydev)
2703 * @phydev: target phy_device struct
2712 int genphy_c37_read_status(struct phy_device *phydev, bool *changed)
2767 * @phydev: target phy_device struct
2774 int genphy_soft_reset(struct phy_device *phydev)
2804 irqreturn_t genphy_handle_interrupt_no_ack(struct phy_device *phydev)
2819 * @phydev: target phy_device struct
2826 int genphy_read_abilities(struct phy_device *phydev)
2878 int genphy_read_mmd_c45(struct phy_device *phydev, int devnum, u16 regnum)
2887 int genphy_write_mmd_c45(struct phy_device *phydev, int devnum, u16 regnum,
2901 int genphy_read_mmd_unsupported(struct phy_device *phdev, int devad, u16 regnum)
2907 int genphy_write_mmd_unsupported(struct phy_device *phdev, int devnum,
2914 int genphy_suspend(struct phy_device *phydev)
2920 int genphy_resume(struct phy_device *phydev)
2926 int genphy_loopback(struct phy_device *phydev, bool enable, int speed)
2959 * @phydev: phy_device structure to remove link mode from
2966 void phy_remove_link_mode(struct phy_device *phydev, u32 link_mode)
2983 * @phydev: target phy_device struct
2988 void phy_advertise_supported(struct phy_device *phydev)
3000 * @phydev: target phy_device struct
3008 void phy_advertise_eee_all(struct phy_device *phydev)
3017 * @phydev: Target phy_device struct
3035 void phy_support_eee(struct phy_device *phydev)
3060 * @phydev: Target phy_device struct
3065 void phy_disable_eee(struct phy_device *phydev)
3077 * @phydev: target phy_device struct
3082 void phy_support_sym_pause(struct phy_device *phydev)
3091 * @phydev: target phy_device struct
3095 void phy_support_asym_pause(struct phy_device *phydev)
3103 * @phydev: target phy_device struct
3112 void phy_set_sym_pause(struct phy_device *phydev, bool rx, bool tx,
3127 * @phydev: target phy_device struct
3136 void phy_set_asym_pause(struct phy_device *phydev, bool rx, bool tx)
3151 * @phydev: phy_device struct
3158 bool phy_validate_pause(struct phy_device *phydev,
3176 * @phydev: phy_device struct
3186 void phy_get_pause(struct phy_device *phydev, bool *tx_pause, bool *rx_pause)
3214 * @phydev: phy_device struct
3227 s32 phy_get_internal_delay(struct phy_device *phydev, const int *delay_values,
3293 * @phydev: phy_device struct
3300 int phy_get_tx_amplitude_gain(struct phy_device *phydev, struct device *dev,
3317 * @phydev: phy_device struct
3323 int phy_get_mac_termination(struct phy_device *phydev, struct device *dev,
3334 struct phy_device *phydev = phyled->phydev;
3349 struct phy_device *phydev = phyled->phydev;
3364 struct phy_device *phydev = phyled->phydev;
3376 struct phy_device *phydev = phyled->phydev;
3391 struct phy_device *phydev = phyled->phydev;
3405 struct phy_device *phydev = phyled->phydev;
3415 static void phy_leds_unregister(struct phy_device *phydev)
3425 static int of_phy_led(struct phy_device *phydev,
3502 static int of_phy_leds(struct phy_device *phydev)
3542 static void phy_cleanup_ports(struct phy_device *phydev)
3552 static int phy_default_setup_single_port(struct phy_device *phydev)
3590 static int of_phy_ports(struct phy_device *phydev)
3635 static int phy_setup_ports(struct phy_device *phydev)
3703 struct phy_port *phy_get_sfp_port(struct phy_device *phydev)
3721 void phy_set_upstream_port(struct phy_device *phydev, struct phy_port *port)
3758 * fwnode_phy_find_device - For provided phy_fwnode, find phy_device.
3762 * If successful, returns a pointer to the phy_device with the embedded
3765 struct phy_device *fwnode_phy_find_device(struct fwnode_handle *phy_fwnode)
3810 * Take care of setting up the phy_device structure, set the state to READY.
3814 struct phy_device *phydev = to_phy_device(dev);
3962 struct phy_device *phydev = to_phy_device(dev);
4009 * is backed by a struct phy_device. If such a case happens, we will