| /drivers/gpu/drm/ |
| A D | drm_rect.c | 49 r1->y2 = min(r1->y2, r2->y2); in drm_rect_intersect() 120 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled() 126 dst->y2 -= diff; in drm_rect_clip_scaled() 278 r->x2 = tmp.y2; in drm_rect_rotate() 280 r->y2 = width - tmp.x1; in drm_rect_rotate() 286 r->y1 = height - tmp.y2; in drm_rect_rotate() 287 r->y2 = height - tmp.y1; in drm_rect_rotate() 294 r->y2 = tmp.x2; in drm_rect_rotate() 337 r->x1 = width - tmp.y2; in drm_rect_rotate_inv() 340 r->y2 = tmp.x2; in drm_rect_rotate_inv() [all …]
|
| A D | drm_damage_helper.c | 48 dest->y2 = src->y2; in convert_clip_rect_to_rect() 244 iter->plane_src.y2 = (src.y2 >> 16) + !!(src.y2 & 0xFFFF); in drm_atomic_helper_damage_iter_init() 323 rect->y2 = 0; in drm_atomic_helper_damage_merged() 330 rect->y2 = max(rect->y2, clip.y2); in drm_atomic_helper_damage_merged()
|
| A D | drm_fb_helper.c | 377 clip->x2 = clip->y2 = 0; in drm_fb_helper_fb_dirty() 395 clip->y2 = max_t(u32, clip->y2, clip_copy.y2); in drm_fb_helper_fb_dirty() 622 clip->y2 = max_t(u32, clip->y2, y + height); in drm_fb_helper_add_damage_clip() 659 u32 y2 = DIV_ROUND_UP(end, line_length); in drm_fb_helper_memory_range_to_clip() local 664 if (y2 > fb_height) in drm_fb_helper_memory_range_to_clip() 665 y2 = fb_height; in drm_fb_helper_memory_range_to_clip() 667 if ((y2 - y1) == 1) { in drm_fb_helper_memory_range_to_clip() 679 drm_rect_init(clip, x1, y1, x2 - x1, y2 - y1); in drm_fb_helper_memory_range_to_clip()
|
| /drivers/gpu/drm/tests/ |
| A D | drm_rect_test.c | 64 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() 94 dst.y1 != 0 || dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_not_clipped() 114 dst.y1 != 0 || dst.y2 != 1, "Destination 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() 142 dst.y2 != 1, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped() 156 dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped() 170 dst.y2 != 2, "Destination badly clipped\n"); in drm_test_rect_clip_scaled_clipped() [all …]
|
| A D | drm_damage_helper_test.c | 60 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/ |
| A D | ili9225.c | 90 u16 x1, x2, y1, y2; in ili9225_fb_dirty() local 114 y2 = rect->y2 - 1; in ili9225_fb_dirty() 120 x2 = rect->y2 - 1; in ili9225_fb_dirty() 122 y2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty() 124 y_start = y2; in ili9225_fb_dirty() 129 y1 = fb->height - rect->y2; in ili9225_fb_dirty() 130 y2 = fb->height - rect->y1 - 1; in ili9225_fb_dirty() 132 y_start = y2; in ili9225_fb_dirty() 135 x1 = fb->height - rect->y2; in ili9225_fb_dirty() 138 y2 = rect->x2 - 1; in ili9225_fb_dirty() [all …]
|
| A D | gm12u320.c | 255 int block, dst_offset, len, remain, ret, x1, x2, y1, y2; in gm12u320_copy_fb_to_blocks() local 269 y2 = gm12u320->fb_update.rect.y2; in gm12u320_copy_fb_to_blocks() 283 for (; y1 < y2; y1++) { in gm12u320_copy_fb_to_blocks() 423 rect->y2 = max(rect->y2, dirty->y2); in gm12u320_fb_mark_dirty()
|
| /drivers/video/fbdev/ |
| A D | xen-fbfront.c | 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() 189 int y1, y2, miny, maxy; in xenfb_deferred_io() local 198 if (y2 >= fb_info->var.yres) in xenfb_deferred_io() 199 y2 = fb_info->var.yres - 1; in xenfb_deferred_io() 202 if (maxy < y2) in xenfb_deferred_io() [all …]
|
| A D | hyperv_fb.c | 274 int x1, y1, x2, y2; member 381 if (y2 == INT_MAX) in synthvid_update() 382 y2 = info->var.yres; in synthvid_update() 393 msg.dirt.rect[0].y2 = in synthvid_update() 394 (y2 < y1 || y2 > info->var.yres) ? info->var.yres : y2; in synthvid_update() 421 int y1, y2, miny, maxy; in synthvid_deferred_io() local 716 int x1, x2, y1, y2; in hvfb_update_work() local 727 y2 = par->y2; in hvfb_update_work() 731 par->x2 = par->y2 = 0; in hvfb_update_work() 761 int y2 = y1 + h; in hvfb_ondemand_refresh_throttle() local [all …]
|
| A D | hgafb.c | 494 u_int rows, y1, y2; in hgafb_copyarea() local 500 y2 = area->dy; in hgafb_copyarea() 504 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea() 507 y2++; in hgafb_copyarea() 511 y2 = area->dy + area->height - 1; in hgafb_copyarea() 515 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea() 518 y2--; in hgafb_copyarea()
|
| A D | tridentfb.c | 360 u32 d1 = point(x2, y2); in blade_copy_rect() 363 if ((y1 > y2) || ((y1 == y2) && (x1 > x2))) in blade_copy_rect() 448 if ((x1 < x2) && (y1 == y2)) { in xp_copy_rect() 457 if (y1 < y2) { in xp_copy_rect() 460 y2_tmp = y2 + h - 1; in xp_copy_rect() 463 y2_tmp = y2; in xp_copy_rect() 522 u32 d1 = point(x2, y2); in image_copy_rect() 525 if ((y1 > y2) || ((y1 == y2) && (x1 > x2))) in image_copy_rect() 596 if (y1 < y2) { in tgui_copy_rect() 599 y2_tmp = y2 + h - 1; in tgui_copy_rect() [all …]
|
| A D | vga16fb.c | 899 int x, x2, y2, vxres, vyres, width, height, line_ofs; in vga16fb_fillrect() local 912 y2 = rect->dy + rect->height; in vga16fb_fillrect() 914 y2 = y2 < vyres ? y2 : vyres; in vga16fb_fillrect() 921 height = y2 - rect->dy; in vga16fb_fillrect() 1030 int x, x2, y2, old_dx, old_dy, vxres, vyres; in vga16fb_copyarea() local 1051 y2 = area->dy + area->height; in vga16fb_copyarea() 1055 y2 = y2 < vyres ? y2 : vyres; in vga16fb_copyarea() 1057 height = y2 - dy; in vga16fb_copyarea()
|
| A D | atafb.c | 2418 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 2536 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_imageblit() [all …]
|
| /drivers/video/fbdev/mb862xx/ |
| A D | mb862xxfb_accel.c | 194 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/ |
| A D | ia_css_ctc1_5.host.c | 72 to->y2 = from->y2; in ia_css_ctc_encode() 91 from->y2, from->y1, in ia_css_ctc_encode() 96 from->y3, from->y2, in ia_css_ctc_encode()
|
| /drivers/input/touchscreen/ |
| A D | mc13783_ts.c | 70 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/gpu/drm/sitronix/ |
| A D | st7586.c | 71 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332() 85 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332() 139 (rect->y2 >> 8) & 0xFF, (rect->y2 - 1) & 0xFF); in st7586_fb_dirty() 143 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty() 183 .y2 = fb->height, in st7586_pipe_enable()
|
| A D | st7571-i2c.c | 289 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_monochrome() 301 u32 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_grayscale() 314 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 8; in st7571_prepare_buffer_grayscale() 319 size = (rect->x2 - rect->x1) * (rect->y2 - rect->y1) / 4; in st7571_prepare_buffer_grayscale() 332 rect->y2 = min_t(unsigned int, round_up(rect->y2, ST7571_PAGE_HEIGHT), st7571->nlines); in st7571_fb_update_rect_monochrome() 334 for (int y = rect->y1; y < rect->y2; y += ST7571_PAGE_HEIGHT) { in st7571_fb_update_rect_monochrome() 358 rect->y2 = min_t(unsigned int, round_up(rect->y2, ST7571_PAGE_HEIGHT), st7571->nlines); in st7571_fb_update_rect_grayscale() 374 for (int y = rect->y1; y < rect->y2; y += ST7571_PAGE_HEIGHT) { in st7571_fb_update_rect_grayscale()
|
| /drivers/iio/magnetometer/ |
| A D | yamaha-yas530.c | 330 *y2 = yas530_extract_axis(&data[6]); in yas530_measure() 344 *y2 = yas532_extract_axis(&data[6]); in yas530_measure() 422 *y2 = xy1y2[2]; in yas537_measure() 505 u16 t_ref, t_comp, t, x, y1, y2; in yas530_get_measure() local 511 ret = yas530_measure(yas5xx, &t, &x, &y1, &y2); in yas530_get_measure() 518 sy2 = yas530_linearize(yas5xx, y2, 2); in yas530_get_measure() 587 u16 t, x, y1, y2; in yas537_get_measure() local 605 *yo = (y1 - y2) * 1732 / 10; in yas537_get_measure() 606 *zo = (-y1 - y2 + BIT(14)) * 300; in yas537_get_measure() 1196 u16 t, x, y1, y2; in yas530_measure_offsets() local [all …]
|
| /drivers/gpu/drm/vmwgfx/ |
| A D | vmwgfx_kms.c | 813 if (rects[i].y2 > bounding_box.y2) in vmw_kms_check_display_memory() 814 bounding_box.y2 = rects[i].y2; in vmw_kms_check_display_memory() 836 bb_mem = (u64) bounding_box.x2 * bounding_box.y2 * 4; in vmw_kms_check_display_memory() 975 rects[i].y2 = 0; in vmw_kms_check_topology() 1450 drm_rects[i].y2 = curr_rect.y + curr_rect.h; in vmw_kms_update_layout_ioctl() 1454 drm_rects[i].x2, drm_rects[i].y2); in vmw_kms_update_layout_ioctl() 1465 drm_rects[i].y2 > mode_config->max_height) { in vmw_kms_update_layout_ioctl() 1468 drm_rects[i].x2, drm_rects[i].y2); in vmw_kms_update_layout_ioctl() 1564 dirty->unit_y2 = (s32) clips_ptr->y2 + dest_y - in vmw_kms_helper_dirty() 1815 bb.y2 = INT_MIN; in vmw_du_helper_plane_update() [all …]
|
| /drivers/gpu/drm/gud/ |
| A D | gud_pipe.c | 119 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color() 322 gdrm->damage.y2 = 0; in gud_clear_damage() 350 rect.y2 = min_t(u32, rect.y1 + lines, damage->y2); in gud_flush_damage() 424 gdrm->damage.y2 = max(gdrm->damage.y2, damage->y2); in gud_fb_queue_damage()
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_psr.c | 2550 overlap_damage_area->y2 = damage_area->y2; in clip_area_update() 2557 if (damage_area->y2 > overlap_damage_area->y2) in clip_area_update() 2558 overlap_damage_area->y2 = damage_area->y2; in clip_area_update() 2576 crtc_state->psr2_su_area.y2 = ((crtc_state->psr2_su_area.y2 / in intel_psr2_sel_fetch_pipe_alignment() 2680 crtc_state->psr2_su_area.y2++; in intel_psr_apply_pr_link_on_su_wa() 2759 damaged_area.y2 = old_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update() 2766 damaged_area.y2 = new_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update() 2774 damaged_area.y2 = new_plane_state->uapi.dst.y2; in intel_psr2_sel_fetch_update() 2844 sel_fetch_area->y2 = -1; in intel_psr2_sel_fetch_update() 2862 sel_fetch_area->y2 = inter.y2 - new_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() [all …]
|
| /drivers/gpu/drm/meson/ |
| A D | meson_plane.c | 278 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/qxl/ |
| A D | qxl_draw.c | 167 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/ |
| A D | tvnv17.h | 117 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()
|