• Home
  • Raw
  • Download

Lines Matching refs:net

140 		netif_dbg(pegasus, drv, pegasus->net,  in get_registers()
162 netif_dbg(pegasus, drv, pegasus->net, in set_registers()
181 netif_dbg(pegasus, drv, pegasus->net, in set_register()
215 netif_device_detach(pegasus->net); in update_eth_regs_async()
216 netif_err(pegasus, drv, pegasus->net, in update_eth_regs_async()
252 netif_dbg(p, drv, p->net, "%s failed\n", __func__); in __mii_op()
311 netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); in read_eprom_word()
360 netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); in write_eprom_word()
386 memcpy(pegasus->net->dev_addr, node_id, sizeof(node_id)); in set_ethernet_addr()
463 struct net_device *net; in read_bulk_callback() local
472 net = pegasus->net; in read_bulk_callback()
473 if (!netif_device_present(net) || !netif_running(net)) in read_bulk_callback()
480 netif_dbg(pegasus, rx_err, net, "reset MAC\n"); in read_bulk_callback()
485 netif_warn(pegasus, rx_err, net, "no rx stall recovery\n"); in read_bulk_callback()
490 netif_dbg(pegasus, ifdown, net, "rx unlink, %d\n", status); in read_bulk_callback()
493 netif_dbg(pegasus, rx_err, net, "RX status %d\n", status); in read_bulk_callback()
502 netif_dbg(pegasus, rx_err, net, in read_bulk_callback()
536 pegasus->rx_skb->protocol = eth_type_trans(pegasus->rx_skb, net); in read_bulk_callback()
544 pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, PEGASUS_MTU, in read_bulk_callback()
556 netif_device_detach(pegasus->net); in read_bulk_callback()
583 pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, in rx_fixup()
587 netif_warn(pegasus, rx_err, pegasus->net, "low on memory\n"); in rx_fixup()
598 netif_device_detach(pegasus->net); in rx_fixup()
610 struct net_device *net; in write_bulk_callback() local
616 net = pegasus->net; in write_bulk_callback()
618 if (!netif_device_present(net) || !netif_running(net)) in write_bulk_callback()
624 netif_stop_queue(net); in write_bulk_callback()
625 netif_warn(pegasus, tx_err, net, "no tx stall recovery\n"); in write_bulk_callback()
630 netif_dbg(pegasus, ifdown, net, "tx unlink, %d\n", status); in write_bulk_callback()
633 netif_info(pegasus, tx_err, net, "TX status %d\n", status); in write_bulk_callback()
639 netif_trans_update(net); /* prevent tx timeout */ in write_bulk_callback()
640 netif_wake_queue(net); in write_bulk_callback()
646 struct net_device *net; in intr_callback() local
651 net = pegasus->net; in intr_callback()
664 netif_dbg(pegasus, timer, net, "intr status %d\n", status); in intr_callback()
693 netif_device_detach(pegasus->net); in intr_callback()
695 netif_err(pegasus, timer, net, in intr_callback()
699 static void pegasus_tx_timeout(struct net_device *net) in pegasus_tx_timeout() argument
701 pegasus_t *pegasus = netdev_priv(net); in pegasus_tx_timeout()
702 netif_warn(pegasus, timer, net, "tx timeout\n"); in pegasus_tx_timeout()
708 struct net_device *net) in pegasus_start_xmit() argument
710 pegasus_t *pegasus = netdev_priv(net); in pegasus_start_xmit()
715 netif_stop_queue(net); in pegasus_start_xmit()
724 netif_warn(pegasus, tx_err, net, "fail tx, %d\n", res); in pegasus_start_xmit()
731 netif_device_detach(pegasus->net); in pegasus_start_xmit()
735 netif_start_queue(net); in pegasus_start_xmit()
767 netif_info(pegasus, timer, pegasus->net, in get_interrupt_interval()
780 static void set_carrier(struct net_device *net) in set_carrier() argument
782 pegasus_t *pegasus = netdev_priv(net); in set_carrier()
789 netif_carrier_on(net); in set_carrier()
791 netif_carrier_off(net); in set_carrier()
831 static int pegasus_open(struct net_device *net) in pegasus_open() argument
833 pegasus_t *pegasus = netdev_priv(net); in pegasus_open()
837 pegasus->rx_skb = __netdev_alloc_skb_ip_align(pegasus->net, in pegasus_open()
843 res = set_registers(pegasus, EthID, 6, net->dev_addr); in pegasus_open()
851 netif_device_detach(pegasus->net); in pegasus_open()
852 netif_dbg(pegasus, ifup, net, "failed rx_urb, %d\n", res); in pegasus_open()
862 netif_device_detach(pegasus->net); in pegasus_open()
863 netif_dbg(pegasus, ifup, net, "failed intr_urb, %d\n", res); in pegasus_open()
867 res = enable_net_traffic(net, pegasus->usb); in pegasus_open()
869 netif_dbg(pegasus, ifup, net, in pegasus_open()
876 set_carrier(net); in pegasus_open()
877 netif_start_queue(net); in pegasus_open()
878 netif_dbg(pegasus, ifup, net, "open\n"); in pegasus_open()
884 static int pegasus_close(struct net_device *net) in pegasus_close() argument
886 pegasus_t *pegasus = netdev_priv(net); in pegasus_close()
888 netif_stop_queue(net); in pegasus_close()
1008 static int pegasus_ioctl(struct net_device *net, struct ifreq *rq, int cmd) in pegasus_ioctl() argument
1011 pegasus_t *pegasus = netdev_priv(net); in pegasus_ioctl()
1033 static void pegasus_set_multicast(struct net_device *net) in pegasus_set_multicast() argument
1035 pegasus_t *pegasus = netdev_priv(net); in pegasus_set_multicast()
1037 if (net->flags & IFF_PROMISC) { in pegasus_set_multicast()
1039 netif_info(pegasus, link, net, "Promiscuous mode enabled\n"); in pegasus_set_multicast()
1040 } else if (!netdev_mc_empty(net) || (net->flags & IFF_ALLMULTI)) { in pegasus_set_multicast()
1043 netif_dbg(pegasus, link, net, "set allmulti\n"); in pegasus_set_multicast()
1105 set_carrier(pegasus->net); in check_carrier()
1144 struct net_device *net; in pegasus_probe() local
1160 net = alloc_etherdev(sizeof(struct pegasus)); in pegasus_probe()
1161 if (!net) in pegasus_probe()
1164 pegasus = netdev_priv(net); in pegasus_probe()
1179 pegasus->net = net; in pegasus_probe()
1182 net->watchdog_timeo = PEGASUS_TX_TIMEOUT; in pegasus_probe()
1183 net->netdev_ops = &pegasus_netdev_ops; in pegasus_probe()
1184 net->ethtool_ops = &ops; in pegasus_probe()
1185 pegasus->mii.dev = net; in pegasus_probe()
1212 SET_NETDEV_DEV(net, &intf->dev); in pegasus_probe()
1213 pegasus_reset_wol(net); in pegasus_probe()
1214 res = register_netdev(net); in pegasus_probe()
1219 dev_info(&intf->dev, "%s, %s, %pM\n", net->name, in pegasus_probe()
1220 usb_dev_id[dev_index].name, net->dev_addr); in pegasus_probe()
1228 free_netdev(net); in pegasus_probe()
1246 unregister_netdev(pegasus->net); in pegasus_disconnect()
1253 free_netdev(pegasus->net); in pegasus_disconnect()
1261 netif_device_detach(pegasus->net); in pegasus_suspend()
1263 if (netif_running(pegasus->net)) { in pegasus_suspend()
1274 netif_device_attach(pegasus->net); in pegasus_resume()
1275 if (netif_running(pegasus->net)) { in pegasus_resume()