Lines Matching refs:SWAP16

408 		     dev->name, str, SWAP16(dma->iscp.stat));  in wait_istat()
425 SWAP16(dma->scb.status), in wait_cmd()
426 SWAP16(dma->scb.command)); in wait_cmd()
447 &dma->scb, SWAP16(dma->scb.status), SWAP16(dma->scb.command), in i596_display_data()
448 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd)); in i596_display_data()
459 cmd, SWAP16(cmd->status), SWAP16(cmd->command), in i596_display_data()
469 rfd, SWAP16(rfd->stat), SWAP16(rfd->cmd), in i596_display_data()
471 SWAP16(rfd->count)); in i596_display_data()
480 rbd, SWAP16(rbd->count), SWAP32(rbd->b_next), in i596_display_data()
481 SWAP32(rbd->b_data), SWAP16(rbd->size)); in i596_display_data()
512 rbd->size = SWAP16(PKT_BUF_SZ); in init_rx_bufs()
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()
631 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure); in init_i596_mem()
637 dma->sa_cmd.cmd.command = SWAP16(CmdSASetup); in init_i596_mem()
642 dma->tdr_cmd.cmd.command = SWAP16(CmdTDR); in init_i596_mem()
653 dma->scb.command = SWAP16(RX_START); in init_i596_mem()
690 while (rfd->stat & SWAP16(STAT_C)) { /* Loop while complete frames */ in i596_rx()
705 if (rbd != NULL && (rfd->stat & SWAP16(STAT_OK))) { in i596_rx()
707 int pkt_len = SWAP16(rbd->count) & 0x3fff; in i596_rx()
774 if (rfd->stat & SWAP16(0x0100)) in i596_rx()
776 if (rfd->stat & SWAP16(0x8000)) in i596_rx()
778 if (rfd->stat & SWAP16(0x0001)) in i596_rx()
780 if (rfd->stat & SWAP16(0x0002)) in i596_rx()
782 if (rfd->stat & SWAP16(0x0004)) in i596_rx()
784 if (rfd->stat & SWAP16(0x0008)) in i596_rx()
786 if (rfd->stat & SWAP16(0x0010)) in i596_rx()
792 if (rbd != NULL && (rbd->count & SWAP16(0x4000))) { in i596_rx()
802 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX); in i596_rx()
813 rfd->v_prev->cmd = SWAP16(CMD_FLEX); in i596_rx()
834 switch (SWAP16(ptr->command) & 0x7) { in i596_cleanup_cmd()
879 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT); in i596_reset()
905 cmd->command |= SWAP16(CMD_EOL | CMD_INTR); in i596_add_cmd()
920 dma->scb.command = SWAP16(CUC_START); in i596_add_cmd()
985 lp->dma->scb.command = SWAP16(CUC_START | RX_START); in i596_tx_timeout()
1031 tx_cmd->cmd.command = SWAP16(CMD_FLEX | CmdTx); in i596_start_xmit()
1037 tbd->size = SWAP16(EOF | length); in i596_start_xmit()
1140 status = SWAP16(dma->scb.status); in i596_interrupt()
1172 if (!(lp->cmd_head->status & SWAP16(STAT_C))) in i596_interrupt()
1180 SWAP16(lp->cmd_head->status), in i596_interrupt()
1181 SWAP16(lp->cmd_head->command))); in i596_interrupt()
1185 switch (SWAP16(ptr->command) & 0x7) { in i596_interrupt()
1191 if (ptr->status & SWAP16(STAT_OK)) { in i596_interrupt()
1196 if (ptr->status & SWAP16(0x0020)) in i596_interrupt()
1198 if (!(ptr->status & SWAP16(0x0040))) in i596_interrupt()
1200 if (ptr->status & SWAP16(0x0400)) in i596_interrupt()
1202 if (ptr->status & SWAP16(0x0800)) in i596_interrupt()
1204 if (ptr->status & SWAP16(0x1000)) in i596_interrupt()
1217 unsigned short status = SWAP16(((struct tdr_cmd *)ptr)->status); in i596_interrupt()
1265 ptr->command &= SWAP16(0x1fff); in i596_interrupt()
1297 dma->scb.command = SWAP16(ack_cmd); in i596_interrupt()
1323 dev->name, SWAP16(lp->dma->scb.status))); in i596_close()
1328 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT); in i596_close()
1387 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure); 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()