| /linux/drivers/video/fbdev/sis/ |
| H A D | sis_accel.c | 305 void fbcon_sis_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in fbcon_sis_fillrect() argument 318 cfb_fillrect(info, rect); in fbcon_sis_fillrect() 322 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) in fbcon_sis_fillrect() 326 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; in fbcon_sis_fillrect() 327 height = ((rect->dy + rect->height) > vyres) ? (vyres - rect->dy) : rect->height; in fbcon_sis_fillrect() 330 case 8: col = rect->color; in fbcon_sis_fillrect() 333 case 32: col = ((u32 *)(info->pseudo_palette))[rect->color]; in fbcon_sis_fillrect() 340 SiS300SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect() 341 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect() 347 SiS310SetupForSolidFill(ivideo, col, myrops[rect->rop]); in fbcon_sis_fillrect() [all …]
|
| /linux/drivers/gpu/drm/gud/ |
| H A D | gud_pipe.c | 53 struct drm_rect *rect, in gud_xrgb8888_to_r124() argument 67 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_r124() 68 width = drm_rect_width(rect); in gud_xrgb8888_to_r124() 69 height = drm_rect_height(rect); in gud_xrgb8888_to_r124() 78 drm_fb_xrgb8888_to_gray8(&dst_map, NULL, &vmap, fb, rect, fmtcnv_state); in gud_xrgb8888_to_r124() 103 struct drm_rect *rect) in gud_xrgb8888_to_color() argument 114 rect->x1 = ALIGN_DOWN(rect->x1, block_width); in gud_xrgb8888_to_color() 115 width = drm_rect_width(rect); in gud_xrgb8888_to_color() 116 len = drm_format_info_min_pitch(format, 0, width) * drm_rect_height(rect); in gud_xrgb8888_to_color() 118 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color() [all …]
|
| /linux/drivers/gpu/drm/virtio/ |
| H A D | virtgpu_plane.c | 137 struct drm_rect *rect) in virtio_gpu_panic_update_dumb_bo() argument 142 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_panic_update_dumb_bo() 143 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_panic_update_dumb_bo() 144 uint32_t x = rect->x1; in virtio_gpu_panic_update_dumb_bo() 145 uint32_t y = rect->y1; in virtio_gpu_panic_update_dumb_bo() 160 struct drm_rect *rect) in virtio_gpu_update_dumb_bo() argument 165 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo() 166 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo() 167 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo() 168 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo() [all …]
|
| /linux/drivers/video/fbdev/core/ |
| H A D | fb_fillrect.h | 202 static inline void fb_fillrect_static(const struct fb_fillrect *rect, int bpp, in fb_fillrect_static() argument 206 u32 height = rect->height; in fb_fillrect_static() 207 int width = rect->width * bpp; in fb_fillrect_static() 212 if (rect->rop == ROP_XOR) in fb_fillrect_static() 232 static __always_inline void fb_fillrect_rotating(const struct fb_fillrect *rect, in fb_fillrect_rotating() argument 239 u32 height = rect->height; in fb_fillrect_rotating() 240 int width = rect->width * bpp; in fb_fillrect_rotating() 242 if (rect->rop == ROP_XOR) in fb_fillrect_rotating() 256 static inline void fb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in fb_fillrect() argument 264 fb_address_forward(&dst, rect->dy * bits_per_line + rect->dx * bpp); in fb_fillrect() [all …]
|
| /linux/drivers/video/fbdev/savage/ |
| H A D | savagefb_accel.c | 65 void savagefb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in savagefb_fillrect() argument 70 if (!rect->width || !rect->height) in savagefb_fillrect() 74 color = rect->color; in savagefb_fillrect() 76 color = ((u32 *)info->pseudo_palette)[rect->color]; in savagefb_fillrect() 83 BCI_CMD_SET_ROP(cmd, savagefb_rop[rect->rop]); in savagefb_fillrect() 88 BCI_SEND( BCI_X_Y(rect->dx, rect->dy) ); in savagefb_fillrect() 89 BCI_SEND( BCI_W_H(rect->width, rect->height) ); in savagefb_fillrect()
|
| /linux/drivers/video/fbdev/mb862xx/ |
| H A D | mb862xxfb_accel.c | 249 const struct fb_fillrect *rect) in mb86290fb_fillrect() argument 258 if (!rect->width || !rect->height || rect->dx > vxres in mb86290fb_fillrect() 259 || rect->dy > vyres) in mb86290fb_fillrect() 264 x2 = rect->dx + rect->width; in mb86290fb_fillrect() 265 y2 = rect->dy + rect->height; in mb86290fb_fillrect() 268 width = x2 - rect->dx; in mb86290fb_fillrect() 269 height = y2 - rect->dy; in mb86290fb_fillrect() 272 fg = ((u32 *) (info->pseudo_palette))[rect->color]; in mb86290fb_fillrect() 274 fg = rect->color; in mb86290fb_fillrect() 276 switch (rect->rop) { in mb86290fb_fillrect() [all …]
|
| /linux/drivers/gpu/drm/exynos/ |
| H A D | exynos_drm_fimc.c | 474 h1 = buf->rect.x; in fimc_set_window() 475 h2 = real_width - buf->rect.w - buf->rect.x; in fimc_set_window() 476 v1 = buf->rect.y; in fimc_set_window() 477 v2 = buf->buf.height - buf->rect.h - buf->rect.y; in fimc_set_window() 480 buf->rect.x, buf->rect.y, buf->rect.w, buf->rect.h, in fimc_set_window() 517 DRM_DEV_DEBUG_KMS(ctx->dev, "x[%d]y[%d]w[%d]h[%d]\n", buf->rect.x, in fimc_src_set_size() 518 buf->rect.y, buf->rect.w, buf->rect.h); in fimc_src_set_size() 524 cfg |= (EXYNOS_CIREAL_ISIZE_WIDTH(buf->rect.w) | in fimc_src_set_size() 525 EXYNOS_CIREAL_ISIZE_HEIGHT(buf->rect.h)); in fimc_src_set_size() 538 cfg = (EXYNOS_CIIYOFF_HORIZONTAL(buf->rect.x) | in fimc_src_set_size() [all …]
|
| H A D | exynos_drm_gsc.c | 570 cfg = (GSC_SRCIMG_OFFSET_X(buf->rect.x) | in gsc_src_set_size() 571 GSC_SRCIMG_OFFSET_Y(buf->rect.y)); in gsc_src_set_size() 575 cfg = (GSC_CROPPED_WIDTH(buf->rect.w) | in gsc_src_set_size() 576 GSC_CROPPED_HEIGHT(buf->rect.h)); in gsc_src_set_size() 592 if (buf->rect.w >= GSC_WIDTH_ITU_709) in gsc_src_set_size() 870 cfg = (GSC_DSTIMG_OFFSET_X(buf->rect.x) | in gsc_dst_set_size() 871 GSC_DSTIMG_OFFSET_Y(buf->rect.y)); in gsc_dst_set_size() 876 cfg = (GSC_SCALED_WIDTH(buf->rect.h) | in gsc_dst_set_size() 877 GSC_SCALED_HEIGHT(buf->rect.w)); in gsc_dst_set_size() 879 cfg = (GSC_SCALED_WIDTH(buf->rect.w) | in gsc_dst_set_size() [all …]
|
| /linux/drivers/gpu/drm/vmwgfx/ |
| H A D | vmwgfx_blit.c | 265 struct drm_rect *rect = &diff->rect; in vmw_adjust_rect() local 267 rect->x1 = min_t(int, rect->x1, offs); in vmw_adjust_rect() 268 rect->x2 = max_t(int, rect->x2, offs + 1); in vmw_adjust_rect() 269 rect->y1 = min_t(int, rect->y1, diff->line); in vmw_adjust_rect() 270 rect->y2 = max_t(int, rect->y2, diff->line + 1); in vmw_adjust_rect() 525 diff->rect.x1 = x_in_bytes / diff->cpp; in vmw_external_bo_copy() 526 diff->rect.y1 = ((dst_offset - x_in_bytes) / dst_stride); in vmw_external_bo_copy() 527 diff->rect.x2 = diff->rect.x1 + width_in_bytes / diff->cpp; in vmw_external_bo_copy() 528 diff->rect.y2 = diff->rect.y1 + height; in vmw_external_bo_copy()
|
| /linux/drivers/video/fbdev/ |
| H A D | hitfb.c | 140 static void hitfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect) in hitfb_fillrect() argument 142 if (rect->rop != ROP_COPY) in hitfb_fillrect() 143 cfb_fillrect(p, rect); in hitfb_fillrect() 150 hitfb_writew(((u32 *) (p->pseudo_palette))[rect->color], in hitfb_fillrect() 152 hitfb_accel_set_dest(1, rect->dx, rect->dy, rect->width, in hitfb_fillrect() 153 rect->height); in hitfb_fillrect() 156 hitfb_writew(rect->color, HD64461_GRSCR); in hitfb_fillrect() 157 hitfb_accel_set_dest(0, rect->dx, rect->dy, rect->width, in hitfb_fillrect() 158 rect->height); in hitfb_fillrect()
|
| H A D | wmt_ge_rops.h | 5 const struct fb_fillrect *rect); 18 const struct fb_fillrect *rect) in wmt_ge_fillrect() argument 20 sys_fillrect(p, rect); in wmt_ge_fillrect()
|
| H A D | vga16fb.c | 843 static void vga_8planes_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in vga_8planes_fillrect() argument 845 u32 dx = rect->dx, width = rect->width; in vga_8planes_fillrect() 854 where = info->screen_base + dx + rect->dy * info->fix.line_length; in vga_8planes_fillrect() 856 if (rect->rop == ROP_COPY) { in vga_8planes_fillrect() 864 height = rect->height; in vga_8planes_fillrect() 871 writeb(rect->color, where); in vga_8planes_fillrect() 883 for (y = 0; y < rect->height; y++) { in vga_8planes_fillrect() 897 static void vga16fb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in vga16fb_fillrect() argument 905 if (!rect->width || !rect->height || rect->dx > vxres || rect->dy > vyres) in vga16fb_fillrect() 911 x2 = rect->dx + rect->width; in vga16fb_fillrect() [all …]
|
| H A D | s1d13xxxfb.c | 523 s1d13xxxfb_bitblt_solidfill(struct fb_info *info, const struct fb_fillrect *rect) in s1d13xxxfb_bitblt_solidfill() argument 536 dest = ((rect->dy * screen_stride) + (bpp * rect->dx)); in s1d13xxxfb_bitblt_solidfill() 540 rect->dx, rect->dy, screen_stride, dest, in s1d13xxxfb_bitblt_solidfill() 541 rect->width - 1, rect->height - 1); in s1d13xxxfb_bitblt_solidfill() 546 dbg_blit("(solidfill) : rop=%d\n", rect->rop); in s1d13xxxfb_bitblt_solidfill() 554 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_WIDTH0, ((rect->width) & 0x00ff) - 1); in s1d13xxxfb_bitblt_solidfill() 555 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_WIDTH1, (rect->width >> 8)); in s1d13xxxfb_bitblt_solidfill() 558 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_HEIGHT0, ((rect->height) & 0x00ff) - 1); in s1d13xxxfb_bitblt_solidfill() 559 s1d13xxxfb_writereg(info->par, S1DREG_BBLT_HEIGHT1, (rect->height >> 8)); in s1d13xxxfb_bitblt_solidfill() 563 fg = ((u32 *)info->pseudo_palette)[rect->color]; in s1d13xxxfb_bitblt_solidfill() [all …]
|
| H A D | atafb.c | 2438 const struct fb_fillrect *rect) in svblit_fillrect() argument 2447 if (rect->rop != ROP_COPY || rect->height <= 1 || in svblit_fillrect() 2448 rect->height > 4096) { in svblit_fillrect() 2449 cfb_fillrect(info, rect); in svblit_fillrect() 2454 ((u32 *)info->pseudo_palette)[rect->color] : rect->color; in svblit_fillrect() 2457 line = (u8 *)info->screen_base + rect->dy * pitch + in svblit_fillrect() 2458 rect->dx * bytespp; in svblit_fillrect() 2461 memset(line, pix, rect->width); in svblit_fillrect() 2464 memset16((u16 *)line, pix, rect->width); in svblit_fillrect() 2467 memset32((u32 *)line, pix, rect->width); in svblit_fillrect() [all …]
|
| /linux/drivers/video/fbdev/nvidia/ |
| H A D | nv_accel.c | 318 void nvidiafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in nvidiafb_fillrect() argument 327 cfb_fillrect(info, rect); in nvidiafb_fillrect() 332 color = rect->color; in nvidiafb_fillrect() 334 color = ((u32 *) info->pseudo_palette)[rect->color]; in nvidiafb_fillrect() 336 if (rect->rop != ROP_COPY) in nvidiafb_fillrect() 337 NVSetRopSolid(info, rect->rop, ~0); in nvidiafb_fillrect() 343 NVDmaNext(par, (rect->dx << 16) | rect->dy); in nvidiafb_fillrect() 344 NVDmaNext(par, (rect->width << 16) | rect->height); in nvidiafb_fillrect() 348 if (rect->rop != ROP_COPY) in nvidiafb_fillrect()
|
| /linux/tools/perf/ui/gtk/ |
| H A D | browser.c | 18 GdkRectangle rect; in perf_gtk__resize_window() local 28 gdk_screen_get_monitor_geometry(screen, monitor, &rect); in perf_gtk__resize_window() 30 width = rect.width * 3 / 4; in perf_gtk__resize_window() 31 height = rect.height * 3 / 4; in perf_gtk__resize_window()
|
| /linux/drivers/video/fbdev/aty/ |
| H A D | mach64_accel.c | 247 void atyfb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in atyfb_fillrect() argument 250 u32 color, dx = rect->dx, width = rect->width, rotation = 0; in atyfb_fillrect() 254 if (!rect->width || !rect->height) in atyfb_fillrect() 257 cfb_fillrect(info, rect); in atyfb_fillrect() 263 color = ((u32 *)(info->pseudo_palette))[rect->color]; in atyfb_fillrect() 265 color = rect->color; in atyfb_fillrect() 284 draw_rect(dx, rect->dy, width, rect->height, par); in atyfb_fillrect()
|
| /linux/drivers/video/fbdev/i810/ |
| H A D | i810_accel.c | 298 void i810fb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in i810fb_fillrect() argument 305 cfb_fillrect(info, rect); in i810fb_fillrect() 310 color = rect->color; in i810fb_fillrect() 312 color = ((u32 *) (info->pseudo_palette))[rect->color]; in i810fb_fillrect() 314 rop = i810fb_rop[rect->rop]; in i810fb_fillrect() 316 dx = rect->dx * par->depth; in i810fb_fillrect() 317 width = rect->width * par->depth; in i810fb_fillrect() 318 dy = rect->dy; in i810fb_fillrect() 319 height = rect->height; in i810fb_fillrect()
|
| /linux/drivers/media/platform/samsung/exynos4-is/ |
| H A D | fimc-lite-reg.c | 165 cfg |= (f->rect.left << 16) | f->rect.top; in flite_hw_set_window_offset() 169 hoff2 = f->f_width - f->rect.width - f->rect.left; in flite_hw_set_window_offset() 170 voff2 = f->f_height - f->rect.height - f->rect.top; in flite_hw_set_window_offset() 261 cfg |= (f->rect.top << 16) | f->rect.left; in flite_hw_set_dma_window()
|
| /linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
| H A D | SchedGui.py | 120 rect = y / (RootFrame.RECT_HEIGHT + RootFrame.RECT_SPACE) 123 if rect < 0 or rect > self.nr_rects - 1 or height > RootFrame.RECT_HEIGHT: 126 return rect 136 rect = self.rect_from_ypixel(y) 137 if rect == -1: 142 self.sched_tracer.mouse_down(rect, t)
|
| /linux/drivers/media/i2c/ |
| H A D | mt9v032.c | 569 struct v4l2_rect rect; in mt9v032_set_selection() local 577 rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1, in mt9v032_set_selection() 580 rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1, in mt9v032_set_selection() 583 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9v032_set_selection() 586 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9v032_set_selection() 590 rect.width = min_t(unsigned int, in mt9v032_set_selection() 591 rect.width, MT9V032_PIXEL_ARRAY_WIDTH - rect.left); in mt9v032_set_selection() 592 rect.height = min_t(unsigned int, in mt9v032_set_selection() 593 rect.height, MT9V032_PIXEL_ARRAY_HEIGHT - rect.top); in mt9v032_set_selection() 598 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9v032_set_selection() [all …]
|
| H A D | mt9p031.c | 651 struct v4l2_rect rect; in mt9p031_set_selection() local 659 rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN, in mt9p031_set_selection() 661 rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN, in mt9p031_set_selection() 663 rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2), in mt9p031_set_selection() 666 rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2), in mt9p031_set_selection() 670 rect.width = min_t(unsigned int, rect.width, in mt9p031_set_selection() 671 MT9P031_PIXEL_ARRAY_WIDTH - rect.left); in mt9p031_set_selection() 672 rect.height = min_t(unsigned int, rect.height, in mt9p031_set_selection() 673 MT9P031_PIXEL_ARRAY_HEIGHT - rect.top); in mt9p031_set_selection() 678 if (rect.width != __crop->width || rect.height != __crop->height) { in mt9p031_set_selection() [all …]
|
| H A D | ov2680.c | 742 struct v4l2_rect rect; in ov2680_set_selection() local 752 rect.left = clamp_val(ALIGN(sel->r.left, 2), in ov2680_set_selection() 754 rect.top = clamp_val(ALIGN(sel->r.top, 2), in ov2680_set_selection() 756 rect.width = clamp_val(ALIGN(sel->r.width, 2), in ov2680_set_selection() 758 rect.height = clamp_val(ALIGN(sel->r.height, 2), in ov2680_set_selection() 762 rect.width = min_t(unsigned int, rect.width, in ov2680_set_selection() 763 OV2680_NATIVE_WIDTH - rect.left); in ov2680_set_selection() 764 rect.height = min_t(unsigned int, rect.height, in ov2680_set_selection() 765 OV2680_NATIVE_HEIGHT - rect.top); in ov2680_set_selection() 770 if (rect.width != crop->width || rect.height != crop->height) { in ov2680_set_selection() [all …]
|
| /linux/Documentation/driver-api/media/ |
| H A D | v4l2-rect.rst | 3 V4L2 rect helper functions 6 .. kernel-doc:: include/media/v4l2-rect.h
|
| /linux/drivers/media/platform/chips-media/coda/ |
| H A D | coda-bit.c | 489 ysize = round_up(q_data->rect.width, 16) * in coda_alloc_framebuffers() 490 round_up(q_data->rect.height, 16); in coda_alloc_framebuffers() 492 ysize = round_up(q_data->rect.width, 8) * q_data->rect.height; in coda_alloc_framebuffers() 588 size = (unsigned long)(DIV_ROUND_UP(q_data->rect.width, 16) * in coda_alloc_context_buffers() 589 DIV_ROUND_UP(q_data->rect.height, 16)) * 3200 / 8 + 512; in coda_alloc_context_buffers() 646 r = &q_data_src->rect; in coda_encode_header() 836 mb_width = DIV_ROUND_UP(q_data_src->rect.width, 16); in coda_setup_iram() 1138 value = (q_data_src->rect.width & CODADX6_PICWIDTH_MASK) in coda_start_encoding() 1140 value |= (q_data_src->rect.height & CODADX6_PICHEIGHT_MASK) in coda_start_encoding() 1146 value = (round_up(q_data_src->rect.width, 16) & in coda_start_encoding() [all …]
|