Searched refs:cmdsts (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/natsemi/
H A Dns83820.c504 static inline void build_rx_desc(struct ns83820 *dev, __le32 *desc, dma_addr_t link, dma_addr_t buf, u32 cmdsts, u32 extsts) build_rx_desc() argument
510 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts); build_rx_desc()
517 u32 cmdsts; ns83820_add_rx_skb() local
542 cmdsts = REAL_RX_BUF_SIZE | CMDSTS_INTR; ns83820_add_rx_skb()
545 build_rx_desc(dev, sg, 0, buf, cmdsts, 0); ns83820_add_rx_skb()
836 u32 cmdsts; local
858 while ((CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) &&
859 (cmdsts != CMDSTS_OWN)) {
864 dprintk("cmdsts: %08x\n", cmdsts);
877 len = cmdsts & CMDSTS_LEN_MASK;
890 if (likely((CMDSTS_OK & cmdsts) ||
891 ((cmdsts & CMDSTS_RUNT) && len >= 56))) {
893 if (likely(CMDSTS_OK & cmdsts)) {
898 if (cmdsts & CMDSTS_DEST_MULTI)
934 Dprintk("dazed: cmdsts_f: %08x\n", cmdsts);
971 u32 cmdsts, tx_done_idx; do_tx_done() local
978 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n", do_tx_done()
981 !(CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) ) { do_tx_done()
986 if (cmdsts & CMDSTS_ERR) do_tx_done()
988 if (cmdsts & CMDSTS_OK) do_tx_done()
990 if (cmdsts & CMDSTS_OK) do_tx_done()
991 ndev->stats.tx_bytes += cmdsts & 0xffff; do_tx_done()
993 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n", do_tx_done()
994 tx_done_idx, dev->tx_free_idx, cmdsts); do_tx_done()
999 len = cmdsts & CMDSTS_LEN_MASK; do_tx_done()
1062 u32 free_idx, cmdsts, extsts; ns83820_hard_start_xmit() local
1153 cmdsts = ((nr_frags) ? CMDSTS_MORE : do_intr ? CMDSTS_INTR : 0); ns83820_hard_start_xmit()
1154 cmdsts |= (desc == first_desc) ? 0 : CMDSTS_OWN; ns83820_hard_start_xmit()
1155 cmdsts |= len; ns83820_hard_start_xmit()
1156 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts); ns83820_hard_start_xmit()
1574 printk(KERN_INFO "%s: tx_timeout: tx_done_idx=%d free_idx=%d cmdsts=%08x\n", ns83820_tx_timeout()
1592 printk(KERN_INFO "%s: after: tx_done_idx=%d free_idx=%d cmdsts=%08x\n", ns83820_tx_timeout()
/linux-4.1.27/drivers/net/ethernet/sis/
H A Dsis900.c158 u32 cmdsts; member in struct:_BufferDesc
1138 sis_priv->tx_ring[i].cmdsts = 0; sis900_init_tx_ring()
1173 sis_priv->rx_ring[i].cmdsts = 0; sis900_init_rx_ring()
1189 sis_priv->rx_ring[i].cmdsts = RX_BUF_SIZE; sis900_init_rx_ring()
1568 sis_priv->tx_ring[i].cmdsts = 0; sis900_tx_timeout()
1624 sis_priv->tx_ring[entry].cmdsts = (OWN | skb->len); sis900_start_xmit()
1734 u32 rx_status = sis_priv->rx_ring[entry].cmdsts; sis900_rx()
1775 sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; sis900_rx()
1826 sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; sis900_rx()
1839 rx_status = sis_priv->rx_ring[entry].cmdsts; sis900_rx()
1860 sis_priv->rx_ring[entry].cmdsts = RX_BUF_SIZE; sis900_rx()
1898 tx_status = sis_priv->tx_ring[entry].cmdsts; sis900_finish_xmit()
1936 sis_priv->tx_ring[entry].cmdsts = 0; sis900_finish_xmit()

Completed in 135 milliseconds