Searched refs:port_to_dev (Results 1 – 4 of 4) sorted by relevance
115 netif_carrier_on(port_to_dev(port)); in set_carrier()117 netif_carrier_off(port_to_dev(port)); in set_carrier()129 port_to_dev(port)->stats.tx_errors++; in sca_msci_intr()130 port_to_dev(port)->stats.tx_fifo_errors++; in sca_msci_intr()358 dev = port_to_dev(card); in c101_run()428 unregister_hdlc_device(port_to_dev(ptr)); in c101_cleanup()
50 static inline struct net_device *port_to_dev(port_t *port) in port_to_dev() function134 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()228 port_to_dev(port)->stats.tx_errors++; in sca_msci_intr()229 port_to_dev(port)->stats.tx_fifo_errors++; in sca_msci_intr()240 struct net_device *dev = port_to_dev(port); in sca_rx()286 struct net_device *dev = port_to_dev(port); in sca_rx_intr()338 struct net_device *dev = port_to_dev(port); in sca_tx_intr()
480 #define port_to_dev(P) ((P)->dev) macro800 struct net_device *dev = port_to_dev(port); in fst_tx_dma_complete()828 struct net_device *dev = port_to_dev(port); in fst_rx_dma_complete()850 fst_process_rx_status(rx_status, port_to_dev(port)->name); in fst_rx_dma_complete()1041 if (netif_carrier_ok(port_to_dev(port))) { in fst_intr_te1_alarm()1043 netif_carrier_off(port_to_dev(port)); in fst_intr_te1_alarm()1048 if (!netif_carrier_ok(port_to_dev(port))) { in fst_intr_te1_alarm()1050 netif_carrier_on(port_to_dev(port)); in fst_intr_te1_alarm()1080 if (!netif_carrier_ok(port_to_dev(port))) { in fst_intr_ctlchg()1082 netif_carrier_on(port_to_dev(port)); in fst_intr_ctlchg()[all …]
291 struct net_device *dev = port_to_dev(&card->ports[cnt]); in n2_destroy_card()436 struct net_device *dev = port_to_dev(port); in n2_run()