Home
last modified time | relevance | path

Searched refs:swab16 (Results 1 – 70 of 70) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/i825xx/
Dsun3_82586.c64 #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()
[all …]
/linux-4.1.27/arch/mips/boot/
Delf2ecoff.c155 #define swab16(x) \ macro
169 e->e_type = swab16(e->e_type); in convert_elf_hdr()
170 e->e_machine = swab16(e->e_machine); in convert_elf_hdr()
176 e->e_ehsize = swab16(e->e_ehsize); in convert_elf_hdr()
177 e->e_phentsize = swab16(e->e_phentsize); in convert_elf_hdr()
178 e->e_phnum = swab16(e->e_phnum); in convert_elf_hdr()
179 e->e_shentsize = swab16(e->e_shentsize); in convert_elf_hdr()
180 e->e_shnum = swab16(e->e_shnum); in convert_elf_hdr()
181 e->e_shstrndx = swab16(e->e_shstrndx); in convert_elf_hdr()
221 f->f_magic = swab16(f->f_magic); in convert_ecoff_filehdr()
[all …]
/linux-4.1.27/arch/avr32/mach-at32ap/include/mach/
Dio.h14 # define __mem_ioswabw(a, x) swab16(x)
24 # define __mem_ioswabw(a, x) swab16(x)
31 # define ioswabw(a, x) swab16(x)
/linux-4.1.27/drivers/net/ethernet/cirrus/
Dmac89x0.c143 nubus_writew(swab16(portno), dev->base_addr + ADD_PORT); in readreg_io()
144 return swab16(nubus_readw(dev->base_addr + DATA_PORT)); in readreg_io()
150 nubus_writew(swab16(portno), dev->base_addr + ADD_PORT); in writereg_io()
151 nubus_writew(swab16(value), dev->base_addr + DATA_PORT); in writereg_io()
158 return swab16(nubus_readw(dev->mem_start + portno)); in readreg()
164 nubus_writew(swab16(value), dev->mem_start + portno); in writereg()
229 if (sig != swab16(CHIP_EISA_ID_SIG)) in mac89x0_probe()
433 while ((status = swab16(nubus_readw(dev->base_addr + ISQ_PORT)))) { in net_interrupt()
/linux-4.1.27/arch/powerpc/boot/
Dof.h27 #define cpu_to_be16(x) swab16(x)
28 #define be16_to_cpu(x) swab16(x)
Dswab.h4 static inline u16 swab16(u16 x) in swab16() function
/linux-4.1.27/drivers/net/wireless/cw1200/
Dcw1200_spi.c94 regaddr = swab16(regaddr); in cw1200_spi_memcpy_fromio()
120 buf[i] = swab16(buf[i]); in cw1200_spi_memcpy_fromio()
161 regaddr = swab16(regaddr); in cw1200_spi_memcpy_toio()
163 buf[i] = swab16(buf[i]); in cw1200_spi_memcpy_toio()
192 buf[i] = swab16(buf[i]); in cw1200_spi_memcpy_toio()
/linux-4.1.27/drivers/net/wireless/ath/ath9k/
Deeprom_9287.c197 magic2 = swab16(magic); in ath9k_hw_ar9287_check_eeprom()
204 temp = swab16(*eepdata); in ath9k_hw_ar9287_check_eeprom()
220 el = swab16(ah->eeprom.map9287.baseEepHeader.length); in ath9k_hw_ar9287_check_eeprom()
235 word = swab16(eep->baseEepHeader.length); in ath9k_hw_ar9287_check_eeprom()
238 word = swab16(eep->baseEepHeader.checksum); in ath9k_hw_ar9287_check_eeprom()
241 word = swab16(eep->baseEepHeader.version); in ath9k_hw_ar9287_check_eeprom()
244 word = swab16(eep->baseEepHeader.regDmn[0]); in ath9k_hw_ar9287_check_eeprom()
247 word = swab16(eep->baseEepHeader.regDmn[1]); in ath9k_hw_ar9287_check_eeprom()
250 word = swab16(eep->baseEepHeader.rfSilent); in ath9k_hw_ar9287_check_eeprom()
253 word = swab16(eep->baseEepHeader.blueToothOptions); in ath9k_hw_ar9287_check_eeprom()
[all …]
Deeprom_4k.c204 magic2 = swab16(magic); in ath9k_hw_4k_check_eeprom()
211 temp = swab16(*eepdata); in ath9k_hw_4k_check_eeprom()
227 el = swab16(ah->eeprom.map4k.baseEepHeader.length); in ath9k_hw_4k_check_eeprom()
248 word = swab16(eep->baseEepHeader.length); in ath9k_hw_4k_check_eeprom()
251 word = swab16(eep->baseEepHeader.checksum); in ath9k_hw_4k_check_eeprom()
254 word = swab16(eep->baseEepHeader.version); in ath9k_hw_4k_check_eeprom()
257 word = swab16(eep->baseEepHeader.regDmn[0]); in ath9k_hw_4k_check_eeprom()
260 word = swab16(eep->baseEepHeader.regDmn[1]); in ath9k_hw_4k_check_eeprom()
263 word = swab16(eep->baseEepHeader.rfSilent); in ath9k_hw_4k_check_eeprom()
266 word = swab16(eep->baseEepHeader.blueToothOptions); in ath9k_hw_4k_check_eeprom()
[all …]
Deeprom_def.c275 if (swab16(magic) == AR5416_EEPROM_MAGIC && in ath9k_hw_def_check_eeprom()
282 temp = swab16(*eepdata); in ath9k_hw_def_check_eeprom()
292 el = swab16(ah->eeprom.def.baseEepHeader.length); in ath9k_hw_def_check_eeprom()
313 word = swab16(eep->baseEepHeader.length); in ath9k_hw_def_check_eeprom()
316 word = swab16(eep->baseEepHeader.checksum); in ath9k_hw_def_check_eeprom()
319 word = swab16(eep->baseEepHeader.version); in ath9k_hw_def_check_eeprom()
322 word = swab16(eep->baseEepHeader.regDmn[0]); in ath9k_hw_def_check_eeprom()
325 word = swab16(eep->baseEepHeader.regDmn[1]); in ath9k_hw_def_check_eeprom()
328 word = swab16(eep->baseEepHeader.rfSilent); in ath9k_hw_def_check_eeprom()
331 word = swab16(eep->baseEepHeader.blueToothOptions); in ath9k_hw_def_check_eeprom()
[all …]
/linux-4.1.27/drivers/staging/iio/cdc/
Dad7152.c272 swab16(val)); in ad7152_write_raw()
286 swab16(val)); in ad7152_write_raw()
368 *val = swab16(ret); in ad7152_read_raw()
383 *val2 = (15625 * swab16(ret)) / 1024; in ad7152_read_raw()
392 *val = swab16(ret); in ad7152_read_raw()
Dad7746.c507 ret = i2c_smbus_write_word_data(chip->client, reg, swab16(val)); in ad7746_write_raw()
519 AD7746_REG_CAP_OFFH, swab16(val)); in ad7746_write_raw()
636 *val2 = (15625 * swab16(ret)) / 1024; in ad7746_read_raw()
645 *val = swab16(ret); in ad7746_read_raw()
Dad7150.c112 *val = swab16(ret); in ad7150_read_raw()
119 *val = swab16(ret); in ad7150_read_raw()
184 swab16(value)); in ad7150_write_event_params()
/linux-4.1.27/drivers/media/i2c/
Dvpx3220.c110 if (i2c_smbus_write_word_data(client, 0x27, swab16(fpaddr)) == -1) { in vpx3220_fp_write()
119 if (i2c_smbus_write_word_data(client, 0x28, swab16(data)) == -1) { in vpx3220_fp_write()
133 if (i2c_smbus_write_word_data(client, 0x26, swab16(fpaddr)) == -1) { in vpx3220_fp_read()
148 return swab16(data); in vpx3220_fp_read()
Duda1342.c29 i2c_smbus_write_word_data(client, reg, swab16(value)); in write_reg()
/linux-4.1.27/drivers/ssb/
Dsprom.c30 "%04X", swab16(sprom[i]) & 0xFFFF); in sprom2hex()
60 sprom[cnt++] = swab16((u16)parsed); in hex2sprom()
/linux-4.1.27/arch/arm/vdso/
Dvdsomunge.c61 #define swab16(x) \ macro
121 return swap ? swab16(half) : half; in read_elf_half()
/linux-4.1.27/include/linux/
Dswab.h6 # define swab16 __swab16 macro
Di2c.h103 return (value < 0) ? value : swab16(value); in i2c_smbus_read_word_swapped()
110 return i2c_smbus_write_word_data(client, command, swab16(value)); in i2c_smbus_write_word_swapped()
/linux-4.1.27/arch/tile/lib/
Dchecksum.c86 result = swab16(result); in do_csum()
/linux-4.1.27/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c98 *dst++ = swab16(inw(rdp_port) ^ xor); in pdacf_transfer_mono16sw()
118 *dst++ = swab16(inw(rdp_port) ^ xor); in pdacf_transfer_stereo16sw()
119 *dst++ = swab16(inw(rdp_port) ^ xor); in pdacf_transfer_stereo16sw()
/linux-4.1.27/lib/
Diomap.c62 #define pio_read16be(port) swab16(inw(port))
103 #define pio_write16be(val,port) outw(swab16(val),port)
/linux-4.1.27/drivers/input/touchscreen/
Dad7879-i2c.c38 buf[idx] = swab16(buf[idx]); in ad7879_i2c_multi_read()
Dtsc2007.c108 val = swab16(data) >> 4; in tsc2007_xfer()
/linux-4.1.27/arch/powerpc/kernel/
Dalign.c599 data.h[0] = swab16(data.h[0]); in emulate_spe()
600 data.h[1] = swab16(data.h[1]); in emulate_spe()
601 data.h[2] = swab16(data.h[2]); in emulate_spe()
602 data.h[3] = swab16(data.h[3]); in emulate_spe()
980 data.x16.low16 = swab16(data.x16.low16); in fix_alignment()
/linux-4.1.27/sound/core/oss/
Dmulaw.c161 sample = swab16(sample); in cvt_s16_to_native()
209 sample = swab16(sample); in cvt_native_to_s16()
/linux-4.1.27/arch/parisc/lib/
Dchecksum.c94 result = swab16(result); in do_csum()
/linux-4.1.27/arch/arm/include/asm/
Dopcodes.h92 #define ___opcode_swab16(x) swab16(x)
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Dhealth.c110 return swab16(readl((__force u16 __iomem *) p)); in read_be16()
/linux-4.1.27/drivers/media/i2c/soc_camera/
Dmt9t112.c154 command = swab16(command); in __mt9t112_reg_read()
176 return swab16(ret); in __mt9t112_reg_read()
186 command = swab16(command); in __mt9t112_reg_write()
187 data = swab16(data); in __mt9t112_reg_write()
Dov9740.c418 reg = swab16(reg); in ov9740_reg_read()
439 reg = swab16(reg); in ov9740_reg_write()
/linux-4.1.27/arch/powerpc/platforms/44x/
Dwarp.c263 s16 temp = swab16(val); in pika_dtm_thread()
/linux-4.1.27/sound/isa/sb/
Demu8000_patch.c98 c = swab16(cc); in read_word()
/linux-4.1.27/arch/sparc/kernel/
Dunaligned_64.c221 src_val = swab16(src_val); in do_int_store()
361 val_in = swab16(val_in); in kernel_unaligned_trap()
/linux-4.1.27/drivers/net/ethernet/dec/tulip/
Deeprom.c380 return (tp->flags & HAS_SWAPPED_SEEPROM) ? swab16(retval) : retval; in tulip_read_eeprom()
/linux-4.1.27/drivers/mfd/
Drtsx_usb.c186 value = swab16(addr); in rtsx_usb_ep0_write_register()
210 value = swab16(addr); in rtsx_usb_ep0_read_register()
/linux-4.1.27/drivers/net/ethernet/tehuti/
Dtehuti.h92 # define CPU_CHIP_SWAP16(x) swab16(x)
/linux-4.1.27/drivers/power/
Dds2782_battery.c98 *val = swab16(ret); in ds278x_read_reg16()
/linux-4.1.27/net/mac80211/
Dtkip.c66 return tkip_sbox[val & 0xff] ^ swab16(tkip_sbox[val >> 8]); in tkipS()
/linux-4.1.27/drivers/net/ethernet/atheros/atl1e/
Datl1e_hw.c100 *(u16 *) &eth_addr[0] = swab16(*(u16 *)&addr[1]); in atl1e_get_permanent_address()
/linux-4.1.27/arch/powerpc/kvm/
Dpowerpc.c737 case 2: gpr = swab16(*(u16 *)run->mmio.data); break; in kvmppc_complete_mmio_load()
877 case 2: *(u16 *)data = swab16(val); break; in kvmppc_handle_store()
/linux-4.1.27/drivers/infiniband/hw/nes/
Dnes_mgt.c671 nes_quad.TcpPorts[0] = swab16(nesqp->nesqp_context->tcpPorts[1]); in nes_chg_qh_handler()
672 nes_quad.TcpPorts[1] = swab16(nesqp->nesqp_context->tcpPorts[0]); in nes_chg_qh_handler()
/linux-4.1.27/drivers/usb/serial/
Dio_ti.c304 be_start_address = swab16((u16)start_address); in read_download_mem()
423 be_start_address = swab16((u16)start_address); in write_i2c_mem()
455 be_start_address = swab16((u16)start_address); in write_i2c_mem()
/linux-4.1.27/drivers/misc/
Dad525x_dpot.c217 value = swab16(value); in dpot_read_i2c()
/linux-4.1.27/drivers/net/hamradio/
Dmkiss.c498 crc = swab16(crc16(0, p, len)); in ax_encaps()
/linux-4.1.27/drivers/net/ethernet/8390/
Dmac8390.c739 hdr->count = swab16(hdr->count); in sane_get_8390_hdr()
/linux-4.1.27/drivers/net/wireless/
Dray_cs.c1697 local->stats.rx_over_errors += swab16(readw(&p->mrx_overflow)); in ray_get_stats()
1703 swab16(readw(&p->mrx_checksum_error)); in ray_get_stats()
1708 local->stats.rx_frame_errors += swab16(readw(&p->rx_hec_error)); in ray_get_stats()
/linux-4.1.27/drivers/net/ethernet/realtek/
D8139cp.c427 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)); in cp_rx_skb()
712 TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00; in cp_tx_vlan_tag()
Dr8169.c2077 TxVlanTag | swab16(skb_vlan_tag_get(skb)) : 0x00; in rtl8169_tx_vlan_tag()
2085 __vlan_hwaccel_put_tag(skb, htons(ETH_P_8021Q), swab16(opts2 & 0xffff)); in rtl8169_rx_vlan_tag()
/linux-4.1.27/drivers/net/ethernet/atheros/atlx/
Datl1.c474 *(u16 *) &eth_addr[0] = swab16(*(u16 *) &addr[1]); in atl1_get_permanent_address()
507 *(u16 *) &eth_addr[0] = swab16(*(u16 *) &addr[1]); in atl1_get_permanent_address()
522 *(u16 *) &eth_addr[0] = swab16(*(u16 *) &addr[1]); in atl1_get_permanent_address()
/linux-4.1.27/arch/tile/kernel/
Dunaligned.c951 b = swab16(x); in jit_bundle_gen()
/linux-4.1.27/sound/oss/
Dswarm_cs4297a.c1863 left = swab16(left); in cs4297a_write()
1864 right = swab16(right); in cs4297a_write()
/linux-4.1.27/drivers/media/pci/ttpci/
Dav7110_hw.c799 swab16(*(u16 *)(buf + 2 * i)), 2); in WriteText()
/linux-4.1.27/arch/x86/kernel/
Dapm_32.c1050 *life = swab16((u16)call.edx); in apm_get_power_status()
/linux-4.1.27/drivers/net/ethernet/marvell/
Dmvpp2.c1664 match = mvpp2_prs_tcam_data_cmp(pe, 0, swab16(tpid)); in mvpp2_prs_vlan_find()
1807 match = mvpp2_prs_tcam_data_cmp(pe, 0, swab16(tpid1)) in mvpp2_prs_double_vlan_find()
1808 && mvpp2_prs_tcam_data_cmp(pe, 4, swab16(tpid2)); in mvpp2_prs_double_vlan_find()
4261 if (l3_proto == swab16(ETH_P_IP)) { in mvpp2_txq_desc_csum()
/linux-4.1.27/sound/pci/ice1712/
Dice1724.c2330 ((unsigned int)swab16(vendor) << 16) | swab16(device); in snd_vt1724_read_eeprom()
Dice1712.c2305 ice->eeprom.subvendor = ((unsigned int)swab16(vendor) << 16) | swab16(device); in snd_ice1712_read_eeprom()
/linux-4.1.27/drivers/net/usb/
Dr8152.c1435 opts2 = TX_VLAN_TAG | swab16(skb_vlan_tag_get(skb)); in rtl_tx_vlan_tag()
1446 swab16(opts2 & 0xffff)); in rtl_rx_vlan_tag()
/linux-4.1.27/drivers/net/ethernet/via/
Dvia-velocity.c2099 u16 vid = swab16(le16_to_cpu(rd->rdesc1.PQTAG)); in velocity_receive_frame()
/linux-4.1.27/Documentation/scsi/
DChangeLog.lpfc153 cpu_to_be32(), use swab16((uint16_t)lun). This is the same as
154 "swab16() on LE" and "<<16 on BE".
/linux-4.1.27/drivers/scsi/qla2xxx/
Dqla_dbg.c448 ram[cnt + idx] = swab16(dump[idx]); in qla2xxx_dump_ram()
Dqla_init.c5578 wcode[i] = swab16(fwcode[i]); in qla2x00_load_risc()
Dqla_target.c4950 ctio24->u.status1.ox_id = swab16(atio->u.isp24.fcp_hdr.ox_id); in __qlt_send_busy()
/linux-4.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c3314 #define bswab16(b16) ((__force __le16) swab16((__force __u16) (b16)))
/linux-4.1.27/drivers/net/ethernet/emulex/benet/
Dbe_cmds.c3958 port_desc.nv_port = swab16(port); in be_cmd_set_vxlan_port()
Dbe_main.c2029 rxcp->vlan_tag = swab16(rxcp->vlan_tag); in be_rx_compl_get()
/linux-4.1.27/arch/x86/kvm/
Demulate.c3200 ctxt->dst.val |= (unsigned long)swab16(tmp); in em_movbe()
/linux-4.1.27/drivers/net/ethernet/broadcom/
Dcnic.c2061 swab16(~csum_ipv6_magic(&src_ip, &dst_ip, 0, IPPROTO_TCP, 0)); in cnic_init_storm_conn_bufs()
Dtg3.c14322 tp->nvram_size = swab16((u16)(val & 0x0000ffff)) * 1024; in tg3_get_nvram_size()
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2800lib.c569 crc = swab16(crc); in rt2800_check_firmware_crc()