Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 88) sorted by relevance

1234

/linux/drivers/video/fbdev/sis/
H A Dsis_accel.c305 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/video/fbdev/core/
H A Dfb_fillrect.h202 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 Dsavagefb_accel.c65 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 Dmb862xxfb_accel.c249 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 Dexynos_drm_fimc.c474 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 Dexynos_drm_gsc.c571 cfg = (GSC_SRCIMG_OFFSET_X(buf->rect.x) | in gsc_src_set_size()
572 GSC_SRCIMG_OFFSET_Y(buf->rect.y)); in gsc_src_set_size()
576 cfg = (GSC_CROPPED_WIDTH(buf->rect.w) | in gsc_src_set_size()
577 GSC_CROPPED_HEIGHT(buf->rect.h)); in gsc_src_set_size()
593 if (buf->rect.w >= GSC_WIDTH_ITU_709) in gsc_src_set_size()
871 cfg = (GSC_DSTIMG_OFFSET_X(buf->rect.x) | in gsc_dst_set_size()
872 GSC_DSTIMG_OFFSET_Y(buf->rect.y)); in gsc_dst_set_size()
877 cfg = (GSC_SCALED_WIDTH(buf->rect.h) | in gsc_dst_set_size()
878 GSC_SCALED_HEIGHT(buf->rect.w)); in gsc_dst_set_size()
880 cfg = (GSC_SCALED_WIDTH(buf->rect.w) | in gsc_dst_set_size()
[all …]
H A Dexynos_drm_rotator.c149 val = ROT_CROP_POS_Y(buf->rect.y) | ROT_CROP_POS_X(buf->rect.x); in rotator_src_set_buf()
151 val = ROT_SRC_CROP_SIZE_H(buf->rect.h) | in rotator_src_set_buf()
152 ROT_SRC_CROP_SIZE_W(buf->rect.w); in rotator_src_set_buf()
197 val = ROT_CROP_POS_Y(buf->rect.y) | ROT_CROP_POS_X(buf->rect.x); in rotator_dst_set_buf()
/linux/drivers/video/fbdev/
H A Dhitfb.c140 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 Dwmt_ge_rops.h5 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 Dvga16fb.c843 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 Ds1d13xxxfb.c523 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 Dhgafb.c472 static void hgafb_fillrect(struct fb_info *info, const struct fb_fillrect *rect) in hgafb_fillrect() argument
477 y = rect->dy; in hgafb_fillrect()
479 for (rows = rect->height; rows--; y++) { in hgafb_fillrect()
480 dest = rowaddr(info, y) + (rect->dx >> 3); in hgafb_fillrect()
481 switch (rect->rop) { in hgafb_fillrect()
483 memset_io(dest, rect->color, (rect->width >> 3)); in hgafb_fillrect()
/linux/drivers/media/i2c/
H A Dtvp5150.c80 struct v4l2_rect rect; member
820 decoder->rect.height = TVP5150_V_MAX_525_60; in tvp5150_s_std()
822 decoder->rect.height = TVP5150_V_MAX_OTHERS; in tvp5150_s_std()
1035 return &decoder->rect; in tvp5150_get_pad_crop()
1059 f->width = decoder->rect.width; in tvp5150_fill_fmt()
1060 f->height = decoder->rect.height / 2; in tvp5150_fill_fmt()
1087 struct v4l2_rect *rect) in tvp5150_set_hw_selection() argument
1092 regmap_write(decoder->regmap, TVP5150_VERT_BLANKING_START, rect->top); in tvp5150_set_hw_selection()
1094 rect->top + rect->height - hmax); in tvp5150_set_hw_selection()
1096 rect->left >> TVP5150_CROP_SHIFT); in tvp5150_set_hw_selection()
[all …]
H A Dov772x.c413 struct v4l2_rect rect; member
523 .rect = {
533 .rect = {
977 u32 diff = abs(width - ov772x_win_sizes[i].rect.width) in ov772x_select_win()
978 + abs(height - ov772x_win_sizes[i].rect.height); in ov772x_select_win()
1078 ret = regmap_write(priv->regmap, HSTART, win->rect.left >> 2); in ov772x_set_params()
1081 ret = regmap_write(priv->regmap, HSIZE, win->rect.width >> 2); in ov772x_set_params()
1084 ret = regmap_write(priv->regmap, VSTART, win->rect.top >> 1); in ov772x_set_params()
1087 ret = regmap_write(priv->regmap, VSIZE, win->rect.height >> 1); in ov772x_set_params()
1090 ret = regmap_write(priv->regmap, HOUTSIZE, win->rect.width >> 2); in ov772x_set_params()
[all …]
/linux/drivers/video/fbdev/nvidia/
H A Dnv_accel.c318 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 Dbrowser.c18 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/gpu/drm/hyperv/
H A Dhyperv_drm_proto.c141 struct rect { struct
149 struct rect rect[1]; argument
351 int hyperv_update_dirt(struct hv_device *hdev, struct drm_rect *rect) in hyperv_update_dirt() argument
366 msg.dirt.rect[0].x1 = rect->x1; in hyperv_update_dirt()
367 msg.dirt.rect[0].y1 = rect->y1; in hyperv_update_dirt()
368 msg.dirt.rect[0].x2 = rect->x2; in hyperv_update_dirt()
369 msg.dirt.rect[0].y2 = rect->y2; in hyperv_update_dirt()
/linux/drivers/video/fbdev/aty/
H A Dmach64_accel.c247 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 Di810_accel.c298 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 Dfimc-lite-reg.c165 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 DSchedGui.py120 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/gpu/drm/
H A Ddrm_client.c444 int drm_client_buffer_flush(struct drm_client_buffer *buffer, struct drm_rect *rect) in drm_client_buffer_flush() argument
449 if (rect) { in drm_client_buffer_flush()
451 .x1 = rect->x1, in drm_client_buffer_flush()
452 .y1 = rect->y1, in drm_client_buffer_flush()
453 .x2 = rect->x2, in drm_client_buffer_flush()
454 .y2 = rect->y2, in drm_client_buffer_flush()
/linux/drivers/gpu/drm/tests/
H A Ddrm_rect_test.c432 struct drm_rect rect; member
441 .rect = DRM_RECT_INIT(0, 0, 5, 5),
448 .rect = DRM_RECT_INIT(2, 0, 5, 5),
455 .rect = DRM_RECT_INIT(0, 2, 5, 5),
462 .rect = DRM_RECT_INIT(0, 0, 5, 10),
469 .rect = DRM_RECT_INIT(11, 3, 5, 10),
476 .rect = DRM_RECT_INIT(6, 3, 5, 10),
492 struct drm_rect r = params->rect; in drm_test_rect_rotate()
506 drm_rect_compare(test, &r, &params->rect); in drm_test_rect_rotate_inv()
/linux/Documentation/driver-api/media/
H A Dv4l2-rect.rst3 V4L2 rect helper functions
6 .. kernel-doc:: include/media/v4l2-rect.h
/linux/drivers/gpu/drm/amd/display/dc/dce110/
H A Ddce110_transform_v.c49 struct rect *luma_viewport, in calculate_viewport()
50 struct rect *chroma_viewport) in calculate_viewport()
79 struct rect *luma_view_port, in program_viewport()
80 struct rect *chroma_view_port) in program_viewport()
371 struct rect *luma_viewport, in calculate_inits()
372 struct rect *chroma_viewport) in calculate_inits()
529 struct rect luma_viewport = {0}; in dce110_xfmv_set_scaler()
530 struct rect chroma_viewport = {0}; in dce110_xfmv_set_scaler()

1234