Lines Matching refs:swab16
66 #define make32(ptr16) (p->memtop + (swab16((unsigned short) (ptr16))) )
68 #define make16(ptr32) (swab16((unsigned short) ((unsigned long)(ptr32) - (unsigned long) p->memtop …
119 if(swab16((addr)->cmd_status) & STAT_COMPL) break; \
417 cfg_cmd->cmd_cmd = swab16(CMD_CONFIGURE | CMD_LAST); in init586()
448 if((swab16(cfg_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_COMPL|STAT_OK)) in init586()
450 printk("%s: configure command failed: %x\n",dev->name,swab16(cfg_cmd->cmd_status)); in init586()
461 ias_cmd->cmd_cmd = swab16(CMD_IASETUP | CMD_LAST); in init586()
473 if((swab16(ias_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_OK|STAT_COMPL)) { in init586()
474 …printk("%s (82586): individual address setup command failed: %04x\n",dev->name,swab16(ias_cmd->cmd… in init586()
485 tdr_cmd->cmd_cmd = swab16(CMD_TDR | CMD_LAST); in init586()
495 if(!(swab16(tdr_cmd->cmd_status) & STAT_COMPL)) in init586()
502 result = swab16(tdr_cmd->status); in init586()
529 mc_cmd->cmd_cmd = swab16(CMD_MCSETUP | CMD_LAST); in init586()
531 mc_cmd->mc_cnt = swab16(num_addrs * 6); in init586()
544 if( (swab16(mc_cmd->cmd_status) & (STAT_COMPL|STAT_OK)) != (STAT_COMPL|STAT_OK) ) in init586()
555 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP); in init586()
564 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP); in init586()
592 p->xmit_cmds[i]->cmd_status = swab16(STAT_COMPL); in init586()
593 p->xmit_cmds[i]->cmd_cmd = swab16(CMD_XMIT | CMD_INT); in init586()
615 p->xmit_cmds[0]->cmd_cmd = swab16(CMD_XMIT | CMD_SUSPEND | CMD_INT); in init586()
663 rbd[i].size = swab16(RECV_BUFF_SIZE); in alloc_rfa()
774 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int()
796 while(!((rstat=swab16(rbd->status)) & RBD_LAST)) in sun3_82586_rcv_int()
910 status = swab16(p->xmit_cmds[p->xmit_last]->cmd_status); in sun3_82586_xmt_int()
974 …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()
990 printk("%s: command-stats: %04x\n", dev->name, swab16(p->xmit_cmds[0]->cmd_status)); in sun3_82586_timeout()
1044 printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status)); in sun3_82586_send_packet()
1048 p->xmit_buffs[0]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1074 p->xmit_buffs[0]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1085 p->xmit_buffs[p->xmit_count]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1120 crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */ in sun3_82586_get_stats()
1122 aln = swab16(p->scb->aln_errs); in sun3_82586_get_stats()
1124 rsc = swab16(p->scb->rsc_errs); in sun3_82586_get_stats()
1126 ovrn = swab16(p->scb->ovrn_errs); in sun3_82586_get_stats()