/Linux-v4.19/drivers/net/ethernet/i825xx/ |
D | sun3_82586.c | 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() [all …]
|
/Linux-v4.19/arch/mips/boot/ |
D | elf2ecoff.c | 157 #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-v4.19/drivers/net/ethernet/cirrus/ |
D | mac89x0.c | 128 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() 383 while ((status = swab16(nubus_readw(dev->base_addr + ISQ_PORT)))) { in net_interrupt()
|
/Linux-v4.19/arch/powerpc/boot/ |
D | of.h | 30 #define cpu_to_be16(x) swab16(x) 31 #define be16_to_cpu(x) swab16(x)
|
D | swab.h | 5 static inline u16 swab16(u16 x) in swab16() function
|
/Linux-v4.19/drivers/net/wireless/st/cw1200/ |
D | cw1200_spi.c | 94 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-v4.19/arch/powerpc/kernel/ |
D | align.c | 244 data.h[0] = swab16(data.h[0]); in emulate_spe() 245 data.h[1] = swab16(data.h[1]); in emulate_spe() 246 data.h[2] = swab16(data.h[2]); in emulate_spe() 247 data.h[3] = swab16(data.h[3]); in emulate_spe()
|
/Linux-v4.19/drivers/staging/iio/cdc/ |
D | ad7152.c | 267 swab16(val)); in ad7152_write_raw() 281 swab16(val)); in ad7152_write_raw() 375 *val = swab16(ret); in ad7152_read_raw() 390 *val2 = (15625 * swab16(ret)) / 1024; in ad7152_read_raw() 399 *val = swab16(ret); in ad7152_read_raw()
|
D | ad7150.c | 112 *val = swab16(ret); in ad7150_read_raw() 119 *val = swab16(ret); in ad7150_read_raw() 186 swab16(value)); in ad7150_write_event_params()
|
/Linux-v4.19/drivers/media/i2c/ |
D | vpx3220.c | 106 if (i2c_smbus_write_word_data(client, 0x27, swab16(fpaddr)) == -1) { in vpx3220_fp_write() 115 if (i2c_smbus_write_word_data(client, 0x28, swab16(data)) == -1) { in vpx3220_fp_write() 129 if (i2c_smbus_write_word_data(client, 0x26, swab16(fpaddr)) == -1) { in vpx3220_fp_read() 144 return swab16(data); in vpx3220_fp_read()
|
D | uda1342.c | 25 i2c_smbus_write_word_data(client, reg, swab16(value)); in write_reg()
|
D | mt9t112.c | 156 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-v4.19/drivers/ssb/ |
D | sprom.c | 30 "%04X", swab16(sprom[i]) & 0xFFFF); in sprom2hex() 60 sprom[cnt++] = swab16((u16)parsed); in hex2sprom()
|
/Linux-v4.19/arch/arm/vdso/ |
D | vdsomunge.c | 61 #define swab16(x) \ macro 121 return swap ? swab16(half) : half; in read_elf_half()
|
/Linux-v4.19/include/linux/ |
D | swab.h | 7 # define swab16 __swab16 macro
|
/Linux-v4.19/drivers/net/ethernet/qlogic/qed/ |
D | qed_iscsi.c | 361 p_tcp->local_mac_addr_hi = swab16(get_unaligned(p)); in qed_sp_iscsi_conn_offload() 362 p_tcp->local_mac_addr_mid = swab16(get_unaligned(p + 1)); in qed_sp_iscsi_conn_offload() 363 p_tcp->local_mac_addr_lo = swab16(get_unaligned(p + 2)); in qed_sp_iscsi_conn_offload() 366 p_tcp->remote_mac_addr_hi = swab16(get_unaligned(p)); in qed_sp_iscsi_conn_offload() 367 p_tcp->remote_mac_addr_mid = swab16(get_unaligned(p + 1)); in qed_sp_iscsi_conn_offload() 368 p_tcp->remote_mac_addr_lo = swab16(get_unaligned(p + 2)); in qed_sp_iscsi_conn_offload() 427 p_tcp2->local_mac_addr_hi = swab16(get_unaligned(p)); in qed_sp_iscsi_conn_offload() 428 p_tcp2->local_mac_addr_mid = swab16(get_unaligned(p + 1)); in qed_sp_iscsi_conn_offload() 429 p_tcp2->local_mac_addr_lo = swab16(get_unaligned(p + 2)); in qed_sp_iscsi_conn_offload() 432 p_tcp2->remote_mac_addr_hi = swab16(get_unaligned(p)); in qed_sp_iscsi_conn_offload() [all …]
|
/Linux-v4.19/sound/pcmcia/pdaudiocf/ |
D | pdaudiocf_irq.c | 98 *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-v4.19/drivers/gpu/drm/tinydrm/core/ |
D | tinydrm-helpers.c | 163 *dst++ = swab16(*src++); in tinydrm_swab16() 205 *dst++ = swab16(val16); in tinydrm_xrgb8888_to_rgb565() 431 swap_buf[i] = swab16(buf16[i]); in tinydrm_spi_transfer()
|
/Linux-v4.19/drivers/media/usb/em28xx/ |
D | em28xx-camera.c | 112 id = swab16(ret); /* LE -> BE */ in em28xx_probe_sensor_micron() 122 if (id != swab16(ret)) in em28xx_probe_sensor_micron()
|
/Linux-v4.19/lib/ |
D | iomap.c | 63 #define pio_read16be(port) swab16(inw(port)) 104 #define pio_write16be(val,port) outw(swab16(val),port)
|
/Linux-v4.19/sound/core/oss/ |
D | mulaw.c | 161 sample = swab16(sample); in cvt_s16_to_native() 209 sample = swab16(sample); in cvt_native_to_s16()
|
/Linux-v4.19/arch/parisc/lib/ |
D | checksum.c | 94 result = swab16(result); in do_csum()
|
/Linux-v4.19/arch/arm/include/asm/ |
D | opcodes.h | 92 #define ___opcode_swab16(x) swab16(x)
|
/Linux-v4.19/drivers/media/i2c/soc_camera/ |
D | mt9t112.c | 154 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()
|
/Linux-v4.19/arch/powerpc/platforms/44x/ |
D | warp.c | 261 s16 temp = swab16(val); in pika_dtm_thread()
|