swab16
#define ioread16be(p) swab16(ioread16(p))
#define iowrite16be(v,p) iowrite16(swab16(v), (p))
#define ___opcode_swab16(x) swab16(x)
return swap ? swab16(half) : half;
return swab16(__raw_readw(addr));
__raw_writew(swab16(value), addr);
e->e_type = swab16(e->e_type);
e->e_machine = swab16(e->e_machine);
e->e_ehsize = swab16(e->e_ehsize);
e->e_phentsize = swab16(e->e_phentsize);
e->e_phnum = swab16(e->e_phnum);
e->e_shentsize = swab16(e->e_shentsize);
e->e_shnum = swab16(e->e_shnum);
e->e_shstrndx = swab16(e->e_shstrndx);
f->f_magic = swab16(f->f_magic);
f->f_nscns = swab16(f->f_nscns);
f->f_opthdr = swab16(f->f_opthdr);
f->f_flags = swab16(f->f_flags);
a->magic = swab16(a->magic);
a->vstamp = swab16(a->vstamp);
s->s_nreloc = swab16(s->s_nreloc);
s->s_nlnno = swab16(s->s_nlnno);
result = swab16(result);
#define cpu_to_be16(x) swab16(x)
#define be16_to_cpu(x) swab16(x)
data.h[0] = swab16(data.h[0]);
data.h[1] = swab16(data.h[1]);
data.h[2] = swab16(data.h[2]);
data.h[3] = swab16(data.h[3]);
case 2: gpr = swab16(*(u16 *)run->mmio.data); break;
case 2: *(u16 *)data = swab16(val); break;
s16 temp = swab16(val);
src_val = swab16(src_val);
val_in = swab16(val_in);
*life = swab16((u16)call.edx);
ctxt->dst.val |= (unsigned long)swab16(tmp);
w4w(swab16(((u16 *)buf)[k]));
w4l(swab16(((u16 *)buf)[2 * k]) |
swab16(((u16 *)buf)[2 * k + 1]) << 16);
w4w(swab16(((u16 *)buf)[k]));
w4l(swab16(((u16 *)buf)[2 * k]) |
swab16(((u16 *)buf)[2 * k + 1]) << 16);
writew(swab16(val), ctx->regs + reg);
writew(swab16(valp[i]), ctx->regs + reg);
return swab16(readw(ctx->regs + reg));
crc_host = swab16(crc_ccitt(0, value, len));
writew(swab16(*(const __u16 *)&src[i]), &dst[i]);
*dbuf16++ = swab16(*sbuf16++);
return swab16(drm_pixel_xrgb8888_to_rgb565(pix));
crc_buf[j] = swab16(buf[j]);
val = swab16(data) >> 4;
ipcled->value = swab16(ipcled->value);
command = swab16(command);
return swab16(ret);
command = swab16(command);
data = swab16(data);
i2c_smbus_write_word_data(client, reg, swab16(value));
if (i2c_smbus_write_word_data(client, 0x28, swab16(data)) == -1) {
if (i2c_smbus_write_word_data(client, 0x26, swab16(fpaddr)) == -1) {
return swab16(data);
if (i2c_smbus_write_word_data(client, 0x27, swab16(fpaddr)) == -1) {
id = swab16(ret); /* LE -> BE */
if (id != swab16(ret))
value = swab16(value);
value = swab16(addr);
value = swab16(addr);
boot_progress[1] = swab16(reg);
boot_progress[2] = swab16(reg_lo);
dest[i] = swab16(source[i]);
denali->revision = swab16(ioread32(denali->reg + REVISION));
#define GSWIP_VERSION_GE(priv, ver) ((priv)->version >= swab16(ver))
storm_mask = swab16(storm_mask);
storm_rate = swab16(storm_rate);
hdr->count = swab16(hdr->count);
*(u16 *) ð_addr[0] = swab16(*(u16 *)&addr[1]);
*(u16 *) ð_addr[0] = swab16(*(u16 *) &addr[1]);
*(u16 *) ð_addr[0] = swab16(*(u16 *) &addr[1]);
*(u16 *) ð_addr[0] = swab16(*(u16 *) &addr[1]);
#define bswab16(b16) ((__force __le16) swab16((__force __u16) (b16)))
swab16(~csum_ipv6_magic(&src_ip, &dst_ip, 0, IPPROTO_TCP, 0));
tp->nvram_size = swab16((u16)(val & 0x0000ffff)) * 1024;
nubus_writew(swab16(portno), dev->base_addr + ADD_PORT);
return swab16(nubus_readw(dev->base_addr + DATA_PORT));
nubus_writew(swab16(portno), dev->base_addr + ADD_PORT);
nubus_writew(swab16(value), dev->base_addr + DATA_PORT);
return swab16(nubus_readw(dev->mem_start + portno));
nubus_writew(swab16(value), dev->mem_start + portno);
if (sig != swab16(CHIP_EISA_ID_SIG))
while ((status = swab16(nubus_readw(dev->base_addr + ISQ_PORT)))) {
return (tp->flags & HAS_SWAPPED_SEEPROM) ? swab16(retval) : retval;
port_desc.nv_port = swab16(port);
rxcp->vlan_tag = swab16(rxcp->vlan_tag);
printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status));
p->xmit_buffs[0]->size = swab16(TBD_LAST | len);
p->xmit_buffs[0]->size = swab16(TBD_LAST | len);
p->xmit_buffs[p->xmit_count]->size = swab16(TBD_LAST | len);
crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */
aln = swab16(p->scb->aln_errs);
rsc = swab16(p->scb->rsc_errs);
ovrn = swab16(p->scb->ovrn_errs);
if(swab16((addr)->cmd_status) & STAT_COMPL) break; \
cfg_cmd->cmd_cmd = swab16(CMD_CONFIGURE | CMD_LAST);
if((swab16(cfg_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_COMPL|STAT_OK))
printk("%s: configure command failed: %x\n",dev->name,swab16(cfg_cmd->cmd_status));
ias_cmd->cmd_cmd = swab16(CMD_IASETUP | CMD_LAST);
if((swab16(ias_cmd->cmd_status) & (STAT_OK|STAT_COMPL)) != (STAT_OK|STAT_COMPL)) {
printk("%s (82586): individual address setup command failed: %04x\n",dev->name,swab16(ias_cmd->cmd_status));
tdr_cmd->cmd_cmd = swab16(CMD_TDR | CMD_LAST);
if(!(swab16(tdr_cmd->cmd_status) & STAT_COMPL))
result = swab16(tdr_cmd->status);
mc_cmd->cmd_cmd = swab16(CMD_MCSETUP | CMD_LAST);
mc_cmd->mc_cnt = swab16(num_addrs * 6);
if( (swab16(mc_cmd->cmd_status) & (STAT_COMPL|STAT_OK)) != (STAT_COMPL|STAT_OK) )
p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP);
p->nop_cmds[i]->cmd_cmd = swab16(CMD_NOP);
p->xmit_cmds[i]->cmd_status = swab16(STAT_COMPL);
p->xmit_cmds[i]->cmd_cmd = swab16(CMD_XMIT | CMD_INT);
p->xmit_cmds[0]->cmd_cmd = swab16(CMD_XMIT | CMD_SUSPEND | CMD_INT);
#define make32(ptr16) (p->memtop + (swab16((unsigned short) (ptr16))) )
rbd[i].size = swab16(RECV_BUFF_SIZE);
#define make16(ptr32) (swab16((unsigned short) ((unsigned long)(ptr32) - (unsigned long) p->memtop )))
if( (totlen = swab16(rbd->status)) & RBD_LAST) /* the first and the last buffer? */
while(!((rstat=swab16(rbd->status)) & RBD_LAST))
status = swab16(p->xmit_cmds[p->xmit_last]->cmd_status);
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);
printk("%s: command-stats: %04x\n", dev->name, swab16(p->xmit_cmds[0]->cmd_status));
skb->csum = csum_unfold((__force __sum16)swab16(csum));
skb->csum = csum_unfold((__force __sum16)~swab16(csum_bits.raw_csum));
__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff));
TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00;
TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00;
__vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff));
(RTASE_TX_VLAN_TAG | swab16(skb_vlan_tag_get(skb))) : 0x00;
swab16(opts2 & RTASE_VLAN_TAG_MASK));
# define CPU_CHIP_SWAP16(x) swab16(x)
u16 vid = swab16(le16_to_cpu(rd->rdesc1.PQTAG));
wx->subsystem_device_id = swab16((u16)ssid);
crc = swab16(crc16(0, p, len));
opts2 = TX_VLAN_TAG | swab16(skb_vlan_tag_get(skb));
swab16(opts2 & 0xffff));
addr_h16 = swab16(addr_h16);
if (*cal_data != swab16(AR5416_EEPROM_MAGIC)) {
reg = swab16(reg);
if (swab16(magic) == AR5416_EEPROM_MAGIC) {
eepdata[i] = swab16(eepdata[i]);
(field = (__force __le16)swab16((__force u16)field))
el = swab16((__force u16)eep->baseEepHeader.length);
el = swab16((__force u16)eep->baseEepHeader.length);
el = swab16((__force u16)eep->baseEepHeader.length);
crc = swab16(crc);
buf[i] = swab16(buf[i]);
regaddr = swab16(regaddr);
buf[i] = swab16(buf[i]);
buf[i] = swab16(buf[i]);
regaddr = swab16(regaddr);
*val = swab16(ret);
wcode[i] = swab16((__force u32)fwcode[i]);
*(u16 *)(rx_buf + espi->rx_pos) = swab16(val);
"%04X", swab16(sprom[i]) & 0xFFFF);
sprom[cnt++] = swab16((u16)parsed);
swab16(*(u16 *)(buf + 2 * i)), 2);
swab16((event & IMGU_ABI_EVTTYPE_LINENO_MASK) >>
be_start_address = swab16((u16)start_address);
be_start_address = swab16((u16)start_address);
be_start_address = swab16((u16)start_address);
return swab16(readw(addr));
writew(swab16(value), addr);
return (value < 0) ? value : swab16(value);
return i2c_smbus_write_word_data(client, command, swab16(value));
return TNUM(swab16(a.value & 0xFFFF), swab16(a.mask & 0xFFFF));
#define pio_write16be(val,port) outw(swab16(val),port)
#define mmio_write16be(val,port) writew(swab16(val),port)
#define pio_read16be(port) swab16(inw(port))
#define mmio_read16be(addr) swab16(readw(addr))
return tkip_sbox[val & 0xff] ^ swab16(tkip_sbox[val >> 8]);
sample = swab16(sample);
sample = swab16(sample);
c = swab16(cc);
ice->eeprom.subvendor = ((unsigned int)swab16(vendor) << 16) | swab16(device);
((unsigned int)swab16(vendor) << 16) | swab16(device);
*dst++ = swab16(inw(rdp_port) ^ xor);
*dst++ = swab16(inw(rdp_port) ^ xor);
*dst++ = swab16(inw(rdp_port) ^ xor);