Lines Matching refs:SWAP16
409 dev->name, str, SWAP16(dma->iscp.stat));
426 SWAP16(dma->scb.status),
427 SWAP16(dma->scb.command));
448 &dma->scb, SWAP16(dma->scb.status), SWAP16(dma->scb.command),
449 SWAP16(dma->scb.cmd), SWAP32(dma->scb.rfd));
460 cmd, SWAP16(cmd->status), SWAP16(cmd->command),
470 rfd, SWAP16(rfd->stat), SWAP16(rfd->cmd),
472 SWAP16(rfd->count));
481 rbd, SWAP16(rbd->count), SWAP32(rbd->b_next),
482 SWAP32(rbd->b_data), SWAP16(rbd->size));
513 rbd->size = SWAP16(PKT_BUF_SZ);
527 rfd->cmd = SWAP16(CMD_FLEX);
537 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX);
570 dma->rfds[i].cmd = SWAP16(CMD_FLEX);
572 dma->rfds[rx_ring_size-1].cmd = SWAP16(CMD_EOL|CMD_FLEX);
632 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure);
638 dma->sa_cmd.cmd.command = SWAP16(CmdSASetup);
643 dma->tdr_cmd.cmd.command = SWAP16(CmdTDR);
654 dma->scb.command = SWAP16(RX_START);
691 while (rfd->stat & SWAP16(STAT_C)) { /* Loop while complete frames */
706 if (rbd != NULL && (rfd->stat & SWAP16(STAT_OK))) {
708 int pkt_len = SWAP16(rbd->count) & 0x3fff;
775 if (rfd->stat & SWAP16(0x0100))
777 if (rfd->stat & SWAP16(0x8000))
779 if (rfd->stat & SWAP16(0x0001))
781 if (rfd->stat & SWAP16(0x0002))
783 if (rfd->stat & SWAP16(0x0004))
785 if (rfd->stat & SWAP16(0x0008))
787 if (rfd->stat & SWAP16(0x0010))
793 if (rbd != NULL && (rbd->count & SWAP16(0x4000))) {
803 rfd->cmd = SWAP16(CMD_EOL|CMD_FLEX);
814 rfd->v_prev->cmd = SWAP16(CMD_FLEX);
835 switch (SWAP16(ptr->command) & 0x7) {
880 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT);
906 cmd->command |= SWAP16(CMD_EOL | CMD_INTR);
921 dma->scb.command = SWAP16(CUC_START);
986 lp->dma->scb.command = SWAP16(CUC_START | RX_START);
1032 tx_cmd->cmd.command = SWAP16(CMD_FLEX | CmdTx);
1038 tbd->size = SWAP16(EOF | length);
1141 status = SWAP16(dma->scb.status);
1173 if (!(lp->cmd_head->status & SWAP16(STAT_C)))
1181 SWAP16(lp->cmd_head->status),
1182 SWAP16(lp->cmd_head->command)));
1186 switch (SWAP16(ptr->command) & 0x7) {
1192 if (ptr->status & SWAP16(STAT_OK)) {
1197 if (ptr->status & SWAP16(0x0020))
1199 if (!(ptr->status & SWAP16(0x0040)))
1201 if (ptr->status & SWAP16(0x0400))
1203 if (ptr->status & SWAP16(0x0800))
1205 if (ptr->status & SWAP16(0x1000))
1218 unsigned short status = SWAP16(((struct tdr_cmd *)ptr)->status);
1266 ptr->command &= SWAP16(0x1fff);
1298 dma->scb.command = SWAP16(ack_cmd);
1324 dev->name, SWAP16(lp->dma->scb.status)));
1329 lp->dma->scb.command = SWAP16(CUC_ABORT | RX_ABORT);
1388 dma->cf_cmd.cmd.command = SWAP16(CmdConfigure);
1407 cmd->cmd.command = SWAP16(CmdMulticastList);
1408 cmd->mc_cnt = SWAP16(netdev_mc_count(dev) * 6);