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; \
416 cfg_cmd->cmd_cmd = swab16(CMD_CONFIGURE | CMD_LAST); in init586()
447 if((swab16(cfg_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_COMPL|STAT_OK)) in init586()
449 printk("%s: configure command failed: %x\n",dev->name,swab16(cfg_cmd->cmd_status)); in init586()
460 ias_cmd->cmd_cmd = swab16(CMD_IASETUP | CMD_LAST); in init586()
472 if((swab16(ias_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_OK|STAT_COMPL)) { in init586()
473 …printk("%s (82586): individual address setup command failed: %04x\n",dev->name,swab16(ias_cmd->cmd… in init586()
484 tdr_cmd->cmd_cmd = swab16(CMD_TDR | CMD_LAST); in init586()
494 if(!(swab16(tdr_cmd->cmd_status) & STAT_COMPL)) in init586()
501 result = swab16(tdr_cmd->status); in init586()
528 mc_cmd->cmd_cmd = swab16(CMD_MCSETUP | CMD_LAST); in init586()
530 mc_cmd->mc_cnt = swab16(num_addrs * 6); in init586()
543 if( (swab16(mc_cmd->cmd_status) & (STAT_COMPL|STAT_OK)) != (STAT_COMPL|STAT_OK) ) in init586()
554 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP); in init586()
563 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP); in init586()
591 p->xmit_cmds[i]->cmd_status = swab16(STAT_COMPL); in init586()
592 p->xmit_cmds[i]->cmd_cmd = swab16(CMD_XMIT | CMD_INT); in init586()
614 p->xmit_cmds[0]->cmd_cmd = swab16(CMD_XMIT | CMD_SUSPEND | CMD_INT); in init586()
662 rbd[i].size = swab16(RECV_BUFF_SIZE); in alloc_rfa()
773 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int()
795 while(!((rstat=swab16(rbd->status)) & RBD_LAST)) in sun3_82586_rcv_int()
909 status = swab16(p->xmit_cmds[p->xmit_last]->cmd_status); in sun3_82586_xmt_int()
973 …4x N1: %04x %d\n",dev->name,(int)swab16(p->xmit_cmds[0]->cmd_status),(int)swab16(p->nop_cmds[0]->c… in sun3_82586_timeout()
989 …printk("%s: command-stats: %04x %04x\n",dev->name,swab16(p->xmit_cmds[0]->cmd_status),swab16(p->xm… in sun3_82586_timeout()
1042 printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status)); in sun3_82586_send_packet()
1046 p->xmit_buffs[0]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1072 p->xmit_buffs[0]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1083 p->xmit_buffs[p->xmit_count]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1118 crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */ in sun3_82586_get_stats()
1120 aln = swab16(p->scb->aln_errs); in sun3_82586_get_stats()
1122 rsc = swab16(p->scb->rsc_errs); in sun3_82586_get_stats()
1124 ovrn = swab16(p->scb->ovrn_errs); in sun3_82586_get_stats()