• Home
  • Raw
  • Download

Lines Matching refs:swab16

64 #define make32(ptr16) (p->memtop + (swab16((unsigned short) (ptr16))) )
66 #define make16(ptr32) (swab16((unsigned short) ((unsigned long)(ptr32) - (unsigned long) p->memtop …
117 if(swab16((addr)->cmd_status) & STAT_COMPL) break; \
420 cfg_cmd->cmd_cmd = swab16(CMD_CONFIGURE | CMD_LAST); in init586()
451 if((swab16(cfg_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_COMPL|STAT_OK)) in init586()
453 printk("%s: configure command failed: %x\n",dev->name,swab16(cfg_cmd->cmd_status)); in init586()
464 ias_cmd->cmd_cmd = swab16(CMD_IASETUP | CMD_LAST); in init586()
476 if((swab16(ias_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_OK|STAT_COMPL)) { in init586()
477 …printk("%s (82586): individual address setup command failed: %04x\n",dev->name,swab16(ias_cmd->cmd… in init586()
488 tdr_cmd->cmd_cmd = swab16(CMD_TDR | CMD_LAST); in init586()
498 if(!(swab16(tdr_cmd->cmd_status) & STAT_COMPL)) in init586()
505 result = swab16(tdr_cmd->status); in init586()
532 mc_cmd->cmd_cmd = swab16(CMD_MCSETUP | CMD_LAST); in init586()
534 mc_cmd->mc_cnt = swab16(num_addrs * 6); in init586()
547 if( (swab16(mc_cmd->cmd_status) & (STAT_COMPL|STAT_OK)) != (STAT_COMPL|STAT_OK) ) in init586()
558 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP); in init586()
567 p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP); in init586()
595 p->xmit_cmds[i]->cmd_status = swab16(STAT_COMPL); in init586()
596 p->xmit_cmds[i]->cmd_cmd = swab16(CMD_XMIT | CMD_INT); in init586()
618 p->xmit_cmds[0]->cmd_cmd = swab16(CMD_XMIT | CMD_SUSPEND | CMD_INT); in init586()
666 rbd[i].size = swab16(RECV_BUFF_SIZE); in alloc_rfa()
777 if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */ in sun3_82586_rcv_int()
799 while(!((rstat=swab16(rbd->status)) & RBD_LAST)) in sun3_82586_rcv_int()
913 status = swab16(p->xmit_cmds[p->xmit_last]->cmd_status); in sun3_82586_xmt_int()
977 …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()
993 …printk("%s: command-stats: %04x %04x\n",dev->name,swab16(p->xmit_cmds[0]->cmd_status),swab16(p->xm… in sun3_82586_timeout()
1046 printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status)); in sun3_82586_send_packet()
1050 p->xmit_buffs[0]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1076 p->xmit_buffs[0]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1087 p->xmit_buffs[p->xmit_count]->size = swab16(TBD_LAST | len); in sun3_82586_send_packet()
1122 crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */ in sun3_82586_get_stats()
1124 aln = swab16(p->scb->aln_errs); in sun3_82586_get_stats()
1126 rsc = swab16(p->scb->rsc_errs); in sun3_82586_get_stats()
1128 ovrn = swab16(p->scb->ovrn_errs); in sun3_82586_get_stats()