Lines Matching refs:swab16
65 #define make32(ptr16) (p->memtop + (swab16((unsigned short) (ptr16))) )
67 #define make16(ptr32) (swab16((unsigned short) ((unsigned long)(ptr32) - (unsigned long) p->memtop )))
118 if(swab16((addr)->cmd_status) & STAT_COMPL) break; \
418 cfg_cmd->cmd_cmd = swab16(CMD_CONFIGURE | CMD_LAST);
449 if((swab16(cfg_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_COMPL|STAT_OK))
451 printk("%s: configure command failed: %x\n",dev->name,swab16(cfg_cmd->cmd_status));
462 ias_cmd->cmd_cmd = swab16(CMD_IASETUP | CMD_LAST);
474 if((swab16(ias_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_OK|STAT_COMPL)) {
475 printk("%s (82586): individual address setup command failed: %04x\n",dev->name,swab16(ias_cmd->cmd_status));
486 tdr_cmd->cmd_cmd = swab16(CMD_TDR | CMD_LAST);
496 if(!(swab16(tdr_cmd->cmd_status) & STAT_COMPL))
503 result = swab16(tdr_cmd->status);
530 mc_cmd->cmd_cmd = swab16(CMD_MCSETUP | CMD_LAST);
532 mc_cmd->mc_cnt = swab16(num_addrs * 6);
545 if( (swab16(mc_cmd->cmd_status) & (STAT_COMPL|STAT_OK)) != (STAT_COMPL|STAT_OK) )
556 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP);
565 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP);
593 p->xmit_cmds[i]->cmd_status = swab16(STAT_COMPL);
594 p->xmit_cmds[i]->cmd_cmd = swab16(CMD_XMIT | CMD_INT);
616 p->xmit_cmds[0]->cmd_cmd = swab16(CMD_XMIT | CMD_SUSPEND | CMD_INT);
664 rbd[i].size = swab16(RECV_BUFF_SIZE);
775 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */
797 while(!((rstat=swab16(rbd->status)) & RBD_LAST))
893 status = swab16(p->xmit_cmds[p->xmit_last]->cmd_status);
957 printk("%s: X0: %04x N0: %04x N1: %04x %d\n",dev->name,(int)swab16(p->xmit_cmds[0]->cmd_status),(int)swab16(p->nop_cmds[0]->cmd_status),(int)swab16(p->nop_cmds[1]->cmd_status),(int)p->nop_point);
973 printk("%s: command-stats: %04x %04x\n",dev->name,swab16(p->xmit_cmds[0]->cmd_status),swab16(p->xmit_cmds[1]->cmd_status));
1025 printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status));
1029 p->xmit_buffs[0]->size = swab16(TBD_LAST | len);
1055 p->xmit_buffs[0]->size = swab16(TBD_LAST | len);
1066 p->xmit_buffs[p->xmit_count]->size = swab16(TBD_LAST | len);
1101 crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */
1103 aln = swab16(p->scb->aln_errs);
1105 rsc = swab16(p->scb->rsc_errs);
1107 ovrn = swab16(p->scb->ovrn_errs);