Lines Matching refs:SWAP16
408 dev->name, str, SWAP16(dma->iscp.stat));
425 SWAP16(dma->scb.status),
426 SWAP16(dma->scb.command));
447 &dma->scb, SWAP16(dma->scb.status), SWAP16(dma->scb.command),
448 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd));
459 cmd, SWAP16(cmd->status), SWAP16(cmd->command),
469 rfd, SWAP16(rfd->stat), SWAP16(rfd->cmd),
471 SWAP16(rfd->count));
480 rbd, SWAP16(rbd->count), SWAP32(rbd->b_next),
481 SWAP32(rbd->b_data), SWAP16(rbd->size));
512 rbd->size = SWAP16(PKT_BUF_SZ);
526 rfd->cmd = SWAP16(CMD_FLEX);
536 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX);
569 dma->rfds[i].cmd = SWAP16(CMD_FLEX);
571 dma->rfds[rx_ring_size-1].cmd = SWAP16(CMD_EOL|CMD_FLEX);
631 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure);
637 dma->sa_cmd.cmd.command = SWAP16(CmdSASetup);
642 dma->tdr_cmd.cmd.command = SWAP16(CmdTDR);
653 dma->scb.command = SWAP16(RX_START);
690 while (rfd->stat & SWAP16(STAT_C)) { /* Loop while complete frames */
705 if (rbd != NULL && (rfd->stat & SWAP16(STAT_OK))) {
707 int pkt_len = SWAP16(rbd->count) & 0x3fff;
774 if (rfd->stat & SWAP16(0x0100))
776 if (rfd->stat & SWAP16(0x8000))
778 if (rfd->stat & SWAP16(0x0001))
780 if (rfd->stat & SWAP16(0x0002))
782 if (rfd->stat & SWAP16(0x0004))
784 if (rfd->stat & SWAP16(0x0008))
786 if (rfd->stat & SWAP16(0x0010))
792 if (rbd != NULL && (rbd->count & SWAP16(0x4000))) {
802 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX);
813 rfd->v_prev->cmd = SWAP16(CMD_FLEX);
834 switch (SWAP16(ptr->command) & 0x7) {
879 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT);
905 cmd->command |= SWAP16(CMD_EOL | CMD_INTR);
920 dma->scb.command = SWAP16(CUC_START);
985 lp->dma->scb.command = SWAP16(CUC_START | RX_START);
1031 tx_cmd->cmd.command = SWAP16(CMD_FLEX | CmdTx);
1037 tbd->size = SWAP16(EOF | length);
1140 status = SWAP16(dma->scb.status);
1172 if (!(lp->cmd_head->status & SWAP16(STAT_C)))
1180 SWAP16(lp->cmd_head->status),
1181 SWAP16(lp->cmd_head->command)));
1185 switch (SWAP16(ptr->command) & 0x7) {
1191 if (ptr->status & SWAP16(STAT_OK)) {
1196 if (ptr->status & SWAP16(0x0020))
1198 if (!(ptr->status & SWAP16(0x0040)))
1200 if (ptr->status & SWAP16(0x0400))
1202 if (ptr->status & SWAP16(0x0800))
1204 if (ptr->status & SWAP16(0x1000))
1217 unsigned short status = SWAP16(((struct tdr_cmd *)ptr)->status);
1265 ptr->command &= SWAP16(0x1fff);
1297 dma->scb.command = SWAP16(ack_cmd);
1323 dev->name, SWAP16(lp->dma->scb.status)));
1328 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT);
1387 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure);
1406 cmd->cmd.command = SWAP16(CmdMulticastList);
1407 cmd->mc_cnt = SWAP16(netdev_mc_count(dev) * 6);