Home
last modified time | relevance | path

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

123

/linux-5.19.10/drivers/net/ethernet/i825xx/
Dsun3_82586.c65 #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()
[all …]
/linux-5.19.10/arch/mips/boot/
Delf2ecoff.c157 #define swab16(x) \ macro
171 e->e_type = swab16(e->e_type); in convert_elf_hdr()
172 e->e_machine = swab16(e->e_machine); in convert_elf_hdr()
178 e->e_ehsize = swab16(e->e_ehsize); in convert_elf_hdr()
179 e->e_phentsize = swab16(e->e_phentsize); in convert_elf_hdr()
180 e->e_phnum = swab16(e->e_phnum); in convert_elf_hdr()
181 e->e_shentsize = swab16(e->e_shentsize); in convert_elf_hdr()
182 e->e_shnum = swab16(e->e_shnum); in convert_elf_hdr()
183 e->e_shstrndx = swab16(e->e_shstrndx); in convert_elf_hdr()
223 f->f_magic = swab16(f->f_magic); in convert_ecoff_filehdr()
[all …]
/linux-5.19.10/drivers/net/ethernet/cirrus/
Dmac89x0.c128 nubus_writew(swab16(portno), dev->base_addr + ADD_PORT); in readreg_io()
129 return swab16(nubus_readw(dev->base_addr + DATA_PORT)); in readreg_io()
135 nubus_writew(swab16(portno), dev->base_addr + ADD_PORT); in writereg_io()
136 nubus_writew(swab16(value), dev->base_addr + DATA_PORT); in writereg_io()
143 return swab16(nubus_readw(dev->mem_start + portno)); in readreg()
149 nubus_writew(swab16(value), dev->mem_start + portno); in writereg()
201 if (sig != swab16(CHIP_EISA_ID_SIG)) in mac89x0_device_probe()
386 while ((status = swab16(nubus_readw(dev->base_addr + ISQ_PORT)))) { in net_interrupt()
/linux-5.19.10/arch/powerpc/boot/
Dof.h30 #define cpu_to_be16(x) swab16(x)
31 #define be16_to_cpu(x) swab16(x)
Dswab.h5 static inline u16 swab16(u16 x) in swab16() function
/linux-5.19.10/drivers/net/wireless/st/cw1200/
Dcw1200_spi.c91 regaddr = swab16(regaddr); in cw1200_spi_memcpy_fromio()
117 buf[i] = swab16(buf[i]); in cw1200_spi_memcpy_fromio()
158 regaddr = swab16(regaddr); in cw1200_spi_memcpy_toio()
160 buf[i] = swab16(buf[i]); in cw1200_spi_memcpy_toio()
189 buf[i] = swab16(buf[i]); in cw1200_spi_memcpy_toio()
/linux-5.19.10/arch/powerpc/kernel/
Dalign.c238 data.h[0] = swab16(data.h[0]); in emulate_spe()
239 data.h[1] = swab16(data.h[1]); in emulate_spe()
240 data.h[2] = swab16(data.h[2]); in emulate_spe()
241 data.h[3] = swab16(data.h[3]); in emulate_spe()
/linux-5.19.10/arch/m68k/include/asm/
Dio_no.h70 return swab16(__raw_readw(addr)); in readw()
87 __raw_writew(swab16(value), addr); in writew()
/linux-5.19.10/lib/
Diomap.c63 #define pio_read16be(port) swab16(inw(port))
68 #define mmio_read16be(addr) swab16(readw(addr))
179 #define pio_write16be(val,port) outw(swab16(val),port)
184 #define mmio_write16be(val,port) writew(swab16(val),port)
/linux-5.19.10/drivers/media/i2c/
Dvpx3220.c97 if (i2c_smbus_write_word_data(client, 0x27, swab16(fpaddr)) == -1) { in vpx3220_fp_write()
106 if (i2c_smbus_write_word_data(client, 0x28, swab16(data)) == -1) { in vpx3220_fp_write()
120 if (i2c_smbus_write_word_data(client, 0x26, swab16(fpaddr)) == -1) { in vpx3220_fp_read()
135 return swab16(data); in vpx3220_fp_read()
Duda1342.c17 i2c_smbus_write_word_data(client, reg, swab16(value)); in write_reg()
Dmt9t112.c156 command = swab16(command); in __mt9t112_reg_read()
178 return swab16(ret); in __mt9t112_reg_read()
188 command = swab16(command); in __mt9t112_reg_write()
189 data = swab16(data); in __mt9t112_reg_write()
/linux-5.19.10/drivers/ssb/
Dsprom.c30 "%04X", swab16(sprom[i]) & 0xFFFF); in sprom2hex()
60 sprom[cnt++] = swab16((u16)parsed); in hex2sprom()
/linux-5.19.10/arch/arm/vdso/
Dvdsomunge.c48 #define swab16(x) \ macro
108 return swap ? swab16(half) : half; in read_elf_half()
/linux-5.19.10/include/linux/
Dswab.h7 # define swab16 __swab16 macro
/linux-5.19.10/drivers/net/wireless/ath/ath9k/
Dath9k_pci_owl_loader.c57 if (*cal_data != swab16(AR5416_EEPROM_MAGIC)) { in ath9k_pci_fixup()
93 reg = swab16(reg); in ath9k_pci_fixup()
/linux-5.19.10/sound/pcmcia/pdaudiocf/
Dpdaudiocf_irq.c85 *dst++ = swab16(inw(rdp_port) ^ xor); in pdacf_transfer_mono16sw()
105 *dst++ = swab16(inw(rdp_port) ^ xor); in pdacf_transfer_stereo16sw()
106 *dst++ = swab16(inw(rdp_port) ^ xor); in pdacf_transfer_stereo16sw()
/linux-5.19.10/drivers/media/usb/em28xx/
Dem28xx-camera.c112 id = swab16(ret); /* LE -> BE */ in em28xx_probe_sensor_micron()
122 if (id != swab16(ret)) in em28xx_probe_sensor_micron()
/linux-5.19.10/arch/parisc/lib/
Dchecksum.c90 result = swab16(result); in do_csum()
/linux-5.19.10/sound/core/oss/
Dmulaw.c161 sample = swab16(sample); in cvt_s16_to_native()
209 sample = swab16(sample); in cvt_native_to_s16()
/linux-5.19.10/arch/arm/include/asm/
Dopcodes.h89 #define ___opcode_swab16(x) swab16(x)
/linux-5.19.10/drivers/leds/simple/
Dsimatic-ipc-leds.c132 ipcled->value = swab16(ipcled->value); in simatic_ipc_leds_probe()
/linux-5.19.10/arch/alpha/include/asm/
Dio.h492 #define ioread16be(p) swab16(ioread16(p))
494 #define iowrite16be(v,p) iowrite16(swab16(v), (p))
/linux-5.19.10/arch/powerpc/platforms/44x/
Dwarp.c255 s16 temp = swab16(val); in pika_dtm_thread()
/linux-5.19.10/drivers/gpu/drm/
Ddrm_format_helper.c198 *dbuf16++ = swab16(*sbuf16++); in drm_fb_swab16_line()
306 dbuf16[x] = swab16(val16); in drm_fb_xrgb8888_to_rgb565_swab_line()

123