/qemu/include/hw/ |
H A D | elf_ops.h.inc | 204 struct elf_phdr *ph, int elf_machine) 237 if (rels[i].r_offset < ph->p_vaddr || 238 rels[i].r_offset >= ph->p_vaddr + ph->p_filesz) { 241 addr = &data[rels[i].r_offset - ph->p_vaddr]; 327 struct elf_phdr *phdr = NULL, *ph; 407 ph = &phdr[i]; 408 glue(bswap_phdr, SZ)(ph); 424 ph = &phdr[i]; 425 if (ph->p_type == PT_LOAD) { 426 mem_size = ph->p_memsz; /* Size of the ROM */ [all …]
|
/qemu/ui/ |
H A D | vnc-enc-zywrle.h | 568 ph = buf; \ 571 ph += s >> 1; \ 574 ph += (s >> 1) * w; \ 576 end = ph + h * w; \ 577 while (ph < end) { \ 578 line = ph + w; \ 579 while (ph < line) { \ 582 ph += s; \ 584 ph += (s - 1) * w; \ 590 ZYWRLE_LOAD_COEFF(ph, r, g, b); \ [all …]
|
H A D | gtk-gl-area.c | 45 int pw, ph, gs, y1, y2; in gd_gl_area_draw() local 62 ph = wh * gs; in gd_gl_area_draw() 112 glViewport(0, 0, pw, ph); in gd_gl_area_draw() 143 surface_gl_setup_viewport(vc->gfx.gls, vc->gfx.ds, pw, ph); in gd_gl_area_draw()
|
H A D | gtk-egl.c | 73 int ww, wh, pw, ph, gs; in gd_egl_draw() local 84 ph = wh * gs; in gd_egl_draw() 121 surface_gl_setup_viewport(vc->gfx.gls, vc->gfx.ds, pw, ph); in gd_egl_draw()
|
H A D | vnc-enc-zywrle-template.c | 141 int *ph; in ZYWRLE_ANALYZE() local
|
H A D | gtk.c | 775 double pw = width, ph = height; in gd_resize_event() local 782 ph /= sy; in gd_resize_event() 789 gd_set_ui_size(vc, pw / gs, ph / gs); in gd_resize_event()
|
/qemu/hw/ppc/ |
H A D | trace-events | 82 vof_finddevice(const char *path, uint32_t ph) "\"%s\" => ph=0x%x" 86 vof_getprop(uint32_t ph, const char *prop, uint32_t ret, const char *val) "ph=0x%x \"%s\" => len=%d… 87 vof_getproplen(uint32_t ph, const char *prop, uint32_t ret) "ph=0x%x \"%s\" => len=%d" 88 vof_setprop(uint32_t ph, const char *prop, const char *val, uint32_t vallen, uint32_t ret) "ph=0x%x… 89 vof_open(const char *path, uint32_t ph, uint32_t ih) "%s ph=0x%x => ih=0x%x" 91 vof_package_to_path(uint32_t ph, const char *tmp, int ret) "ph=0x%x => %s len=%d" 92 vof_instance_to_path(uint32_t ih, uint32_t ph, const char *tmp, int ret) "ih=0x%x ph=0x%x => %s len… 93 vof_instance_to_package(uint32_t ih, uint32_t ph) "ih=0x%x => ph=0x%x"
|
H A D | vof.c | 121 static int phandle_to_path(const void *fdt, uint32_t ph, char *buf, int len) in phandle_to_path() argument 125 ret = fdt_node_offset_by_phandle(fdt, ph); in phandle_to_path()
|
/qemu/block/ |
H A D | parallels.c | 1173 const ParallelsHeader *ph = (const void *)buf; in parallels_probe() local 1179 if ((!memcmp(ph->magic, HEADER_MAGIC, 16) || in parallels_probe() 1180 !memcmp(ph->magic, HEADER_MAGIC2, 16)) && in parallels_probe() 1181 (le32_to_cpu(ph->version) == HEADER_VERSION)) { in parallels_probe() 1242 ParallelsHeader ph; in parallels_open() local 1265 ret = bdrv_pread(bs->file, 0, sizeof(ph), &ph, 0); in parallels_open() 1270 bs->total_sectors = le64_to_cpu(ph.nb_sectors); in parallels_open() 1272 if (le32_to_cpu(ph.version) != HEADER_VERSION) { in parallels_open() 1275 if (!memcmp(ph.magic, HEADER_MAGIC, 16)) { in parallels_open() 1278 } else if (!memcmp(ph.magic, HEADER_MAGIC2, 16)) { in parallels_open() [all …]
|
/qemu/hw/i386/ |
H A D | microvm-dt.c | 155 uint32_t ph; in dt_add_ioapic() local 180 ph = qemu_fdt_alloc_phandle(mms->fdt); in dt_add_ioapic() 181 qemu_fdt_setprop_cell(mms->fdt, nodename, "phandle", ph); in dt_add_ioapic() 182 qemu_fdt_setprop_cell(mms->fdt, nodename, "linux,phandle", ph); in dt_add_ioapic() 183 mms->ioapic_phandle[index] = ph; in dt_add_ioapic()
|
/qemu/pc-bios/vof/ |
H A D | ci.c | 88 uint32_t ci_getprop(phandle ph, const char *propname, void *prop, int len) in ci_getprop() argument 90 return call_ci("getprop", 4, 1, ph, propname, prop, len); in ci_getprop()
|
H A D | vof.h | 33 uint32_t ci_getprop(phandle ph, const char *propname, void *prop, int len);
|
/qemu/hw/nvme/ |
H A D | ns.c | 413 uint16_t *ph; in nvme_ns_init_fdp() local 417 ph = ns->fdp.phs = g_new(uint16_t, 1); in nvme_ns_init_fdp() 419 ruh = nvme_find_ruh_by_attr(endgrp, NVME_RUHA_CTRL, ph); in nvme_ns_init_fdp() 421 ruh = nvme_find_ruh_by_attr(endgrp, NVME_RUHA_UNUSED, ph); in nvme_ns_init_fdp() 498 ph = ns->fdp.phs = g_new(uint16_t, ns->fdp.nphs); in nvme_ns_init_fdp() 503 for (unsigned int i = 0; i < ns->fdp.nphs; i++, ruhid++, ph++) { in nvme_ns_init_fdp() 541 *ph = *ruhid; in nvme_ns_init_fdp()
|
H A D | ctrl.c | 327 uint16_t ph) in nvme_make_pid() argument 332 return ph; in nvme_make_pid() 335 return (rg << (16 - rgif)) | ph; in nvme_make_pid() 338 static inline bool nvme_ph_valid(NvmeNamespace *ns, uint16_t ph) in nvme_ph_valid() argument 340 return ph < ns->fdp.nphs; in nvme_ph_valid() 371 uint16_t *ph, uint16_t *rg) in nvme_parse_pid() argument 374 *ph = nvme_pid2ph(ns, pid); in nvme_parse_pid() 376 return nvme_ph_valid(ns, *ph) && nvme_rg_valid(ns->endgrp, *rg); in nvme_parse_pid() 484 uint16_t ph, rg, ruhid; in nvme_update_ruh() local 486 if (!nvme_parse_pid(ns, pid, &ph, &rg)) { in nvme_update_ruh() [all …]
|
/qemu/hw/usb/ |
H A D | dev-smartcard-reader.c | 883 CCID_SetParameters *ph = (CCID_SetParameters *) recv; in ccid_set_parameters() local 884 uint32_t protocol_num = ph->bProtocolNum & 3; in ccid_set_parameters() 891 s->abProtocolDataStructure = ph->abProtocolDataStructure; in ccid_set_parameters()
|