Lines Matching refs:cmd
200 struct i596_cmd cmd; member
214 struct i596_cmd cmd; member
220 struct i596_cmd cmd; member
226 struct i596_cmd cmd; member
231 struct i596_cmd cmd; member
237 unsigned short cmd; member
276 u32 cmd; member
352 static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd);
437 struct i596_cmd *cmd; in i596_display_data() local
448 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd)); in i596_display_data()
454 cmd = lp->cmd_head; in i596_display_data()
455 while (cmd != NULL) { in i596_display_data()
459 cmd, SWAP16(cmd->status), SWAP16(cmd->command), in i596_display_data()
460 SWAP32(cmd->b_next)); in i596_display_data()
461 cmd = cmd->v_next; in i596_display_data()
469 rfd, SWAP16(rfd->stat), SWAP16(rfd->cmd), in i596_display_data()
526 rfd->cmd = SWAP16(CMD_FLEX); in init_rx_bufs()
536 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX); in init_rx_bufs()
569 dma->rfds[i].cmd = SWAP16(CMD_FLEX); in rebuild_rx_bufs()
571 dma->rfds[rx_ring_size-1].cmd = SWAP16(CMD_EOL|CMD_FLEX); in rebuild_rx_bufs()
601 dma->scb.cmd = I596_NULL; in init_i596_mem()
631 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure); in init_i596_mem()
633 i596_add_cmd(dev, &dma->cf_cmd.cmd); in init_i596_mem()
637 dma->sa_cmd.cmd.command = SWAP16(CmdSASetup); in init_i596_mem()
639 i596_add_cmd(dev, &dma->sa_cmd.cmd); in init_i596_mem()
642 dma->tdr_cmd.cmd.command = SWAP16(CmdTDR); in init_i596_mem()
644 i596_add_cmd(dev, &dma->tdr_cmd.cmd); in init_i596_mem()
802 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX); in i596_rx()
813 rfd->v_prev->cmd = SWAP16(CMD_FLEX); in i596_rx()
850 tx_cmd->cmd.command = 0; /* Mark as free */ in i596_cleanup_cmd()
861 lp->dma->scb.cmd = I596_NULL; in i596_cleanup_cmd()
895 static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd) in i596_add_cmd() argument
904 cmd->status = 0; in i596_add_cmd()
905 cmd->command |= SWAP16(CMD_EOL | CMD_INTR); in i596_add_cmd()
906 cmd->v_next = NULL; in i596_add_cmd()
907 cmd->b_next = I596_NULL; in i596_add_cmd()
908 dma_sync_dev(dev, cmd, sizeof(struct i596_cmd)); in i596_add_cmd()
913 lp->cmd_tail->v_next = cmd; in i596_add_cmd()
914 lp->cmd_tail->b_next = SWAP32(virt_to_dma(lp, &cmd->status)); in i596_add_cmd()
917 lp->cmd_head = cmd; in i596_add_cmd()
919 dma->scb.cmd = SWAP32(virt_to_dma(lp, &cmd->status)); in i596_add_cmd()
924 lp->cmd_tail = cmd; in i596_add_cmd()
1018 if (tx_cmd->cmd.command) { in i596_start_xmit()
1031 tx_cmd->cmd.command = SWAP16(CMD_FLEX | CmdTx); in i596_start_xmit()
1046 i596_add_cmd(dev, &tx_cmd->cmd); in i596_start_xmit()
1097 lp->dma->scb.cmd = I596_NULL; in i82596_probe()
1212 tx_cmd->cmd.command = 0; /* Mark free */ in i596_interrupt()
1272 dma->scb.cmd = SWAP32(virt_to_dma(lp, &lp->cmd_head->status)); in i596_interrupt()
1382 if (dma->cf_cmd.cmd.command) in set_multicast_list()
1387 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure); in set_multicast_list()
1389 i596_add_cmd(dev, &dma->cf_cmd.cmd); in set_multicast_list()
1403 struct mc_cmd *cmd; in set_multicast_list() local
1405 cmd = &dma->mc_cmd; in set_multicast_list()
1406 cmd->cmd.command = SWAP16(CmdMulticastList); in set_multicast_list()
1407 cmd->mc_cnt = SWAP16(netdev_mc_count(dev) * 6); in set_multicast_list()
1408 cp = cmd->mc_addrs; in set_multicast_list()
1421 i596_add_cmd(dev, &cmd->cmd); in set_multicast_list()