Home
last modified time | relevance | path

Searched refs:cpu_to_le16 (Results 1 – 25 of 66) sorted by relevance

123

/u-boot/drivers/serial/
A Dusbtty.c111 .bcdUSB = cpu_to_le16(USB_BCD_VERSION),
115 .idVendor = cpu_to_le16(CONFIG_USBD_VENDORID),
116 .bcdDevice = cpu_to_le16(USBTTY_BCD_DEVICE),
128 .bcdUSB = cpu_to_le16(USB_BCD_VERSION),
165 cpu_to_le16(sizeof(struct acm_config_desc)),
191 .bcdCDC = cpu_to_le16(110),
329 cpu_to_le16(CONFIG_USBD_SERIAL_OUT_PKTSIZE),
339 cpu_to_le16(CONFIG_USBD_SERIAL_IN_PKTSIZE),
349 cpu_to_le16(CONFIG_USBD_SERIAL_INT_PKTSIZE),
756 cpu_to_le16(CONFIG_USBD_PRODUCTID_CDCACM); in usbtty_init_terminal_type()
[all …]
/u-boot/include/
A Dcompiler.h95 # define cpu_to_le16(x) (x) macro
108 # define cpu_to_le16(x) uswap_16(x) macro
A Dzfs_common.h42 : cpu_to_le16(x))
/u-boot/drivers/usb/gadget/
A Dstorage_common.c446 .wMaxPacketSize = cpu_to_le16(2),
486 .wMaxPacketSize = cpu_to_le16(512),
496 .wMaxPacketSize = cpu_to_le16(512),
509 .wMaxPacketSize = cpu_to_le16(2),
A Df_fastboot.c80 .wMaxPacketSize = cpu_to_le16(64),
88 .wMaxPacketSize = cpu_to_le16(64),
96 .wMaxPacketSize = cpu_to_le16(512),
104 .wMaxPacketSize = cpu_to_le16(512),
137 .wMaxPacketSize = cpu_to_le16(1024),
145 .wMaxPacketSize = cpu_to_le16(1024),
A Datmel_usba_udc.c524 .wMaxPacketSize = cpu_to_le16(64),
695 if (crq->wValue == cpu_to_le16(USB_DEVICE_REMOTE_WAKEUP)) in feature_is_dev_remote_wakeup()
702 if (crq->wValue == cpu_to_le16(USB_DEVICE_TEST_MODE)) in feature_is_dev_test_mode()
709 if (crq->wValue == cpu_to_le16(USB_ENDPOINT_HALT)) in feature_is_ep_halt()
724 status = cpu_to_le16(udc->devstatus); in handle_ep0_setup()
727 status = cpu_to_le16(0); in handle_ep0_setup()
738 status |= cpu_to_le16(1); in handle_ep0_setup()
744 if (crq->wLength != cpu_to_le16(sizeof(status))) in handle_ep0_setup()
763 if (crq->wLength != cpu_to_le16(0) || in handle_ep0_setup()
797 if (crq->wLength != cpu_to_le16(0) || in handle_ep0_setup()
[all …]
A Dcomposite.c30 var->val = cpu_to_le16(le16_to_cpu(var->val) + val); in le16_add_cpu_packed()
245 c->wTotalLength = cpu_to_le16(len); in config_buf()
576 language = cpu_to_le16(s->language); in collect_langs()
795 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE); in bos_desc()
828 cpu_to_le16(USB_LOW_SPEED_OPERATION | in bos_desc()
842 cpu_to_le16(USB_DEFAULT_U2_DEV_EXIT_LAT); in bos_desc()
1051 cdev->desc.bcdUSB = cpu_to_le16(0x0310); in composite_setup()
1054 cdev->desc.bcdUSB = cpu_to_le16(0x0200); in composite_setup()
A Dmax3420_udc.c494 .wMaxPacketSize = cpu_to_le16(EP_MAX_PACKET),
521 status = cpu_to_le16(status); in max3420_getstatus()
573 udc->setup.wValue = cpu_to_le16(setup.wValue); in max3420_handle_setup()
574 udc->setup.wIndex = cpu_to_le16(setup.wIndex); in max3420_handle_setup()
575 udc->setup.wLength = cpu_to_le16(setup.wLength); in max3420_handle_setup()
/u-boot/drivers/nvme/
A Dnvme.c144 return cpu_to_le16((cmdid < USHRT_MAX) ? cmdid++ : 0); in nvme_get_cmd_id()
288 c.delete_queue.qid = cpu_to_le16(id); in nvme_delete_queue()
428 c.create_cq.cqid = cpu_to_le16(qid); in nvme_alloc_cq()
429 c.create_cq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_cq()
430 c.create_cq.cq_flags = cpu_to_le16(flags); in nvme_alloc_cq()
431 c.create_cq.irq_vector = cpu_to_le16(nvmeq->cq_vector); in nvme_alloc_cq()
445 c.create_sq.sqid = cpu_to_le16(qid); in nvme_alloc_sq()
446 c.create_sq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_sq()
447 c.create_sq.sq_flags = cpu_to_le16(flags); in nvme_alloc_sq()
448 c.create_sq.cqid = cpu_to_le16(qid); in nvme_alloc_sq()
[all …]
/u-boot/include/linux/byteorder/
A Dgeneric.h90 #define cpu_to_le16 __cpu_to_le16 macro
146 *var = cpu_to_le16(le16_to_cpu(*var) + val); in le16_add_cpu()
/u-boot/tools/
A Dsocfpgaimage.c141 .length_u32 = cpu_to_le16(length_bytes / 4), in sfp_build_header()
149 .header_u8 = cpu_to_le16(sizeof(header_v1)), in sfp_build_header()
160 header_v0.checksum = cpu_to_le16(csum); in sfp_build_header()
164 header_v1.checksum = cpu_to_le16(csum); in sfp_build_header()
A Drkcommon.c229 hdr->init_offset = cpu_to_le16(RK_INIT_OFFSET); in rkcommon_set_header0()
230 hdr->init_size = cpu_to_le16(spl_params.init_size / RK_BLK_SIZE); in rkcommon_set_header0()
244 hdr->init_boot_size = cpu_to_le16(init_boot_size / RK_BLK_SIZE); in rkcommon_set_header0()
/u-boot/drivers/misc/
A Datsha204a-i2c.c149 return cpu_to_le16(crc); in atsha204a_crc16()
311 *crc_ptr = cpu_to_le16(computed_crc); in atsha204a_req_crc32()
329 req.param2 = cpu_to_le16(addr); in atsha204a_read()
/u-boot/drivers/ata/
A Dsata_sil.c258 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_cmd_identify_device()
259 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_cmd_identify_device()
294 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_SRST); in sil_cmd_soft_reset()
319 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_sata_rw_cmd()
324 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE); in sil_sata_rw_cmd()
327 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_sata_rw_cmd()
363 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_sata_rw_cmd_ext()
368 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE); in sil_sata_rw_cmd_ext()
371 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_sata_rw_cmd_ext()
/u-boot/arch/mips/include/asm/mach-generic/
A Dmangle-port.h41 # define __mem_ioswabw(a, x) cpu_to_le16(x)
/u-boot/include/linux/unaligned/
A Daccess_ok.h38 *((__le16 *)p) = cpu_to_le16(val); in put_unaligned_le16()
/u-boot/lib/
A Duuid.c179 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
182 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
/u-boot/fs/ext4/
A Dext4_write.c52 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_inc()
54 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_inc()
65 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_inc()
67 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_inc()
84 bgd->bg_checksum = cpu_to_le16(ext4fs_checksum_update(i)); in ext4fs_update()
944 file_inode->mode = cpu_to_le16(S_IFLNK | S_IRWXU | S_IRWXG | in ext4fs_write()
951 file_inode->mode = cpu_to_le16(S_IFREG | S_IRWXU | S_IRGRP | in ext4fs_write()
958 file_inode->nlinks = cpu_to_le16(1); in ext4fs_write()
A Dext4_common.c69 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_free_blocks_dec()
80 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_dec()
82 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_dec()
93 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_dec()
95 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_dec()
121 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_set_free_blocks()
151 bg->bg_flags = cpu_to_le16(flags); in ext4fs_bg_set_flags()
468 dir->direntlen = cpu_to_le16(dentry_length); in check_void_in_dentry()
542 dir->direntlen = cpu_to_le16(used_len); in ext4fs_update_parent_dentry()
609 dir->direntlen = cpu_to_le16(sizeof_void_space); in ext4fs_update_parent_dentry()
[all …]
/u-boot/drivers/net/
A Deepro100.c238 writew(cpu_to_le16(command), addr + priv->iobase); in OUTW()
368 cpu_to_le16 (RFD_CONTROL_S) : 0; in init_rx_ring()
595 cfg_cmd->command = cpu_to_le16(CONFIG_SYS_CMD_SUSPEND | in eepro100_init_common()
616 ias_cmd->command = cpu_to_le16(CONFIG_SYS_CMD_SUSPEND | in eepro100_init_common()
654 desc->command = cpu_to_le16(TXCB_CMD_TRANSMIT | TXCB_CMD_SF | in eepro100_send_common()
720 desc->control = cpu_to_le16(RFD_CONTROL_S); in eepro100_free_pkt_common()
A Dax88180.h367 writew(cpu_to_le16(command), addr + (void *)dev->iobase); in OUTW()
377 writew(cpu_to_le16(data), TXBUFFER_START + (void *)dev->iobase); in WRITE_TXBUF()
A Dpcnet.c250 uc->init_block.mode = cpu_to_le16(0x0000); in pcnet_init_common()
261 uc->rx_ring[i].buf_length = cpu_to_le16(-PKT_BUF_SZ); in pcnet_init_common()
262 uc->rx_ring[i].status = cpu_to_le16(0x8000); in pcnet_init_common()
289 uc->init_block.tlen_rlen = cpu_to_le16(TX_RING_LEN_BITS | in pcnet_init_common()
/u-boot/arch/x86/cpu/qemu/
A Dqemu.c41 outw(cpu_to_le16(entry), FW_CONTROL_PORT); in qemu_x86_fwcfg_read_entry_pio()
/u-boot/fs/fat/
A Dfat_write.c491 ((__u16 *) mydata->fatbuf)[offset] = cpu_to_le16(entry_value); in set_fatent_value()
498 val1 = cpu_to_le16(entry_value) & 0xfff; in set_fatent_value()
503 val1 = cpu_to_le16(entry_value) & 0xf; in set_fatent_value()
504 val2 = (cpu_to_le16(entry_value) >> 4) & 0xff; in set_fatent_value()
513 val1 = cpu_to_le16(entry_value) & 0xff; in set_fatent_value()
514 val2 = (cpu_to_le16(entry_value) >> 8) & 0xf; in set_fatent_value()
523 val1 = cpu_to_le16(entry_value) & 0xfff; in set_fatent_value()
889 cpu_to_le16((start_cluster & 0xffff0000) >> 16); in set_start_cluster()
890 dentptr->start = cpu_to_le16(start_cluster & 0xffff); in set_start_cluster()
/u-boot/drivers/usb/host/
A Dr8a66597-hcd.c585 wValue = cpu_to_le16 (cmd->value); in r8a66597_submit_rh_msg()
586 wLength = cpu_to_le16 (cmd->length); in r8a66597_submit_rh_msg()
590 *(__u16 *)buffer = cpu_to_le16(1); in r8a66597_submit_rh_msg()
594 *(__u16 *)buffer = cpu_to_le16(0); in r8a66597_submit_rh_msg()
598 *(__u16 *)buffer = cpu_to_le16(0); in r8a66597_submit_rh_msg()

Completed in 41 milliseconds

123