Home
last modified time | relevance | path

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

123

/rk3399_rockchip-uboot/drivers/serial/
H A Dusbtty.c110 .bcdUSB = cpu_to_le16(USB_BCD_VERSION),
114 .idVendor = cpu_to_le16(CONFIG_USBD_VENDORID),
115 .bcdDevice = cpu_to_le16(USBTTY_BCD_DEVICE),
127 .bcdUSB = cpu_to_le16(USB_BCD_VERSION),
164 cpu_to_le16(sizeof(struct acm_config_desc)),
190 .bcdCDC = cpu_to_le16(110),
222 = cpu_to_le16(CONFIG_USBD_SERIAL_INT_PKTSIZE),
249 cpu_to_le16(CONFIG_USBD_SERIAL_BULK_PKTSIZE),
260 cpu_to_le16(CONFIG_USBD_SERIAL_BULK_PKTSIZE),
295 cpu_to_le16(sizeof(struct gserial_config_desc)),
[all …]
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dstorage_common.c449 .wMaxPacketSize = cpu_to_le16(2),
489 .wMaxPacketSize = cpu_to_le16(512),
499 .wMaxPacketSize = cpu_to_le16(512),
512 .wMaxPacketSize = cpu_to_le16(2),
544 .wMaxPacketSize = cpu_to_le16(1024),
561 .wMaxPacketSize = cpu_to_le16(1024),
H A Dcomposite.c23 var->val = cpu_to_le16(le16_to_cpu(var->val) + val); in le16_add_cpu_packed()
227 c->wTotalLength = cpu_to_le16(len); in config_buf()
527 language = cpu_to_le16(s->language); in collect_langs()
736 bos->wTotalLength = cpu_to_le16(USB_DT_BOS_SIZE); in bos_desc()
743 bos->wTotalLength = cpu_to_le16(bos->wTotalLength + in bos_desc()
775 ss_cap->wSpeedSupported = cpu_to_le16(USB_FULL_SPEED_OPERATION | in bos_desc()
780 ss_cap->bU2DevExitLat = cpu_to_le16(USB_DEFAULT_U2_DEV_EXIT_LAT); in bos_desc()
844 cdev->desc.bcdUSB = cpu_to_le16(0x0301); in composite_setup()
846 cdev->desc.bcdUSB = cpu_to_le16(0x0300); in composite_setup()
848 cdev->desc.bcdUSB = cpu_to_le16(0x0300); in composite_setup()
H 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 …]
H A Dep0.c238 …dbg_ep0(0, "attempt to copy %d bytes to urb\n",cpu_to_le16(configuration_descriptor->wTotalLength)… in ep0_get_descriptor()
241 cpu_to_le16(configuration_descriptor->wTotalLength), in ep0_get_descriptor()
H A Df_rockusb.c88 dev->bcdUSB = cpu_to_le16(0x0200); in g_dnl_bind_fixup()
90 dev->bcdUSB = cpu_to_le16(0x0201); in g_dnl_bind_fixup()
98 dev->idVendor = cpu_to_le16(0x2207); in g_dnl_bind_fixup()
99 dev->idProduct = cpu_to_le16(0x0107); in g_dnl_bind_fixup()
101 dev->idVendor = cpu_to_le16(0x2207); in g_dnl_bind_fixup()
102 dev->idProduct = cpu_to_le16(0x0010); in g_dnl_bind_fixup()
/rk3399_rockchip-uboot/include/
H A Dcompiler.h91 # define cpu_to_le16(x) (x) macro
104 # define cpu_to_le16(x) uswap_16(x) macro
H A Dzfs_common.h40 : cpu_to_le16(x))
/rk3399_rockchip-uboot/drivers/ata/
H A Dsata_sil.c215 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_cmd_identify_device()
216 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_cmd_identify_device()
252 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_SRST); in sil_cmd_soft_reset()
278 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_sata_rw_cmd()
283 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE); in sil_sata_rw_cmd()
286 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_sata_rw_cmd()
323 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_sata_rw_cmd_ext()
328 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE); in sil_sata_rw_cmd_ext()
331 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_sata_rw_cmd_ext()
/rk3399_rockchip-uboot/drivers/nvme/
H A Dnvme.c141 return cpu_to_le16((cmdid < USHRT_MAX) ? cmdid++ : 0); in nvme_get_cmd_id()
285 c.delete_queue.qid = cpu_to_le16(id); in nvme_delete_queue()
427 c.create_cq.cqid = cpu_to_le16(qid); in nvme_alloc_cq()
428 c.create_cq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_cq()
429 c.create_cq.cq_flags = cpu_to_le16(flags); in nvme_alloc_cq()
430 c.create_cq.irq_vector = cpu_to_le16(nvmeq->cq_vector); in nvme_alloc_cq()
444 c.create_sq.sqid = cpu_to_le16(qid); in nvme_alloc_sq()
445 c.create_sq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_sq()
446 c.create_sq.sq_flags = cpu_to_le16(flags); in nvme_alloc_sq()
447 c.create_sq.cqid = cpu_to_le16(qid); in nvme_alloc_sq()
[all …]
/rk3399_rockchip-uboot/fs/fat/
H A Dfat_write.c421 ((__u16 *) mydata->fatbuf)[offset] = cpu_to_le16(entry_value); in set_fatent_value()
428 val1 = cpu_to_le16(entry_value) & 0xfff; in set_fatent_value()
433 val1 = cpu_to_le16(entry_value) & 0xf; in set_fatent_value()
434 val2 = (cpu_to_le16(entry_value) >> 4) & 0xff; in set_fatent_value()
443 val1 = cpu_to_le16(entry_value) & 0xff; in set_fatent_value()
444 val2 = (cpu_to_le16(entry_value) >> 8) & 0xf; in set_fatent_value()
453 val1 = cpu_to_le16(entry_value) & 0xfff; in set_fatent_value()
725 cpu_to_le16((start_cluster & 0xffff0000) >> 16); in set_start_cluster()
726 dentptr->start = cpu_to_le16(start_cluster & 0xffff); in set_start_cluster()
/rk3399_rockchip-uboot/drivers/misc/
H A Datsha204a-i2c.c145 return cpu_to_le16(crc); in atsha204a_crc16()
307 *crc_ptr = cpu_to_le16(computed_crc); in atsha204a_req_crc32()
325 req.param2 = cpu_to_le16(addr); in atsha204a_read()
/rk3399_rockchip-uboot/drivers/video/
H A Ds6e63d6.c26 u32 buf16 = cpu_to_le16(word); in send_word()
/rk3399_rockchip-uboot/tools/
H A Dsocfpgaimage.c82 header.length_u32 = cpu_to_le16(length_bytes/4); in build_header()
84 header.checksum = cpu_to_le16(hdr_checksum(&header)); in build_header()
/rk3399_rockchip-uboot/lib/
H A Duuid.c172 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
175 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
/rk3399_rockchip-uboot/arch/mips/include/asm/mach-generic/
H A Dmangle-port.h42 # define __mem_ioswabw(a, x) cpu_to_le16(x)
/rk3399_rockchip-uboot/include/linux/unaligned/
H A Daccess_ok.h38 *((__le16 *)p) = cpu_to_le16(val); in put_unaligned_le16()
/rk3399_rockchip-uboot/drivers/net/
H A Dpcnet.c354 uc->init_block.mode = cpu_to_le16(0x0000); in pcnet_init()
365 uc->rx_ring[i].buf_length = cpu_to_le16(-PKT_BUF_SZ); in pcnet_init()
366 uc->rx_ring[i].status = cpu_to_le16(0x8000); in pcnet_init()
393 uc->init_block.tlen_rlen = cpu_to_le16(TX_RING_LEN_BITS | in pcnet_init()
H A Deepro100.c242 *(volatile u16 *)((addr + (u_long)dev->iobase)) = cpu_to_le16(command); in OUTW()
525 cfg_cmd->command = cpu_to_le16 ((CONFIG_SYS_CMD_SUSPEND | CONFIG_SYS_CMD_CONFIGURE)); in eepro100_init()
561 ias_cmd->command = cpu_to_le16 ((CONFIG_SYS_CMD_SUSPEND | CONFIG_SYS_CMD_IAS)); in eepro100_init()
611 tx_ring[tx_cur].command = cpu_to_le16 ( TxCB_CMD_TRANSMIT | in eepro100_send()
689 rx_ring[rx_next].control = cpu_to_le16 (RFD_CONTROL_S); in eepro100_recv()
880 (i == NUM_RX_DESC - 1) ? cpu_to_le16 (RFD_CONTROL_S) : 0; in init_rx_ring()
H 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()
/rk3399_rockchip-uboot/fs/ext4/
H A Dext4_common.c68 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_free_blocks_dec()
79 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_dec()
81 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_dec()
92 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_dec()
94 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_dec()
105 bg->bg_itable_unused = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_itable_unused_dec()
107 bg->bg_itable_unused_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_itable_unused_dec()
120 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_set_free_blocks()
150 bg->bg_flags = cpu_to_le16(flags); in ext4fs_bg_set_flags()
467 dir->direntlen = cpu_to_le16(dentry_length); in check_void_in_dentry()
[all …]
H A Dext4_write.c49 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_inc()
51 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_inc()
62 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_inc()
64 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_inc()
81 bgd->bg_checksum = cpu_to_le16(ext4fs_checksum_update(i)); in ext4fs_update()
913 file_inode->mode = cpu_to_le16(S_IFREG | S_IRWXU | in ext4fs_write()
919 file_inode->nlinks = cpu_to_le16(1); in ext4fs_write()
/rk3399_rockchip-uboot/include/linux/byteorder/
H A Dgeneric.h91 #define cpu_to_le16 __cpu_to_le16 macro
/rk3399_rockchip-uboot/drivers/usb/host/
H A Dr8a66597-hcd.c583 wValue = cpu_to_le16 (cmd->value); in r8a66597_submit_rh_msg()
584 wLength = cpu_to_le16 (cmd->length); in r8a66597_submit_rh_msg()
588 *(__u16 *)buffer = cpu_to_le16(1); in r8a66597_submit_rh_msg()
592 *(__u16 *)buffer = cpu_to_le16(0); in r8a66597_submit_rh_msg()
596 *(__u16 *)buffer = cpu_to_le16(0); in r8a66597_submit_rh_msg()
/rk3399_rockchip-uboot/arch/x86/cpu/qemu/
H A Dqemu.c40 outw(cpu_to_le16(entry), FW_CONTROL_PORT); in qemu_x86_fwcfg_read_entry_pio()

123