Home
last modified time | relevance | path

Searched refs:y1 (Results 1 – 25 of 108) sorted by relevance

12345

/drivers/gpu/drm/
Ddrm_rect.c47 r1->y1 = max(r1->y1, r2->y1); in drm_rect_intersect()
105 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled()
110 src->y1 = src->y2 - new_src_h; in drm_rect_clip_scaled()
111 dst->y1 += diff; in drm_rect_clip_scaled()
126 src->y2 = src->y1 + new_src_h; 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()
278 r->x1 = tmp.y1; in drm_rect_rotate()
280 r->y1 = width - tmp.x2; in drm_rect_rotate()
287 r->y1 = height - tmp.y2; in drm_rect_rotate()
[all …]
Ddrm_damage_helper.c43 dest->y1 = src->y1; in convert_clip_rect_to_rect()
236 iter->plane_src.y1 = state->src.y1 >> 16; in drm_atomic_helper_damage_iter_init()
314 rect->y1 = INT_MAX; in drm_atomic_helper_damage_merged()
321 rect->y1 = min(rect->y1, clip.y1); in drm_atomic_helper_damage_merged()
Ddrm_format_helper.c23 return clip->y1 * pitch + clip->x1 * cpp; in clip_offset()
41 unsigned int y, lines = clip->y2 - clip->y1; in drm_fb_memcpy()
70 unsigned int y, lines = clip->y2 - clip->y1; in drm_fb_memcpy_dstclip()
114 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_swab()
177 unsigned y, lines = clip->y2 - clip->y1; in drm_fb_xrgb8888_to_rgb565()
221 unsigned y, lines = clip->y2 - clip->y1; in drm_fb_xrgb8888_to_rgb565_dstclip()
273 unsigned y, lines = clip->y2 - clip->y1; in drm_fb_xrgb8888_to_rgb888_dstclip()
327 for (y = clip->y1; y < clip->y2; y++) { in drm_fb_xrgb8888_to_gray8()
427 .y1 = 0, in drm_fb_blit_dstclip()
Ddrm_plane_helper.c118 .src_y = src->y1, in drm_plane_helper_check_update()
122 .crtc_y = dst->y1, in drm_plane_helper_check_update()
165 .y1 = src_y, in drm_primary_helper_update()
171 .y1 = crtc_y, in drm_primary_helper_update()
/drivers/gpu/drm/selftests/
Dtest-drm_rect.c53 src.y1 != 0 || src.y2 != 1 << 16, in igt_drm_rect_clip_scaled_not_clipped()
56 dst.y1 != 0 || dst.y2 != 1, in igt_drm_rect_clip_scaled_not_clipped()
69 src.y1 != 0 || src.y2 != 2 << 16, in igt_drm_rect_clip_scaled_not_clipped()
72 dst.y1 != 0 || dst.y2 != 1, in igt_drm_rect_clip_scaled_not_clipped()
85 src.y1 != 0 || src.y2 != 1 << 16, in igt_drm_rect_clip_scaled_not_clipped()
88 dst.y1 != 0 || dst.y2 != 2, in igt_drm_rect_clip_scaled_not_clipped()
109 src.y1 != 0 || src.y2 != 1 << 16, in igt_drm_rect_clip_scaled_clipped()
112 dst.y1 != 0 || dst.y2 != 1, in igt_drm_rect_clip_scaled_clipped()
125 src.y1 != 1 << 16 || src.y2 != 2 << 16, in igt_drm_rect_clip_scaled_clipped()
128 dst.y1 != 1 || dst.y2 != 2, in igt_drm_rect_clip_scaled_clipped()
[all …]
Dtest-drm_damage_helper.c41 static void set_plane_src(struct drm_plane_state *state, int x1, int y1, int x2, in set_plane_src() argument
45 state->src.y1 = y1; in set_plane_src()
50 static void set_damage_clip(struct drm_mode_rect *r, int x1, int y1, int x2, in set_damage_clip() argument
54 r->y1 = y1; in set_damage_clip()
73 int x1, int y1, int x2, int y2) in check_damage_clip() argument
80 int src_y1 = state->src.y1 >> 16; in check_damage_clip()
84 if (x1 >= x2 || y1 >= y2) { in check_damage_clip()
89 if (x1 < src_x1 || y1 < src_y1 || x2 > src_x2 || y2 > src_y2) { in check_damage_clip()
94 if (r->x1 != x1 || r->y1 != y1 || r->x2 != x2 || r->y2 != y2) { in check_damage_clip()
95 pr_err("Damage = %d %d %d %d\n", r->x1, r->y1, r->x2, r->y2); in check_damage_clip()
Dtest-drm_plane_helper.c33 if (plane_state->src.y1 < 0) { in check_src_eq()
34 pr_err("src y coordinate %x should never be below 0.\n", plane_state->src.y1); in check_src_eq()
40 plane_state->src.y1 != src_y || in check_src_eq()
65 plane_state->dst.y1 != crtc_y || in check_crtc_eq()
/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/
Dia_css_ctc1_5.host.c26 int y1, int y0, int x1, int x0) in ctc_gradient() argument
29 int dy = y1 - y0; in ctc_gradient()
47 assert(y1 >= 0 && y1 <= max_dydx); in ctc_gradient()
80 to->y1 = from->y1; in ia_css_ctc_encode()
95 from->y1, from->y0, in ia_css_ctc_encode()
100 from->y2, from->y1, in ia_css_ctc_encode()
/drivers/gpu/drm/tiny/
Dili9225.c82 unsigned int height = rect->y2 - rect->y1; in ili9225_fb_dirty()
87 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()
[all …]
Dgm12u320.c253 int block, dst_offset, len, remain, ret, x1, x2, y1, y2; in gm12u320_copy_fb_to_blocks() local
266 y1 = gm12u320->fb_update.rect.y1; in gm12u320_copy_fb_to_blocks()
276 src = vaddr + y1 * fb->pitches[0] + x1 * 4; in gm12u320_copy_fb_to_blocks()
281 for (; y1 < y2; y1++) { in gm12u320_copy_fb_to_blocks()
284 dst_offset = (y1 * GM12U320_REAL_WIDTH + x1) * 3; in gm12u320_copy_fb_to_blocks()
418 rect->y1 = min(rect->y1, dirty->y1); in gm12u320_fb_mark_dirty()
Dst7586.c68 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
79 for (y = clip->y1; y < clip->y2; y++) { in st7586_xrgb8888_to_gray332()
136 (rect->y1 >> 8) & 0xFF, rect->y1 & 0xFF, in st7586_fb_dirty()
141 (end - start) * (rect->y2 - rect->y1)); in st7586_fb_dirty()
172 .y1 = 0, in st7586_pipe_enable()
/drivers/video/fbdev/
Dxen-fbfront.c45 int x1, y1, x2, y2; /* dirty rectangle, member
141 int x1, int y1, int w, int h) in xenfb_refresh() argument
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
[all …]
Dhyperv_fb.c213 s32 x1, y1; /* top left corner */ member
283 int x1, y1, x2, y2; member
380 synthvid_update(struct fb_info *info, int x1, int y1, int x2, int y2) in synthvid_update() argument
397 msg.dirt.rect[0].y1 = (y1 > y2) ? 0 : y1; in synthvid_update()
401 (y2 < y1 || y2 > info->var.yres) ? info->var.yres : y2; in synthvid_update()
428 int y1, y2, miny, maxy; in synthvid_deferred_io() local
443 y1 = start / p->fix.line_length; in synthvid_deferred_io()
445 miny = min_t(int, miny, y1); in synthvid_deferred_io()
734 int x1, x2, y1, y2; in hvfb_update_work() local
744 y1 = par->y1; in hvfb_update_work()
[all …]
Dhgafb.c485 u_int rows, y1, y2; in hgafb_copyarea() local
490 y1 = area->sy; in hgafb_copyarea()
494 src = rowaddr(info, y1) + (area->sx >> 3); in hgafb_copyarea()
497 y1++; in hgafb_copyarea()
501 y1 = area->sy + area->height - 1; in hgafb_copyarea()
505 src = rowaddr(info, y1) + (area->sx >> 3); in hgafb_copyarea()
508 y1--; in hgafb_copyarea()
Dtridentfb.c355 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in blade_copy_rect() argument
358 u32 s1 = point(x1, y1); in blade_copy_rect()
359 u32 s2 = point(x1 + w - 1, y1 + h - 1); in blade_copy_rect()
363 if ((y1 > y2) || ((y1 == y2) && (x1 > x2))) in blade_copy_rect()
443 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in xp_copy_rect() argument
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()
517 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in image_copy_rect() argument
[all …]
/drivers/gpu/drm/i915/display/
Dintel_psr.c1541 val = (clip->y1 + plane_state->uapi.dst.y1) << 16; in intel_psr2_program_plane_sel_fetch()
1547 y = (plane_state->uapi.src.y1 >> 16) + clip->y1; in intel_psr2_program_plane_sel_fetch()
1590 if (clip->y1 == -1) in psr2_man_trk_ctl_calc()
1594 val |= ADLP_PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR(clip->y1); in psr2_man_trk_ctl_calc()
1597 drm_WARN_ON(crtc_state->uapi.crtc->dev, clip->y1 % 4 || clip->y2 % 4); in psr2_man_trk_ctl_calc()
1600 val |= PSR2_MAN_TRK_CTL_SU_REGION_START_ADDR(clip->y1 / 4 + 1); in psr2_man_trk_ctl_calc()
1610 if (overlap_damage_area->y1 == -1) { in clip_area_update()
1611 overlap_damage_area->y1 = damage_area->y1; in clip_area_update()
1616 if (damage_area->y1 < overlap_damage_area->y1) in clip_area_update()
1617 overlap_damage_area->y1 = damage_area->y1; in clip_area_update()
[all …]
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fb.c62 unsigned y1; member
218 dst_y1 = par->dirty.y1 - par->fb_y; in vmw_fb_dirty_flush()
232 par->dirty.y1 = par->dirty.y2 = 0; in vmw_fb_dirty_flush()
250 clip.y1 = dst_y1; in vmw_fb_dirty_flush()
266 unsigned x1, unsigned y1, in vmw_fb_dirty_mark() argument
271 unsigned y2 = y1 + height; in vmw_fb_dirty_mark()
276 par->dirty.y1 = y1; in vmw_fb_dirty_mark()
287 if (y1 < par->dirty.y1) in vmw_fb_dirty_mark()
288 par->dirty.y1 = y1; in vmw_fb_dirty_mark()
325 int y1, y2; in vmw_deferred_io() local
[all …]
/drivers/input/touchscreen/
Dmc13783_ts.c70 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/
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()
/drivers/media/usb/gspca/
Dw996Xcf.c359 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/
Dia_css_ctc2.host.c40 static int ctc2_slope(int y1, int y0, int x1, int x0) in ctc2_slope() argument
44 int dy = y1 - y0; in ctc2_slope()
52 assert(y1 >= 0 && y1 <= max_slope); in ctc2_slope()
/drivers/gpu/drm/armada/
Darmada_plane.c44 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/gud/
Dgud_pipe.c116 for (y = rect->y1; y < rect->y2; y++) { in gud_xrgb8888_to_color()
201 buf = vaddr + rect->y1 * pitch; in gud_prep_flush()
208 req->y = cpu_to_le32(rect->y1); in gud_prep_flush()
317 gdrm->damage.y1 = INT_MAX; in gud_clear_damage()
325 gdrm->damage.y1 = min(gdrm->damage.y1, damage->y1); in gud_add_damage()
390 rect.y1 += i * lines; in gud_flush_work()
391 rect.y2 = min_t(u32, rect.y1 + lines, damage.y2); in gud_flush_work()
/drivers/gpu/drm/mga/
Dmga_state.c61 MGA_YTOP, box->y1 * pitch, MGA_YBOT, (box->y2 - 1) * pitch); in mga_emit_clip_rect()
501 u32 height = box->y2 - box->y1; in mga_dma_dispatch_clear()
504 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_clear()
511 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
527 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
543 MGA_YDSTLEN, (box->y1 << 16) | height, in mga_dma_dispatch_clear()
599 u32 height = box->y2 - box->y1; in mga_dma_dispatch_swap()
600 u32 start = box->y1 * dev_priv->front_pitch; in mga_dma_dispatch_swap()
603 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_swap()
608 MGA_YDSTLEN + MGA_EXEC, (box->y1 << 16) | height); in mga_dma_dispatch_swap()
[all …]
/drivers/gpu/drm/i2c/
Dch7006_priv.h158 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()

12345