Lines Matching refs:cmdsts
431 static inline void build_rx_desc(struct ns83820 *dev, __le32 *desc, dma_addr_t link, dma_addr_t buf, u32 cmdsts, u32 extsts)
437 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts);
444 u32 cmdsts;
462 cmdsts = REAL_RX_BUF_SIZE | CMDSTS_INTR;
465 build_rx_desc(dev, sg, 0, buf, cmdsts, 0);
756 u32 cmdsts;
778 while ((CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) &&
779 (cmdsts != CMDSTS_OWN)) {
784 dprintk("cmdsts: %08x\n", cmdsts);
797 len = cmdsts & CMDSTS_LEN_MASK;
810 if (likely((CMDSTS_OK & cmdsts) ||
811 ((cmdsts & CMDSTS_RUNT) && len >= 56))) {
813 if (likely(CMDSTS_OK & cmdsts)) {
818 if (cmdsts & CMDSTS_DEST_MULTI)
856 Dprintk("dazed: cmdsts_f: %08x\n", cmdsts);
893 u32 cmdsts, tx_done_idx;
900 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
903 !(CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) ) {
908 if (cmdsts & CMDSTS_ERR)
910 if (cmdsts & CMDSTS_OK)
912 if (cmdsts & CMDSTS_OK)
913 ndev->stats.tx_bytes += cmdsts & 0xffff;
915 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
916 tx_done_idx, dev->tx_free_idx, cmdsts);
921 len = cmdsts & CMDSTS_LEN_MASK;
984 u32 free_idx, cmdsts, extsts;
1075 cmdsts = ((nr_frags) ? CMDSTS_MORE : do_intr ? CMDSTS_INTR : 0);
1076 cmdsts |= (desc == first_desc) ? 0 : CMDSTS_OWN;
1077 cmdsts |= len;
1078 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts);
1488 printk(KERN_INFO "%s: tx_timeout: tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
1506 printk(KERN_INFO "%s: after: tx_done_idx=%d free_idx=%d cmdsts=%08x\n",