Home
last modified time | relevance | path

Searched refs:y2 (Results 1 – 25 of 80) sorted by relevance

1234

/drivers/gpu/drm/
Ddrm_rect.c49 r1->y2 = min(r1->y2, r2->y2); in drm_rect_intersect()
110 src->y1 = src->y2 - new_src_h; in drm_rect_clip_scaled()
121 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled()
126 src->y2 = src->y1 + new_src_h; in drm_rect_clip_scaled()
127 dst->y2 -= diff; in drm_rect_clip_scaled()
268 r->y1 = height - tmp.y2; in drm_rect_rotate()
269 r->y2 = height - tmp.y1; in drm_rect_rotate()
279 r->x2 = tmp.y2; in drm_rect_rotate()
281 r->y2 = width - tmp.x1; in drm_rect_rotate()
287 r->y1 = height - tmp.y2; in drm_rect_rotate()
[all …]
Ddrm_damage_helper.c46 dest->y2 = src->y2; in convert_clip_rect_to_rect()
242 iter->plane_src.y2 = (src.y2 >> 16) + !!(src.y2 & 0xFFFF); in drm_atomic_helper_damage_iter_init()
321 rect->y2 = 0; in drm_atomic_helper_damage_merged()
328 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
Ddrm_fb_helper.c387 clip->x2 = clip->y2 = 0; in drm_fb_helper_fb_dirty()
405 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_fb_dirty()
627 clip->y2 = max_t(u32, clip->y2, y + height); in drm_fb_helper_add_damage_clip()
653 u32 y2 = DIV_ROUND_UP(end, line_length); in drm_fb_helper_memory_range_to_clip() local
658 if (y2 > fb_height) in drm_fb_helper_memory_range_to_clip()
659 y2 = fb_height; in drm_fb_helper_memory_range_to_clip()
661 if ((y2 - y1) == 1) { in drm_fb_helper_memory_range_to_clip()
673 drm_rect_init(clip, x1, y1, x2 - x1, y2 - y1); in drm_fb_helper_memory_range_to_clip()
Ddrm_plane_helper.c183 .y2 = src_y + src_h, in drm_plane_helper_update_primary()
189 .y2 = crtc_y + crtc_h, in drm_plane_helper_update_primary()
/drivers/gpu/drm/tests/
Ddrm_rect_test.c64 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
66 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
78 src.y1 != 0 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
80 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
92 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
94 dst.y1 != 0 || dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped()
112 src.y1 != 0 || src.y2 != 1 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
114 dst.y1 != 0 || dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
126 src.y1 != 1 << 16 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
128 dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped()
[all …]
Ddrm_damage_helper_test.c60 int y2) in set_plane_src() argument
65 state->src_h = y2 - y1; in set_plane_src()
70 state->src.y2 = y2; in set_plane_src()
74 int y2) in set_damage_clip() argument
79 r->y2 = y2; in set_damage_clip()
96 int x1, int y1, int x2, int y2) in check_damage_clip() argument
108 int src_y2 = (state.src.y2 >> 16) + !!(state.src.y2 & 0xFFFF); in check_damage_clip()
110 if (x1 >= x2 || y1 >= y2) in check_damage_clip()
112 if (x1 < src_x1 || y1 < src_y1 || x2 > src_x2 || y2 > src_y2) in check_damage_clip()
114 if (r->x1 != x1 || r->y1 != y1 || r->x2 != x2 || r->y2 != y2) in check_damage_clip()
[all …]
/drivers/gpu/drm/tiny/
Dili9225.c84 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty()
89 u16 x1, x2, y1, y2; in ili9225_fb_dirty() local
113 y2 = rect->y2 - 1; in ili9225_fb_dirty()
119 x2 = rect->y2 - 1; in ili9225_fb_dirty()
121 y2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty()
123 y_start = y2; in ili9225_fb_dirty()
128 y1 = fb->height - rect->y2; in ili9225_fb_dirty()
129 y2 = fb->height - rect->y1 - 1; in ili9225_fb_dirty()
131 y_start = y2; in ili9225_fb_dirty()
134 x1 = fb->height - rect->y2; in ili9225_fb_dirty()
[all …]
Dst7586.c69 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
83 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332()
137 (rect->y2 >> 8) & 0xFF, (rect->y2 - 1) & 0xFF); in st7586_fb_dirty()
141 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty()
180 .y2 = fb->height, in st7586_pipe_enable()
Dgm12u320.c256 int block, dst_offset, len, remain, ret, x1, x2, y1, y2; in gm12u320_copy_fb_to_blocks() local
270 y2 = gm12u320->fb_update.rect.y2; in gm12u320_copy_fb_to_blocks()
284 for (; y1 < y2; y1++) { in gm12u320_copy_fb_to_blocks()
424 rect->y2 = max(rect->y2, dirty->y2); in gm12u320_fb_mark_dirty()
/drivers/video/fbdev/
Dxen-fbfront.c45 int x1, y1, x2, y2; /* dirty rectangle, member
145 int y2 = y1 + h - 1; in xenfb_refresh() local
157 if (info->y2 > y2) in xenfb_refresh()
158 y2 = info->y2; in xenfb_refresh()
169 info->y2 = y2; in xenfb_refresh()
176 info->x2 = info->y2 = 0; in xenfb_refresh()
180 if (x1 <= x2 && y1 <= y2) in xenfb_refresh()
181 xenfb_do_update(info, x1, y1, x2 - x1 + 1, y2 - y1 + 1); in xenfb_refresh()
189 int y1, y2, miny, maxy; in xenfb_deferred_io() local
197 y2 = end / fb_info->fix.line_length; in xenfb_deferred_io()
[all …]
Dhyperv_fb.c206 s32 x2, y2; /* bottom right corner, exclusive */ member
275 int x1, y1, x2, y2; member
372 synthvid_update(struct fb_info *info, int x1, int y1, int x2, int y2) in synthvid_update() argument
380 if (y2 == INT_MAX) in synthvid_update()
381 y2 = info->var.yres; in synthvid_update()
389 msg.dirt.rect[0].y1 = (y1 > y2) ? 0 : y1; in synthvid_update()
392 msg.dirt.rect[0].y2 = in synthvid_update()
393 (y2 < y1 || y2 > info->var.yres) ? info->var.yres : y2; in synthvid_update()
420 int y1, y2, miny, maxy; in synthvid_deferred_io() local
435 y2 = end / p->fix.line_length; in synthvid_deferred_io()
[all …]
Dhgafb.c485 u_int rows, y1, y2; in hgafb_copyarea() local
491 y2 = area->dy; in hgafb_copyarea()
495 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea()
498 y2++; in hgafb_copyarea()
502 y2 = area->dy + area->height - 1; in hgafb_copyarea()
506 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea()
509 y2--; in hgafb_copyarea()
Dtridentfb.c356 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in blade_copy_rect() argument
361 u32 d1 = point(x2, y2); in blade_copy_rect()
362 u32 d2 = point(x2 + w - 1, y2 + h - 1); in blade_copy_rect()
364 if ((y1 > y2) || ((y1 == y2) && (x1 > x2))) in blade_copy_rect()
444 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in xp_copy_rect() argument
449 if ((x1 < x2) && (y1 == y2)) { in xp_copy_rect()
458 if (y1 < y2) { in xp_copy_rect()
461 y2_tmp = y2 + h - 1; in xp_copy_rect()
464 y2_tmp = y2; in xp_copy_rect()
518 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in image_copy_rect() argument
[all …]
Dvga16fb.c900 int x, x2, y2, vxres, vyres, width, height, line_ofs; in vga16fb_fillrect() local
913 y2 = rect->dy + rect->height; in vga16fb_fillrect()
915 y2 = y2 < vyres ? y2 : vyres; in vga16fb_fillrect()
922 height = y2 - rect->dy; in vga16fb_fillrect()
1031 int x, x2, y2, old_dx, old_dy, vxres, vyres; in vga16fb_copyarea() local
1052 y2 = area->dy + area->height; in vga16fb_copyarea()
1056 y2 = y2 < vyres ? y2 : vyres; in vga16fb_copyarea()
1058 height = y2 - dy; in vga16fb_copyarea()
Datafb.c2418 int x2, y2; in atafb_fillrect() local
2436 y2 = rect->dy + rect->height; in atafb_fillrect()
2438 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_fillrect()
2440 height = y2 - rect->dy; in atafb_fillrect()
2461 int x2, y2; in atafb_copyarea() local
2474 y2 = area->dy + area->height; in atafb_copyarea()
2478 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_copyarea()
2480 height = y2 - dy; in atafb_copyarea()
2515 int x2, y2; in atafb_imageblit() local
2532 y2 = image->dy + image->height; in atafb_imageblit()
[all …]
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c194 int x2, y2, vxres, vyres; in mb86290fb_imageblit() local
197 y2 = image->dy + image->height; in mb86290fb_imageblit()
201 y2 = min(y2, vyres); in mb86290fb_imageblit()
203 height = y2 - dy; in mb86290fb_imageblit()
252 u32 x2, y2, vxres, vyres, height, width, fg; in mb86290fb_fillrect() local
265 y2 = rect->dy + rect->height; in mb86290fb_fillrect()
267 y2 = min(y2, vyres); in mb86290fb_fillrect()
269 height = y2 - rect->dy; in mb86290fb_fillrect()
/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/
Dia_css_ctc1_5.host.c81 to->y2 = from->y2; in ia_css_ctc_encode()
100 from->y2, from->y1, in ia_css_ctc_encode()
105 from->y3, from->y2, in ia_css_ctc_encode()
/drivers/input/touchscreen/
Dmc13783_ts.c70 int x0, x1, x2, y0, y1, y2; in mc13783_ts_report_sample() local
82 y2 = (priv->sample[1] >> 12) & 0xfff; in mc13783_ts_report_sample()
88 x0, x1, x2, y0, y1, y2, cr0, cr1); in mc13783_ts_report_sample()
91 sort3(y0, y1, y2); in mc13783_ts_report_sample()
97 y2 - y0 < sample_tolerance)) { in mc13783_ts_report_sample()
/drivers/iio/magnetometer/
Dyamaha-yas530.c284 static int yas530_measure(struct yas5xx *yas5xx, u16 *t, u16 *x, u16 *y1, u16 *y2) in yas530_measure() argument
330 *y2 = yas530_extract_axis(&data[6]); in yas530_measure()
344 *y2 = yas532_extract_axis(&data[6]); in yas530_measure()
368 static int yas537_measure(struct yas5xx *yas5xx, u16 *t, u16 *x, u16 *y1, u16 *y2) in yas537_measure() argument
421 *y2 = xy1y2[2]; in yas537_measure()
504 u16 t_ref, t_comp, t, x, y1, y2; in yas530_get_measure() local
510 ret = yas530_measure(yas5xx, &t, &x, &y1, &y2); in yas530_get_measure()
517 sy2 = yas530_linearize(yas5xx, y2, 2); in yas530_get_measure()
586 u16 t, x, y1, y2; in yas537_get_measure() local
590 ret = yas537_measure(yas5xx, &t, &x, &y1, &y2); in yas537_get_measure()
[all …]
/drivers/gpu/drm/i915/display/
Dintel_psr.c1914 val |= ADLP_PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(clip->y2 - 1); in psr2_man_trk_ctl_calc()
1916 drm_WARN_ON(crtc_state->uapi.crtc->dev, clip->y1 % 4 || clip->y2 % 4); in psr2_man_trk_ctl_calc()
1919 val |= PSR2_MAN_TRK_CTL_SU_REGION_END_ADDR(clip->y2 / 4 + 1); in psr2_man_trk_ctl_calc()
1934 overlap_damage_area->y2 = damage_area->y2; in clip_area_update()
1941 if (damage_area->y2 > overlap_damage_area->y2) in clip_area_update()
1942 overlap_damage_area->y2 = damage_area->y2; in clip_area_update()
1960 if (pipe_clip->y2 % y_alignment) in intel_psr2_sel_fetch_pipe_alignment()
1961 pipe_clip->y2 = ((pipe_clip->y2 / y_alignment) + 1) * y_alignment; in intel_psr2_sel_fetch_pipe_alignment()
2004 struct drm_rect pipe_clip = { .x1 = 0, .y1 = -1, .x2 = INT_MAX, .y2 = -1 }; in intel_psr2_sel_fetch_update()
2051 damaged_area.y2 = old_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update()
[all …]
/drivers/gpu/drm/gud/
Dgud_pipe.c118 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color()
314 gdrm->damage.y2 = 0; in gud_clear_damage()
341 rect.y2 = min_t(u32, rect.y1 + lines, damage->y2); in gud_flush_damage()
413 gdrm->damage.y2 = max(gdrm->damage.y2, damage->y2); in gud_fb_queue_damage()
/drivers/gpu/drm/meson/
Dmeson_plane.c278 dest.y2 /= 2; in meson_plane_atomic_update()
299 SCO_HV_END(dest.y2 - 1); in meson_plane_atomic_update()
355 ((fixed16_to_int(new_state->src.y2) - 1) << 16) | in meson_plane_atomic_update()
358 priv->viu.osd1_blk0_cfg[4] = ((dest.y2 - 1) << 16) | dest.y1; in meson_plane_atomic_update()
362 priv->viu.osd_blend_din0_scope_v = ((dest.y2 - 1) << 16) | dest.y1; in meson_plane_atomic_update()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_kms.c1725 if (rects[i].y2 > bounding_box.y2) in vmw_kms_check_display_memory()
1726 bounding_box.y2 = rects[i].y2; in vmw_kms_check_display_memory()
1748 bb_mem = (u64) bounding_box.x2 * bounding_box.y2 * 4; in vmw_kms_check_display_memory()
1882 rects[i].y2 = du->gui_y + crtc_state->mode.vdisplay; in vmw_kms_check_topology()
1887 rects[i].y2 = 0; in vmw_kms_check_topology()
2374 drm_rects[i].y2 = curr_rect.y + curr_rect.h; in vmw_kms_update_layout_ioctl()
2378 drm_rects[i].x2, drm_rects[i].y2); in vmw_kms_update_layout_ioctl()
2389 drm_rects[i].y2 > mode_config->max_height) { in vmw_kms_update_layout_ioctl()
2392 drm_rects[i].x2, drm_rects[i].y2); in vmw_kms_update_layout_ioctl()
2488 dirty->unit_y2 = (s32) clips_ptr->y2 + dest_y - in vmw_kms_helper_dirty()
[all …]
/drivers/gpu/drm/qxl/
Dqxl_draw.c167 bottom = clips->y2; in qxl_draw_dirty_fb()
175 bottom = max_t(int, bottom, (int)clips_ptr->y2); in qxl_draw_dirty_fb()
249 rects[i].bottom = clips_ptr->y2; in qxl_draw_dirty_fb()
/drivers/gpu/drm/nouveau/dispnv04/
Dtvnv17.h117 static inline int interpolate(int y0, int y1, int y2, int x) in interpolate() argument
119 return y1 + (x < 50 ? y1 - y0 : y2 - y1) * (x - 50) / 50; in interpolate()

1234