| /linux/drivers/net/ethernet/sis/ |
| H A D | sis900.c | 115 static void sis900_read_mode(struct net_device *net_dev, int *speed, int *duplex); 213 static int sis900_open(struct net_device *net_dev); 214 static int sis900_mii_probe (struct net_device * net_dev); 215 static void sis900_init_rxfilter (struct net_device * net_dev); 217 static int mdio_read(struct net_device *net_dev, int phy_id, int location); 218 static void mdio_write(struct net_device *net_dev, int phy_id, int location, int val); 220 static void sis900_check_mode (struct net_device *net_dev, struct mii_phy *mii_phy); 221 static void sis900_tx_timeout(struct net_device *net_dev, unsigned int txqueue); 222 static void sis900_init_tx_ring(struct net_device *net_dev); 223 static void sis900_init_rx_ring(struct net_device *net_dev); [all …]
|
| /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 | 122 netif_dbg(efx, probe, efx->net_dev, "create port\n"); in efx_probe_port() 133 eth_hw_addr_set(efx->net_dev, efx->net_dev->perm_addr); in efx_probe_port() 142 netif_dbg(efx, drv, efx->net_dev, "init port\n"); in efx_init_port() 163 netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); in efx_fini_port() 176 netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); in efx_remove_port() 204 netif_dbg(efx, probe, efx->net_dev, "adding to primary list\n"); in efx_associate() 211 netif_dbg(other, probe, other->net_dev, in efx_associate() 214 efx->net_dev->name); in efx_associate() 225 netif_dbg(efx, probe, efx->net_dev, in efx_associate() 228 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 …]
|
| /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 …]
|
| /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->features; in ef4_start_datapath() [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 | 202 static int dpaa_netdev_init(struct net_device *net_dev, in dpaa_netdev_init() argument 206 struct dpaa_priv *priv = netdev_priv(net_dev); in dpaa_netdev_init() 207 struct device *dev = net_dev->dev.parent; in dpaa_netdev_init() 218 percpu_priv->net_dev = net_dev; in dpaa_netdev_init() 221 net_dev->netdev_ops = dpaa_ops; in dpaa_netdev_init() 224 net_dev->mem_start = (unsigned long)priv->mac_dev->res->start; in dpaa_netdev_init() 225 net_dev->mem_end = (unsigned long)priv->mac_dev->res->end; in dpaa_netdev_init() 227 net_dev->min_mtu = ETH_MIN_MTU; in dpaa_netdev_init() 228 net_dev->max_mtu = dpaa_get_max_mtu(); in dpaa_netdev_init() 230 net_dev->hw_features |= (NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | in dpaa_netdev_init() [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/net/batman-adv/ |
| H A D | hard-interface.c | 55 netdev_put(hard_iface->net_dev, &hard_iface->dev_tracker); in batadv_hardif_release() 67 batadv_hardif_get_by_netdev(const struct net_device *net_dev) in batadv_hardif_get_by_netdev() argument 73 if (hard_iface->net_dev == net_dev && in batadv_hardif_get_by_netdev() 150 static bool batadv_is_on_batman_iface(const struct net_device *net_dev) in batadv_is_on_batman_iface() argument 152 struct net *net = dev_net(net_dev); in batadv_is_on_batman_iface() 159 if (batadv_meshif_is_valid(net_dev)) in batadv_is_on_batman_iface() 162 iflink = dev_get_iflink(net_dev); in batadv_is_on_batman_iface() 166 parent_net = batadv_getlink_net(net_dev, net); in batadv_is_on_batman_iface() 169 if (net == parent_net && iflink == net_dev->ifindex) in batadv_is_on_batman_iface() 176 net_dev->name); in batadv_is_on_batman_iface() [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->stats; in qcaspi_receive() 339 qca->rx_skb = netdev_alloc_skb_ip_align(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() 93 active_dev = bond_grp->bond_func_info[i].net_dev; in hns_roce_set_bond_netdev() [all …]
|
| /linux/net/atm/ |
| H A D | br2684.c | 84 struct net_device *net_dev; member 103 static inline struct br2684_dev *BRPRIV(const struct net_device *net_dev) in BRPRIV() argument 105 return netdev_priv(net_dev); in BRPRIV() 110 return list_entry(le, struct br2684_dev, br2684_devs)->net_dev; in list_entry_brdev() 127 struct net_device *net_dev; in br2684_find_dev() local 131 net_dev = list_entry_brdev(lh); in br2684_find_dev() 132 if (BRPRIV(net_dev)->number == s->spec.devnum) in br2684_find_dev() 133 return net_dev; in br2684_find_dev() 138 net_dev = list_entry_brdev(lh); in br2684_find_dev() 139 if (!strncmp(net_dev->name, s->spec.ifname, IFNAMSIZ)) in br2684_find_dev() [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->dev.parent, in dpaa2_eth_run_xdp() [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 …]
|