Home
last modified time | relevance | path

Searched refs:netdev (Results 1 - 25 of 1721) sorted by relevance

12345678910>>...69

/kernel/linux/linux-6.6/net/core/
H A Ddev_addr_lists_test.c15 static int dev_addr_test_sync(struct net_device *netdev, const unsigned char *a) in dev_addr_test_sync() argument
17 struct dev_addr_test_priv *datp = netdev_priv(netdev); in dev_addr_test_sync()
24 static int dev_addr_test_unsync(struct net_device *netdev, in dev_addr_test_unsync() argument
27 struct dev_addr_test_priv *datp = netdev_priv(netdev); in dev_addr_test_unsync()
37 struct net_device *netdev; in dev_addr_test_init() local
40 netdev = alloc_etherdev(sizeof(*datp)); in dev_addr_test_init()
41 KUNIT_ASSERT_TRUE(test, !!netdev); in dev_addr_test_init()
43 test->priv = netdev; in dev_addr_test_init()
44 netdev->netdev_ops = &dummy_netdev_ops; in dev_addr_test_init()
46 err = register_netdev(netdev); in dev_addr_test_init()
58 struct net_device *netdev = test->priv; dev_addr_test_exit() local
67 struct net_device *netdev = test->priv; dev_addr_test_basic() local
83 struct net_device *netdev = test->priv; dev_addr_test_sync_one() local
110 struct net_device *netdev = test->priv; dev_addr_test_add_del() local
150 struct net_device *netdev = test->priv; dev_addr_test_del_main() local
168 struct net_device *netdev = test->priv; dev_addr_test_add_set() local
198 struct net_device *netdev = test->priv; dev_addr_test_add_excl() local
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
H A Dnetdevice.sh19 netdev=$1
21 ip link show "$netdev" |grep -q UP
23 echo "SKIP: $netdev: interface already up"
27 ip link set "$netdev" up
29 echo "FAIL: $netdev: Fail to up interface"
32 echo "PASS: $netdev: set interface up"
43 netdev=$1
51 ip link set dev $netdev address "$MACADDR"
53 echo "FAIL: $netdev: Cannot set MAC address"
55 ip link show $netdev |gre
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dnetdevice.sh19 netdev=$1
21 ip link show "$netdev" |grep -q UP
23 echo "SKIP: $netdev: interface already up"
27 ip link set "$netdev" up
29 echo "FAIL: $netdev: Fail to up interface"
32 echo "PASS: $netdev: set interface up"
43 netdev=$1
51 ip link set dev $netdev address "$MACADDR"
53 echo "FAIL: $netdev: Cannot set MAC address"
55 ip link show $netdev |gre
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_repr.c27 nfp_repr_inc_tx_stats(struct net_device *netdev, unsigned int len, in nfp_repr_inc_tx_stats() argument
30 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_tx_stats()
46 void nfp_repr_inc_rx_stats(struct net_device *netdev, unsigned int len) in nfp_repr_inc_rx_stats() argument
48 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_rx_stats()
90 nfp_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) in nfp_repr_get_stats64() argument
92 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_stats64()
123 nfp_repr_get_host_stats64(const struct net_device *netdev, in nfp_repr_get_host_stats64() argument
126 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_host_stats64()
166 static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) in nfp_repr_change_mtu() argument
168 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_change_mtu()
184 nfp_repr_xmit(struct sk_buff *skb, struct net_device *netdev) nfp_repr_xmit() argument
201 nfp_repr_stop(struct net_device *netdev) nfp_repr_stop() argument
214 nfp_repr_open(struct net_device *netdev) nfp_repr_open() argument
235 nfp_repr_fix_features(struct net_device *netdev, netdev_features_t features) nfp_repr_fix_features() argument
281 nfp_repr_transfer_features(struct net_device *netdev, struct net_device *lower) nfp_repr_transfer_features() argument
316 nfp_repr_init(struct nfp_app *app, struct net_device *netdev, u32 cmsg_port_id, struct nfp_port *port, struct net_device *pf_netdev) nfp_repr_init() argument
416 nfp_repr_free(struct net_device *netdev) nfp_repr_free() argument
424 struct net_device *netdev; nfp_repr_alloc_mqs() local
458 struct net_device *netdev; nfp_reprs_clean_and_free() local
473 struct net_device *netdev; nfp_reprs_clean_and_free_by_type() local
512 struct net_device *netdev; nfp_reprs_resync_phys_ports() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_repr.c27 nfp_repr_inc_tx_stats(struct net_device *netdev, unsigned int len, in nfp_repr_inc_tx_stats() argument
30 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_tx_stats()
46 void nfp_repr_inc_rx_stats(struct net_device *netdev, unsigned int len) in nfp_repr_inc_rx_stats() argument
48 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_inc_rx_stats()
90 nfp_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) in nfp_repr_get_stats64() argument
92 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_stats64()
124 nfp_repr_get_host_stats64(const struct net_device *netdev, in nfp_repr_get_host_stats64() argument
127 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_get_host_stats64()
167 static int nfp_repr_change_mtu(struct net_device *netdev, int new_mtu) in nfp_repr_change_mtu() argument
169 struct nfp_repr *repr = netdev_priv(netdev); in nfp_repr_change_mtu()
185 nfp_repr_xmit(struct sk_buff *skb, struct net_device *netdev) nfp_repr_xmit() argument
202 nfp_repr_stop(struct net_device *netdev) nfp_repr_stop() argument
215 nfp_repr_open(struct net_device *netdev) nfp_repr_open() argument
236 nfp_repr_fix_features(struct net_device *netdev, netdev_features_t features) nfp_repr_fix_features() argument
281 nfp_repr_transfer_features(struct net_device *netdev, struct net_device *lower) nfp_repr_transfer_features() argument
315 nfp_repr_init(struct nfp_app *app, struct net_device *netdev, u32 cmsg_port_id, struct nfp_port *port, struct net_device *pf_netdev) nfp_repr_init() argument
419 nfp_repr_free(struct net_device *netdev) nfp_repr_free() argument
427 struct net_device *netdev; nfp_repr_alloc_mqs() local
461 struct net_device *netdev; nfp_reprs_clean_and_free() local
476 struct net_device *netdev; nfp_reprs_clean_and_free_by_type() local
514 struct net_device *netdev; nfp_reprs_resync_phys_ports() local
[all...]
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_netdev.c50 * netdev functionality.
65 static void opa_vnic_get_stats64(struct net_device *netdev, in opa_vnic_get_stats64() argument
68 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_get_stats64()
73 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in opa_vnic_get_stats64()
80 struct net_device *netdev) in opa_netdev_start_xmit()
82 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_netdev_start_xmit()
94 return adapter->rn_ops->ndo_start_xmit(skb, netdev); in opa_netdev_start_xmit()
97 static u16 opa_vnic_select_queue(struct net_device *netdev, struct sk_buff *skb, in opa_vnic_select_queue() argument
100 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_select_queue()
108 rc = adapter->rn_ops->ndo_select_queue(netdev, sk in opa_vnic_select_queue()
79 opa_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev) opa_netdev_start_xmit() argument
140 struct net_device *netdev = adapter->netdev; opa_vnic_process_vema_config() local
203 opa_vnic_set_mac_addr(struct net_device *netdev, void *addr) opa_vnic_set_mac_addr() argument
229 opa_vnic_mac_send_event(struct net_device *netdev, u8 event) opa_vnic_mac_send_event() argument
264 opa_vnic_set_rx_mode(struct net_device *netdev) opa_vnic_set_rx_mode() argument
274 opa_netdev_open(struct net_device *netdev) opa_netdev_open() argument
293 opa_netdev_close(struct net_device *netdev) opa_netdev_close() argument
327 struct net_device *netdev; opa_vnic_add_netdev() local
391 struct net_device *netdev = adapter->netdev; opa_vnic_rem_netdev() local
[all...]
/kernel/linux/linux-6.6/drivers/infiniband/ulp/opa_vnic/
H A Dopa_vnic_netdev.c50 * netdev functionality.
64 static void opa_vnic_get_stats64(struct net_device *netdev, in opa_vnic_get_stats64() argument
67 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_get_stats64()
72 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in opa_vnic_get_stats64()
79 struct net_device *netdev) in opa_netdev_start_xmit()
81 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_netdev_start_xmit()
93 return adapter->rn_ops->ndo_start_xmit(skb, netdev); in opa_netdev_start_xmit()
96 static u16 opa_vnic_select_queue(struct net_device *netdev, struct sk_buff *skb, in opa_vnic_select_queue() argument
99 struct opa_vnic_adapter *adapter = opa_vnic_priv(netdev); in opa_vnic_select_queue()
107 rc = adapter->rn_ops->ndo_select_queue(netdev, sk in opa_vnic_select_queue()
78 opa_netdev_start_xmit(struct sk_buff *skb, struct net_device *netdev) opa_netdev_start_xmit() argument
139 struct net_device *netdev = adapter->netdev; opa_vnic_process_vema_config() local
202 opa_vnic_set_mac_addr(struct net_device *netdev, void *addr) opa_vnic_set_mac_addr() argument
228 opa_vnic_mac_send_event(struct net_device *netdev, u8 event) opa_vnic_mac_send_event() argument
263 opa_vnic_set_rx_mode(struct net_device *netdev) opa_vnic_set_rx_mode() argument
273 opa_netdev_open(struct net_device *netdev) opa_netdev_open() argument
292 opa_netdev_close(struct net_device *netdev) opa_netdev_close() argument
326 struct net_device *netdev; opa_vnic_add_netdev() local
390 struct net_device *netdev = adapter->netdev; opa_vnic_rem_netdev() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/litex/
H A Dlitex_liteeth.c42 struct net_device *netdev; member
57 static int liteeth_rx(struct net_device *netdev) in liteeth_rx() argument
59 struct liteeth *priv = netdev_priv(netdev); in liteeth_rx()
71 skb = netdev_alloc_skb_ip_align(netdev, len); in liteeth_rx()
73 netdev_err(netdev, "couldn't get memory\n"); in liteeth_rx()
79 skb->protocol = eth_type_trans(skb, netdev); in liteeth_rx()
81 dev_sw_netstats_rx_add(netdev, len); in liteeth_rx()
86 netdev->stats.rx_dropped++; in liteeth_rx()
87 netdev->stats.rx_errors++; in liteeth_rx()
94 struct net_device *netdev in liteeth_interrupt() local
114 liteeth_open(struct net_device *netdev) liteeth_open() argument
139 liteeth_stop(struct net_device *netdev) liteeth_stop() argument
154 liteeth_start_xmit(struct sk_buff *skb, struct net_device *netdev) liteeth_start_xmit() argument
196 liteeth_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) liteeth_get_stats64() argument
235 struct net_device *netdev; liteeth_probe() local
299 struct net_device *netdev = platform_get_drvdata(pdev); liteeth_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qede/
H A Dqede_dcbnl.c13 static u8 qede_dcbnl_getstate(struct net_device *netdev) in qede_dcbnl_getstate() argument
15 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getstate()
20 static u8 qede_dcbnl_setstate(struct net_device *netdev, u8 state) in qede_dcbnl_setstate() argument
22 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_setstate()
27 static void qede_dcbnl_getpermhwaddr(struct net_device *netdev, in qede_dcbnl_getpermhwaddr() argument
30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); in qede_dcbnl_getpermhwaddr()
33 static void qede_dcbnl_getpgtccfgtx(struct net_device *netdev, int prio, in qede_dcbnl_getpgtccfgtx() argument
37 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgtccfgtx()
43 static void qede_dcbnl_getpgbwgcfgtx(struct net_device *netdev, in qede_dcbnl_getpgbwgcfgtx() argument
51 qede_dcbnl_getpgtccfgrx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) qede_dcbnl_getpgtccfgrx() argument
61 qede_dcbnl_getpgbwgcfgrx(struct net_device *netdev, int pgid, u8 *bw_pct) qede_dcbnl_getpgbwgcfgrx() argument
69 qede_dcbnl_getpfccfg(struct net_device *netdev, int prio, u8 *setting) qede_dcbnl_getpfccfg() argument
77 qede_dcbnl_setpfccfg(struct net_device *netdev, int prio, u8 setting) qede_dcbnl_setpfccfg() argument
85 qede_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) qede_dcbnl_getcap() argument
92 qede_dcbnl_getnumtcs(struct net_device *netdev, int tcid, u8 *num) qede_dcbnl_getnumtcs() argument
99 qede_dcbnl_getpfcstate(struct net_device *netdev) qede_dcbnl_getpfcstate() argument
106 qede_dcbnl_getapp(struct net_device *netdev, u8 idtype, u16 id) qede_dcbnl_getapp() argument
113 qede_dcbnl_getdcbx(struct net_device *netdev) qede_dcbnl_getdcbx() argument
120 qede_dcbnl_setpgtccfgtx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) qede_dcbnl_setpgtccfgtx() argument
129 qede_dcbnl_setpgtccfgrx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) qede_dcbnl_setpgtccfgrx() argument
138 qede_dcbnl_setpgbwgcfgtx(struct net_device *netdev, int pgid, u8 bw_pct) qede_dcbnl_setpgbwgcfgtx() argument
146 qede_dcbnl_setpgbwgcfgrx(struct net_device *netdev, int pgid, u8 bw_pct) qede_dcbnl_setpgbwgcfgrx() argument
154 qede_dcbnl_setall(struct net_device *netdev) qede_dcbnl_setall() argument
161 qede_dcbnl_setnumtcs(struct net_device *netdev, int tcid, u8 num) qede_dcbnl_setnumtcs() argument
168 qede_dcbnl_setpfcstate(struct net_device *netdev, u8 state) qede_dcbnl_setpfcstate() argument
175 qede_dcbnl_setapp(struct net_device *netdev, u8 idtype, u16 idval, u8 up) qede_dcbnl_setapp() argument
183 qede_dcbnl_setdcbx(struct net_device *netdev, u8 state) qede_dcbnl_setdcbx() argument
190 qede_dcbnl_getfeatcfg(struct net_device *netdev, int featid, u8 *flags) qede_dcbnl_getfeatcfg() argument
198 qede_dcbnl_setfeatcfg(struct net_device *netdev, int featid, u8 flags) qede_dcbnl_setfeatcfg() argument
205 qede_dcbnl_peer_getappinfo(struct net_device *netdev, struct dcb_peer_app_info *info, u16 *count) qede_dcbnl_peer_getappinfo() argument
214 qede_dcbnl_peer_getapptable(struct net_device *netdev, struct dcb_app *app) qede_dcbnl_peer_getapptable() argument
222 qede_dcbnl_cee_peer_getpfc(struct net_device *netdev, struct cee_pfc *pfc) qede_dcbnl_cee_peer_getpfc() argument
230 qede_dcbnl_cee_peer_getpg(struct net_device *netdev, struct cee_pg *pg) qede_dcbnl_cee_peer_getpg() argument
238 qede_dcbnl_ieee_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) qede_dcbnl_ieee_getpfc() argument
246 qede_dcbnl_ieee_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) qede_dcbnl_ieee_setpfc() argument
254 qede_dcbnl_ieee_getets(struct net_device *netdev, struct ieee_ets *ets) qede_dcbnl_ieee_getets() argument
262 qede_dcbnl_ieee_setets(struct net_device *netdev, struct ieee_ets *ets) qede_dcbnl_ieee_setets() argument
270 qede_dcbnl_ieee_getapp(struct net_device *netdev, struct dcb_app *app) qede_dcbnl_ieee_getapp() argument
278 qede_dcbnl_ieee_setapp(struct net_device *netdev, struct dcb_app *app) qede_dcbnl_ieee_setapp() argument
291 qede_dcbnl_ieee_peer_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) qede_dcbnl_ieee_peer_getpfc() argument
299 qede_dcbnl_ieee_peer_getets(struct net_device *netdev, struct ieee_ets *ets) qede_dcbnl_ieee_peer_getets() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qede/
H A Dqede_dcbnl.c13 static u8 qede_dcbnl_getstate(struct net_device *netdev) in qede_dcbnl_getstate() argument
15 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getstate()
20 static u8 qede_dcbnl_setstate(struct net_device *netdev, u8 state) in qede_dcbnl_setstate() argument
22 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_setstate()
27 static void qede_dcbnl_getpermhwaddr(struct net_device *netdev, in qede_dcbnl_getpermhwaddr() argument
30 memcpy(perm_addr, netdev->dev_addr, netdev->addr_len); in qede_dcbnl_getpermhwaddr()
33 static void qede_dcbnl_getpgtccfgtx(struct net_device *netdev, int prio, in qede_dcbnl_getpgtccfgtx() argument
37 struct qede_dev *edev = netdev_priv(netdev); in qede_dcbnl_getpgtccfgtx()
43 static void qede_dcbnl_getpgbwgcfgtx(struct net_device *netdev, in qede_dcbnl_getpgbwgcfgtx() argument
51 qede_dcbnl_getpgtccfgrx(struct net_device *netdev, int prio, u8 *prio_type, u8 *pgid, u8 *bw_pct, u8 *up_map) qede_dcbnl_getpgtccfgrx() argument
61 qede_dcbnl_getpgbwgcfgrx(struct net_device *netdev, int pgid, u8 *bw_pct) qede_dcbnl_getpgbwgcfgrx() argument
69 qede_dcbnl_getpfccfg(struct net_device *netdev, int prio, u8 *setting) qede_dcbnl_getpfccfg() argument
77 qede_dcbnl_setpfccfg(struct net_device *netdev, int prio, u8 setting) qede_dcbnl_setpfccfg() argument
85 qede_dcbnl_getcap(struct net_device *netdev, int capid, u8 *cap) qede_dcbnl_getcap() argument
92 qede_dcbnl_getnumtcs(struct net_device *netdev, int tcid, u8 *num) qede_dcbnl_getnumtcs() argument
99 qede_dcbnl_getpfcstate(struct net_device *netdev) qede_dcbnl_getpfcstate() argument
106 qede_dcbnl_getapp(struct net_device *netdev, u8 idtype, u16 id) qede_dcbnl_getapp() argument
113 qede_dcbnl_getdcbx(struct net_device *netdev) qede_dcbnl_getdcbx() argument
120 qede_dcbnl_setpgtccfgtx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) qede_dcbnl_setpgtccfgtx() argument
129 qede_dcbnl_setpgtccfgrx(struct net_device *netdev, int prio, u8 pri_type, u8 pgid, u8 bw_pct, u8 up_map) qede_dcbnl_setpgtccfgrx() argument
138 qede_dcbnl_setpgbwgcfgtx(struct net_device *netdev, int pgid, u8 bw_pct) qede_dcbnl_setpgbwgcfgtx() argument
146 qede_dcbnl_setpgbwgcfgrx(struct net_device *netdev, int pgid, u8 bw_pct) qede_dcbnl_setpgbwgcfgrx() argument
154 qede_dcbnl_setall(struct net_device *netdev) qede_dcbnl_setall() argument
161 qede_dcbnl_setnumtcs(struct net_device *netdev, int tcid, u8 num) qede_dcbnl_setnumtcs() argument
168 qede_dcbnl_setpfcstate(struct net_device *netdev, u8 state) qede_dcbnl_setpfcstate() argument
175 qede_dcbnl_setapp(struct net_device *netdev, u8 idtype, u16 idval, u8 up) qede_dcbnl_setapp() argument
183 qede_dcbnl_setdcbx(struct net_device *netdev, u8 state) qede_dcbnl_setdcbx() argument
190 qede_dcbnl_getfeatcfg(struct net_device *netdev, int featid, u8 *flags) qede_dcbnl_getfeatcfg() argument
198 qede_dcbnl_setfeatcfg(struct net_device *netdev, int featid, u8 flags) qede_dcbnl_setfeatcfg() argument
205 qede_dcbnl_peer_getappinfo(struct net_device *netdev, struct dcb_peer_app_info *info, u16 *count) qede_dcbnl_peer_getappinfo() argument
214 qede_dcbnl_peer_getapptable(struct net_device *netdev, struct dcb_app *app) qede_dcbnl_peer_getapptable() argument
222 qede_dcbnl_cee_peer_getpfc(struct net_device *netdev, struct cee_pfc *pfc) qede_dcbnl_cee_peer_getpfc() argument
230 qede_dcbnl_cee_peer_getpg(struct net_device *netdev, struct cee_pg *pg) qede_dcbnl_cee_peer_getpg() argument
238 qede_dcbnl_ieee_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) qede_dcbnl_ieee_getpfc() argument
246 qede_dcbnl_ieee_setpfc(struct net_device *netdev, struct ieee_pfc *pfc) qede_dcbnl_ieee_setpfc() argument
254 qede_dcbnl_ieee_getets(struct net_device *netdev, struct ieee_ets *ets) qede_dcbnl_ieee_getets() argument
262 qede_dcbnl_ieee_setets(struct net_device *netdev, struct ieee_ets *ets) qede_dcbnl_ieee_setets() argument
270 qede_dcbnl_ieee_getapp(struct net_device *netdev, struct dcb_app *app) qede_dcbnl_ieee_getapp() argument
278 qede_dcbnl_ieee_setapp(struct net_device *netdev, struct dcb_app *app) qede_dcbnl_ieee_setapp() argument
291 qede_dcbnl_ieee_peer_getpfc(struct net_device *netdev, struct ieee_pfc *pfc) qede_dcbnl_ieee_peer_getpfc() argument
299 qede_dcbnl_ieee_peer_getets(struct net_device *netdev, struct ieee_ets *ets) qede_dcbnl_ieee_peer_getets() argument
[all...]
/kernel/linux/linux-5.10/net/openvswitch/
H A Dvport-internal_dev.c19 #include "vport-netdev.h"
27 static struct internal_dev *internal_dev_priv(struct net_device *netdev) in internal_dev_priv() argument
29 return netdev_priv(netdev); in internal_dev_priv()
34 internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) in internal_dev_xmit() argument
40 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
44 struct pcpu_sw_netstats *tstats = this_cpu_ptr(netdev->tstats); in internal_dev_xmit()
51 netdev->stats.tx_errors++; in internal_dev_xmit()
56 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument
58 netif_start_queue(netdev); in internal_dev_open()
62 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument
68 internal_dev_getinfo(struct net_device *netdev, struct ethtool_drvinfo *info) internal_dev_getinfo() argument
110 do_setup(struct net_device *netdev) do_setup() argument
209 struct net_device *netdev = skb->dev; internal_dev_recv() local
237 ovs_is_internal_dev(const struct net_device *netdev) ovs_is_internal_dev() argument
242 ovs_internal_dev_get_vport(struct net_device *netdev) ovs_internal_dev_get_vport() argument
[all...]
/kernel/linux/linux-6.6/net/openvswitch/
H A Dvport-internal_dev.c19 #include "vport-netdev.h"
27 static struct internal_dev *internal_dev_priv(struct net_device *netdev) in internal_dev_priv() argument
29 return netdev_priv(netdev); in internal_dev_priv()
34 internal_dev_xmit(struct sk_buff *skb, struct net_device *netdev) in internal_dev_xmit() argument
42 err = ovs_vport_receive(internal_dev_priv(netdev)->vport, skb, NULL); in internal_dev_xmit()
46 dev_sw_netstats_tx_add(netdev, 1, len); in internal_dev_xmit()
48 netdev->stats.tx_errors++; in internal_dev_xmit()
53 static int internal_dev_open(struct net_device *netdev) in internal_dev_open() argument
55 netif_start_queue(netdev); in internal_dev_open()
59 static int internal_dev_stop(struct net_device *netdev) in internal_dev_stop() argument
65 internal_dev_getinfo(struct net_device *netdev, struct ethtool_drvinfo *info) internal_dev_getinfo() argument
95 do_setup(struct net_device *netdev) do_setup() argument
195 struct net_device *netdev = skb->dev; internal_dev_recv() local
223 ovs_is_internal_dev(const struct net_device *netdev) ovs_is_internal_dev() argument
228 ovs_internal_dev_get_vport(struct net_device *netdev) ovs_internal_dev_get_vport() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ipa/
H A Dipa_modem.c40 static int ipa_open(struct net_device *netdev) in ipa_open() argument
42 struct ipa_priv *priv = netdev_priv(netdev); in ipa_open()
53 netif_start_queue(netdev); in ipa_open()
64 static int ipa_stop(struct net_device *netdev) in ipa_stop() argument
66 struct ipa_priv *priv = netdev_priv(netdev); in ipa_stop()
69 netif_stop_queue(netdev); in ipa_stop()
85 static int ipa_start_xmit(struct sk_buff *skb, struct net_device *netdev) in ipa_start_xmit() argument
87 struct net_device_stats *stats = &netdev->stats; in ipa_start_xmit()
88 struct ipa_priv *priv = netdev_priv(netdev); in ipa_start_xmit()
120 void ipa_modem_skb_rx(struct net_device *netdev, struc argument
143 ipa_modem_netdev_setup(struct net_device *netdev) ipa_modem_netdev_setup() argument
167 ipa_modem_suspend(struct net_device *netdev) ipa_modem_suspend() argument
183 ipa_modem_resume(struct net_device *netdev) ipa_modem_resume() argument
197 struct net_device *netdev; ipa_modem_start() local
241 struct net_device *netdev = ipa->modem_netdev; ipa_modem_stop() local
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/actions/
H A Dowl-emac.c63 return priv->netdev->dev.parent; in owl_emac_get_dev()
161 static struct sk_buff *owl_emac_alloc_skb(struct net_device *netdev) in owl_emac_alloc_skb() argument
166 skb = netdev_alloc_skb(netdev, OWL_EMAC_RX_FRAME_MAX_LEN + in owl_emac_alloc_skb()
183 struct net_device *netdev = priv->netdev; in owl_emac_ring_prepare_rx() local
190 skb = owl_emac_alloc_skb(netdev); in owl_emac_ring_prepare_rx()
342 static void owl_emac_set_hw_mac_addr(struct net_device *netdev) in owl_emac_set_hw_mac_addr() argument
344 struct owl_emac_priv *priv = netdev_priv(netdev); in owl_emac_set_hw_mac_addr()
345 const u8 *mac_addr = netdev->dev_addr; in owl_emac_set_hw_mac_addr()
394 static void owl_emac_adjust_link(struct net_device *netdev) in owl_emac_adjust_link() argument
438 struct net_device *netdev = data; owl_emac_handle_irq() local
493 struct net_device *netdev = priv->netdev; owl_emac_setup_frame_xmit() local
565 owl_emac_ndo_start_xmit(struct sk_buff *skb, struct net_device *netdev) owl_emac_ndo_start_xmit() argument
634 struct net_device *netdev = priv->netdev; owl_emac_tx_complete_tail() local
698 struct net_device *netdev = priv->netdev; owl_emac_tx_complete() local
750 struct net_device *netdev = priv->netdev; owl_emac_rx_process() local
1032 owl_emac_enable(struct net_device *netdev, bool start_phy) owl_emac_enable() argument
1075 owl_emac_disable(struct net_device *netdev, bool stop_phy) owl_emac_disable() argument
1092 owl_emac_ndo_open(struct net_device *netdev) owl_emac_ndo_open() argument
1097 owl_emac_ndo_stop(struct net_device *netdev) owl_emac_ndo_stop() argument
1104 owl_emac_set_multicast(struct net_device *netdev, int count) owl_emac_set_multicast() argument
1128 owl_emac_ndo_set_rx_mode(struct net_device *netdev) owl_emac_ndo_set_rx_mode() argument
1166 owl_emac_ndo_set_mac_addr(struct net_device *netdev, void *addr) owl_emac_ndo_set_mac_addr() argument
1182 owl_emac_ndo_eth_ioctl(struct net_device *netdev, struct ifreq *req, int cmd) owl_emac_ndo_eth_ioctl() argument
1191 owl_emac_ndo_tx_timeout(struct net_device *netdev, unsigned int txqueue) owl_emac_ndo_tx_timeout() argument
1211 owl_emac_ndo_get_stats(struct net_device *netdev) owl_emac_ndo_get_stats() argument
1238 owl_emac_ethtool_get_msglevel(struct net_device *netdev) owl_emac_ethtool_get_msglevel() argument
1321 owl_emac_mdio_init(struct net_device *netdev) owl_emac_mdio_init() argument
1358 owl_emac_phy_init(struct net_device *netdev) owl_emac_phy_init() argument
1377 owl_emac_get_mac_addr(struct net_device *netdev) owl_emac_get_mac_addr() argument
1392 struct net_device *netdev = dev_get_drvdata(dev); owl_emac_suspend() local
1409 struct net_device *netdev = dev_get_drvdata(dev); owl_emac_resume() local
1473 struct net_device *netdev; owl_emac_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/faraday/
H A Dftmac100.c64 struct net_device *netdev; member
114 struct net_device *netdev = priv->netdev; in ftmac100_reset() local
137 netdev_err(netdev, "software reset failed\n"); in ftmac100_reset()
161 struct net_device *netdev = priv->netdev; in ftmac100_start_hw() local
176 ftmac100_set_mac(priv, netdev->dev_addr); in ftmac100_start_hw()
321 struct net_device *netdev = priv->netdev; in ftmac100_rx_packet_error() local
326 netdev_info(netdev, "r in ftmac100_rx_packet_error()
365 struct net_device *netdev = priv->netdev; ftmac100_rx_drop_packet() local
386 struct net_device *netdev = priv->netdev; ftmac100_rx_packet() local
574 struct net_device *netdev = priv->netdev; ftmac100_tx_complete_packet() local
626 struct net_device *netdev = priv->netdev; ftmac100_xmit() local
661 struct net_device *netdev = priv->netdev; ftmac100_alloc_rx_page() local
751 ftmac100_mdio_read(struct net_device *netdev, int phy_id, int reg) ftmac100_mdio_read() argument
776 ftmac100_mdio_write(struct net_device *netdev, int phy_id, int reg, int data) ftmac100_mdio_write() argument
807 ftmac100_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info) ftmac100_get_drvinfo() argument
814 ftmac100_get_link_ksettings(struct net_device *netdev, struct ethtool_link_ksettings *cmd) ftmac100_get_link_ksettings() argument
824 ftmac100_set_link_ksettings(struct net_device *netdev, const struct ethtool_link_ksettings *cmd) ftmac100_set_link_ksettings() argument
831 ftmac100_nway_reset(struct net_device *netdev) ftmac100_nway_reset() argument
837 ftmac100_get_link(struct net_device *netdev) ftmac100_get_link() argument
856 struct net_device *netdev = dev_id; ftmac100_interrupt() local
873 struct net_device *netdev = priv->netdev; ftmac100_poll() local
947 ftmac100_open(struct net_device *netdev) ftmac100_open() argument
988 ftmac100_stop(struct net_device *netdev) ftmac100_stop() argument
1003 ftmac100_hard_start_xmit(struct sk_buff *skb, struct net_device *netdev) ftmac100_hard_start_xmit() argument
1032 ftmac100_do_ioctl(struct net_device *netdev, struct ifreq *ifr, int cmd) ftmac100_do_ioctl() argument
1056 struct net_device *netdev; ftmac100_probe() local
1147 struct net_device *netdev; ftmac100_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/staging/wlan-ng/
H A Dp80211netdev.c74 static int p80211knetdev_init(struct net_device *netdev);
75 static int p80211knetdev_open(struct net_device *netdev);
76 static int p80211knetdev_stop(struct net_device *netdev);
78 struct net_device *netdev);
83 static void p80211knetdev_tx_timeout(struct net_device *netdev, unsigned int txqueue);
107 static int p80211knetdev_init(struct net_device *netdev) in p80211knetdev_init() argument
125 * netdev Linux network device structure
131 static int p80211knetdev_open(struct net_device *netdev) in p80211knetdev_open() argument
134 struct wlandevice *wlandev = netdev->ml_priv; in p80211knetdev_open()
144 netif_start_queue(wlandev->netdev); in p80211knetdev_open()
167 p80211knetdev_stop(struct net_device *netdev) p80211knetdev_stop() argument
303 p80211knetdev_hard_start_xmit(struct sk_buff *skb, struct net_device *netdev) p80211knetdev_hard_start_xmit() argument
643 struct net_device *netdev; wlan_setup() local
977 p80211knetdev_tx_timeout(struct net_device *netdev, unsigned int txqueue) p80211knetdev_tx_timeout() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/usb/
H A Drtl8150.c128 struct net_device *netdev; member
204 netif_device_detach(dev->netdev); in async_set_registers()
265 ether_addr_copy(dev->netdev->dev_addr, node_id); in set_ethernet_addr()
267 eth_hw_addr_random(dev->netdev); in set_ethernet_addr()
268 netdev_notice(dev->netdev, "Assigned a random MAC address: %pM\n", in set_ethernet_addr()
269 dev->netdev->dev_addr); in set_ethernet_addr()
273 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument
276 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address()
278 if (netif_running(netdev)) in rtl8150_set_mac_address()
281 memcpy(netdev in rtl8150_set_mac_address()
375 struct net_device *netdev; read_bulk_callback() local
646 rtl8150_tx_timeout(struct net_device *netdev, unsigned int txqueue) rtl8150_tx_timeout() argument
654 rtl8150_set_multicast(struct net_device *netdev) rtl8150_set_multicast() argument
676 rtl8150_start_xmit(struct sk_buff *skb, struct net_device *netdev) rtl8150_start_xmit() argument
707 set_carrier(struct net_device *netdev) set_carrier() argument
719 rtl8150_open(struct net_device *netdev) rtl8150_open() argument
756 rtl8150_close(struct net_device *netdev) rtl8150_close() argument
768 rtl8150_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info) rtl8150_get_drvinfo() argument
777 rtl8150_get_link_ksettings(struct net_device *netdev, struct ethtool_link_ksettings *ecmd) rtl8150_get_link_ksettings() argument
825 rtl8150_ioctl(struct net_device *netdev, struct ifreq *rq, int cmd) rtl8150_ioctl() argument
867 struct net_device *netdev; rtl8150_probe() local
[all...]
/kernel/linux/linux-6.6/drivers/net/usb/
H A Drtl8150.c128 struct net_device *netdev; member
204 netif_device_detach(dev->netdev); in async_set_registers()
265 eth_hw_addr_set(dev->netdev, node_id); in set_ethernet_addr()
267 eth_hw_addr_random(dev->netdev); in set_ethernet_addr()
268 netdev_notice(dev->netdev, "Assigned a random MAC address: %pM\n", in set_ethernet_addr()
269 dev->netdev->dev_addr); in set_ethernet_addr()
273 static int rtl8150_set_mac_address(struct net_device *netdev, void *p) in rtl8150_set_mac_address() argument
276 rtl8150_t *dev = netdev_priv(netdev); in rtl8150_set_mac_address()
278 if (netif_running(netdev)) in rtl8150_set_mac_address()
281 eth_hw_addr_set(netdev, add in rtl8150_set_mac_address()
375 struct net_device *netdev; read_bulk_callback() local
646 rtl8150_tx_timeout(struct net_device *netdev, unsigned int txqueue) rtl8150_tx_timeout() argument
654 rtl8150_set_multicast(struct net_device *netdev) rtl8150_set_multicast() argument
676 rtl8150_start_xmit(struct sk_buff *skb, struct net_device *netdev) rtl8150_start_xmit() argument
707 set_carrier(struct net_device *netdev) set_carrier() argument
719 rtl8150_open(struct net_device *netdev) rtl8150_open() argument
756 rtl8150_close(struct net_device *netdev) rtl8150_close() argument
768 rtl8150_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *info) rtl8150_get_drvinfo() argument
777 rtl8150_get_link_ksettings(struct net_device *netdev, struct ethtool_link_ksettings *ecmd) rtl8150_get_link_ksettings() argument
825 rtl8150_siocdevprivate(struct net_device *netdev, struct ifreq *rq, void __user *udata, int cmd) rtl8150_siocdevprivate() argument
868 struct net_device *netdev; rtl8150_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/emac/
H A Demac-ethtool.c66 static u32 emac_get_msglevel(struct net_device *netdev) in emac_get_msglevel() argument
68 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_msglevel()
73 static void emac_set_msglevel(struct net_device *netdev, u32 data) in emac_set_msglevel() argument
75 struct emac_adapter *adpt = netdev_priv(netdev); in emac_set_msglevel()
80 static int emac_get_sset_count(struct net_device *netdev, int sset) in emac_get_sset_count() argument
92 static void emac_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in emac_get_strings() argument
111 static void emac_get_ethtool_stats(struct net_device *netdev, in emac_get_ethtool_stats() argument
115 struct emac_adapter *adpt = netdev_priv(netdev); in emac_get_ethtool_stats()
125 static int emac_nway_reset(struct net_device *netdev) in emac_nway_reset() argument
127 struct phy_device *phydev = netdev in emac_nway_reset()
135 emac_get_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring) emac_get_ringparam() argument
146 emac_set_ringparam(struct net_device *netdev, struct ethtool_ringparam *ring) emac_set_ringparam() argument
169 emac_get_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *pause) emac_get_pauseparam() argument
179 emac_set_pauseparam(struct net_device *netdev, struct ethtool_pauseparam *pause) emac_set_pauseparam() argument
212 emac_get_regs(struct net_device *netdev, struct ethtool_regs *regs, void *buff) emac_get_regs() argument
226 emac_get_regs_len(struct net_device *netdev) emac_get_regs_len() argument
233 emac_set_priv_flags(struct net_device *netdev, u32 flags) emac_set_priv_flags() argument
245 emac_get_priv_flags(struct net_device *netdev) emac_get_priv_flags() argument
280 emac_set_ethtool_ops(struct net_device *netdev) emac_set_ethtool_ops() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/
H A Dice_repr.c22 * @netdev: pointer to port representor netdev
27 ice_repr_get_phys_port_name(struct net_device *netdev, char *buf, size_t len) in ice_repr_get_phys_port_name() argument
29 struct ice_netdev_priv *np = netdev_priv(netdev); in ice_repr_get_phys_port_name()
46 * @netdev: pointer to port representor netdev
50 ice_repr_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) in ice_repr_get_stats64() argument
52 struct ice_netdev_priv *np = netdev_priv(netdev); in ice_repr_get_stats64()
77 * @netdev: pointer to port representor netdev
79 ice_netdev_to_repr(struct net_device *netdev) ice_netdev_to_repr() argument
96 ice_repr_open(struct net_device *netdev) ice_repr_open() argument
122 ice_repr_stop(struct net_device *netdev) ice_repr_stop() argument
225 ice_repr_setup_tc(struct net_device *netdev, enum tc_setup_type type, void *type_data) ice_repr_setup_tc() argument
257 ice_is_port_repr_netdev(const struct net_device *netdev) ice_is_port_repr_netdev() argument
267 ice_repr_reg_netdev(struct net_device *netdev) ice_repr_reg_netdev() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/amd/xgbe/
H A Dxgbe-ethtool.c191 static void xgbe_get_strings(struct net_device *netdev, u32 stringset, u8 *data) in xgbe_get_strings() argument
193 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_strings()
219 static void xgbe_get_ethtool_stats(struct net_device *netdev, in xgbe_get_ethtool_stats() argument
222 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_ethtool_stats()
241 static int xgbe_get_sset_count(struct net_device *netdev, int stringset) in xgbe_get_sset_count() argument
243 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_sset_count()
260 static void xgbe_get_pauseparam(struct net_device *netdev, in xgbe_get_pauseparam() argument
263 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_get_pauseparam()
270 static int xgbe_set_pauseparam(struct net_device *netdev, in xgbe_set_pauseparam() argument
273 struct xgbe_prv_data *pdata = netdev_priv(netdev); in xgbe_set_pauseparam()
309 xgbe_get_link_ksettings(struct net_device *netdev, struct ethtool_link_ksettings *cmd) xgbe_get_link_ksettings() argument
335 xgbe_set_link_ksettings(struct net_device *netdev, const struct ethtool_link_ksettings *cmd) xgbe_set_link_ksettings() argument
406 xgbe_get_drvinfo(struct net_device *netdev, struct ethtool_drvinfo *drvinfo) xgbe_get_drvinfo() argument
421 xgbe_get_msglevel(struct net_device *netdev) xgbe_get_msglevel() argument
428 xgbe_set_msglevel(struct net_device *netdev, u32 msglevel) xgbe_set_msglevel() argument
435 xgbe_get_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) xgbe_get_coalesce() argument
450 xgbe_set_coalesce(struct net_device *netdev, struct ethtool_coalesce *ec) xgbe_set_coalesce() argument
498 xgbe_get_rxnfc(struct net_device *netdev, struct ethtool_rxnfc *rxnfc, u32 *rule_locs) xgbe_get_rxnfc() argument
514 xgbe_get_rxfh_key_size(struct net_device *netdev) xgbe_get_rxfh_key_size() argument
521 xgbe_get_rxfh_indir_size(struct net_device *netdev) xgbe_get_rxfh_indir_size() argument
528 xgbe_get_rxfh(struct net_device *netdev, u32 *indir, u8 *key, u8 *hfunc) xgbe_get_rxfh() argument
549 xgbe_set_rxfh(struct net_device *netdev, const u32 *indir, const u8 *key, const u8 hfunc) xgbe_set_rxfh() argument
576 xgbe_get_ts_info(struct net_device *netdev, struct ethtool_ts_info *ts_info) xgbe_get_ts_info() argument
609 xgbe_get_module_info(struct net_device *netdev, struct ethtool_modinfo *modinfo) xgbe_get_module_info() argument
617 xgbe_get_module_eeprom(struct net_device *netdev, struct ethtool_eeprom *eeprom, u8 *data) xgbe_get_module_eeprom() argument
625 xgbe_get_ringparam(struct net_device *netdev, struct ethtool_ringparam *ringparam) xgbe_get_ringparam() argument
636 xgbe_set_ringparam(struct net_device *netdev, struct ethtool_ringparam *ringparam) xgbe_set_ringparam() argument
688 xgbe_get_channels(struct net_device *netdev, struct ethtool_channels *channels) xgbe_get_channels() argument
725 xgbe_print_set_channels_input(struct net_device *netdev, struct ethtool_channels *channels) xgbe_print_set_channels_input() argument
733 xgbe_set_channels(struct net_device *netdev, struct ethtool_channels *channels) xgbe_set_channels() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/huawei/hinic/
H A Dhinic_main.c77 static int change_mac_addr(struct net_device *netdev, const u8 *addr);
132 struct net_device *netdev = nic_dev->netdev; in create_txqs() local
137 nic_dev->txqs = devm_kcalloc(&netdev->dev, num_txqs, in create_txqs()
147 err = hinic_init_txq(&nic_dev->txqs[i], sq, netdev); in create_txqs()
149 netif_err(nic_dev, drv, netdev, in create_txqs()
156 netif_err(nic_dev, drv, netdev, in create_txqs()
174 devm_kfree(&netdev->dev, nic_dev->txqs); in create_txqs()
203 struct net_device *netdev = nic_dev->netdev; in free_txqs() local
228 struct net_device *netdev = nic_dev->netdev; create_rxqs() local
281 struct net_device *netdev = nic_dev->netdev; free_rxqs() local
363 struct net_device *netdev = nic_dev->netdev; hinic_enable_rss() local
415 hinic_open(struct net_device *netdev) hinic_open() argument
533 hinic_close(struct net_device *netdev) hinic_close() argument
573 hinic_change_mtu(struct net_device *netdev, int new_mtu) hinic_change_mtu() argument
596 change_mac_addr(struct net_device *netdev, const u8 *addr) change_mac_addr() argument
631 hinic_set_mac_addr(struct net_device *netdev, void *addr) hinic_set_mac_addr() argument
653 add_mac_addr(struct net_device *netdev, const u8 *addr) add_mac_addr() argument
685 remove_mac_addr(struct net_device *netdev, const u8 *addr) remove_mac_addr() argument
714 hinic_vlan_rx_add_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) hinic_vlan_rx_add_vid() argument
752 hinic_vlan_rx_kill_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) hinic_vlan_rx_kill_vid() argument
789 hinic_set_rx_mode(struct net_device *netdev) hinic_set_rx_mode() argument
813 hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue) hinic_tx_timeout() argument
838 hinic_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) hinic_get_stats64() argument
857 hinic_set_features(struct net_device *netdev, netdev_features_t features) hinic_set_features() argument
866 hinic_fix_features(struct net_device *netdev, netdev_features_t features) hinic_fix_features() argument
919 netdev_features_init(struct net_device *netdev) netdev_features_init() argument
1162 struct net_device *netdev; nic_dev_init() local
1414 struct net_device *netdev = pci_get_drvdata(pdev); hinic_remove() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
H A Dhinic_main.c77 static int change_mac_addr(struct net_device *netdev, const u8 *addr);
132 struct net_device *netdev = nic_dev->netdev; in create_txqs() local
137 nic_dev->txqs = devm_kcalloc(&netdev->dev, num_txqs, in create_txqs()
147 err = hinic_init_txq(&nic_dev->txqs[i], sq, netdev); in create_txqs()
149 netif_err(nic_dev, drv, netdev, in create_txqs()
156 netif_err(nic_dev, drv, netdev, in create_txqs()
175 devm_kfree(&netdev->dev, nic_dev->txqs); in create_txqs()
204 struct net_device *netdev = nic_dev->netdev; in free_txqs() local
229 struct net_device *netdev = nic_dev->netdev; create_rxqs() local
282 struct net_device *netdev = nic_dev->netdev; free_rxqs() local
370 struct net_device *netdev = nic_dev->netdev; hinic_enable_rss() local
422 hinic_open(struct net_device *netdev) hinic_open() argument
540 hinic_close(struct net_device *netdev) hinic_close() argument
580 hinic_change_mtu(struct net_device *netdev, int new_mtu) hinic_change_mtu() argument
603 change_mac_addr(struct net_device *netdev, const u8 *addr) change_mac_addr() argument
638 hinic_set_mac_addr(struct net_device *netdev, void *addr) hinic_set_mac_addr() argument
660 add_mac_addr(struct net_device *netdev, const u8 *addr) add_mac_addr() argument
692 remove_mac_addr(struct net_device *netdev, const u8 *addr) remove_mac_addr() argument
721 hinic_vlan_rx_add_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) hinic_vlan_rx_add_vid() argument
759 hinic_vlan_rx_kill_vid(struct net_device *netdev, __always_unused __be16 proto, u16 vid) hinic_vlan_rx_kill_vid() argument
796 hinic_set_rx_mode(struct net_device *netdev) hinic_set_rx_mode() argument
820 hinic_tx_timeout(struct net_device *netdev, unsigned int txqueue) hinic_tx_timeout() argument
845 hinic_get_stats64(struct net_device *netdev, struct rtnl_link_stats64 *stats) hinic_get_stats64() argument
864 hinic_set_features(struct net_device *netdev, netdev_features_t features) hinic_set_features() argument
873 hinic_fix_features(struct net_device *netdev, netdev_features_t features) hinic_fix_features() argument
926 netdev_features_init(struct net_device *netdev) netdev_features_init() argument
1161 struct net_device *netdev; nic_dev_init() local
1431 struct net_device *netdev = pci_get_drvdata(pdev); hinic_remove() local
[all...]
/kernel/linux/linux-6.6/drivers/net/can/usb/
H A Df81604.c134 struct net_device *netdev[F81604_MAX_DEV]; member
139 struct net_device *netdev; member
254 int port = priv->netdev->dev_port; in f81604_sja1000_write()
264 int port = priv->netdev->dev_port; in f81604_sja1000_read()
370 static void f81604_process_rx_packet(struct net_device *netdev, in f81604_process_rx_packet() argument
373 struct net_device_stats *stats = &netdev->stats; in f81604_process_rx_packet()
380 skb = alloc_can_skb(netdev, &cf); in f81604_process_rx_packet()
415 struct net_device *netdev = urb->context; in f81604_read_bulk_callback() local
418 if (!netif_device_present(netdev)) in f81604_read_bulk_callback()
422 netdev_info(netdev, " in f81604_read_bulk_callback()
460 struct net_device *netdev = priv->netdev; f81604_handle_tx() local
481 struct net_device *netdev = priv->netdev; f81604_handle_can_bus_errors() local
606 struct net_device *netdev = urb->context; f81604_read_int_callback() local
660 struct net_device *netdev = priv->netdev; f81604_register_urbs() local
751 f81604_start(struct net_device *netdev) f81604_start() argument
848 f81604_set_mode(struct net_device *netdev, enum can_mode mode) f81604_set_mode() argument
868 struct net_device *netdev = urb->context; f81604_write_bulk_callback() local
899 f81604_start_xmit(struct sk_buff *skb, struct net_device *netdev) f81604_start_xmit() argument
988 f81604_get_berr_counter(const struct net_device *netdev, struct can_berr_counter *bec) f81604_get_berr_counter() argument
1010 f81604_open(struct net_device *netdev) f81604_open() argument
1032 f81604_close(struct net_device *netdev) f81604_close() argument
1096 f81604_set_termination(struct net_device *netdev, u16 term) f81604_set_termination() argument
1110 struct net_device *netdev; f81604_probe() local
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/micrel/
H A Dks8842.c157 struct net_device *netdev; member
257 static void ks8842_update_link_status(struct net_device *netdev, in ks8842_update_link_status() argument
262 netif_carrier_on(netdev); in ks8842_update_link_status()
263 netif_wake_queue(netdev); in ks8842_update_link_status()
265 netif_stop_queue(netdev); in ks8842_update_link_status()
266 netif_carrier_off(netdev); in ks8842_update_link_status()
419 static int ks8842_tx_frame_dma(struct sk_buff *skb, struct net_device *netdev) in ks8842_tx_frame_dma() argument
421 struct ks8842_adapter *adapter = netdev_priv(netdev); in ks8842_tx_frame_dma()
426 netdev_dbg(netdev, "%s: TX ongoing\n", __func__); in ks8842_tx_frame_dma()
454 ctl->adesc->callback_param = netdev; in ks8842_tx_frame_dma()
465 ks8842_tx_frame(struct sk_buff *skb, struct net_device *netdev) ks8842_tx_frame() argument
516 ks8842_update_rx_err_counters(struct net_device *netdev, u32 status) ks8842_update_rx_err_counters() argument
529 ks8842_update_rx_counters(struct net_device *netdev, u32 status, int len) ks8842_update_rx_counters() argument
540 __ks8842_start_new_rx_dma(struct net_device *netdev) __ks8842_start_new_rx_dma() argument
593 struct net_device *netdev = adapter->netdev; ks8842_rx_frame_dma_tasklet() local
630 ks8842_rx_frame(struct net_device *netdev, struct ks8842_adapter *adapter) ks8842_rx_frame() argument
694 ks8842_handle_rx(struct net_device *netdev, struct ks8842_adapter *adapter) ks8842_handle_rx() argument
705 ks8842_handle_tx(struct net_device *netdev, struct ks8842_adapter *adapter) ks8842_handle_tx() argument
715 ks8842_handle_rx_overrun(struct net_device *netdev, struct ks8842_adapter *adapter) ks8842_handle_rx_overrun() argument
726 struct net_device *netdev = adapter->netdev; ks8842_tasklet() local
797 struct net_device *netdev = devid; ks8842_irq() local
832 struct net_device *netdev = data; ks8842_dma_rx_cb() local
843 struct net_device *netdev = data; ks8842_dma_tx_cb() local
912 ks8842_alloc_dma_bufs(struct net_device *netdev) ks8842_alloc_dma_bufs() argument
966 ks8842_open(struct net_device *netdev) ks8842_open() argument
1009 ks8842_close(struct net_device *netdev) ks8842_close() argument
1029 ks8842_xmit_frame(struct sk_buff *skb, struct net_device *netdev) ks8842_xmit_frame() argument
1056 ks8842_set_mac(struct net_device *netdev, void *p) ks8842_set_mac() argument
1077 struct net_device *netdev = adapter->netdev; ks8842_tx_timeout_work() local
1105 ks8842_tx_timeout(struct net_device *netdev, unsigned int txqueue) ks8842_tx_timeout() argument
1131 struct net_device *netdev; ks8842_probe() local
1232 struct net_device *netdev = platform_get_drvdata(pdev); ks8842_remove() local
[all...]

Completed in 17 milliseconds

12345678910>>...69