| /drivers/gpu/drm/ |
| A D | drm_rect.c | 47 r1->y1 = max(r1->y1, r2->y1); in drm_rect_intersect() 104 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled() 110 dst->y1 += diff; in drm_rect_clip_scaled() 277 r->x1 = tmp.y1; in drm_rect_rotate() 279 r->y1 = width - tmp.x2; in drm_rect_rotate() 286 r->y1 = height - tmp.y2; in drm_rect_rotate() 287 r->y2 = height - tmp.y1; in drm_rect_rotate() 293 r->y1 = tmp.x1; in drm_rect_rotate() 338 r->x2 = width - tmp.y1; in drm_rect_rotate_inv() 339 r->y1 = tmp.x1; in drm_rect_rotate_inv() [all …]
|
| A D | drm_damage_helper.c | 46 dest->y1 = src->y1; in convert_clip_rect_to_rect() 242 iter->plane_src.y1 = src.y1 >> 16; in drm_atomic_helper_damage_iter_init() 321 rect->y1 = INT_MAX; in drm_atomic_helper_damage_merged() 328 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
|
| A D | drm_panic.c | 310 for (y = clip->y1; y < clip->y2; y++) { in drm_panic_fill_page() 402 rec.y1 = clip->y1 + i * font->height; in draw_txt_rectangle() 403 rec.y2 = rec.y1 + font->height; in draw_txt_rectangle() 487 r_txt.y1 -= font->height; in draw_line_with_wrap() 488 if (r_txt.y1 < 0) in draw_line_with_wrap() 489 return r_txt.y1; in draw_line_with_wrap() 494 r_txt.y1 -= font->height; in draw_line_with_wrap() 495 if (r_txt.y1 < 0) in draw_line_with_wrap() 496 return r_txt.y1; in draw_line_with_wrap() 500 r_txt.y1 -= font->height; in draw_line_with_wrap() [all …]
|
| A D | drm_plane_helper.c | 112 .src_y = src->y1, in drm_plane_helper_check_update() 116 .crtc_y = dst->y1, in drm_plane_helper_check_update() 182 .y1 = src_y, in drm_plane_helper_update_primary() 188 .y1 = crtc_y, in drm_plane_helper_update_primary()
|
| /drivers/gpu/drm/tests/ |
| A D | drm_rect_test.c | 20 KUNIT_EXPECT_EQ(test, r->y1, expected->y1); in drm_rect_compare() 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() 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() 140 src.y1 != 0 || src.y2 != 2 << 16, "Source badly clipped\n"); in drm_test_rect_clip_scaled_clipped() [all …]
|
| A D | drm_damage_helper_test.c | 63 state->src_y = y1; in set_plane_src() 65 state->src_h = y2 - y1; in set_plane_src() 68 state->src.y1 = y1; in set_plane_src() 73 static void set_damage_clip(struct drm_mode_rect *r, int x1, int y1, int x2, in set_damage_clip() argument 77 r->y1 = y1; in set_damage_clip() 96 int x1, int y1, int x2, int y2) in check_damage_clip() argument 106 int src_y1 = state.src.y1 >> 16; 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/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/ |
| A D | ia_css_ctc1_5.host.c | 17 int y1, int y0, int x1, int x0) in ctc_gradient() argument 20 int dy = y1 - y0; in ctc_gradient() 38 assert(y1 >= 0 && y1 <= max_dydx); in ctc_gradient() 71 to->y1 = from->y1; in ia_css_ctc_encode() 86 from->y1, from->y0, in ia_css_ctc_encode() 91 from->y2, from->y1, in ia_css_ctc_encode()
|
| /drivers/gpu/drm/tiny/ |
| A D | ili9225.c | 90 u16 x1, x2, y1, y2; in ili9225_fb_dirty() local 113 y1 = rect->y1; in ili9225_fb_dirty() 116 y_start = y1; in ili9225_fb_dirty() 119 x1 = rect->y1; in ili9225_fb_dirty() 121 y1 = fb->width - rect->x2; 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() 136 x2 = fb->height - rect->y1 - 1; in ili9225_fb_dirty() 137 y1 = rect->x1; in ili9225_fb_dirty() 140 y_start = y1; 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 268 y1 = gm12u320->fb_update.rect.y1; in gm12u320_copy_fb_to_blocks() 278 src = vaddr + y1 * fb->pitches[0] + x1 * 4; in gm12u320_copy_fb_to_blocks() 283 for (; y1 < y2; y1++) { in gm12u320_copy_fb_to_blocks() 286 dst_offset = (y1 * GM12U320_REAL_WIDTH + x1) * 3; in gm12u320_copy_fb_to_blocks() 421 rect->y1 = min(rect->y1, dirty->y1); in gm12u320_fb_mark_dirty()
|
| /drivers/video/fbdev/ |
| A D | xen-fbfront.c | 145 int y2 = y1 + h - 1; in xenfb_refresh() 155 if (info->y1 < y1) in xenfb_refresh() 156 y1 = info->y1; in xenfb_refresh() 168 info->y1 = y1; in xenfb_refresh() 175 info->x1 = info->y1 = INT_MAX; 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 200 if (miny > y1) in xenfb_deferred_io() 201 miny = y1; in xenfb_deferred_io() [all …]
|
| A D | hyperv_fb.c | 274 int x1, y1, x2, y2; member 390 msg.dirt.rect[0].y1 = (y1 > y2) ? 0 : y1; in synthvid_update() 421 int y1, y2, miny, maxy; in synthvid_deferred_io() local 437 miny = min_t(int, miny, y1); in synthvid_deferred_io() 716 int x1, x2, y1, y2; in hvfb_update_work() local 726 y1 = par->y1; in hvfb_update_work() 730 par->x1 = par->y1 = INT_MAX; in hvfb_update_work() 741 for (j = y1; j < y2; j++) in hvfb_update_work() 761 int y2 = y1 + h; in hvfb_ondemand_refresh_throttle() 767 par->y1 = min_t(int, par->y1, y1); in hvfb_ondemand_refresh_throttle() [all …]
|
| A D | hgafb.c | 494 u_int rows, y1, y2; in hgafb_copyarea() local 499 y1 = area->sy; in hgafb_copyarea() 503 src = rowaddr(info, y1) + (area->sx >> 3); in hgafb_copyarea() 506 y1++; in hgafb_copyarea() 510 y1 = area->sy + area->height - 1; in hgafb_copyarea() 514 src = rowaddr(info, y1) + (area->sx >> 3); in hgafb_copyarea() 517 y1--; in hgafb_copyarea()
|
| A D | broadsheetfb.c | 865 u16 y1, u16 y2) in broadsheetfb_dpy_update_pages() argument 872 y1 &= 0xFFFC; in broadsheetfb_dpy_update_pages() 878 args[2] = y1; in broadsheetfb_dpy_update_pages() 886 buf += y1 * par->info->var.xres; in broadsheetfb_dpy_update_pages() 887 broadsheet_burst_write(par, ((1 + y2 - y1) * par->info->var.xres)/2, in broadsheetfb_dpy_update_pages() 934 u16 y1 = 0, h = 0; in broadsheetfb_dpy_deferred_io() local 948 y1 = pageref->offset / xres; in broadsheetfb_dpy_deferred_io() 955 broadsheetfb_dpy_update_pages(info->par, y1, y1 + h); in broadsheetfb_dpy_deferred_io() 957 y1 = pageref->offset / xres; in broadsheetfb_dpy_deferred_io() 968 broadsheetfb_dpy_update_pages(info->par, y1, in broadsheetfb_dpy_deferred_io() [all …]
|
| A D | tridentfb.c | 358 u32 s1 = point(x1, y1); 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() 459 y1_tmp = y1 + h - 1; in xp_copy_rect() 462 y1_tmp = y1; in xp_copy_rect() 520 u32 s1 = point(x1, y1); in image_copy_rect() 525 if ((y1 > y2) || ((y1 == y2) && (x1 > x2))) in image_copy_rect() 596 if (y1 < y2) { in tgui_copy_rect() 598 y1_tmp = y1 + h - 1; in tgui_copy_rect() [all …]
|
| /drivers/input/touchscreen/ |
| A D | mc13783_ts.c | 70 int x0, x1, x2, y0, y1, y2; in mc13783_ts_report_sample() local 81 y1 = (priv->sample[0] >> 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() 101 input_report_abs(idev, ABS_Y, y1); in mc13783_ts_report_sample() 104 x1, y1, 0x1000 - cr0); in mc13783_ts_report_sample()
|
| /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()
|
| /drivers/media/usb/gspca/ |
| A D | w996Xcf.c | 359 y1 = v0 + hw_bufsize / 4, in w9968cf_init() local 360 u1 = y1 + hw_bufsize / 2, in w9968cf_init() 376 reg_w(sd, 0x22, y1 & 0xffff); /* Y buf.1, low */ in w9968cf_init() 377 reg_w(sd, 0x23, y1 >> 16); /* Y buf.1, high */ in w9968cf_init() 383 reg_w(sd, 0x32, y1 & 0xffff); /* JPEG buf 0 low */ in w9968cf_init() 384 reg_w(sd, 0x33, y1 >> 16); /* JPEG buf 0 high */ in w9968cf_init() 386 reg_w(sd, 0x34, y1 & 0xffff); /* JPEG buf 1 low */ in w9968cf_init() 387 reg_w(sd, 0x35, y1 >> 16); /* JPEG bug 1 high */ in w9968cf_init()
|
| /drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc2/ |
| A D | ia_css_ctc2.host.c | 31 static int ctc2_slope(int y1, int y0, int x1, int x0) in ctc2_slope() argument 35 int dy = y1 - y0; in ctc2_slope() 43 assert(y1 >= 0 && y1 <= max_slope); in ctc2_slope()
|
| /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() 138 (rect->y1 >> 8) & 0xFF, rect->y1 & 0xFF, in st7586_fb_dirty() 143 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty() 182 .y1 = 0, in st7586_pipe_enable()
|
| /drivers/gpu/drm/armada/ |
| A D | armada_plane.c | 44 unsigned int y = state->src.y1 >> 16; in armada_drm_plane_calc() 111 if ((new_plane_state->dst.y1 | new_plane_state->dst.y2) & 1) in armada_drm_plane_atomic_check() 114 st->dst_yx = new_plane_state->dst.y1 >> 1; in armada_drm_plane_atomic_check() 118 st->dst_yx = new_plane_state->dst.y1; in armada_drm_plane_atomic_check() 179 old_state->src.y1 != new_state->src.y1 || in armada_drm_primary_plane_atomic_update()
|
| /drivers/gpu/drm/i915/display/ |
| A D | intel_psr.c | 2549 overlap_damage_area->y1 = damage_area->y1; in clip_area_update() 2554 if (damage_area->y1 < overlap_damage_area->y1) in clip_area_update() 2555 overlap_damage_area->y1 = damage_area->y1; in clip_area_update() 2574 crtc_state->psr2_su_area.y1 -= crtc_state->psr2_su_area.y1 % y_alignment; in intel_psr2_sel_fetch_pipe_alignment() 2758 damaged_area.y1 = old_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() 2765 damaged_area.y1 = new_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() 2773 damaged_area.y1 = new_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() 2787 damaged_area.y1 += new_plane_state->uapi.dst.y1 - src.y1; in intel_psr2_sel_fetch_update() 2788 damaged_area.y2 += new_plane_state->uapi.dst.y1 - src.y1; in intel_psr2_sel_fetch_update() 2861 sel_fetch_area->y1 = inter.y1 - new_plane_state->uapi.dst.y1; in intel_psr2_sel_fetch_update() [all …]
|
| /drivers/iio/magnetometer/ |
| A D | yamaha-yas530.c | 329 *y1 = yas530_extract_axis(&data[4]); in yas530_measure() 343 *y1 = yas532_extract_axis(&data[4]); in yas530_measure() 421 *y1 = xy1y2[1]; 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() 517 sy1 = yas530_linearize(yas5xx, y1, 1); 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/gud/ |
| A D | gud_pipe.c | 119 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color() 207 buf = vaddr + rect->y1 * pitch; in gud_prep_flush() 214 req->y = cpu_to_le32(rect->y1); in gud_prep_flush() 320 gdrm->damage.y1 = INT_MAX; in gud_clear_damage() 349 rect.y1 += i * lines; in gud_flush_damage() 350 rect.y2 = min_t(u32, rect.y1 + lines, damage->y2); in gud_flush_damage() 422 gdrm->damage.y1 = min(gdrm->damage.y1, damage->y1); in gud_fb_queue_damage()
|
| /drivers/gpu/drm/sun4i/ |
| A D | sun8i_ui_layer.c | 73 vphase = state->src.y1 & 0xffff; in sun8i_ui_layer_update_coord() 80 state->src.x1 >> 16, state->src.y1 >> 16); in sun8i_ui_layer_update_coord() 119 state->dst.x1, state->dst.y1); in sun8i_ui_layer_update_coord() 123 SUN8I_MIXER_COORD(state->dst.x1, state->dst.y1)); in sun8i_ui_layer_update_coord() 179 dma_addr += (state->src.y1 >> 16) * fb->pitches[0]; in sun8i_ui_layer_update_buffer()
|
| /drivers/gpu/drm/nouveau/dispnv04/i2c/ |
| A D | ch7006_priv.h | 158 static inline int interpolate(int y0, int y1, int y2, int x) in interpolate() argument 160 return y1 + (x < 50 ? y1 - y0 : y2 - y1) * (x - 50) / 50; in interpolate()
|