/openbmc/qemu/net/ |
H A D | checksum.c | 78 switch (lduw_be_p(&PKT_GET_ETH_HDR(data)->h_proto)) { in net_checksum_calculate() 84 if (lduw_be_p(&PKT_GET_VLAN_HDR(data)->h_proto) == ETH_P_VLAN) { in net_checksum_calculate() 121 ip_len = lduw_be_p(&ip->ip_len); in net_checksum_calculate()
|
/openbmc/qemu/hw/ide/ |
H A D | atapi.c | 826 max_len = lduw_be_p(buf + 7); in cmd_get_configuration() 865 max_len = lduw_be_p(buf + 7); in cmd_mode_sense() 988 nb_sectors = lduw_be_p(buf + 7); in cmd_read() 1099 int max_len = lduw_be_p(buf + 8); in cmd_mechanism_status() 1117 max_len = lduw_be_p(buf + 7); in cmd_read_toc_pma_atip() 1163 uint32_t max_len = lduw_be_p(buf + 7); in cmd_read_disc_information() 1197 max_len = lduw_be_p(buf + 8); in cmd_read_dvd_structure()
|
/openbmc/qemu/include/sysemu/ |
H A D | tpm_util.h | 36 return lduw_be_p(b); in tpm_cmd_get_tag()
|
/openbmc/qemu/hw/display/ |
H A D | vga-access.h | 41 return lduw_be_p(ptr); in vga_read_word_be()
|
/openbmc/qemu/hw/s390x/ |
H A D | s390-pci-inst.c | 58 if (lduw_be_p(&rrb->request.hdr.len) != 32) { in list_pci() 90 if (lduw_be_p(&rrb->response.hdr.len) < 48) { in list_pci() 96 initial_l2 = lduw_be_p(&rrb->response.hdr.len); in list_pci() 128 lduw_be_p(&rrb->response.fh_list[i].vendor_id), in list_pci() 129 lduw_be_p(&rrb->response.fh_list[i].device_id), in list_pci() 175 req_len = lduw_be_p(&reqh->len); in clp_service_call() 187 res_len = lduw_be_p(&resh->len); in clp_service_call() 208 switch (lduw_be_p(&reqh->cmd)) { in clp_service_call() 344 trace_s390_pci_unknown("clp", lduw_be_p(&reqh->cmd)); in clp_service_call()
|
/openbmc/qemu/hw/net/ |
H A D | e1000x_common.c | 53 uint16_t eth_proto = lduw_be_p(&PKT_GET_ETH_HDR(buf)->h_proto); in e1000x_is_vlan_packet() 64 uint16_t vid = lduw_be_p(&vhdr->h_tci); in e1000x_rx_vlan_filter()
|
H A D | e1000.c | 588 lduw_be_p(tp->data + css + 4) + frames); in xmit_seg() 611 phsum = lduw_be_p(sp) + len; in xmit_seg() 919 vlan_special = cpu_to_le16(lduw_be_p(filter_buf + 14)); in e1000_receive_iov()
|
H A D | rtl8139.c | 1005 lduw_be_p(&buf[ETH_ALEN * 2]) == ETH_P_VLAN) { in rtl8139_do_receive() 1018 lduw_be_p(&dot1q_buf[ETHER_TYPE_LEN])); in rtl8139_do_receive()
|
H A D | ftgmac100.c | 1106 bd.des1 = lduw_be_p(buf + 14) | FTGMAC100_RXDES1_VLANTAG_AVAIL; in ftgmac100_receive()
|
/openbmc/qemu/include/exec/ |
H A D | cpu-all.h | 44 #define lduw_p(p) lduw_be_p(p)
|
/openbmc/qemu/hw/net/fsl_etsec/ |
H A D | rings.c | 122 bd->flags = lduw_be_p(&bd->flags); in read_buffer_descriptor() 123 bd->length = lduw_be_p(&bd->length); in read_buffer_descriptor()
|
/openbmc/qemu/target/ppc/ |
H A D | mem_helper.c | 155 val = lduw_be_p(host) << 16; in do_lsw() 158 val = (lduw_be_p(host) << 16) | (ldub_p(host + 2) << 8); in do_lsw()
|
/openbmc/qemu/include/hw/virtio/ |
H A D | virtio-access.h | 126 return lduw_be_p(ptr); in virtio_lduw_p()
|
/openbmc/qemu/disas/ |
H A D | capstone.c | 128 print(stream, " %04x", lduw_be_p(insn->bytes + i)); in cap_dump_insn_units()
|
/openbmc/qemu/include/qemu/ |
H A D | bswap.h | 339 static inline int lduw_be_p(const void *ptr) in lduw_be_p() function
|
/openbmc/qemu/include/disas/ |
H A D | dis-asm.h | 497 return lduw_be_p(addr); in bfd_getb16()
|
/openbmc/qemu/hw/scsi/ |
H A D | scsi-generic.c | 214 page_idx = lduw_be_p(r->buf + 2) + 4; in scsi_handle_inquiry_reply() 225 stw_be_p(r->buf + 2, lduw_be_p(r->buf + 2) + 1); in scsi_handle_inquiry_reply()
|
H A D | scsi-disk.c | 1609 page_len = lduw_be_p(&p[2]); in mode_select_pages() 1676 bd_len = (cmd == MODE_SELECT ? p[3] : lduw_be_p(&p[6])); in scsi_disk_emulate_mode_select() 1835 if (len < lduw_be_p(&p[0]) + 2) { in scsi_disk_emulate_unmap() 1838 if (len < lduw_be_p(&p[2]) + 8) { in scsi_disk_emulate_unmap() 1841 if (lduw_be_p(&p[2]) & 15) { in scsi_disk_emulate_unmap() 1854 data->count = lduw_be_p(&p[2]) >> 4; in scsi_disk_emulate_unmap()
|
/openbmc/qemu/tests/tcg/plugins/ |
H A D | mem.c | 172 uint16_t val = be ? lduw_be_p(p) : lduw_le_p(p); in update_region_info()
|
/openbmc/qemu/scsi/ |
H A D | utils.c | 37 return lduw_be_p(&buf[7]); in scsi_cdb_xfer()
|
H A D | qemu-pr-helper.c | 501 len = lduw_be_p(¶m[i + 2]); in multipath_pr_out()
|
/openbmc/qemu/system/ |
H A D | memory_ldst.c.inc | 225 val = lduw_be_p(ptr);
|
/openbmc/qemu/hw/ppc/ |
H A D | spapr_nvdimm.c | 280 data = lduw_be_p(buf); in h_scm_read_metadata()
|
/openbmc/qemu/nbd/ |
H A D | server.c | 1532 request->flags = lduw_be_p(buf + 4); in nbd_receive_request() 1533 request->type = lduw_be_p(buf + 6); in nbd_receive_request()
|
/openbmc/qemu/target/m68k/ |
H A D | helper.c | 104 env->fregs[n].l.upper = lduw_be_p(mem_buf); in m68k_fpu_gdb_set_reg()
|