Lines Matching refs:cmd
233 struct i596_cmd cmd; member
241 struct i596_cmd cmd; member
247 struct i596_cmd cmd; member
253 struct i596_cmd cmd; member
258 struct i596_cmd cmd; member
264 unsigned short cmd; member
292 struct i596_cmd *cmd; member
364 static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd);
440 static inline int wait_cfg(struct net_device *dev, struct i596_cmd *cmd, int delcnt, char *str) in wait_cfg() argument
442 volatile struct i596_cmd *c = cmd; in wait_cfg()
458 struct i596_cmd *cmd; in i596_display_data() local
469 lp->scb.cmd, lp->scb.rfd); in i596_display_data()
474 cmd = lp->cmd_head; in i596_display_data()
475 while (cmd != I596_NULL) { in i596_display_data()
477 cmd, cmd->status, cmd->command, cmd->b_next); in i596_display_data()
478 cmd = cmd->v_next; in i596_display_data()
485 rfd, rfd->stat, rfd->cmd, rfd->b_next, rfd->rbd, in i596_display_data()
579 rfd->cmd = CMD_FLEX; in init_rx_bufs()
589 rfd->cmd = CMD_EOL|CMD_FLEX; in init_rx_bufs()
604 lp->rfds[i].cmd = CMD_FLEX; in rebuild_rx_bufs()
606 lp->rfds[rx_ring_size-1].cmd = CMD_EOL|CMD_FLEX; in rebuild_rx_bufs()
668 lp->cmd_head = lp->scb.cmd = I596_NULL; in init_i596_mem()
709 lp->cf_cmd.cmd.command = CmdConfigure; in init_i596_mem()
710 i596_add_cmd(dev, &lp->cf_cmd.cmd); in init_i596_mem()
714 lp->sa_cmd.cmd.command = CmdSASetup; in init_i596_mem()
715 i596_add_cmd(dev, &lp->sa_cmd.cmd); in init_i596_mem()
718 lp->tdr_cmd.cmd.command = CmdTDR; in init_i596_mem()
719 i596_add_cmd(dev, &lp->tdr_cmd.cmd); in init_i596_mem()
856 rfd->cmd = CMD_EOL|CMD_FLEX; in i596_rx()
861 rfd->v_prev->cmd = CMD_FLEX; in i596_rx()
897 tx_cmd->cmd.command = 0; /* Mark as free */ in i596_cleanup_cmd()
906 lp->scb.cmd = I596_NULL; in i596_cleanup_cmd()
936 static void i596_add_cmd(struct net_device *dev, struct i596_cmd *cmd) in i596_add_cmd() argument
944 cmd->status = 0; in i596_add_cmd()
945 cmd->command |= (CMD_EOL | CMD_INTR); in i596_add_cmd()
946 cmd->v_next = cmd->b_next = I596_NULL; in i596_add_cmd()
951 lp->cmd_tail->v_next = cmd; in i596_add_cmd()
952 lp->cmd_tail->b_next = WSWAPcmd(virt_to_bus(&cmd->status)); in i596_add_cmd()
954 lp->cmd_head = cmd; in i596_add_cmd()
956 lp->scb.cmd = WSWAPcmd(virt_to_bus(&cmd->status)); in i596_add_cmd()
960 lp->cmd_tail = cmd; in i596_add_cmd()
1069 if (tx_cmd->cmd.command) { in i596_start_xmit()
1081 tx_cmd->cmd.command = CMD_FLEX | CmdTx; in i596_start_xmit()
1095 i596_add_cmd(dev, &tx_cmd->cmd); in i596_start_xmit()
1206 lp->scb.cmd = I596_NULL; in i82596_probe()
1304 tx_cmd->cmd.command = 0; /* Mark free */ in i596_interrupt()
1343 lp->scb.cmd = WSWAPcmd(virt_to_bus(&lp->cmd_head->status)); in i596_interrupt()
1451 if (wait_cfg(dev, &lp->cf_cmd.cmd, 1000, "config change request timed out")) in set_multicast_list()
1471 lp->cf_cmd.cmd.command = CmdConfigure; in set_multicast_list()
1472 i596_add_cmd(dev, &lp->cf_cmd.cmd); in set_multicast_list()
1486 struct mc_cmd *cmd; in set_multicast_list() local
1488 if (wait_cfg(dev, &lp->mc_cmd.cmd, 1000, "multicast list change request timed out")) in set_multicast_list()
1490 cmd = &lp->mc_cmd; in set_multicast_list()
1491 cmd->cmd.command = CmdMulticastList; in set_multicast_list()
1492 cmd->mc_cnt = cnt * ETH_ALEN; in set_multicast_list()
1493 cp = cmd->mc_addrs; in set_multicast_list()
1503 i596_add_cmd(dev, &cmd->cmd); in set_multicast_list()