Lines Matching refs:cmdsts
490 static inline void build_rx_desc(struct ns83820 *dev, __le32 *desc, dma_addr_t link, dma_addr_t buf, u32 cmdsts, u32 extsts)
496 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts);
503 u32 cmdsts;
528 cmdsts = REAL_RX_BUF_SIZE | CMDSTS_INTR;
531 build_rx_desc(dev, sg, 0, buf, cmdsts, 0);
824 u32 cmdsts;
846 while ((CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) &&
847 (cmdsts != CMDSTS_OWN)) {
852 dprintk("cmdsts: %08x\n", cmdsts);
865 len = cmdsts & CMDSTS_LEN_MASK;
878 if (likely((CMDSTS_OK & cmdsts) ||
879 ((cmdsts & CMDSTS_RUNT) && len >= 56))) {
881 if (likely(CMDSTS_OK & cmdsts)) {
886 if (cmdsts & CMDSTS_DEST_MULTI)
922 Dprintk("dazed: cmdsts_f: %08x\n", cmdsts);
959 u32 cmdsts, tx_done_idx;
966 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
969 !(CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) ) {
974 if (cmdsts & CMDSTS_ERR)
976 if (cmdsts & CMDSTS_OK)
978 if (cmdsts & CMDSTS_OK)
979 ndev->stats.tx_bytes += cmdsts & 0xffff;
981 dprintk("tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
982 tx_done_idx, dev->tx_free_idx, cmdsts);
987 len = cmdsts & CMDSTS_LEN_MASK;
1046 u32 free_idx, cmdsts, extsts;
1138 cmdsts = ((nr_frags) ? CMDSTS_MORE : do_intr ? CMDSTS_INTR : 0);
1139 cmdsts |= (desc == first_desc) ? 0 : CMDSTS_OWN;
1140 cmdsts |= len;
1141 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts);
1563 printk(KERN_INFO "%s: tx_timeout: tx_done_idx=%d free_idx=%d cmdsts=%08x\n",
1581 printk(KERN_INFO "%s: after: tx_done_idx=%d free_idx=%d cmdsts=%08x\n",