| /linux/drivers/net/ethernet/sfc/ |
| H A D | ef100_netdev.c | 32 strcpy(efx->name, efx->net_dev->name); in ef100_update_name() 77 netif_err(efx, probe, efx->net_dev, in ef100_remap_bar() 91 static int ef100_net_stop(struct net_device *net_dev) in ef100_net_stop() argument 93 struct efx_nic *efx = efx_netdev_priv(net_dev); in ef100_net_stop() 95 netif_dbg(efx, ifdown, efx->net_dev, "closing on CPU %d\n", in ef100_net_stop() 99 netif_stop_queue(net_dev); in ef100_net_stop() 117 static int ef100_net_open(struct net_device *net_dev) in ef100_net_open() argument 119 struct efx_nic *efx = efx_netdev_priv(net_dev); in ef100_net_open() 124 netif_dbg(efx, ifup, net_dev, "opening device on CPU %d\n", in ef100_net_open() 222 if (netif_running(efx->net_dev)) in ef100_net_open() [all …]
|
| H A D | tc_bindings.c | 74 int efx_tc_setup_block(struct net_device *net_dev, struct efx_nic *efx, in efx_tc_setup_block() argument 89 binding = efx_tc_create_binding(efx, efv, net_dev, tcb->block); in efx_tc_setup_block() 95 netif_dbg(efx, drv, efx->net_dev, in efx_tc_setup_block() 97 net_dev == efx->net_dev ? "" : in efx_tc_setup_block() 99 net_dev ? net_dev->name : NULL, rc); in efx_tc_setup_block() 108 binding = efx_tc_find_binding(efx, net_dev); in efx_tc_setup_block() 115 netif_dbg(efx, drv, efx->net_dev, in efx_tc_setup_block() 117 net_dev == efx->net_dev ? "" : in efx_tc_setup_block() 119 net_dev ? net_dev->name : NULL); in efx_tc_setup_block() 128 netif_cond_dbg(efx, drv, efx->net_dev, in efx_tc_setup_block() [all …]
|
| H A D | efx.c | 123 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port() 134 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port() 143 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port() 164 netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); in efx_fini_port() 177 netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); in efx_remove_port() 205 netif_dbg(efx, probe, efx->net_dev, "adding to primary list\n"); in efx_associate() 212 netif_dbg(other, probe, other->net_dev, in efx_associate() 215 efx->net_dev->name); in efx_associate() 226 netif_dbg(efx, probe, efx->net_dev, in efx_associate() 229 other->net_dev->name); in efx_associate() [all …]
|
| H A D | ef100_rep.c | 44 static int efx_ef100_rep_open(struct net_device *net_dev) in efx_ef100_rep_open() argument 46 struct efx_rep *efv = netdev_priv(net_dev); in efx_ef100_rep_open() 48 netif_napi_add(net_dev, &efv->napi, efx_ef100_rep_poll); in efx_ef100_rep_open() 53 static int efx_ef100_rep_close(struct net_device *net_dev) in efx_ef100_rep_close() argument 55 struct efx_rep *efv = netdev_priv(net_dev); in efx_ef100_rep_close() 75 netif_tx_lock(efx->net_dev); in efx_ef100_rep_xmit() 77 netif_tx_unlock(efx->net_dev); in efx_ef100_rep_xmit() 112 static int efx_ef100_rep_setup_tc(struct net_device *net_dev, in efx_ef100_rep_setup_tc() argument 115 struct efx_rep *efv = netdev_priv(net_dev); in efx_ef100_rep_setup_tc() 119 return efx_tc_flower(efx, net_dev, type_data, efv); in efx_ef100_rep_setup_tc() [all …]
|
| H A D | efx_common.c | 164 int efx_set_mac_address(struct net_device *net_dev, void *data) in efx_set_mac_address() argument 166 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_set_mac_address() 173 netif_err(efx, drv, efx->net_dev, in efx_set_mac_address() 180 ether_addr_copy(old_addr, net_dev->dev_addr); in efx_set_mac_address() 181 eth_hw_addr_set(net_dev, new_addr); in efx_set_mac_address() 185 eth_hw_addr_set(net_dev, old_addr); in efx_set_mac_address() 199 void efx_set_rx_mode(struct net_device *net_dev) in efx_set_rx_mode() argument 201 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_set_rx_mode() 208 int efx_set_features(struct net_device *net_dev, netdev_features_t data) in efx_set_features() argument 210 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_set_features() [all …]
|
| H A D | sriov.c | 11 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument 13 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_sriov_set_vf_mac() 21 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan, in efx_sriov_set_vf_vlan() argument 24 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_sriov_set_vf_vlan() 40 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_spoofchk() argument 43 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_sriov_set_vf_spoofchk() 51 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i, in efx_sriov_get_vf_config() argument 54 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_sriov_get_vf_config() 62 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_link_state() argument 65 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_sriov_set_vf_link_state()
|
| H A D | ethtool_common.c | 103 void efx_ethtool_get_drvinfo(struct net_device *net_dev, in efx_ethtool_get_drvinfo() argument 106 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_ethtool_get_drvinfo() 114 u32 efx_ethtool_get_msglevel(struct net_device *net_dev) in efx_ethtool_get_msglevel() argument 116 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_ethtool_get_msglevel() 121 void efx_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable) in efx_ethtool_set_msglevel() argument 123 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_ethtool_set_msglevel() 128 void efx_ethtool_self_test(struct net_device *net_dev, in efx_ethtool_self_test() argument 131 struct efx_nic *efx = efx_netdev_priv(net_dev); in efx_ethtool_self_test() 145 netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", in efx_ethtool_self_test() 149 already_up = (efx->net_dev->flags & IFF_UP); in efx_ethtool_self_test() [all …]
|
| H A D | selftest.c | 142 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts() 147 netif_dbg(efx, drv, efx->net_dev, in efx_test_interrupts() 157 netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); in efx_test_interrupts() 166 netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); in efx_test_interrupts() 170 netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", in efx_test_interrupts() 230 netif_dbg(efx, drv, efx->net_dev, in efx_test_eventq_irq() 239 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq() 243 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq() 248 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq() 269 netif_info(efx, drv, efx->net_dev, in efx_test_phy() [all …]
|
| H A D | tc_conntrack.c | 35 netif_err(efx, drv, efx->net_dev, in efx_tc_ct_zone_free() 48 netif_err(efx, drv, efx->net_dev, in efx_tc_ct_free() 118 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() 131 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() 142 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() 150 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() 156 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() 169 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() 175 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() 185 netif_dbg(efx, drv, efx->net_dev, in efx_tc_ct_parse_match() [all …]
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| H A D | efx.c | 131 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port() 142 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port() 151 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port() 172 netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); in efx_fini_port() 185 netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); in efx_remove_port() 213 netif_dbg(efx, probe, efx->net_dev, "adding to primary list\n"); in efx_associate() 220 netif_dbg(other, probe, other->net_dev, in efx_associate() 223 efx->net_dev->name); in efx_associate() 234 netif_dbg(efx, probe, efx->net_dev, in efx_associate() 237 other->net_dev->name); in efx_associate() [all …]
|
| H A D | efx_common.c | 168 int efx_siena_set_mac_address(struct net_device *net_dev, void *data) in efx_siena_set_mac_address() argument 170 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_set_mac_address() 177 netif_err(efx, drv, efx->net_dev, in efx_siena_set_mac_address() 184 ether_addr_copy(old_addr, net_dev->dev_addr); in efx_siena_set_mac_address() 185 eth_hw_addr_set(net_dev, new_addr); in efx_siena_set_mac_address() 189 eth_hw_addr_set(net_dev, old_addr); in efx_siena_set_mac_address() 203 void efx_siena_set_rx_mode(struct net_device *net_dev) in efx_siena_set_rx_mode() argument 205 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_set_rx_mode() 212 int efx_siena_set_features(struct net_device *net_dev, netdev_features_t data) in efx_siena_set_features() argument 214 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_set_features() [all …]
|
| H A D | sriov.h | 15 int efx_sriov_set_vf_mac(struct net_device *net_dev, int vf_i, u8 *mac) in efx_sriov_set_vf_mac() argument 17 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_mac() 26 int efx_sriov_set_vf_vlan(struct net_device *net_dev, int vf_i, u16 vlan, in efx_sriov_set_vf_vlan() argument 29 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_vlan() 46 int efx_sriov_set_vf_spoofchk(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_spoofchk() argument 49 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_spoofchk() 58 int efx_sriov_get_vf_config(struct net_device *net_dev, int vf_i, in efx_sriov_get_vf_config() argument 61 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_get_vf_config() 70 int efx_sriov_set_vf_link_state(struct net_device *net_dev, int vf_i, in efx_sriov_set_vf_link_state() argument 73 struct efx_nic *efx = netdev_priv(net_dev); in efx_sriov_set_vf_link_state()
|
| H A D | selftest.c | 143 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in efx_test_interrupts() 148 netif_dbg(efx, drv, efx->net_dev, in efx_test_interrupts() 158 netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); in efx_test_interrupts() 167 netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); in efx_test_interrupts() 171 netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", in efx_test_interrupts() 231 netif_dbg(efx, drv, efx->net_dev, in efx_test_eventq_irq() 240 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq() 244 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq() 249 netif_err(efx, drv, efx->net_dev, in efx_test_eventq_irq() 270 netif_info(efx, drv, efx->net_dev, in efx_test_phy() [all …]
|
| H A D | ethtool_common.c | 103 void efx_siena_ethtool_get_drvinfo(struct net_device *net_dev, in efx_siena_ethtool_get_drvinfo() argument 106 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_ethtool_get_drvinfo() 114 u32 efx_siena_ethtool_get_msglevel(struct net_device *net_dev) in efx_siena_ethtool_get_msglevel() argument 116 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_ethtool_get_msglevel() 121 void efx_siena_ethtool_set_msglevel(struct net_device *net_dev, u32 msg_enable) in efx_siena_ethtool_set_msglevel() argument 123 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_ethtool_set_msglevel() 128 void efx_siena_ethtool_get_pauseparam(struct net_device *net_dev, in efx_siena_ethtool_get_pauseparam() argument 131 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_ethtool_get_pauseparam() 138 int efx_siena_ethtool_set_pauseparam(struct net_device *net_dev, in efx_siena_ethtool_set_pauseparam() argument 141 struct efx_nic *efx = netdev_priv(net_dev); in efx_siena_ethtool_set_pauseparam() [all …]
|
| /linux/net/batman-adv/ |
| H A D | hard-interface.c | 67 netdev_put(hard_iface->net_dev, &hard_iface->dev_tracker); in batadv_hardif_release() 79 batadv_hardif_get_by_netdev(struct net_device *net_dev) in batadv_hardif_get_by_netdev() argument 86 mesh_iface = netdev_master_upper_dev_get(net_dev); in batadv_hardif_get_by_netdev() 90 hard_iface = netdev_lower_dev_get_private(mesh_iface, net_dev); in batadv_hardif_get_by_netdev() 162 static bool batadv_is_on_batman_iface(const struct net_device *net_dev) in batadv_is_on_batman_iface() argument 164 struct net *net = dev_net(net_dev); in batadv_is_on_batman_iface() 171 if (batadv_meshif_is_valid(net_dev)) in batadv_is_on_batman_iface() 174 iflink = dev_get_iflink(net_dev); in batadv_is_on_batman_iface() 178 parent_net = batadv_getlink_net(net_dev, net); in batadv_is_on_batman_iface() 181 if (net == parent_net && iflink == net_dev->ifindex) in batadv_is_on_batman_iface() [all …]
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| H A D | efx.c | 212 netif_err(efx, drv, efx->net_dev, in ef4_check_disabled() 298 netif_vdbg(efx, intr, efx->net_dev, in ef4_poll() 335 netif_dbg(efx, probe, efx->net_dev, in ef4_probe_eventq() 355 netif_dbg(efx, drv, efx->net_dev, in ef4_init_eventq() 370 netif_dbg(channel->efx, ifup, channel->efx->net_dev, in ef4_start_eventq() 396 netif_dbg(channel->efx, drv, channel->efx->net_dev, in ef4_fini_eventq() 405 netif_dbg(channel->efx, drv, channel->efx->net_dev, in ef4_remove_eventq() 493 netif_dbg(channel->efx, probe, channel->efx->net_dev, in ef4_probe_channel() 568 netif_err(efx, probe, efx->net_dev, in ef4_probe_channels() 589 netdev_features_t old_features = efx->net_dev in ef4_start_datapath() 1981 ef4_ioctl(struct net_device * net_dev,struct ifreq * ifr,int cmd) ef4_ioctl() argument 2039 ef4_net_open(struct net_device * net_dev) ef4_net_open() argument 2066 ef4_net_stop(struct net_device * net_dev) ef4_net_stop() argument 2080 ef4_net_stats(struct net_device * net_dev,struct rtnl_link_stats64 * stats) ef4_net_stats() argument 2091 ef4_watchdog(struct net_device * net_dev,unsigned int txqueue) ef4_watchdog() argument 2104 ef4_change_mtu(struct net_device * net_dev,int new_mtu) ef4_change_mtu() argument 2128 ef4_set_mac_address(struct net_device * net_dev,void * data) ef4_set_mac_address() argument 2163 ef4_set_rx_mode(struct net_device * net_dev) ef4_set_rx_mode() argument 2172 ef4_set_features(struct net_device * net_dev,netdev_features_t data) ef4_set_features() argument 2223 struct net_device *net_dev = netdev_notifier_info_to_dev(ptr); ef4_netdev_event() local 2246 struct net_device *net_dev = efx->net_dev; ef4_register_netdev() local 2616 ef4_init_struct(struct ef4_nic * efx,struct pci_dev * pci_dev,struct net_device * net_dev) ef4_init_struct() argument 2856 struct net_device *net_dev; ef4_pci_probe() local [all...] |
| H A D | ethtool.c | 90 static int ef4_ethtool_phys_id(struct net_device *net_dev, in ef4_ethtool_phys_id() argument 93 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_phys_id() 116 ef4_ethtool_get_link_ksettings(struct net_device *net_dev, in ef4_ethtool_get_link_ksettings() argument 119 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_link_ksettings() 140 ef4_ethtool_set_link_ksettings(struct net_device *net_dev, in ef4_ethtool_set_link_ksettings() argument 143 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_set_link_ksettings() 149 netif_dbg(efx, drv, efx->net_dev, in ef4_ethtool_set_link_ksettings() 160 static void ef4_ethtool_get_drvinfo(struct net_device *net_dev, in ef4_ethtool_get_drvinfo() argument 163 struct ef4_nic *efx = netdev_priv(net_dev); in ef4_ethtool_get_drvinfo() 170 static int ef4_ethtool_get_regs_len(struct net_device *net_dev) in ef4_ethtool_get_regs_len() argument [all …]
|
| H A D | selftest.c | 142 netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); in ef4_test_interrupts() 147 netif_dbg(efx, drv, efx->net_dev, in ef4_test_interrupts() 157 netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); in ef4_test_interrupts() 166 netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); in ef4_test_interrupts() 170 netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", in ef4_test_interrupts() 230 netif_dbg(efx, drv, efx->net_dev, in ef4_test_eventq_irq() 239 netif_err(efx, drv, efx->net_dev, in ef4_test_eventq_irq() 243 netif_err(efx, drv, efx->net_dev, in ef4_test_eventq_irq() 248 netif_err(efx, drv, efx->net_dev, in ef4_test_eventq_irq() 272 netif_info(efx, drv, efx->net_dev, in ef4_test_phy() [all …]
|
| /linux/drivers/net/ethernet/freescale/dpaa/ |
| H A D | dpaa_eth.c | 201 static int dpaa_netdev_init(struct net_device *net_dev, in dpaa_netdev_init() argument 205 struct dpaa_priv *priv = netdev_priv(net_dev); in dpaa_netdev_init() 206 struct device *dev = net_dev->dev.parent; in dpaa_netdev_init() 217 percpu_priv->net_dev = net_dev; in dpaa_netdev_init() 220 net_dev->netdev_ops = dpaa_ops; in dpaa_netdev_init() 223 net_dev->mem_start = (unsigned long)priv->mac_dev->res->start; in dpaa_netdev_init() 224 net_dev->mem_end = (unsigned long)priv->mac_dev->res->end; in dpaa_netdev_init() 226 net_dev->min_mtu = ETH_MIN_MTU; in dpaa_netdev_init() 227 net_dev in dpaa_netdev_init() 298 dpaa_stop(struct net_device * net_dev) dpaa_stop() argument 331 dpaa_tx_timeout(struct net_device * net_dev,unsigned int txqueue) dpaa_tx_timeout() argument 348 dpaa_get_stats64(struct net_device * net_dev,struct rtnl_link_stats64 * s) dpaa_get_stats64() argument 369 dpaa_setup_tc(struct net_device * net_dev,enum tc_setup_type type,void * type_data) dpaa_setup_tc() argument 431 dpaa_set_mac_address(struct net_device * net_dev,void * addr) dpaa_set_mac_address() argument 464 dpaa_addr_sync(struct net_device * net_dev,const u8 * addr) dpaa_addr_sync() argument 472 dpaa_addr_unsync(struct net_device * net_dev,const u8 * addr) dpaa_addr_unsync() argument 480 dpaa_set_rx_mode(struct net_device * net_dev) dpaa_set_rx_mode() argument 901 struct net_device *net_dev = to_net_dev(mac_dev->phylink_config.dev); dpaa_eth_cgr_set_speed() local 1393 dpaa_fd_release(const struct net_device * net_dev,const struct qm_fd * fd) dpaa_fd_release() argument 1562 struct net_device *net_dev = dpaa_bp->priv->net_dev; dpaa_bp_add_8_bufs() local 1946 struct net_device *net_dev = priv->net_dev; skb_to_contig_fd() local 1999 struct net_device *net_dev = priv->net_dev; skb_to_sg_fd() local 2136 dpaa_a050385_wa_skb(struct net_device * net_dev,struct sk_buff ** s) dpaa_a050385_wa_skb() argument 2293 dpaa_start_xmit(struct sk_buff * skb,struct net_device * net_dev) dpaa_start_xmit() argument 2385 dpaa_rx_error(struct net_device * net_dev,const struct dpaa_priv * priv,struct dpaa_percpu_priv * percpu_priv,const struct qm_fd * fd,u32 fqid) dpaa_rx_error() argument 2409 dpaa_tx_error(struct net_device * net_dev,const struct dpaa_priv * priv,struct dpaa_percpu_priv * percpu_priv,const struct qm_fd * fd,u32 fqid) dpaa_tx_error() argument 2450 dpaa_tx_conf(struct net_device * net_dev,const struct dpaa_priv * priv,struct dpaa_percpu_priv * percpu_priv,const struct qm_fd * fd,u32 fqid) dpaa_tx_conf() argument 2496 struct net_device *net_dev; rx_error_dqrr() local 2517 dpaa_xdp_xmit_frame(struct net_device * net_dev,struct xdp_frame * xdpf) dpaa_xdp_xmit_frame() argument 2693 struct net_device *net_dev; rx_default_dqrr() local 2844 struct net_device *net_dev; conf_error_dqrr() local 2866 struct net_device *net_dev; conf_dflt_dqrr() local 2892 struct net_device *net_dev; egress_ern() local 2941 dpaa_open(struct net_device * net_dev) dpaa_open() argument 2984 dpaa_eth_stop(struct net_device * net_dev) dpaa_eth_stop() argument 3014 dpaa_change_mtu(struct net_device * net_dev,int new_mtu) dpaa_change_mtu() argument 3025 dpaa_setup_xdp(struct net_device * net_dev,struct netdev_bpf * bpf) dpaa_setup_xdp() argument 3058 dpaa_xdp(struct net_device * net_dev,struct netdev_bpf * xdp) dpaa_xdp() argument 3068 dpaa_xdp_xmit(struct net_device * net_dev,int n,struct xdp_frame ** frames,u32 flags) dpaa_xdp_xmit() argument 3138 dpaa_ioctl(struct net_device * net_dev,struct ifreq * rq,int cmd) dpaa_ioctl() argument 3163 dpaa_napi_add(struct net_device * net_dev) dpaa_napi_add() argument 3178 dpaa_napi_del(struct net_device * net_dev) dpaa_napi_del() argument 3306 struct net_device *net_dev = NULL; dpaa_eth_probe() local 3546 struct net_device *net_dev; dpaa_remove() local [all...] |
| H A D | dpaa_ethtool.c | 56 static int dpaa_get_link_ksettings(struct net_device *net_dev, in dpaa_get_link_ksettings() argument 59 struct dpaa_priv *priv = netdev_priv(net_dev); in dpaa_get_link_ksettings() 65 static int dpaa_set_link_ksettings(struct net_device *net_dev, in dpaa_set_link_ksettings() argument 68 struct dpaa_priv *priv = netdev_priv(net_dev); in dpaa_set_link_ksettings() 74 static void dpaa_get_drvinfo(struct net_device *net_dev, in dpaa_get_drvinfo() argument 79 strscpy(drvinfo->bus_info, dev_name(net_dev->dev.parent->parent), in dpaa_get_drvinfo() 83 static u32 dpaa_get_msglevel(struct net_device *net_dev) in dpaa_get_msglevel() argument 85 return ((struct dpaa_priv *)netdev_priv(net_dev))->msg_enable; in dpaa_get_msglevel() 88 static void dpaa_set_msglevel(struct net_device *net_dev, in dpaa_set_msglevel() argument 91 ((struct dpaa_priv *)netdev_priv(net_dev))->msg_enable = msg_enable; in dpaa_set_msglevel() [all …]
|
| /linux/drivers/net/ethernet/qualcomm/ |
| H A D | qca_spi.c | 77 netdev_dbg(qca->net_dev, "interrupts: 0x%04x\n", *intr_cause); in start_spi_intr_handling() 90 netdev_dbg(qca->net_dev, "acking int: 0x%04x\n", intr_cause); in end_spi_intr_handling() 270 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit() 312 netif_tx_lock_bh(qca->net_dev); in qcaspi_transmit() 320 if (netif_queue_stopped(qca->net_dev)) in qcaspi_transmit() 321 netif_wake_queue(qca->net_dev); in qcaspi_transmit() 322 netif_tx_unlock_bh(qca->net_dev); in qcaspi_transmit() 331 struct net_device *net_dev = qca->net_dev; in qcaspi_receive() local 332 struct net_device_stats *n_stats = &net_dev in qcaspi_receive() [all...] |
| /linux/drivers/infiniband/hw/hns/ |
| H A D | hns_roce_bond.c | 14 static struct hns_roce_dev *hns_roce_get_hrdev_by_netdev(struct net_device *net_dev) in hns_roce_get_hrdev_by_netdev() argument 17 ib_device_get_by_netdev(net_dev, RDMA_DRIVER_HNS); in hns_roce_get_hrdev_by_netdev() 25 static struct net_device *get_upper_dev_from_ndev(struct net_device *net_dev) in get_upper_dev_from_ndev() argument 30 upper_dev = netdev_master_upper_dev_get_rcu(net_dev); in get_upper_dev_from_ndev() 37 static int get_netdev_bond_slave_id(struct net_device *net_dev, in get_netdev_bond_slave_id() argument 43 if (net_dev == bond_grp->bond_func_info[i].net_dev) in get_netdev_bond_slave_id() 49 struct hns_roce_bond_group *hns_roce_get_bond_grp(struct net_device *net_dev, in hns_roce_get_bond_grp() argument 64 if (get_netdev_bond_slave_id(net_dev, bond_grp) >= 0) in hns_roce_get_bond_grp() 67 upper_dev = get_upper_dev_from_ndev(net_dev); in hns_roce_get_bond_grp() 125 struct net_device *net_dev = get_hr_netdev(hr_dev, 0); hns_roce_bond_is_active() local 139 struct net_device *net_dev; hns_roce_bond_get_active_slave() local 190 struct net_device *net_dev; switch_main_dev() local 457 struct net_device *net_dev; hns_roce_bond_info_update_nolock() local 485 is_dev_bond_supported(struct hns_roce_bond_group * bond_grp,struct net_device * net_dev) is_dev_bond_supported() argument 519 struct net_device *net_dev; check_slave_support() local 621 lowerstate_event_filter(struct hns_roce_bond_group * bond_grp,struct net_device * net_dev) lowerstate_event_filter() argument 644 struct net_device *net_dev = hns_roce_bond_lowerstate_event() local 691 struct net_device *net_dev; check_unlinking_bond_support() local 742 upper_event_filter(struct netdev_notifier_changeupper_info * info,struct hns_roce_bond_group * bond_grp,struct net_device * net_dev) upper_event_filter() argument 775 struct net_device *net_dev = hns_roce_bond_upper_event() local 929 struct net_device *net_dev = get_hr_netdev(hr_dev, 0); hns_roce_bond_init() local [all...] |
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-eth.c | 78 struct device *dev = priv->net_dev->dev.parent; in dpaa2_ptp_onestep_reg_update_method() 124 if (!(priv->net_dev->features & NETIF_F_RXCSUM)) in dpaa2_eth_validate_rx_csum() 143 struct device *dev = priv->net_dev->dev.parent; in dpaa2_eth_free_rx_fd() 203 struct device *dev = priv->net_dev->dev.parent; in dpaa2_eth_build_frag_skb() 284 struct device *dev = priv->net_dev->dev.parent; in dpaa2_eth_free_bufs() 458 bpf_warn_invalid_xdp_action(priv->net_dev, xdp_prog, xdp_act); in dpaa2_eth_run_xdp() 461 trace_xdp_exception(priv->net_dev, xdp_prog, xdp_act); in dpaa2_eth_run_xdp() 468 dma_unmap_page(priv->net_dev->dev.parent, addr, in dpaa2_eth_run_xdp() 476 err = xdp_do_redirect(priv->net_dev, &xdp, xdp_prog); in dpaa2_eth_run_xdp() 478 addr = dma_map_page(priv->net_dev in dpaa2_eth_run_xdp() 1395 __dpaa2_eth_tx(struct sk_buff * skb,struct net_device * net_dev) __dpaa2_eth_tx() argument 1543 dpaa2_eth_tx(struct sk_buff * skb,struct net_device * net_dev) dpaa2_eth_tx() argument 1800 struct net_device *net_dev = priv->net_dev; dpaa2_eth_seed_pools() local 2184 dpaa2_eth_open(struct net_device * net_dev) dpaa2_eth_open() argument 2286 dpaa2_eth_stop(struct net_device * net_dev) dpaa2_eth_stop() argument 2341 dpaa2_eth_set_addr(struct net_device * net_dev,void * addr) dpaa2_eth_set_addr() argument 2366 dpaa2_eth_get_stats(struct net_device * net_dev,struct rtnl_link_stats64 * stats) dpaa2_eth_get_stats() argument 2387 dpaa2_eth_add_uc_hw_addr(const struct net_device * net_dev,struct dpaa2_eth_priv * priv) dpaa2_eth_add_uc_hw_addr() argument 2406 dpaa2_eth_add_mc_hw_addr(const struct net_device * net_dev,struct dpaa2_eth_priv * priv) dpaa2_eth_add_mc_hw_addr() argument 2422 dpaa2_eth_rx_add_vid(struct net_device * net_dev,__be16 vlan_proto,u16 vid) dpaa2_eth_rx_add_vid() argument 2441 dpaa2_eth_rx_kill_vid(struct net_device * net_dev,__be16 vlan_proto,u16 vid) dpaa2_eth_rx_kill_vid() argument 2459 dpaa2_eth_set_rx_mode(struct net_device * net_dev) dpaa2_eth_set_rx_mode() argument 2557 dpaa2_eth_set_features(struct net_device * net_dev,netdev_features_t features) dpaa2_eth_set_features() argument 2817 dpaa2_eth_xdp_create_fd(struct net_device * net_dev,struct xdp_frame * xdpf,struct dpaa2_fd * fd) dpaa2_eth_xdp_create_fd() argument 2865 dpaa2_eth_xdp_xmit(struct net_device * net_dev,int n,struct xdp_frame ** frames,u32 flags) dpaa2_eth_xdp_xmit() argument 2908 struct net_device *net_dev = priv->net_dev; update_xps() local 2940 dpaa2_eth_setup_mqprio(struct net_device * net_dev,struct tc_mqprio_qopt * mqprio) dpaa2_eth_setup_mqprio() argument 2980 dpaa2_eth_setup_tbf(struct net_device * net_dev,struct tc_tbf_qopt_offload * p) dpaa2_eth_setup_tbf() argument 3019 dpaa2_eth_setup_tc(struct net_device * net_dev,enum tc_setup_type type,void * type_data) dpaa2_eth_setup_tc() argument 3808 struct net_device *net_dev; dpaa2_eth_setup_dpni() local 4237 dpaa2_eth_set_dist_key(struct net_device * net_dev,enum dpaa2_eth_rx_dist type,u64 flags) dpaa2_eth_set_dist_key() argument 4313 dpaa2_eth_set_hash(struct net_device * net_dev,u64 flags) dpaa2_eth_set_hash() argument 4329 dpaa2_eth_set_cls(struct net_device * net_dev,u64 flags) dpaa2_eth_set_cls() argument 4378 struct net_device *net_dev = priv->net_dev; dpaa2_eth_bind_dpni() local 4461 struct net_device *net_dev = priv->net_dev; dpaa2_eth_alloc_rings() local 4496 struct net_device *net_dev = priv->net_dev; dpaa2_eth_set_mac_addr() local 4559 dpaa2_eth_netdev_init(struct net_device * net_dev) dpaa2_eth_netdev_init() argument 4746 struct net_device *net_dev = dev_get_drvdata(dev); dpni_irq0_handler_thread() local 4862 struct net_device *net_dev = NULL; dpaa2_eth_probe() local 5083 struct net_device *net_dev; dpaa2_eth_remove() local [all...] |
| H A D | dpaa2-eth-dcb.c | 6 static int dpaa2_eth_dcbnl_ieee_getpfc(struct net_device *net_dev, in dpaa2_eth_dcbnl_ieee_getpfc() argument 9 struct dpaa2_eth_priv *priv = netdev_priv(net_dev); in dpaa2_eth_dcbnl_ieee_getpfc() 52 netdev_err(priv->net_dev, in dpaa2_eth_set_pfc_cn() 61 static int dpaa2_eth_dcbnl_ieee_setpfc(struct net_device *net_dev, in dpaa2_eth_dcbnl_ieee_setpfc() argument 64 struct dpaa2_eth_priv *priv = netdev_priv(net_dev); in dpaa2_eth_dcbnl_ieee_setpfc() 81 netdev_warn(net_dev, "Pause support must be enabled in order for PFC to work!\n"); in dpaa2_eth_dcbnl_ieee_setpfc() 91 netdev_err(net_dev, "dpni_set_link_cfg failed\n"); in dpaa2_eth_dcbnl_ieee_setpfc() 108 static u8 dpaa2_eth_dcbnl_getdcbx(struct net_device *net_dev) in dpaa2_eth_dcbnl_getdcbx() argument 110 struct dpaa2_eth_priv *priv = netdev_priv(net_dev); in dpaa2_eth_dcbnl_getdcbx() 115 static u8 dpaa2_eth_dcbnl_setdcbx(struct net_device *net_dev, u8 mode) in dpaa2_eth_dcbnl_setdcbx() argument [all …]
|
| /linux/drivers/net/ethernet/ |
| H A D | ec_bhf.c | 123 struct net_device *net_dev; member 185 if (unlikely(netif_queue_stopped(priv->net_dev))) { in ec_bhf_process_tx() 190 netif_wake_queue(priv->net_dev); in ec_bhf_process_tx() 215 skb = netdev_alloc_skb_ip_align(priv->net_dev, pkt_size); in ec_bhf_process_rx() 218 skb->protocol = eth_type_trans(skb, priv->net_dev); in ec_bhf_process_rx() 244 if (!netif_running(priv->net_dev)) in ec_bhf_timer_fun() 283 struct net_device *net_dev) in ec_bhf_start_xmit() argument 285 struct ec_bhf_priv *priv = netdev_priv(net_dev); in ec_bhf_start_xmit() 308 netif_stop_queue(net_dev); in ec_bhf_start_xmit() 392 static int ec_bhf_open(struct net_device *net_dev) in ec_bhf_open() argument [all …]
|