Home
last modified time | relevance | path

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

/external/qemu/hw/
Dbt-l2cap.c193 reason = cpu_to_le16(reason); in l2cap_command_reject()
194 len = cpu_to_le16(L2CAP_CMD_REJ_SIZE + plen); in l2cap_command_reject()
236 hdr->len = cpu_to_le16(L2CAP_CONN_RSP_SIZE); in l2cap_connection_response()
238 params->dcid = cpu_to_le16(dcid); in l2cap_connection_response()
239 params->scid = cpu_to_le16(scid); in l2cap_connection_response()
240 params->result = cpu_to_le16(result); in l2cap_connection_response()
241 params->status = cpu_to_le16(status); in l2cap_connection_response()
264 hdr->len = cpu_to_le16(L2CAP_CONF_REQ_SIZE(len)); in l2cap_configuration_request()
266 params->dcid = cpu_to_le16(dcid); in l2cap_configuration_request()
267 params->flags = cpu_to_le16(flag); in l2cap_configuration_request()
[all …]
Dsmbios.c102 field->header.length = cpu_to_le16(sizeof(*field) + len); in smbios_add_field()
105 field->offset = cpu_to_le16(offset); in smbios_add_field()
110 cpu_to_le16(le16_to_cpu(*(uint16_t *)smbios_entries) + 1); in smbios_add_field()
190 table->header.length = cpu_to_le16(sizeof(*table) + size); in smbios_entry_add()
202 cpu_to_le16(le16_to_cpu(*(uint16_t *)smbios_entries) + 1); in smbios_entry_add()
Dbt-hci.c1009 params.manufacturer = cpu_to_le16(0xa000); in bt_hci_version_req()
1010 params.lmp_subver = cpu_to_le16(0xa607); in bt_hci_version_req()
1046 .interval = cpu_to_le16(link->acl_interval), in bt_hci_event_mode()
1164 .hci_rev = cpu_to_le16(0xa607), in bt_hci_read_local_version_rp()
1166 .manufacturer = cpu_to_le16(0xa000), in bt_hci_read_local_version_rp()
1167 .lmp_subver = cpu_to_le16(0xa607), in bt_hci_read_local_version_rp()
1237 .acl_mtu = cpu_to_le16(0x0200), in bt_hci_read_buffer_size_rp()
1239 .acl_max_pkt = cpu_to_le16(0x0001), in bt_hci_read_buffer_size_rp()
1240 .sco_max_pkt = cpu_to_le16(0x0000), in bt_hci_read_buffer_size_rp()
1401 .timeout = cpu_to_le16(hci->conn_accept_tout), in bt_hci_event_complete_read_conn_accept_timeout()
[all …]
Dfw_cfg.c209 *copy = cpu_to_le16(value); in fw_cfg_add_i16()
Dpci.c160 id[0] = cpu_to_le16(pci_default_sub_vendor_id); in pci_set_default_subsystem_id()
161 id[1] = cpu_to_le16(pci_default_sub_device_id); in pci_set_default_subsystem_id()
Dne2000.c507 *(uint16_t *)(s->mem + addr) = cpu_to_le16(val); in ne2000_mem_writew()
Dusb-ohci.c488 uint16_t tmp = cpu_to_le16(*buf); in put_words()
/external/bluetooth/bluez/tools/
Ddfutool.c48 #define cpu_to_le16(d) (d) macro
53 #define cpu_to_le16(d) bswap_16(d) macro
214 suffix->idVendor = cpu_to_le16(0x0000); in open_device()
215 suffix->idProduct = cpu_to_le16(0x0000); in open_device()
216 suffix->bcdDevice = cpu_to_le16(0x0000); in open_device()
230 suffix->idVendor = cpu_to_le16(dfu_dev[sel]->descriptor.idVendor); in open_device()
231 suffix->idProduct = cpu_to_le16(dfu_dev[sel]->descriptor.idProduct); in open_device()
232 suffix->bcdDevice = cpu_to_le16(dfu_dev[sel]->descriptor.bcdDevice); in open_device()
685 suffix.bcdDFU = cpu_to_le16(0x0100); in cmd_archive()
/external/kernel-headers/original/linux/
Dncp.h60 #define AR_READ (cpu_to_le16(1))
61 #define AR_WRITE (cpu_to_le16(2))
62 #define AR_EXCLUSIVE (cpu_to_le16(0x20))
Dmsdos_fs.h19 #define CT_LE_W(v) cpu_to_le16(v)
/external/libsepol/src/
Dprivate.h25 #define cpu_to_le16(x) (x) macro
32 #define cpu_to_le16(x) bswap_16(x) macro
Dwrite.c216 buf16[0] = cpu_to_le16(cur->key.source_type); in avtab_write_item()
217 buf16[1] = cpu_to_le16(cur->key.target_type); in avtab_write_item()
218 buf16[2] = cpu_to_le16(cur->key.target_class); in avtab_write_item()
219 buf16[3] = cpu_to_le16(cur->key.specified); in avtab_write_item()
/external/kernel-headers/original/asm-mips/
Dvga.h34 *addr = cpu_to_le16(val); in scr_writew()
/external/kernel-headers/original/asm-arm/
Dio.h113 cpu_to_le16(v),__io(p))
181 cpu_to_le16(v),__mem_pci(c))
256 #define iowrite16(v,p) __raw_writew(cpu_to_le16(v), p)
/external/kernel-headers/original/linux/mtd/
Dcfi_endian.h31 #define cpu_to_cfi16(x) cpu_to_le16(x)
/external/kernel-headers/original/linux/byteorder/
Dgeneric.h95 #define cpu_to_le16 __cpu_to_le16 macro
/external/qemu/block/
Dvvfat.c501 direntry->begin = cpu_to_le16(begin & 0xffff); in set_begin_of_direntry()
502 direntry->begin_hi = cpu_to_le16((begin >> 16) & 0xffff); in set_begin_of_direntry()
533 return cpu_to_le16((t->tm_sec/2)|(t->tm_min<<5)|(t->tm_hour<<11)); in fat_datetime()
534 return cpu_to_le16((t->tm_mday)|((t->tm_mon+1)<<5)|((t->tm_year-80)<<9)); in fat_datetime()
544 *entry=cpu_to_le16(value&0xffff); in fat_set()
963 bootsector->sector_size=cpu_to_le16(0x200); in init_directories()
965 bootsector->reserved_sectors=cpu_to_le16(1); in init_directories()
967 bootsector->root_entries=cpu_to_le16(s->sectors_of_root_directory*0x10); in init_directories()
968 bootsector->total_sectors16=s->sector_count>0xffff?0:cpu_to_le16(s->sector_count); in init_directories()
971 bootsector->sectors_per_fat=cpu_to_le16(s->sectors_per_fat); in init_directories()
[all …]
/external/qemu-pc-bios/bochs/bios/
Drombios32.c1529 static inline uint16_t cpu_to_le16(uint16_t x) in cpu_to_le16() function
1754 fadt->sci_int = cpu_to_le16(pm_sci_int); in acpi_bios_init()
1764 fadt->plvl2_lat = cpu_to_le16(0xfff); // C2 state not supported in acpi_bios_init()
1765 fadt->plvl3_lat = cpu_to_le16(0xfff); // C3 state not supported in acpi_bios_init()