Home
last modified time | relevance | path

Searched refs:to_net_dev (Results 1 – 25 of 43) sorted by relevance

12

/openbmc/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_phylink.c14 struct lan966x_port *port = netdev_priv(to_net_dev(config->dev)); in lan966x_phylink_mac_select()
29 struct lan966x_port *port = netdev_priv(to_net_dev(config->dev)); in lan966x_phylink_mac_prepare()
37 netdev_err(to_net_dev(config->dev), in lan966x_phylink_mac_prepare()
53 struct lan966x_port *port = netdev_priv(to_net_dev(config->dev)); in lan966x_phylink_mac_link_up()
72 struct lan966x_port *port = netdev_priv(to_net_dev(config->dev)); in lan966x_phylink_mac_link_down()
/openbmc/linux/net/core/
H A Dnet-sysfs.c48 struct net_device *ndev = to_net_dev(dev); in netdev_show()
84 struct net_device *netdev = to_net_dev(dev); in netdev_store()
120 struct net_device *ndev = to_net_dev(dev); in iflink_show()
135 struct net_device *ndev = to_net_dev(dev); in name_assign_type_show()
149 struct net_device *ndev = to_net_dev(dev); in address_show()
163 struct net_device *ndev = to_net_dev(dev); in broadcast_show()
181 struct net_device *netdev = to_net_dev(dev); in carrier_store()
195 struct net_device *netdev = to_net_dev(dev); in carrier_show()
207 struct net_device *netdev = to_net_dev(dev); in speed_show()
233 struct net_device *netdev = to_net_dev(dev); in duplex_show()
[all …]
/openbmc/linux/drivers/net/wireless/marvell/libertas/
H A Dmesh.c162 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in anycast_mask_show()
186 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in anycast_mask_store()
214 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in prb_rsp_limit_show()
242 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in prb_rsp_limit_store()
274 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in lbs_mesh_show()
289 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in lbs_mesh_store()
344 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in mesh_get_default_parameters()
390 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in bootflag_store()
443 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in boottime_store()
505 struct lbs_private *priv = to_net_dev(dev)->ml_priv; in channel_store()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_eth_sysfs.c16 struct dpaa_priv *priv = netdev_priv(to_net_dev(dev)); in dpaa_eth_show_addr()
29 struct dpaa_priv *priv = netdev_priv(to_net_dev(dev)); in dpaa_eth_show_fqids()
106 struct dpaa_priv *priv = netdev_priv(to_net_dev(dev)); in dpaa_eth_show_bpids()
/openbmc/linux/drivers/net/ethernet/microchip/sparx5/
H A Dsparx5_phylink.c33 struct sparx5_port *port = netdev_priv(to_net_dev(config->dev)); in sparx5_phylink_mac_select_pcs()
52 struct sparx5_port *port = netdev_priv(to_net_dev(config->dev)); in sparx5_phylink_mac_link_up()
/openbmc/linux/drivers/net/usb/
H A Dqmi_wwan.c225 struct net_device *dev = to_net_dev(d); in mux_id_show()
335 struct usbnet *dev = netdev_priv(to_net_dev(d)); in raw_ip_show()
343 struct usbnet *dev = netdev_priv(to_net_dev(d)); in raw_ip_store()
394 struct net_device *dev = to_net_dev(d); in add_mux_show()
412 struct usbnet *dev = netdev_priv(to_net_dev(d)); in add_mux_store()
450 struct usbnet *dev = netdev_priv(to_net_dev(d)); in del_mux_store()
481 struct usbnet *dev = netdev_priv(to_net_dev(d)); in pass_through_show()
493 struct usbnet *dev = netdev_priv(to_net_dev(d)); in pass_through_store()
H A Dcdc_ncm.c204 struct usbnet *dev = netdev_priv(to_net_dev(d)); in min_tx_pkt_show()
213 struct usbnet *dev = netdev_priv(to_net_dev(d)); in rx_max_show()
222 struct usbnet *dev = netdev_priv(to_net_dev(d)); in tx_max_show()
231 struct usbnet *dev = netdev_priv(to_net_dev(d)); in tx_timer_usecs_show()
241 struct usbnet *dev = netdev_priv(to_net_dev(d)); in min_tx_pkt_store()
257 struct usbnet *dev = netdev_priv(to_net_dev(d)); in rx_max_store()
272 struct usbnet *dev = netdev_priv(to_net_dev(d)); in tx_max_store()
287 struct usbnet *dev = netdev_priv(to_net_dev(d)); in tx_timer_usecs_store()
313 struct usbnet *dev = netdev_priv(to_net_dev(d)); in ndp_to_end_show()
321 struct usbnet *dev = netdev_priv(to_net_dev(d)); in ndp_to_end_store()
[all …]
H A Dasix_devices.c752 struct usbnet *dev = netdev_priv(to_net_dev(config->dev)); in ax88772_mac_link_down()
764 struct usbnet *dev = netdev_priv(to_net_dev(config->dev)); in ax88772_mac_link_up()
/openbmc/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_phy.c162 struct txgbe *txgbe = netdev_to_txgbe(to_net_dev(config->dev)); in txgbe_phylink_mac_select()
178 struct wx *wx = netdev_priv(to_net_dev(config->dev)); in txgbe_mac_link_down()
189 struct wx *wx = netdev_priv(to_net_dev(config->dev)); in txgbe_mac_link_up()
220 struct wx *wx = netdev_priv(to_net_dev(config->dev)); in txgbe_mac_prepare()
231 struct wx *wx = netdev_priv(to_net_dev(config->dev)); in txgbe_mac_finish()
/openbmc/linux/net/dsa/
H A Dmaster.c283 struct net_device *dev = to_net_dev(d); in tagging_show()
295 struct net_device *dev = to_net_dev(d); in tagging_store()
/openbmc/linux/drivers/infiniband/ulp/ipoib/
H A Dipoib_vlan.c45 struct net_device *dev = to_net_dev(d); in parent_show()
H A Dipoib_main.c2286 struct net_device *ndev = to_net_dev(dev); in pkey_show()
2296 struct net_device *ndev = to_net_dev(dev); in umcast_show()
2320 ipoib_set_umcast(to_net_dev(dev), umcast_val); in umcast_store()
2408 ret = ipoib_vlan_add(to_net_dev(dev), pkey); in create_child_store()
2427 ret = ipoib_vlan_delete(to_net_dev(dev), pkey); in delete_child_store()
2451 struct net_device *ndev = to_net_dev(dev); in dev_id_show()
/openbmc/linux/drivers/net/
H A Dmacvtap.c40 const struct net_device *dev = to_net_dev(d->parent); in macvtap_net_namespace()
/openbmc/linux/drivers/net/ipvlan/
H A Dipvtap.c35 const struct net_device *dev = to_net_dev(d->parent); in ipvtap_net_namespace()
/openbmc/linux/drivers/net/can/softing/
H A Dsofting_main.c554 struct net_device *ndev = to_net_dev(dev); in show_chip()
563 struct net_device *ndev = to_net_dev(dev); in show_output()
572 struct net_device *ndev = to_net_dev(dev); in store_output()
/openbmc/linux/drivers/net/ethernet/altera/
H A Daltera_tse_main.c1044 struct net_device *ndev = to_net_dev(config->dev); in alt_tse_mac_config()
1063 struct net_device *ndev = to_net_dev(config->dev); in alt_tse_mac_link_up()
1086 struct net_device *ndev = to_net_dev(config->dev); in alt_tse_select_pcs()
/openbmc/linux/drivers/net/arcnet/
H A Dcom20020-pci.c100 struct net_device *net_dev = to_net_dev(dev); in backplane_mode_show()
/openbmc/linux/drivers/net/can/
H A Djanz-ican3.c1831 struct ican3_dev *mod = netdev_priv(to_net_dev(dev)); in termination_show()
1850 struct ican3_dev *mod = netdev_priv(to_net_dev(dev)); in termination_store()
1868 struct ican3_dev *mod = netdev_priv(to_net_dev(dev)); in fwinfo_show()
H A Dat91_can.c1163 struct at91_priv *priv = netdev_priv(to_net_dev(dev)); in mb0_id_show()
1175 struct net_device *ndev = to_net_dev(dev); in mb0_id_store()
H A Dgrcan.c1477 struct net_device *dev = to_net_dev(sdev); \
1493 struct net_device *dev = to_net_dev(sdev); \
/openbmc/linux/drivers/leds/trigger/
H A Dledtrig-netdev.c147 ndev = to_net_dev(dev); in validate_net_dev()
/openbmc/linux/drivers/net/ethernet/mscc/
H A Docelot_net.c1676 struct net_device *ndev = to_net_dev(config->dev); in vsc7514_phylink_mac_config()
1688 struct net_device *ndev = to_net_dev(config->dev); in vsc7514_phylink_mac_link_down()
1704 struct net_device *ndev = to_net_dev(config->dev); in vsc7514_phylink_mac_link_up()
/openbmc/linux/drivers/net/ethernet/atheros/
H A Dag71xx.c1012 struct ag71xx *ag = netdev_priv(to_net_dev(config->dev)); in ag71xx_mac_config()
1031 struct ag71xx *ag = netdev_priv(to_net_dev(config->dev)); in ag71xx_mac_link_down()
1042 struct ag71xx *ag = netdev_priv(to_net_dev(config->dev)); in ag71xx_mac_link_up()
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_main.c254 struct net_device *ndev = to_net_dev(config->dev); in prestera_mac_link_down()
276 struct net_device *dev = to_net_dev(config->dev); in prestera_mac_select_pcs()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dcxgb3_main.c689 len = (*format) (to_net_dev(d), buf); in attr_show()
712 ret = (*set) (to_net_dev(d), val); in attr_store()
801 struct port_info *pi = netdev_priv(to_net_dev(d)); in tm_attr_show()
827 struct port_info *pi = netdev_priv(to_net_dev(d)); in tm_attr_store()

12