/qemu/hw/display/ |
H A D | vga-helpers.h | 114 width >>= 3; in vga_draw_line2() 156 width >>= 3; in vga_draw_line2d2() 195 width >>= 3; in vga_draw_line4() 339 w = width; in vga_draw_line15_le() 358 w = width; in vga_draw_line15_be() 380 w = width; in vga_draw_line16_le() 399 w = width; in vga_draw_line16_be() 421 w = width; in vga_draw_line24_le() 439 w = width; in vga_draw_line24_be() 460 w = width; in vga_draw_line32_le() [all …]
|
H A D | pl110_template.h | 42 while (width > 0) { in glue() 61 width -= 32; in glue() 70 while (width > 0) { in glue() 89 width -= 16; in glue() 98 while (width > 0) { in glue() 117 width -= 8; in glue() 141 width -= 4; in glue() 187 width -= 2; in glue() 217 width--; in glue() 255 width -= 2; in glue() [all …]
|
H A D | ramfb.c | 26 uint32_t width; member 35 uint32_t width, height; member 47 static DisplaySurface *ramfb_create_display_surface(int width, int height, in ramfb_create_display_surface() argument 55 if (width < 16 || width > VBE_DISPI_MAX_XRES || in ramfb_create_display_surface() 60 linesize = width * PIXMAN_FORMAT_BPP(format) / 8; in ramfb_create_display_surface() 72 surface = qemu_create_displaysurface_from(width, height, in ramfb_create_display_surface() 84 uint32_t fourcc, format, width, height; in ramfb_fw_cfg_write() local 87 width = be32_to_cpu(s->cfg.width); in ramfb_fw_cfg_write() 94 surface = ramfb_create_display_surface(width, height, in ramfb_fw_cfg_write() 100 s->width = width; in ramfb_fw_cfg_write() [all …]
|
H A D | artist.c | 33 unsigned int width; member 51 uint16_t width; member 354 *x = s->width; in artist_get_cursor_pos() 403 if (width > buf->width) { in block_move() 404 width = buf->width; in block_move() 501 if ((x1 >= buf->width && x2 >= buf->width) || in draw_line() 805 width = buf->width; in get_vram_offset() 911 int width, height; in artist_reg_write() local 1367 buf->width = width; in artist_create_buffer() 1381 s->width = MIN(s->width, 2048); in artist_realizefn() [all …]
|
H A D | omap_lcdc.c | 38 int width; member 108 width -= 4; in draw_line2_32() 109 } while (width > 0); in draw_line2_32() 135 width -= 2; in draw_line4_32() 136 } while (width > 0); in draw_line4_32() 156 } while (-- width != 0); in draw_line8_32() 176 } while (-- width != 0); in draw_line12_32() 196 } while (-- width != 0); in draw_line16_32() 262 width = omap_lcd->width; in omap_update_display() 306 step = width * bpp >> 3; in omap_update_display() [all …]
|
H A D | macfb.c | 130 int width) in macfb_draw_line1() argument 135 for (x = 0; x < width; x++) { in macfb_draw_line1() 150 int width) in macfb_draw_line2() argument 155 for (x = 0; x < width; x++) { in macfb_draw_line2() 170 int width) in macfb_draw_line4() argument 175 for (x = 0; x < width; x++) { in macfb_draw_line4() 195 for (x = 0; x < width; x++) { in macfb_draw_line8() 213 for (x = 0; x < width; x++) { in macfb_draw_line16() 233 for (x = 0; x < width; x++) { in macfb_draw_line24() 391 s->width = s->mode->width; in macfb_update_mode() [all …]
|
H A D | cg3.c | 84 uint16_t width, height, depth; member 96 unsigned int width, height; in cg3_update_display() local 103 width = s->width; in cg3_update_display() 119 page = (ram_addr_t)y * width; in cg3_update_display() 125 width); in cg3_update_display() 133 for (x = 0; x < width; x++) { in cg3_update_display() 143 pix += width; in cg3_update_display() 144 data += width; in cg3_update_display() 149 dpy_gfx_update(s->con, 0, y_start, width, y - y_start); in cg3_update_display() 320 qemu_console_resize(s->con, s->width, s->height); in cg3_realizefn() [all …]
|
H A D | virtio-gpu.c | 281 res->width = c2d.width; in virtio_gpu_resource_create_2d() 471 t2d.r.width > res->width || in virtio_gpu_transfer_to_host_2d() 473 t2d.r.x + t2d.r.width > res->width || in virtio_gpu_transfer_to_host_2d() 562 rf.r.width > res->width || in virtio_gpu_resource_flush() 564 rf.r.x + rf.r.width > res->width || in virtio_gpu_resource_flush() 619 scanout->width = r->width; in virtio_gpu_update_scanout() 640 r->width > fb->width || in virtio_gpu_do_set_scanout() 642 r->x + r->width > fb->width || in virtio_gpu_do_set_scanout() 675 scanout->width != r->width || in virtio_gpu_do_set_scanout() 786 fb.width = ss.width; in virtio_gpu_set_scanout_blob() [all …]
|
H A D | pxa2xx_lcd.c | 229 width -= 16; in pxa2xx_draw_line2() 254 width -= 8; in pxa2xx_draw_line4() 279 width -= 4; in pxa2xx_draw_line8() 307 width -= 2; in pxa2xx_draw_line16() 345 width -= 2; in pxa2xx_draw_line16t() 366 width -= 1; in pxa2xx_draw_line18() 416 width -= 4; in pxa2xx_draw_line18p() 441 width -= 1; in pxa2xx_draw_line19() 511 width -= 4; in pxa2xx_draw_line19p() 531 width -= 1; in pxa2xx_draw_line24() [all …]
|
H A D | sm501.c | 581 return (width & 0x00000FFF) + 1; in get_width() 719 if (!width || !height) { in sm501_2d_operation() 725 dst_x -= width - 1; in sm501_2d_operation() 750 src_x -= width - 1; in sm501_2d_operation() 826 overlap = (src_x < dst_x + width && src_x + width > dst_x && in sm501_2d_operation() 1648 } while (--width != 0); in draw_line8_32() 1665 } while (--width != 0); in draw_line16_32() 1680 } while (--width != 0); in draw_line32_32() 1725 int width = get_width(s, crt); in sm501_update_display() local 1780 s->last_width = width; in sm501_update_display() [all …]
|
/qemu/hw/intc/ |
H A D | xics_pnv.c | 38 bool byte0 = (width == 1 && (addr & 0x3) == 0); in pnv_icp_read() 46 } else if (width != 4) { in pnv_icp_read() 53 } else if (width == 4) { in pnv_icp_read() 67 if (width == 4) { in pnv_icp_read() 74 if (width == 4) { in pnv_icp_read() 81 if (width == 4) { in pnv_icp_read() 97 unsigned width) in pnv_icp_write() argument 107 } else if (width == 4) { in pnv_icp_write() 121 if (width == 4) { in pnv_icp_write() 128 if (width == 4) { in pnv_icp_write() [all …]
|
/qemu/ui/ |
H A D | cursor.c | 12 unsigned int width, height, colors, chars; in cursor_parse_xpm() local 19 &width, &height, &colors, &chars) != 4) { in cursor_parse_xpm() 48 c = cursor_alloc(width, height); in cursor_parse_xpm() 68 for (x = 0; x < c->width; x++, data++) { in cursor_print_ascii_art() 99 if (width > 512 || height > 512) { in cursor_alloc() 104 c->width = width; in cursor_alloc() 128 return DIV_ROUND_UP(c->width, 8); in cursor_get_mono_bpl() 149 for (x = 0; x < c->width; x++, data++) { in cursor_set_mono() 181 for (x = 0; x < c->width; x++, data++) { in cursor_set_mono() 210 for (x = 0; x < c->width; x++, data++) { in cursor_get_mono_image() [all …]
|
H A D | console-vc.c | 50 int width; member 132 .x = posx, .y = posy, .width = width, .height = height in qemu_console_fill_rect() 198 if (x >= s->width) { in console_show_cursor() 199 x = s->width - 1; in console_show_cursor() 392 t->width = w; in text_console_resize() 589 if (x >= s->width) { in vc_clear_xy() 590 x = s->width - 1; in vc_clear_xy() 638 if (x >= s->width) { in vc_set_cursor() 974 unsigned width = 0; in vc_chr_open() local 978 width = vc->width; in vc_chr_open() [all …]
|
H A D | vnc-enc-zywrle.h | 353 h += (s >> 1) * width; in filter_wavelet_square() 356 for (x = 0; x < width / s; x++) { in filter_wavelet_square() 376 h += (s-1)*width; in filter_wavelet_square() 429 h += (s >> 1) * width; in filter_wavelet_square() 432 for (x = 0; x < width / s; x++) { in filter_wavelet_square() 438 h += (s - 1) * width; in filter_wavelet_square() 452 end = buf + height * width; in wavelet() 453 s = width << l; in wavelet() 455 wavelet_level(top, width, l, 1); in wavelet() 459 end = buf + width; in wavelet() [all …]
|
H A D | egl-helpers.c | 93 fb->width = 0; in egl_fb_destroy() 101 fb->width = width; in egl_fb_setup_default() 111 fb->width = width; in egl_fb_setup_for_tex() 130 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, in egl_fb_setup_new_tex() 141 GLuint w = src->width; in egl_fb_blit() 146 glViewport(0, 0, dst->width, dst->height); in egl_fb_blit() 155 w = (x1 + w) > src->width ? src->width - x1 : w; in egl_fb_blit() 163 0, 0, dst->width, dst->height, in egl_fb_blit() 177 assert(surface_width(dst) == src->width); in egl_fb_read_rect() 192 glViewport(0, 0, dst->width, dst->height); in egl_texture_blit() [all …]
|
/qemu/tests/tcg/hexagon/ |
H A D | hvx_histogram.c | 24 const int width = 275; variable 26 const int stride = (width + vector_len - 1) & -vector_len; 50 static void ref_histogram(uint8_t *src, int stride, int width, int height, in ref_histogram() argument 58 for (int j = 0; j < width; j++) { in ref_histogram() 64 static void hvx_histogram(uint8_t *src, int stride, int width, int height, in hvx_histogram() argument 67 int n = 8192 / width; in hvx_histogram() 75 hvx_histogram_row(src, stride, width, k, hist); in hvx_histogram() 82 ref_histogram(&input[0][0], stride, width, height, expect); in main() 83 hvx_histogram(&input[0][0], stride, width, height, result); in main()
|
/qemu/python/qemu/utils/ |
H A D | __init__.py | 57 width: Optional[int] = None, 93 if width is None or width < 0: 95 if width is None: 98 _width = avail + width 100 _width = width 116 line, width=_width - padding, initial_indent=prefix, 142 width = -len(lmargin) 150 sections.append(add_visual_margin(self.stdout, width, name)) 155 sections.append(add_visual_margin(self.stderr, width, 'stderr'))
|
/qemu/scripts/ |
H A D | decodetree.py | 674 width = None 678 width = p.width 679 elif width != p.width: 682 self.width = width 870 width = 0 915 width += le 1025 if width != fmt.width: 1061 width = 0 1144 if variablewidth and width < insnwidth and width % 8 == 0: 1152 elif not (is_format and width == 0) and width != insnwidth: [all …]
|
/qemu/include/ui/ |
H A D | pixman-minimal.h | 100 int width; member 117 int width, in create_bits() argument 130 if (unlikely(__builtin_mul_overflow(width, bpp, &stride))) { in create_bits() 156 int width, in pixman_image_create_bits() argument 163 i->width = width; in pixman_image_create_bits() 170 create_bits(format, width, height, &rowstride_bytes); in pixman_image_create_bits() 171 if (width && height) { in pixman_image_create_bits() 176 width * DIV_ROUND_UP(PIXMAN_FORMAT_BPP(format), 8); in pixman_image_create_bits() 226 return i->width; in pixman_image_get_width()
|
H A D | rect.h | 11 uint16_t width; member 17 uint16_t width, uint16_t height) in qemu_rect_init() argument 21 rect->width = width; in qemu_rect_init() 39 x2 = MIN(a->x + a->width, b->x + b->width); in qemu_rect_intersect()
|
/qemu/contrib/vhost-user-gpu/ |
H A D | vhost-user-gpu.c | 378 res->width = c2d.width; in vg_resource_create_2d() 617 t2d.r.width > res->width || in vg_transfer_to_host_2d() 687 ss.r.width > res->width || in vg_set_scanout() 689 ss.r.x + ss.r.width > res->width || in vg_set_scanout() 710 scanout->width = ss.r.width; in vg_set_scanout() 723 .width = ss.r.width, in vg_set_scanout() 742 .width = scanout->width, in vg_set_scanout() 772 rf.r.width > res->width || in vg_resource_flush() 774 rf.r.x + rf.r.width > res->width || in vg_resource_flush() 814 .width = width, in vg_resource_flush() [all …]
|
/qemu/target/hexagon/ |
H A D | genptr.h | 27 void gen_store32(TCGv vaddr, TCGv src, int width, uint32_t slot); 45 void gen_sat_i32(TCGv dest, TCGv source, int width); 46 void gen_sat_i32_ovfl(TCGv ovfl, TCGv dest, TCGv source, int width); 47 void gen_satu_i32(TCGv dest, TCGv source, int width); 48 void gen_satu_i32_ovfl(TCGv ovfl, TCGv dest, TCGv source, int width); 49 void gen_sat_i64(TCGv_i64 dest, TCGv_i64 source, int width); 50 void gen_sat_i64_ovfl(TCGv ovfl, TCGv_i64 dest, TCGv_i64 source, int width); 51 void gen_satu_i64(TCGv_i64 dest, TCGv_i64 source, int width); 52 void gen_satu_i64_ovfl(TCGv ovfl, TCGv_i64 dest, TCGv_i64 source, int width);
|
/qemu/hw/block/ |
H A D | pflash_cfi02.c | 79 uint8_t width; member 261 unsigned int width) in pflash_data_read() argument 264 uint64_t ret = pfl->be ? ldn_be_p(p, width) : ldn_le_p(p, width); in pflash_data_read() 320 if (pfl->width == 2) { in pflash_read() 322 } else if (pfl->width == 4) { in pflash_read() 344 ret = pflash_data_read(pfl, offset, width); in pflash_read() 432 unsigned int width) in pflash_write() argument 456 if (pfl->width == 2) { in pflash_write() 458 } else if (pfl->width == 4) { in pflash_write() 559 pflash_update(pfl, offset, width); in pflash_write() [all …]
|
H A D | pflash_cfi01.c | 249 int width, int be) in pflash_data_read() argument 256 ret = ldn_be_p(p + offset, width); in pflash_data_read() 258 ret = ldn_le_p(p + offset, width); in pflash_data_read() 260 trace_pflash_data_read(pfl->name, offset, width, ret); in pflash_data_read() 265 int width, int be) in pflash_read() argument 284 ret = pflash_data_read(pfl, offset, width, be); in pflash_read() 305 } else if (!pfl->device_width && width > 2) { in pflash_read() 344 for (i = 0; i < width; i += pfl->bank_width) { in pflash_read() 457 stn_be_p(p, width, value); in pflash_data_write() 459 stn_le_p(p, width, value); in pflash_data_write() [all …]
|
/qemu/hw/m68k/ |
H A D | mcf5206.c | 424 int width; in m5206_mbar_readw() local 432 if (width > 2) { in m5206_mbar_readw() 438 } else if (width < 2) { in m5206_mbar_readw() 450 int width; in m5206_mbar_readl() local 458 if (width < 4) { in m5206_mbar_readl() 476 int width; in m5206_mbar_writeb() local 484 if (width > 1) { in m5206_mbar_writeb() 502 int width; in m5206_mbar_writew() local 510 if (width > 2) { in m5206_mbar_writew() 532 int width; in m5206_mbar_writel() local [all …]
|