Lines Matching refs:net_dev

88 	netdev_dbg(qca->net_dev, "interrupts: 0x%04x\n", *intr_cause);  in start_spi_intr_handling()
101 netdev_dbg(qca->net_dev, "acking int: 0x%04x\n", intr_cause); in end_spi_intr_handling()
281 struct net_device_stats *n_stats = &qca->net_dev->stats; in qcaspi_transmit()
323 netif_tx_lock_bh(qca->net_dev); in qcaspi_transmit()
331 if (netif_queue_stopped(qca->net_dev)) in qcaspi_transmit()
332 netif_wake_queue(qca->net_dev); in qcaspi_transmit()
333 netif_tx_unlock_bh(qca->net_dev); in qcaspi_transmit()
342 struct net_device *net_dev = qca->net_dev; in qcaspi_receive() local
343 struct net_device_stats *n_stats = &net_dev->stats; in qcaspi_receive()
350 qca->rx_skb = netdev_alloc_skb_ip_align(net_dev, in qcaspi_receive()
351 net_dev->mtu + in qcaspi_receive()
354 netdev_dbg(net_dev, "out of RX resources\n"); in qcaspi_receive()
363 netdev_dbg(net_dev, "qcaspi_receive: SPI_REG_RDBUF_BYTE_AVA: Value: %08x\n", in qcaspi_receive()
373 netdev_dbg(net_dev, "qcaspi_receive called without any data being available!\n"); in qcaspi_receive()
396 netdev_dbg(net_dev, "available: %d, byte read: %d\n", in qcaspi_receive()
421 netdev_dbg(net_dev, "no RX tail\n"); in qcaspi_receive()
426 netdev_dbg(net_dev, "invalid RX length\n"); in qcaspi_receive()
431 qca->rx_skb->dev = qca->net_dev; in qcaspi_receive()
439 qca->rx_skb = netdev_alloc_skb_ip_align(net_dev, in qcaspi_receive()
440 net_dev->mtu + VLAN_ETH_HLEN); in qcaspi_receive()
442 netdev_dbg(net_dev, "out of RX resources\n"); in qcaspi_receive()
479 netif_tx_lock_bh(qca->net_dev); in qcaspi_flush_tx_ring()
484 qca->net_dev->stats.tx_dropped++; in qcaspi_flush_tx_ring()
490 netif_tx_unlock_bh(qca->net_dev); in qcaspi_flush_tx_ring()
508 netdev_dbg(qca->net_dev, "sync: got CPU on, but signature was invalid, restart\n"); in qcaspi_qca7k_sync()
514 netdev_dbg(qca->net_dev, "sync: got CPU on, but wrbuf not empty. reset!\n"); in qcaspi_qca7k_sync()
517 netdev_dbg(qca->net_dev, "sync: got CPU on, now in sync\n"); in qcaspi_qca7k_sync()
530 netdev_dbg(qca->net_dev, "sync: bad signature, restart\n"); in qcaspi_qca7k_sync()
539 netdev_dbg(qca->net_dev, "sync: could not read signature to reset device, retry.\n"); in qcaspi_qca7k_sync()
544 netdev_dbg(qca->net_dev, "sync: resetting device.\n"); in qcaspi_qca7k_sync()
555 netdev_dbg(qca->net_dev, "sync: waiting for CPU on, count %u.\n", in qcaspi_qca7k_sync()
561 netdev_dbg(qca->net_dev, "sync: reset timeout, restarting process.\n"); in qcaspi_qca7k_sync()
573 netdev_info(qca->net_dev, "SPI thread created\n"); in qcaspi_spi_thread()
583 netdev_dbg(qca->net_dev, "have work to do. int: %d, tx_skb: %p\n", in qcaspi_spi_thread()
590 netdev_dbg(qca->net_dev, "sync: not ready %u, turn off carrier and flush\n", in qcaspi_spi_thread()
592 netif_stop_queue(qca->net_dev); in qcaspi_spi_thread()
593 netif_carrier_off(qca->net_dev); in qcaspi_spi_thread()
610 netif_wake_queue(qca->net_dev); in qcaspi_spi_thread()
611 netif_carrier_on(qca->net_dev); in qcaspi_spi_thread()
616 netdev_dbg(qca->net_dev, "===> rdbuf error!\n"); in qcaspi_spi_thread()
624 netdev_dbg(qca->net_dev, "===> wrbuf error!\n"); in qcaspi_spi_thread()
645 netdev_info(qca->net_dev, "SPI thread exit\n"); in qcaspi_spi_thread()
731 netdev_warn(qca->net_dev, "queue was unexpectedly full!\n"); in qcaspi_netdev_xmit()
732 netif_stop_queue(qca->net_dev); in qcaspi_netdev_xmit()
761 netdev_dbg(qca->net_dev, "Tx-ing packet: Size: 0x%08x\n", in qcaspi_netdev_xmit()
774 netif_stop_queue(qca->net_dev); in qcaspi_netdev_xmit()
792 netdev_info(qca->net_dev, "Transmit timeout at %ld, latency %ld\n", in qcaspi_netdev_tx_timeout()
794 qca->net_dev->stats.tx_errors++; in qcaspi_netdev_tx_timeout()
821 qca->rx_skb = netdev_alloc_skb_ip_align(dev, qca->net_dev->mtu + in qcaspi_netdev_init()
825 netdev_info(qca->net_dev, "Failed to allocate RX sk_buff.\n"); in qcaspi_netdev_init()
959 qca->net_dev = qcaspi_devs; in qca_spi_probe()
968 ether_addr_copy(qca->net_dev->dev_addr, mac); in qca_spi_probe()
970 if (!is_valid_ether_addr(qca->net_dev->dev_addr)) { in qca_spi_probe()
971 eth_hw_addr_random(qca->net_dev); in qca_spi_probe()
973 qca->net_dev->dev_addr); in qca_spi_probe()
976 netif_carrier_off(qca->net_dev); in qca_spi_probe()