Searched refs:cpu_to_be16 (Results 1 - 23 of 23) sorted by relevance

/u-boot/drivers/misc/
H A Dqfw_sandbox.c86 file->select = cpu_to_be16(FW_CFG_FILE_FIRST);
92 file->select = cpu_to_be16(FW_CFG_FILE_FIRST + 1);
H A Dqfw_mmio.c49 plat->mmio->selector = cpu_to_be16(entry);
/u-boot/drivers/mmc/
H A Drpmb.c181 rpmb_frame->request = cpu_to_be16(RPMB_REQ_STATUS);
239 rpmb_frame->request = cpu_to_be16(RPMB_REQ_WCOUNTER);
256 rpmb_frame->request = cpu_to_be16(RPMB_REQ_KEY);
274 rpmb_frame->address = cpu_to_be16(blk + i);
275 rpmb_frame->request = cpu_to_be16(RPMB_REQ_READ_DATA);
314 rpmb_frame->address = cpu_to_be16(blk + i);
315 rpmb_frame->block_count = cpu_to_be16(1);
317 rpmb_frame->request = cpu_to_be16(RPMB_REQ_WRITE_DATA);
390 rsp->request = cpu_to_be16(RPMB_REQ_STATUS);
H A Dmmc_spi.c257 crc = cpu_to_be16(crc16_ccitt(0, (u8 *)buf, bsize));
/u-boot/include/linux/byteorder/
H A Dgeneric.h96 #define cpu_to_be16 __cpu_to_be16 macro
178 *var = cpu_to_be16(be16_to_cpu(*var) + val);
/u-boot/include/
H A Dcompiler.h104 # define cpu_to_be16(x) uswap_16(x) macro
117 # define cpu_to_be16(x) (x) macro
H A Dzfs_common.h41 #define cpu_to_zfs16(x, a) (((a) == BIG_ENDIAN) ? cpu_to_be16(x) \
H A Dvirtio.h387 return (__force __virtio16)cpu_to_be16(val);
/u-boot/include/asm-generic/
H A Dunaligned.h67 __put_unaligned_t(__be16, cpu_to_be16(val), p);
/u-boot/lib/
H A Duuid.c281 tmp16 = cpu_to_be16(hextoul(uuid_str + 9, NULL));
284 tmp16 = cpu_to_be16(hextoul(uuid_str + 14, NULL));
297 tmp16 = cpu_to_be16(hextoul(uuid_str + 19, NULL));
/u-boot/cmd/
H A Dtlv_eeprom.c145 eeprom_hdr->totallen = cpu_to_be16(0);
365 eeprom_hdr->totallen = cpu_to_be16(totallen + ENT_SIZE + 4);
497 eeprom_hdr->totallen = cpu_to_be16(0);
610 cpu_to_be16(be16_to_cpu(eeprom_hdr->totallen) -
701 cpu_to_be16(be16_to_cpu(eeprom_hdr->totallen) -
711 eeprom_hdr->totallen = cpu_to_be16(be16_to_cpu(eeprom_hdr->totallen) +
/u-boot/tools/
H A Dimximage.c199 d->write_dcd_command.length = cpu_to_be16(4);
208 d->write_dcd_command.length = cpu_to_be16(4);
217 d->write_dcd_command.length = cpu_to_be16(4);
226 d->write_dcd_command.length = cpu_to_be16(4);
232 d->write_dcd_command.length = cpu_to_be16(4);
257 d->write_dcd_command.length = cpu_to_be16((off << 3) + 4);
298 dcd_v2->header.length = cpu_to_be16(len);
338 fhdr_v2->header.length = cpu_to_be16(sizeof(flash_header_v2_t));
408 cpu_to_be16(sizeof(flash_header_v2_t));
H A Dimx8mimage.c556 cpu_to_be16(sizeof(flash_header_v2_t));
/u-boot/drivers/spi/
H A Dbcm63xx_hsspi.c309 writew(cpu_to_be16(opcode | (curr_step & HSSPI_FIFO_OP_BYTES_MASK)),
458 writew(cpu_to_be16(val),
H A Dbcmbca_hsspi.c269 writew(cpu_to_be16(opcode | (curr_step & HSSPI_FIFO_OP_BYTES_MASK)),
/u-boot/drivers/led/
H A Dled_lp5562.c168 prog_be[cmd] = cpu_to_be16(program[cmd]);
/u-boot/drivers/mtd/ubi/
H A Dfastmap.c1174 fmpl->size = cpu_to_be16(ubi->fm_pool.size);
1175 fmpl->max_size = cpu_to_be16(ubi->fm_pool.max_size);
1185 fmpl_wl->size = cpu_to_be16(ubi->fm_wl_pool.size);
1186 fmpl_wl->max_size = cpu_to_be16(ubi->fm_wl_pool.max_size);
H A Dvtbl.c147 vtbl_rec->name_len = cpu_to_be16(re->new_name_len);
H A Dvmt.c298 vtbl_rec.name_len = cpu_to_be16(vol->name_len);
/u-boot/arch/powerpc/include/asm/
H A Dio.h311 __raw_writew(cpu_to_be16((val)), (__force unsigned *)(addr))
/u-boot/arch/mips/include/asm/
H A Dio.h399 __raw_writew(cpu_to_be16((val)), (__force unsigned *)(addr))
/u-boot/drivers/usb/host/
H A Dohci-hcd.c76 # define m16_swap(x) cpu_to_be16(x)
/u-boot/drivers/ufs/
H A Dufs.c1113 request->upiu_req.length = cpu_to_be16(*buf_len);

Completed in 236 milliseconds