Lines Matching refs:tx_cmd
200 struct tx_cmd {
310 struct tx_cmd tx_cmds[TX_RING_SIZE] __attribute__((aligned(32)));
838 struct tx_cmd *tx_cmd = (struct tx_cmd *) ptr;
839 struct sk_buff *skb = tx_cmd->skb;
841 tx_cmd->dma_addr,
851 tx_cmd->cmd.command = 0; /* Mark as free */
1000 struct tx_cmd *tx_cmd;
1016 tx_cmd = lp->dma->tx_cmds + lp->next_tx_cmd;
1019 if (tx_cmd->cmd.command) {
1029 tx_cmd->tbd = SWAP32(virt_to_dma(lp, tbd));
1032 tx_cmd->cmd.command = SWAP16(CMD_FLEX | CmdTx);
1033 tx_cmd->skb = skb;
1035 tx_cmd->pad = 0;
1036 tx_cmd->size = 0;
1040 tx_cmd->dma_addr = dma_map_single(dev->dev.parent, skb->data,
1042 tbd->data = SWAP32(tx_cmd->dma_addr);
1045 dma_sync_dev(dev, tx_cmd, sizeof(struct tx_cmd));
1047 i596_add_cmd(dev, &tx_cmd->cmd);
1084 BUILD_BUG_ON(sizeof(struct tx_cmd) & 31);
1189 struct tx_cmd *tx_cmd = (struct tx_cmd *) ptr;
1190 struct sk_buff *skb = tx_cmd->skb;
1209 tx_cmd->dma_addr,
1213 tx_cmd->cmd.command = 0; /* Mark free */