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