Home
last modified time | relevance | path

Searched refs:sfp_bus (Results 1 - 25 of 26) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/phy/
H A Dsfp.h19 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
20 void sfp_remove_phy(struct sfp_bus *bus);
21 void sfp_link_up(struct sfp_bus *bus);
22 void sfp_link_down(struct sfp_bus *bus);
23 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
24 void sfp_module_remove(struct sfp_bus *bus);
25 int sfp_module_start(struct sfp_bus *bus);
26 void sfp_module_stop(struct sfp_bus *bus);
27 int sfp_link_configure(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
28 struct sfp_bus *sfp_register_socke
[all...]
H A Dsfp-bus.c20 * struct sfp_bus - internal representation of a sfp bus
22 struct sfp_bus { struct
130 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
142 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port()
205 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
211 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy()
232 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
239 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support()
381 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
387 phy_interface_t sfp_select_interface(struct sfp_bus *bu
[all...]
H A Dphylink.c76 struct sfp_bus *sfp_bus; member
786 struct sfp_bus *bus; in phylink_register_sfp()
799 pl->sfp_bus = bus; in phylink_register_sfp()
926 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy()
1266 if (pl->sfp_bus) in phylink_start()
1267 sfp_upstream_start(pl->sfp_bus); in phylink_start()
1284 if (pl->sfp_bus) in phylink_stop()
1285 sfp_upstream_stop(pl->sfp_bus); in phylink_stop()
1525 if (pl->sfp_port && pl->sfp_bus) { in phylink_ethtool_ksettings_set()
[all...]
H A Dsfp.c225 struct sfp_bus *sfp_bus; member
1459 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
1485 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
1500 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
1506 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
1911 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
2016 err = sfp_module_insert(sfp->sfp_bus, &sfp->id); in sfp_sm_module()
2033 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2072 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
[all...]
H A Dphy_device.c1231 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1236 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1248 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1253 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1266 struct sfp_bus *bus; in phy_sfp_probe()
1274 phydev->sfp_bus = bus; in phy_sfp_probe()
1360 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
2919 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
2920 phydev->sfp_bus in phy_remove()
[all...]
H A Dphy.c1141 if (phydev->sfp_bus) in phy_stop()
1142 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1179 if (phydev->sfp_bus) in phy_start()
1180 sfp_upstream_start(phydev->sfp_bus); in phy_start()
H A Dmarvell10g.c355 sfp_parse_support(phydev->sfp_bus, id, support); in mv3310_sfp_insert()
356 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
/kernel/linux/linux-6.6/drivers/net/phy/
H A Dsfp.h31 int sfp_add_phy(struct sfp_bus *bus, struct phy_device *phydev);
32 void sfp_remove_phy(struct sfp_bus *bus);
33 void sfp_link_up(struct sfp_bus *bus);
34 void sfp_link_down(struct sfp_bus *bus);
35 int sfp_module_insert(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
37 void sfp_module_remove(struct sfp_bus *bus);
38 int sfp_module_start(struct sfp_bus *bus);
39 void sfp_module_stop(struct sfp_bus *bus);
40 struct sfp_bus *sfp_register_socket(struct device *dev, struct sfp *sfp,
42 void sfp_unregister_socket(struct sfp_bus *bu
[all...]
H A Dsfp-bus.c14 * struct sfp_bus - internal representation of a sfp bus
16 struct sfp_bus { struct
37 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
49 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_port()
112 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
118 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id) in sfp_may_have_phy()
139 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
148 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id, in sfp_parse_support()
351 * @bus: a pointer to the &struct sfp_bus structure for the sfp module
357 phy_interface_t sfp_select_interface(struct sfp_bus *bu
[all...]
H A Dphylink.c84 struct sfp_bus *sfp_bus; member
1206 if (pl->sfp_bus) { in phylink_major_config()
1209 sfp_upstream_set_signal_rate(pl->sfp_bus, rate_kbd); in phylink_major_config()
1567 struct sfp_bus *bus; in phylink_register_sfp()
1579 pl->sfp_bus = bus; in phylink_register_sfp()
1699 sfp_bus_del_upstream(pl->sfp_bus); in phylink_destroy()
1857 phy_interface_mode_is_8023z(interface) && !pl->sfp_bus))) in phylink_attach_phy()
2119 if (pl->sfp_bus) in phylink_start()
2120 sfp_upstream_start(pl->sfp_bus); in phylink_start()
[all...]
H A Dmarvell-88x2222.c422 if (phydev->sfp_bus && !priv->sfp_link) in mv2222_link_is_operational()
492 sfp_parse_support(phydev->sfp_bus, id, sfp_supported, interfaces); in mv2222_sfp_insert()
493 phydev->port = sfp_parse_port(phydev->sfp_bus, id, sfp_supported); in mv2222_sfp_insert()
494 sfp_interface = sfp_select_interface(phydev->sfp_bus, sfp_supported); in mv2222_sfp_insert()
H A Dsfp.c233 struct sfp_bus *sfp_bus; member
1755 sfp_remove_phy(sfp->sfp_bus); in sfp_sm_phy_detach()
1785 err = sfp_add_phy(sfp->sfp_bus, phy); in sfp_sm_probe_phy()
1800 sfp_link_up(sfp->sfp_bus); in sfp_sm_link_up()
1806 sfp_link_down(sfp->sfp_bus); in sfp_sm_link_down()
2351 sfp_module_remove(sfp->sfp_bus); in sfp_sm_mod_remove()
2464 err = sfp_module_insert(sfp->sfp_bus, &sfp->id, in sfp_sm_module()
2482 sfp_module_remove(sfp->sfp_bus); in sfp_sm_module()
2521 sfp_module_stop(sfp->sfp_bus); in sfp_sm_main()
[all...]
H A Dphy_device.c1362 void phy_sfp_attach(void *upstream, struct sfp_bus *bus) in phy_sfp_attach()
1367 phydev->attached_dev->sfp_bus = bus; in phy_sfp_attach()
1379 void phy_sfp_detach(void *upstream, struct sfp_bus *bus) in phy_sfp_detach()
1384 phydev->attached_dev->sfp_bus = NULL; in phy_sfp_detach()
1397 struct sfp_bus *bus; in phy_sfp_probe()
1405 phydev->sfp_bus = bus; in phy_sfp_probe()
1491 dev->sfp_bus = phydev->sfp_bus; in phy_attach_direct()
3394 sfp_bus_del_upstream(phydev->sfp_bus); in phy_remove()
3395 phydev->sfp_bus in phy_remove()
[all...]
H A Dphy.c1382 if (phydev->sfp_bus) in phy_stop()
1383 sfp_upstream_stop(phydev->sfp_bus); in phy_stop()
1420 if (phydev->sfp_bus) in phy_start()
1421 sfp_upstream_start(phydev->sfp_bus); in phy_start()
H A Dmarvell10g.c486 sfp_parse_support(phydev->sfp_bus, id, support, interfaces); in mv3310_sfp_insert()
487 iface = sfp_select_interface(phydev->sfp_bus, support); in mv3310_sfp_insert()
H A Dat803x.c701 sfp_parse_support(phydev->sfp_bus, id, sfp_support, interfaces); in at803x_sfp_insert()
712 iface = sfp_select_interface(phydev->sfp_bus, sfp_support); in at803x_sfp_insert()
/kernel/linux/linux-6.6/include/linux/
H A Dsfp.h516 struct sfp_bus;
538 void (*attach)(void *priv, struct sfp_bus *bus);
539 void (*detach)(void *priv, struct sfp_bus *bus);
551 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
553 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
554 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
556 phy_interface_t sfp_select_interface(struct sfp_bus *bus,
559 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo);
560 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
562 int sfp_get_module_eeprom_by_page(struct sfp_bus *bu
[all...]
H A Dphy.h307 struct sfp_bus;
574 * @sfp_bus: SFP bus attached to this PHY's fiber port
744 struct sfp_bus *sfp_bus; member
1719 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1720 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
H A Dnetdevice.h67 struct sfp_bus;
2017 * @sfp_bus: attached &struct sfp_bus structure.
2395 struct sfp_bus *sfp_bus; member
/kernel/linux/linux-5.10/include/linux/
H A Dsfp.h499 struct sfp_bus;
521 void (*attach)(void *priv, struct sfp_bus *bus);
522 void (*detach)(void *priv, struct sfp_bus *bus);
534 int sfp_parse_port(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
536 bool sfp_may_have_phy(struct sfp_bus *bus, const struct sfp_eeprom_id *id);
537 void sfp_parse_support(struct sfp_bus *bus, const struct sfp_eeprom_id *id,
539 phy_interface_t sfp_select_interface(struct sfp_bus *bus,
542 int sfp_get_module_info(struct sfp_bus *bus, struct ethtool_modinfo *modinfo);
543 int sfp_get_module_eeprom(struct sfp_bus *bus, struct ethtool_eeprom *ee,
545 void sfp_upstream_start(struct sfp_bus *bu
[all...]
H A Dphy.h238 struct sfp_bus;
493 * @sfp_bus: SFP bus attached to this PHY's fiber port
633 struct sfp_bus *sfp_bus; member
1376 void phy_sfp_attach(void *upstream, struct sfp_bus *bus);
1377 void phy_sfp_detach(void *upstream, struct sfp_bus *bus);
H A Dnetdevice.h60 struct sfp_bus;
1859 * @sfp_bus: attached &struct sfp_bus structure.
2184 struct sfp_bus *sfp_bus; member
/kernel/linux/linux-6.6/net/ethtool/
H A Deeprom.c94 if (dev->sfp_bus) in get_module_eeprom_by_page()
95 return sfp_get_module_eeprom_by_page(dev->sfp_bus, page_data, extack); in get_module_eeprom_by_page()
H A Dioctl.c2379 if (dev->sfp_bus) in ethtool_get_module_info_call()
2380 return sfp_get_module_info(dev->sfp_bus, modinfo); in ethtool_get_module_info_call()
2416 if (dev->sfp_bus) in ethtool_get_module_eeprom_call()
2417 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in ethtool_get_module_eeprom_call()
/kernel/linux/linux-5.10/net/ethtool/
H A Dioctl.c2294 if (dev->sfp_bus) in __ethtool_get_module_info()
2295 return sfp_get_module_info(dev->sfp_bus, modinfo); in __ethtool_get_module_info()
2331 if (dev->sfp_bus) in __ethtool_get_module_eeprom()
2332 return sfp_get_module_eeprom(dev->sfp_bus, ee, data); in __ethtool_get_module_eeprom()

Completed in 65 milliseconds

12