Lines Matching defs:cp

437     volatile struct dbdma_cmd *cp;
448 cp = mp->rx_cmds;
458 cp->req_count = cpu_to_le16(RX_BUFLEN);
459 cp->command = cpu_to_le16(INPUT_LAST + INTR_ALWAYS);
460 cp->phy_addr = cpu_to_le32(virt_to_bus(data));
461 cp->xfer_status = 0;
462 ++cp;
465 cp->command = cpu_to_le16(DBDMA_STOP);
470 ++cp;
471 cp->command = cpu_to_le16(DBDMA_NOP + BR_ALWAYS);
472 cp->cmd_dep = cpu_to_le32(virt_to_bus(mp->rx_cmds));
480 cp = mp->tx_cmds + NCMDS_TX * N_TX_RING;
481 cp->command = cpu_to_le16(DBDMA_NOP + BR_ALWAYS);
482 cp->cmd_dep = cpu_to_le32(virt_to_bus(mp->tx_cmds));
536 volatile struct dbdma_cmd *cp, *np;
561 cp = mp->tx_cmds + NCMDS_TX * fill;
562 cp->req_count = cpu_to_le16(len);
563 cp->phy_addr = cpu_to_le32(virt_to_bus(skb->data));
572 out_le16(&cp->xfer_status, 0);
573 out_le16(&cp->command, OUTPUT_LAST);
666 volatile struct dbdma_cmd *cp;
727 cp = mp->tx_cmds + NCMDS_TX * i;
728 stat = le16_to_cpu(cp->xfer_status);
792 cp = mp->tx_cmds + NCMDS_TX * i;
793 out_le16(&cp->xfer_status, 0);
794 out_le16(&cp->command, OUTPUT_LAST);
813 volatile struct dbdma_cmd *cp;
825 cp = mp->tx_cmds + NCMDS_TX * mp->tx_empty;
834 cp = bus_to_virt(le32_to_cpu(rd->cmdptr));
836 out_le16(&cp->xfer_status, 0);
837 out_le32(&rd->cmdptr, virt_to_bus(cp));
855 cp = mp->tx_cmds + NCMDS_TX * i;
856 out_le16(&cp->xfer_status, 0);
857 out_le16(&cp->command, OUTPUT_LAST);
858 out_le32(&td->cmdptr, virt_to_bus(cp));
882 volatile struct dbdma_cmd *cp, *np;
892 cp = mp->rx_cmds + i;
893 stat = le16_to_cpu(cp->xfer_status);
906 nb = le16_to_cpu(cp->req_count) - le16_to_cpu(cp->res_count);
907 out_le16(&cp->command, DBDMA_STOP);
957 cp = mp->rx_cmds + i;
966 cp->req_count = cpu_to_le16(RX_BUFLEN);
968 cp->phy_addr = cpu_to_le32(virt_to_bus(data));
969 out_le16(&cp->xfer_status, 0);
970 out_le16(&cp->command, INPUT_LAST + INTR_ALWAYS);