Home
last modified time | relevance | path

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

123

/external/u-boot/drivers/serial/
Dusbtty.c109 .bcdUSB = cpu_to_le16(USB_BCD_VERSION),
113 .idVendor = cpu_to_le16(CONFIG_USBD_VENDORID),
114 .bcdDevice = cpu_to_le16(USBTTY_BCD_DEVICE),
126 .bcdUSB = cpu_to_le16(USB_BCD_VERSION),
163 cpu_to_le16(sizeof(struct acm_config_desc)),
189 .bcdCDC = cpu_to_le16(110),
221 = cpu_to_le16(CONFIG_USBD_SERIAL_INT_PKTSIZE),
248 cpu_to_le16(CONFIG_USBD_SERIAL_BULK_PKTSIZE),
259 cpu_to_le16(CONFIG_USBD_SERIAL_BULK_PKTSIZE),
294 cpu_to_le16(sizeof(struct gserial_config_desc)),
[all …]
/external/u-boot/drivers/nvme/
Dnvme.c125 return cpu_to_le16((cmdid < USHRT_MAX) ? cmdid++ : 0); in nvme_get_cmd_id()
263 c.delete_queue.qid = cpu_to_le16(id); in nvme_delete_queue()
403 c.create_cq.cqid = cpu_to_le16(qid); in nvme_alloc_cq()
404 c.create_cq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_cq()
405 c.create_cq.cq_flags = cpu_to_le16(flags); in nvme_alloc_cq()
406 c.create_cq.irq_vector = cpu_to_le16(nvmeq->cq_vector); in nvme_alloc_cq()
420 c.create_sq.sqid = cpu_to_le16(qid); in nvme_alloc_sq()
421 c.create_sq.qsize = cpu_to_le16(nvmeq->q_depth - 1); in nvme_alloc_sq()
422 c.create_sq.sq_flags = cpu_to_le16(flags); in nvme_alloc_sq()
423 c.create_sq.cqid = cpu_to_le16(qid); in nvme_alloc_sq()
[all …]
/external/f2fs-tools/mkfs/
Df2fs_format.c746 journal->n_nats = cpu_to_le16(1 + c.quota_inum + c.lpf_inum); in f2fs_write_check_point_pack()
782 journal->n_sits = cpu_to_le16(6); in f2fs_write_check_point_pack()
785 cpu_to_le16((CURSEG_HOT_NODE << 10) | in f2fs_write_check_point_pack()
795 cpu_to_le16((CURSEG_WARM_NODE << 10)); in f2fs_write_check_point_pack()
798 cpu_to_le16((CURSEG_COLD_NODE << 10)); in f2fs_write_check_point_pack()
803 cpu_to_le16((CURSEG_HOT_DATA << 10) | in f2fs_write_check_point_pack()
813 cpu_to_le16((CURSEG_WARM_DATA << 10)); in f2fs_write_check_point_pack()
816 cpu_to_le16((CURSEG_COLD_DATA << 10)); in f2fs_write_check_point_pack()
834 (sum_entry + off + j)->ofs_in_node = cpu_to_le16(j); in f2fs_write_check_point_pack()
1090 raw_node->i.i_mode = cpu_to_le16(0x41ed); in f2fs_write_root_inode()
[all …]
/external/u-boot/tools/
Dsocfpgaimage.c128 .length_u32 = cpu_to_le16(length_bytes / 4), in sfp_build_header()
136 .header_u8 = cpu_to_le16(sizeof(header_v1)), in sfp_build_header()
146 header_v0.checksum = cpu_to_le16(csum); in sfp_build_header()
150 header_v1.checksum = cpu_to_le16(csum); in sfp_build_header()
/external/u-boot/drivers/ata/
Dsata_sil.c214 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_cmd_identify_device()
215 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_cmd_identify_device()
251 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_SRST); in sil_cmd_soft_reset()
277 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_sata_rw_cmd()
282 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE); in sil_sata_rw_cmd()
285 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_sata_rw_cmd()
322 pcmd->prb.ctrl = cpu_to_le16(PRB_CTRL_PROTOCOL); in sil_sata_rw_cmd_ext()
327 pcmd->prb.prot = cpu_to_le16(PRB_PROT_WRITE); in sil_sata_rw_cmd_ext()
330 pcmd->prb.prot = cpu_to_le16(PRB_PROT_READ); in sil_sata_rw_cmd_ext()
/external/u-boot/drivers/usb/gadget/
Dstorage_common.c444 .wMaxPacketSize = cpu_to_le16(2),
484 .wMaxPacketSize = cpu_to_le16(512),
494 .wMaxPacketSize = cpu_to_le16(512),
507 .wMaxPacketSize = cpu_to_le16(2),
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 …]
Df_fastboot.c58 .wMaxPacketSize = cpu_to_le16(64),
66 .wMaxPacketSize = cpu_to_le16(64),
74 .wMaxPacketSize = cpu_to_le16(512),
82 .wMaxPacketSize = cpu_to_le16(512),
Df_rockusb.c30 .wMaxPacketSize = cpu_to_le16(64),
38 .wMaxPacketSize = cpu_to_le16(64),
46 .wMaxPacketSize = cpu_to_le16(512),
54 .wMaxPacketSize = cpu_to_le16(512),
/external/u-boot/fs/fat/
Dfat_write.c420 ((__u16 *) mydata->fatbuf)[offset] = cpu_to_le16(entry_value); in set_fatent_value()
427 val1 = cpu_to_le16(entry_value) & 0xfff; in set_fatent_value()
432 val1 = cpu_to_le16(entry_value) & 0xf; in set_fatent_value()
433 val2 = (cpu_to_le16(entry_value) >> 4) & 0xff; in set_fatent_value()
442 val1 = cpu_to_le16(entry_value) & 0xff; in set_fatent_value()
443 val2 = (cpu_to_le16(entry_value) >> 8) & 0xf; in set_fatent_value()
452 val1 = cpu_to_le16(entry_value) & 0xfff; in set_fatent_value()
724 cpu_to_le16((start_cluster & 0xffff0000) >> 16); in set_start_cluster()
725 dentptr->start = cpu_to_le16(start_cluster & 0xffff); in set_start_cluster()
/external/selinux/libsepol/src/
Dprivate.h25 #define cpu_to_le16(x) (x) macro
32 #define cpu_to_le16(x) bswap_16(x) macro
/external/u-boot/drivers/misc/
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()
/external/u-boot/include/
Dcompiler.h94 # define cpu_to_le16(x) (x) macro
107 # define cpu_to_le16(x) uswap_16(x) macro
/external/u-boot/drivers/net/
Deepro100.c241 *(volatile u16 *)((addr + (u_long)dev->iobase)) = cpu_to_le16(command); in OUTW()
524 cfg_cmd->command = cpu_to_le16 ((CONFIG_SYS_CMD_SUSPEND | CONFIG_SYS_CMD_CONFIGURE)); in eepro100_init()
560 ias_cmd->command = cpu_to_le16 ((CONFIG_SYS_CMD_SUSPEND | CONFIG_SYS_CMD_IAS)); in eepro100_init()
610 tx_ring[tx_cur].command = cpu_to_le16 ( TxCB_CMD_TRANSMIT | in eepro100_send()
688 rx_ring[rx_next].control = cpu_to_le16 (RFD_CONTROL_S); in eepro100_recv()
879 (i == NUM_RX_DESC - 1) ? cpu_to_le16 (RFD_CONTROL_S) : 0; in init_rx_ring()
Dpcnet.c353 uc->init_block.mode = cpu_to_le16(0x0000); in pcnet_init()
364 uc->rx_ring[i].buf_length = cpu_to_le16(-PKT_BUF_SZ); in pcnet_init()
365 uc->rx_ring[i].status = cpu_to_le16(0x8000); in pcnet_init()
392 uc->init_block.tlen_rlen = cpu_to_le16(TX_RING_LEN_BITS | in pcnet_init()
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()
/external/u-boot/include/linux/byteorder/
Dgeneric.h90 #define cpu_to_le16 __cpu_to_le16 macro
146 *var = cpu_to_le16(le16_to_cpu(*var) + val); in le16_add_cpu()
/external/u-boot/fs/ext4/
Dext4_common.c67 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_free_blocks_dec()
78 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_dec()
80 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_dec()
91 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_dec()
93 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_dec()
104 bg->bg_itable_unused = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_itable_unused_dec()
106 bg->bg_itable_unused_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_itable_unused_dec()
119 sb->free_blocks_high = cpu_to_le16(free_blocks >> 32); in ext4fs_sb_set_free_blocks()
149 bg->bg_flags = cpu_to_le16(flags); in ext4fs_bg_set_flags()
466 dir->direntlen = cpu_to_le16(dentry_length); in check_void_in_dentry()
[all …]
Dext4_write.c48 bg->free_inodes = cpu_to_le16(free_inodes & 0xffff); in ext4fs_bg_free_inodes_inc()
50 bg->free_inodes_high = cpu_to_le16(free_inodes >> 16); in ext4fs_bg_free_inodes_inc()
61 bg->free_blocks = cpu_to_le16(free_blocks & 0xffff); in ext4fs_bg_free_blocks_inc()
63 bg->free_blocks_high = cpu_to_le16(free_blocks >> 16); in ext4fs_bg_free_blocks_inc()
80 bgd->bg_checksum = cpu_to_le16(ext4fs_checksum_update(i)); in ext4fs_update()
912 file_inode->mode = cpu_to_le16(S_IFREG | S_IRWXU | in ext4fs_write()
918 file_inode->nlinks = cpu_to_le16(1); in ext4fs_write()
/external/u-boot/lib/
Duuid.c171 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 9, NULL, 16)); in uuid_str_to_bin()
174 tmp16 = cpu_to_le16(simple_strtoul(uuid_str + 14, NULL, 16)); in uuid_str_to_bin()
/external/fsverity-utils/
Dcmd_setup.c219 hdr->type = cpu_to_le16(type); in fsverity_append_extension()
258 desc->data_algorithm = cpu_to_le16(params->hash_alg - in append_fsverity_descriptor()
267 desc->auth_ext_count = cpu_to_le16(auth_ext_count); in append_fsverity_descriptor()
312 hdr.unauth_ext_count = cpu_to_le16(unauth_ext_count); in append_unauthenticated_extensions()
Dutil.h75 # define cpu_to_le16(v) ((__force __le16)(u16)(v)) macro
88 # define cpu_to_le16(v) ((__force __le16)__builtin_bswap16(v)) macro
/external/u-boot/drivers/usb/host/
Dr8a66597-hcd.c610 wValue = cpu_to_le16 (cmd->value); in r8a66597_submit_rh_msg()
611 wLength = cpu_to_le16 (cmd->length); in r8a66597_submit_rh_msg()
615 *(__u16 *)buffer = cpu_to_le16(1); in r8a66597_submit_rh_msg()
619 *(__u16 *)buffer = cpu_to_le16(0); in r8a66597_submit_rh_msg()
623 *(__u16 *)buffer = cpu_to_le16(0); in r8a66597_submit_rh_msg()
/external/f2fs-tools/fsck/
Ddir.c206 de->name_len = cpu_to_le16(len); in f2fs_update_dentry()
349 dent_blk->dentry[0].name_len = cpu_to_le16(1); in make_empty_dir()
355 dent_blk->dentry[1].name_len = cpu_to_le16(2); in make_empty_dir()
434 node_blk->i.i_mode = cpu_to_le16(mode); in init_inode_block()
463 cpu_to_le16(F2FS_TOTAL_EXTRA_ATTR_SIZE); in init_inode_block()
/external/u-boot/include/linux/unaligned/
Daccess_ok.h38 *((__le16 *)p) = cpu_to_le16(val); in put_unaligned_le16()

123