Home
last modified time | relevance | path

Searched refs:port_to_dev (Results 1 – 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/wan/
Dc101.c121 netif_carrier_on(port_to_dev(port)); in set_carrier()
123 netif_carrier_off(port_to_dev(port)); in set_carrier()
136 port_to_dev(port)->stats.tx_errors++; in sca_msci_intr()
137 port_to_dev(port)->stats.tx_fifo_errors++; in sca_msci_intr()
364 dev = port_to_dev(card); in c101_run()
436 unregister_hdlc_device(port_to_dev(ptr)); in c101_cleanup()
Dhd64570.c51 static inline struct net_device *port_to_dev(port_t *port) in port_to_dev() function
134 port_to_dev(port)->name); in sca_set_carrier()
136 netif_carrier_on(port_to_dev(port)); in sca_set_carrier()
140 port_to_dev(port)->name); in sca_set_carrier()
142 netif_carrier_off(port_to_dev(port)); in sca_set_carrier()
230 port_to_dev(port)->stats.tx_errors++; in sca_msci_intr()
231 port_to_dev(port)->stats.tx_fifo_errors++; in sca_msci_intr()
243 struct net_device *dev = port_to_dev(port); in sca_rx()
289 struct net_device *dev = port_to_dev(port); in sca_rx_intr()
341 struct net_device *dev = port_to_dev(port); in sca_tx_intr()
Dfarsync.c480 #define port_to_dev(P) ((P)->dev) macro
820 struct net_device *dev = port_to_dev(port); in fst_tx_dma_complete()
850 struct net_device *dev = port_to_dev(port); in fst_rx_dma_complete()
872 fst_process_rx_status(rx_status, port_to_dev(port)->name); in fst_rx_dma_complete()
1075 if (netif_carrier_ok(port_to_dev(port))) { in fst_intr_te1_alarm()
1077 netif_carrier_off(port_to_dev(port)); in fst_intr_te1_alarm()
1083 if (!netif_carrier_ok(port_to_dev(port))) { in fst_intr_te1_alarm()
1085 netif_carrier_on(port_to_dev(port)); in fst_intr_te1_alarm()
1115 if (!netif_carrier_ok(port_to_dev(port))) { in fst_intr_ctlchg()
1117 netif_carrier_on(port_to_dev(port)); in fst_intr_ctlchg()
[all …]
Dn2.c306 struct net_device *dev = port_to_dev(&card->ports[cnt]); in n2_destroy_card()
449 struct net_device *dev = port_to_dev(port); in n2_run()