Lines Matching refs:cmdsts
525 …rx_desc(struct ns83820 *dev, __le32 *desc, dma_addr_t link, dma_addr_t buf, u32 cmdsts, u32 extsts) in build_rx_desc() argument
531 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts); in build_rx_desc()
538 u32 cmdsts; in ns83820_add_rx_skb() local
563 cmdsts = REAL_RX_BUF_SIZE | CMDSTS_INTR; in ns83820_add_rx_skb()
566 build_rx_desc(dev, sg, 0, buf, cmdsts, 0); in ns83820_add_rx_skb()
857 u32 cmdsts; local
879 while ((CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) &&
880 (cmdsts != CMDSTS_OWN)) {
885 dprintk("cmdsts: %08x\n", cmdsts);
898 len = cmdsts & CMDSTS_LEN_MASK;
911 if (likely((CMDSTS_OK & cmdsts) ||
912 ((cmdsts & CMDSTS_RUNT) && len >= 56))) {
914 if (likely(CMDSTS_OK & cmdsts)) {
919 if (cmdsts & CMDSTS_DEST_MULTI)
957 Dprintk("dazed: cmdsts_f: %08x\n", cmdsts);
994 u32 cmdsts, tx_done_idx; local
1004 !(CMDSTS_OWN & (cmdsts = le32_to_cpu(desc[DESC_CMDSTS]))) ) {
1009 if (cmdsts & CMDSTS_ERR)
1011 if (cmdsts & CMDSTS_OK)
1013 if (cmdsts & CMDSTS_OK)
1014 ndev->stats.tx_bytes += cmdsts & 0xffff;
1017 tx_done_idx, dev->tx_free_idx, cmdsts);
1022 len = cmdsts & CMDSTS_LEN_MASK;
1085 u32 free_idx, cmdsts, extsts; local
1176 cmdsts = ((nr_frags) ? CMDSTS_MORE : do_intr ? CMDSTS_INTR : 0);
1177 cmdsts |= (desc == first_desc) ? 0 : CMDSTS_OWN;
1178 cmdsts |= len;
1179 desc[DESC_CMDSTS] = cpu_to_le32(cmdsts);