Home
last modified time | relevance | path

Searched refs:stride (Results 1 – 25 of 85) sorted by relevance

1234

/openbmc/qemu/tests/tcg/hexagon/
H A Dhvx_histogram.c26 const int stride = (width + vector_len - 1) & -vector_len; variable
30 static uint8_t input[height][stride] __attribute__((aligned(128))) = {
50 static void ref_histogram(uint8_t *src, int stride, int width, int height, in ref_histogram() argument
59 hist[src[i * stride + j]]++; in ref_histogram()
64 static void hvx_histogram(uint8_t *src, int stride, int width, int height, in hvx_histogram() argument
75 hvx_histogram_row(src, stride, width, k, hist); in hvx_histogram()
76 src += n * stride; 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()
H A Dhvx_histogram_row.h21 void hvx_histogram_row(uint8_t *src, int stride, int width, int height,
/openbmc/qemu/hw/display/
H A Dramfb.c28 uint32_t stride; member
49 hwaddr stride, hwaddr addr) in ramfb_create_display_surface() argument
61 if (stride == 0) { in ramfb_create_display_surface()
62 stride = linesize; in ramfb_create_display_surface()
65 mapsize = size = stride * (height - 1) + linesize; in ramfb_create_display_surface()
73 format, stride, data); in ramfb_create_display_surface()
85 hwaddr stride, addr; in ramfb_fw_cfg_write() local
89 stride = be32_to_cpu(s->cfg.stride); in ramfb_fw_cfg_write()
95 format, stride, addr); in ramfb_fw_cfg_write()
H A Dbochs-display.c28 uint32_t stride; member
187 mode->stride = virt_width * mode->bytepp; in bochs_display_get_mode()
188 mode->size = (uint64_t)mode->stride * mode->height; in bochs_display_get_mode()
190 (uint64_t)vbe[VBE_DISPI_INDEX_Y_OFFSET] * mode->stride); in bochs_display_get_mode()
225 mode.stride, in bochs_display_update()
240 mode.offset + mode.stride * y, in bochs_display_update()
241 mode.stride); in bochs_display_update()
H A Dvirtio-gpu.c238 int stride = ((width * bpp + 0x1f) >> 5) * sizeof(uint32_t); in calc_image_hostmem() local
239 return height * stride; in calc_image_hostmem()
436 uint32_t src_offset, dst_offset, stride; in virtio_gpu_transfer_to_host_2d() local
467 stride = pixman_image_get_stride(res->image); in virtio_gpu_transfer_to_host_2d()
472 src_offset = t2d.offset + stride * h; in virtio_gpu_transfer_to_host_2d()
473 dst_offset = (t2d.r.y + h) * stride + (t2d.r.x * bpp); in virtio_gpu_transfer_to_host_2d()
481 dst_offset = t2d.r.y * stride + t2d.r.x * bpp; in virtio_gpu_transfer_to_host_2d()
484 stride * t2d.r.height); in virtio_gpu_transfer_to_host_2d()
662 ptr, fb->stride); in virtio_gpu_do_set_scanout()
717 fb.stride = pixman_image_get_stride(res->image); in virtio_gpu_set_scanout()
[all …]
/openbmc/qemu/include/ui/
H A Dpixman-minimal.h102 int stride; member
121 int stride = 0; in create_bits() local
130 if (unlikely(__builtin_mul_overflow(width, bpp, &stride))) { in create_bits()
134 if (unlikely(__builtin_add_overflow(stride, 0x1f, &stride))) { in create_bits()
138 stride >>= 5; in create_bits()
140 stride *= sizeof(uint32_t); in create_bits()
143 (size_t) stride, in create_bits()
149 *rowstride_bytes = stride; in create_bits()
175 i->stride = rowstride_bytes ? rowstride_bytes : in pixman_image_create_bits()
231 return i->stride; in pixman_image_get_stride()
/openbmc/u-boot/drivers/video/meson/
H A Dmeson_canvas.c25 u32 stride, u32 height, in meson_canvas_setup() argument
31 (((stride + 7) >> 3) << CANVAS_WIDTH_LBIT)); in meson_canvas_setup()
34 ((((stride + 7) >> 3) >> CANVAS_WIDTH_LWID) << in meson_canvas_setup()
/openbmc/qemu/contrib/vhost-user-gpu/
H A Dvugbm.c17 buf->stride = buf->width * 4; in mem_alloc_bo()
81 buf->stride = buf->width * 4; in udmabuf_alloc_bo()
144 buf->stride = gbm_bo_get_stride(buf->bo); in alloc_bo()
160 uint32_t stride; in map_bo() local
163 GBM_BO_TRANSFER_READ_WRITE, &stride, in map_bo()
166 assert(stride == buf->stride); in map_bo()
300 buffer->stride = 0; /* modified during alloc */ in vugbm_buffer_create()
H A Dvugbm.h53 uint32_t stride; member
/openbmc/qemu/ui/
H A Ddmabuf.c18 uint32_t stride[DMABUF_MAX_PLANES]; member
35 const uint32_t *offset, const uint32_t *stride, in qemu_dmabuf_new() argument
50 memcpy(dmabuf->stride, stride, num_planes * sizeof(*stride)); in qemu_dmabuf_new()
142 *nstrides = ARRAY_SIZE(dmabuf->stride); in qemu_dmabuf_get_strides()
145 return dmabuf->stride; in qemu_dmabuf_get_strides()
H A Ddbus-listener.c298 uint32_t width, height, stride, fourcc; in dbus_scanout_dmabuf_v1() local
313 stride = qemu_dmabuf_get_strides(dmabuf, NULL)[0]; in dbus_scanout_dmabuf_v1()
321 width, height, stride, fourcc, modifier, in dbus_scanout_dmabuf_v1()
333 GVariant *fd, *offset, *stride, *fd_handles[DMABUF_MAX_PLANES]; in dbus_scanout_dmabuf_v2() local
376 stride = g_variant_new_fixed_array(G_VARIANT_TYPE_UINT32, in dbus_scanout_dmabuf_v2()
385 ddl->scanout_dmabuf_v2_proxy, fd, x, y, width, height, offset, stride, in dbus_scanout_dmabuf_v2()
589 uint32_t offset[DMABUF_MAX_PLANES], stride[DMABUF_MAX_PLANES], fourcc; in dbus_scanout_texture() local
593 if (!egl_dmabuf_export_texture(tex_id, fd, (EGLint *)offset, (EGLint *)stride, in dbus_scanout_texture()
598 dmabuf = qemu_dmabuf_new(w, h, offset, stride, x, y, backing_width, in dbus_scanout_texture()
758 size_t stride; in dbus_gfx_update_sub() local
[all …]
/openbmc/u-boot/arch/arm/mach-imx/
H A Diomux-v3.c93 int stride; in imx_iomux_v3_setup_multiple_pads() local
97 stride = 2; in imx_iomux_v3_setup_multiple_pads()
101 stride = 1; in imx_iomux_v3_setup_multiple_pads()
105 p += stride; in imx_iomux_v3_setup_multiple_pads()
/openbmc/u-boot/drivers/video/
H A Dipu_common.c815 uint32_t height, uint32_t stride, in ipu_ch_param_init() argument
830 ipu_ch_param_set_field(&params, 1, 102, 14, (stride * 2) - 1); in ipu_ch_param_init()
833 ipu_ch_param_set_field(&params, 1, 102, 14, stride - 1); in ipu_ch_param_init()
908 if (uv_stride < stride / 2) in ipu_ch_param_init()
909 uv_stride = stride / 2; in ipu_ch_param_init()
911 u_offset = stride * height; in ipu_ch_param_init()
926 if (uv_stride < stride / 2) in ipu_ch_param_init()
927 uv_stride = stride / 2; in ipu_ch_param_init()
929 v_offset = (v == 0) ? stride * height : v; in ipu_ch_param_init()
937 if (uv_stride < stride / 2) in ipu_ch_param_init()
[all …]
/openbmc/u-boot/doc/device-tree-bindings/video/
H A Dsimple-framebuffer.txt12 - stride: The number of bytes in each line of the framebuffer.
23 stride = <(1600 * 2)>;
/openbmc/qemu/target/arm/tcg/
H A Dneon-ls.decode48 vd=%vd_dp size=0 stride=1
50 vd=%vd_dp size=1 stride=%imm1_5_p1
52 vd=%vd_dp size=2 stride=%imm1_6_p1
/openbmc/u-boot/drivers/pinctrl/uniphier/
H A Dpinctrl-uniphier-core.c224 unsigned int base, stride, width, drvctrl, reg, shift; in uniphier_pinconf_drive_set() local
235 stride = 1; in uniphier_pinconf_drive_set()
241 stride = 2; in uniphier_pinconf_drive_set()
247 stride = 4; in uniphier_pinconf_drive_set()
256 drvctrl *= stride; in uniphier_pinconf_drive_set()
/openbmc/qemu/hw/dma/
H A Dbcm2835_dma.c72 ch->stride = ldl_le_phys(&s->dma_as, ch->conblk_ad + 16); in bcm2835_dma_update()
80 dst_stride = ch->stride >> 16; in bcm2835_dma_update()
81 src_stride = ch->stride & 0xffff; in bcm2835_dma_update()
178 res = ch->stride; in bcm2835_dma_read()
321 VMSTATE_UINT32(stride, BCM2835DMAChan),
/openbmc/u-boot/arch/arm/include/asm/arch-tegra20/
H A Ddisplay.h21 unsigned stride; /* Number of bytes per line */ member
/openbmc/qemu/include/hw/dma/
H A Dbcm2835_dma.h21 uint32_t stride; member
/openbmc/qemu/tcg/
H A Dregion.c69 size_t stride; /* .size + guard size */ member
214 if (offset > region.stride * (region.n - 1)) { in tc_ptr_to_region_tree()
217 region_idx = offset / region.stride; in tc_ptr_to_region_tree()
333 start = region.start_aligned + curr_region * region.stride; in tcg_region_bounds()
793 region.stride = region_size; in tcg_region_init()
912 guard_size = region.stride - region.size; in tcg_code_capacity()
/openbmc/qemu/hw/arm/
H A Dsmmu-common.c76 uint8_t stride = tt->granule_sz - 3; in smmu_iotlb_lookup_all_levels() local
77 uint8_t level = 4 - (inputsize - 4) / stride; in smmu_iotlb_lookup_all_levels()
464 uint8_t level, granule_sz, inputsize, stride; in smmu_ptw_64_s1() local
472 stride = VMSA_STRIDE(granule_sz); in smmu_ptw_64_s1()
474 level = 4 - (inputsize - 4) / stride; in smmu_ptw_64_s1()
475 indexmask = VMSA_IDXMSK(inputsize, stride, level); in smmu_ptw_64_s1()
595 int stride = VMSA_STRIDE(granule_sz); in smmu_ptw_64_s2() local
602 (1 << stride) * idx * sizeof(uint64_t); in smmu_ptw_64_s2()
603 dma_addr_t indexmask = VMSA_IDXMSK(inputsize, stride, level); in smmu_ptw_64_s2()
/openbmc/openbmc/meta-raspberrypi/recipes-graphics/userland/files/
H A D0012-implement-buffer-wrapping-interface-for-dispmanx.patch27 + uint32_t stride, uint32_t buffer_height, uint32_t format)
85 + <arg name="stride" type="uint"/>
/openbmc/qemu/target/hexagon/imported/
H A Dsystem.idef56 ((RtV>>16)&0xffff), /*stride*/
66 fGETUHALF(2,RttV), /*stride*/
/openbmc/u-boot/drivers/ram/rockchip/
H A Dsdram_rk3288.c614 rk_clrsetreg(&dram->sgrf->soc_con2, 0x1f, sdram_params->base.stride); in dram_all_config()
747 int stride = -1; in sdram_get_stride() local
758 stride = 0; in sdram_get_stride()
761 stride = 5; in sdram_get_stride()
764 stride = 9; in sdram_get_stride()
767 stride = 0xd; in sdram_get_stride()
770 stride = -1; in sdram_get_stride()
775 sdram_params->base.stride = stride; in sdram_get_stride()
/openbmc/qemu/include/hw/display/
H A Dmacfb.h48 uint32_t stride; member

1234