Home
last modified time | relevance | path

Searched refs:x2 (Results 1 – 25 of 94) sorted by relevance

1234

/drivers/gpu/drm/
Ddrm_rect.c48 r1->x2 = min(r1->x2, r2->x2); in drm_rect_intersect()
102 src->x1 = src->x2 - new_src_w; in drm_rect_clip_scaled()
113 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
118 src->x2 = src->x1 + new_src_w; in drm_rect_clip_scaled()
119 dst->x2 -= diff; in drm_rect_clip_scaled()
263 r->x1 = width - tmp.x2; in drm_rect_rotate()
264 r->x2 = width - tmp.x1; in drm_rect_rotate()
279 r->x2 = tmp.y2; in drm_rect_rotate()
280 r->y1 = width - tmp.x2; in drm_rect_rotate()
285 r->x1 = width - tmp.x2; in drm_rect_rotate()
[all …]
Ddrm_damage_helper.c44 dest->x2 = src->x2; in convert_clip_rect_to_rect()
237 iter->plane_src.x2 = (state->src.x2 >> 16) + !!(state->src.x2 & 0xFFFF); in drm_atomic_helper_damage_iter_init()
315 rect->x2 = 0; in drm_atomic_helper_damage_merged()
322 rect->x2 = max(rect->x2, clip.x2); in drm_atomic_helper_damage_merged()
Ddrm_format_helper.c40 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy()
69 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy_dstclip()
124 for (x = clip->x1; x < clip->x2; x++) { in drm_fb_swab()
174 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565()
219 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565_dstclip()
271 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb888_dstclip()
312 unsigned int len = (clip->x2 - clip->x1) * sizeof(u32); in drm_fb_xrgb8888_to_gray8()
332 for (x = clip->x1; x < clip->x2; x++) { in drm_fb_xrgb8888_to_gray8()
426 .x2 = fb->width, in drm_fb_blit_dstclip()
/drivers/gpu/drm/selftests/
Dtest-drm_rect.c52 FAIL(src.x1 != 0 || src.x2 != 1 << 16 || in igt_drm_rect_clip_scaled_not_clipped()
55 FAIL(dst.x1 != 0 || dst.x2 != 1 || in igt_drm_rect_clip_scaled_not_clipped()
68 FAIL(src.x1 != 0 || src.x2 != 2 << 16 || in igt_drm_rect_clip_scaled_not_clipped()
71 FAIL(dst.x1 != 0 || dst.x2 != 1 || in igt_drm_rect_clip_scaled_not_clipped()
84 FAIL(src.x1 != 0 || src.x2 != 1 << 16 || in igt_drm_rect_clip_scaled_not_clipped()
87 FAIL(dst.x1 != 0 || dst.x2 != 2 || in igt_drm_rect_clip_scaled_not_clipped()
108 FAIL(src.x1 != 0 || src.x2 != 1 << 16 || in igt_drm_rect_clip_scaled_clipped()
111 FAIL(dst.x1 != 0 || dst.x2 != 1 || in igt_drm_rect_clip_scaled_clipped()
124 FAIL(src.x1 != 1 << 16 || src.x2 != 2 << 16 || in igt_drm_rect_clip_scaled_clipped()
127 FAIL(dst.x1 != 1 || dst.x2 != 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
46 state->src.x2 = x2; 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
55 r->x2 = x2; in set_damage_clip()
73 int x1, int y1, int x2, int y2) in check_damage_clip() argument
81 int src_x2 = (state->src.x2 >> 16) + !!(state->src.x2 & 0xFFFF); 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()
/drivers/gpu/drm/tiny/
Dili9225.c83 unsigned int width = rect->x2 - rect->x1; in ili9225_fb_dirty()
87 u16 x1, x2, y1, y2; in ili9225_fb_dirty() local
112 x2 = rect->x2 - 1; in ili9225_fb_dirty()
120 x2 = rect->y2 - 1; in ili9225_fb_dirty()
121 y1 = fb->width - rect->x2; in ili9225_fb_dirty()
127 x1 = fb->width - rect->x2; in ili9225_fb_dirty()
128 x2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty()
131 x_start = x2; in ili9225_fb_dirty()
136 x2 = fb->height - rect->y1 - 1; in ili9225_fb_dirty()
138 y2 = rect->x2 - 1; in ili9225_fb_dirty()
[all …]
Dst7586.c68 size_t len = (clip->x2 - clip->x1) * (clip->y2 - clip->y1); in st7586_xrgb8888_to_gray332()
80 for (x = clip->x1; x < clip->x2; x += 3) { in st7586_xrgb8888_to_gray332()
120 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty()
130 end = rect->x2 / 3; in st7586_fb_dirty()
171 .x2 = fb->width, in st7586_pipe_enable()
Dgm12u320.c253 int block, dst_offset, len, remain, ret, x1, x2, y1, y2; in gm12u320_copy_fb_to_blocks() local
265 x2 = gm12u320->fb_update.rect.x2; in gm12u320_copy_fb_to_blocks()
279 x2 += (GM12U320_REAL_WIDTH - GM12U320_USER_WIDTH) / 2; in gm12u320_copy_fb_to_blocks()
283 len = (x2 - x1) * 3; in gm12u320_copy_fb_to_blocks()
419 rect->x2 = max(rect->x2, dirty->x2); in gm12u320_fb_mark_dirty()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_msg_arm64.h57 register u64 x2 asm("x2") = cmd; in vmw_port()
68 : "+r"(x0), "+r"(x1), "+r"(x2), in vmw_port()
74 *ecx = x2; in vmw_port()
90 register u64 x2 asm("x2") = in_ecx; in vmw_port_hb()
101 : "+r"(x0), "+r"(x1), "+r"(x2), in vmw_port_hb()
107 *ecx = x2; in vmw_port_hb()
Dvmwgfx_fb.c63 unsigned x2; member
222 dst_x2 = par->dirty.x2 - par->fb_x; in vmw_fb_dirty_flush()
231 par->dirty.x1 = par->dirty.x2 = 0; in vmw_fb_dirty_flush()
249 clip.x2 = dst_x2; in vmw_fb_dirty_flush()
270 unsigned x2 = x1 + width; in vmw_fb_dirty_mark() local
274 if (par->dirty.x1 == par->dirty.x2) { in vmw_fb_dirty_mark()
277 par->dirty.x2 = x2; in vmw_fb_dirty_mark()
289 if (x2 > par->dirty.x2) in vmw_fb_dirty_mark()
290 par->dirty.x2 = x2; in vmw_fb_dirty_mark()
344 par->dirty.x2 = info->var.xres; in vmw_deferred_io()
[all …]
Dvmwgfx_kms.c1033 norect.x2 = framebuffer->width; in vmw_framebuffer_bo_dirty()
1477 if (rects[i].x2 > bounding_box.x2) in vmw_kms_check_display_memory()
1478 bounding_box.x2 = rects[i].x2; in vmw_kms_check_display_memory()
1503 bb_mem = (u64) bounding_box.x2 * bounding_box.y2 * 4; in vmw_kms_check_display_memory()
1636 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1641 rects[i].x2 = 0; in vmw_kms_check_topology()
2302 def_rect.x2, def_rect.y2); in vmw_kms_update_layout_ioctl()
2337 drm_rects[i].x2 = curr_rect.x + curr_rect.w; in vmw_kms_update_layout_ioctl()
2342 drm_rects[i].x2, drm_rects[i].y2); in vmw_kms_update_layout_ioctl()
2352 drm_rects[i].x2 > mode_config->max_width || in vmw_kms_update_layout_ioctl()
[all …]
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c196 int x2, y2, vxres, vyres; in mb86290fb_imageblit() local
198 x2 = image->dx + image->width; in mb86290fb_imageblit()
202 x2 = min(x2, vxres); in mb86290fb_imageblit()
204 width = x2 - dx; in mb86290fb_imageblit()
254 u32 x2, y2, vxres, vyres, height, width, fg; in mb86290fb_fillrect() local
266 x2 = rect->dx + rect->width; in mb86290fb_fillrect()
268 x2 = min(x2, vxres); in mb86290fb_fillrect()
270 width = x2 - rect->dx; in mb86290fb_fillrect()
/drivers/video/fbdev/
Dhyperv_fb.c214 s32 x2, y2; /* bottom right corner, exclusive */ 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
386 if (x2 == INT_MAX) in synthvid_update()
387 x2 = info->var.xres; in synthvid_update()
396 msg.dirt.rect[0].x1 = (x1 > x2) ? 0 : x1; in synthvid_update()
398 msg.dirt.rect[0].x2 = in synthvid_update()
399 (x2 < x1 || x2 > info->var.xres) ? info->var.xres : x2; in synthvid_update()
734 int x1, x2, y1, y2; in hvfb_update_work() local
743 x2 = par->x2; in hvfb_update_work()
[all …]
Dxen-fbfront.c45 int x1, y1, x2, y2; /* dirty rectangle, member
144 int x2 = x1 + w - 1; in xenfb_refresh() local
161 if (info->x2 > x2) in xenfb_refresh()
162 x2 = info->x2; in xenfb_refresh()
167 info->x2 = x2; 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()
Dtridentfb.c355 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in blade_copy_rect() argument
360 u32 d1 = point(x2, y2); in blade_copy_rect()
361 u32 d2 = point(x2 + w - 1, y2 + 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()
451 x2_tmp = x2 + w - 1; in xp_copy_rect()
454 x2_tmp = x2; in xp_copy_rect()
517 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in image_copy_rect() argument
522 u32 d1 = point(x2, y2); in image_copy_rect()
[all …]
Dvga16fb.c902 int x, x2, y2, vxres, vyres, width, height, line_ofs; in vga16fb_fillrect() local
914 x2 = rect->dx + rect->width; in vga16fb_fillrect()
916 x2 = x2 < vxres ? x2 : vxres; in vga16fb_fillrect()
918 width = x2 - rect->dx; in vga16fb_fillrect()
1033 int x, x2, y2, old_dx, old_dy, vxres, vyres; in vga16fb_copyarea() local
1053 x2 = area->dx + area->width; in vga16fb_copyarea()
1057 x2 = x2 < vxres ? x2 : vxres; in vga16fb_copyarea()
1059 width = x2 - dx; in vga16fb_copyarea()
/drivers/staging/media/atomisp/pci/isp/kernels/ctc/ctc1_5/
Dia_css_ctc1_5.host.c89 to->x2 = from->x2; in ia_css_ctc_encode()
101 from->x2, from->x1); in ia_css_ctc_encode()
106 from->x3, from->x2); in ia_css_ctc_encode()
/drivers/input/touchscreen/
Dmc13783_ts.c70 int x0, x1, x2, y0, y1, y2; in mc13783_ts_report_sample() local
79 x2 = priv->sample[2] & 0xfff; in mc13783_ts_report_sample()
88 x0, x1, x2, y0, y1, y2, cr0, cr1); in mc13783_ts_report_sample()
90 sort3(x0, x1, x2); in mc13783_ts_report_sample()
96 (x2 - x0 < sample_tolerance && in mc13783_ts_report_sample()
/drivers/clocksource/
Dtimer-atmel-st.c33 unsigned int x1, x2; in read_CRTR() local
37 regmap_read(regmap_st, AT91_ST_CRTR, &x2); in read_CRTR()
38 if (x1 == x2) in read_CRTR()
40 x1 = x2; in read_CRTR()
/drivers/gpu/drm/udl/
Dudl_modeset.c248 int x1, x2; in udl_aligned_damage_clip() local
257 x2 = ALIGN(width + (x - x1), sizeof(unsigned long)) + x1; in udl_aligned_damage_clip()
261 clip->x2 = x2; in udl_aligned_damage_clip()
286 else if ((clip.x2 > fb->width) || (clip.y2 > fb->height)) in udl_handle_damage()
304 const int byte_width = (clip.x2 - clip.x1) << log_bpp; in udl_handle_damage()
423 rect.x2 - rect.x1, rect.y2 - rect.y1); in udl_simple_display_pipe_update()
/drivers/comedi/drivers/tests/
Dni_routes_test.c68 #define I2(x1, x2) \ argument
70 (x1), (x2), 0 \
72 #define I3(x1, x2, x3) \ argument
74 (x1), (x2), (x3), 0 \
78 #define O9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument
80 O(x1), O(x2), O(x3), O(x4), O(x5), O(x6), O(x7), O(x8), O(x9), \
117 #define RV9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument
118 [x1] = V(x1), [x2] = V(x2), [x3] = V(x3), [x4] = V(x4), \
/drivers/gpu/drm/qxl/
Dqxl_draw.c161 clips->x2 += dumb_shadow_offset; in qxl_draw_dirty_fb()
164 right = clips->x2; in qxl_draw_dirty_fb()
172 right = max_t(int, right, (int)clips_ptr->x2); in qxl_draw_dirty_fb()
246 rects[i].right = clips_ptr->x2; in qxl_draw_dirty_fb()
/drivers/media/dvb-frontends/
Dsi21xx.c710 unsigned int x2; in si21xx_set_frontend() local
770 x2 = ((rf_freq - lnb_lo) / (afs[i] * 2500)) * in si21xx_set_frontend()
774 ((band_low < x2) && (x2 < band_high))) in si21xx_set_frontend()
783 x2 = ((rf_freq - lnb_lo) / (afs[i] * 5000)) * in si21xx_set_frontend()
787 ((band_low < x2) && (x2 < band_high))) in si21xx_set_frontend()
/drivers/iio/pressure/
Dbmp280-core.c796 s32 x1, x2; in bmp180_compensate_temp() local
800 x2 = (calib->MC << 11) / (x1 + calib->MD); in bmp180_compensate_temp()
801 data->t_fine = x1 + x2; in bmp180_compensate_temp()
855 s32 x1, x2, x3, p; in bmp180_compensate_press() local
863 x2 = calib->AC2 * b6 >> 11; in bmp180_compensate_press()
864 x3 = x1 + x2; in bmp180_compensate_press()
867 x2 = (calib->B1 * ((b6 * b6) >> 12)) >> 16; in bmp180_compensate_press()
868 x3 = (x1 + x2 + 2) >> 2; in bmp180_compensate_press()
878 x2 = (-7357 * p) >> 16; in bmp180_compensate_press()
880 return p + ((x1 + x2 + 3791) >> 4); in bmp180_compensate_press()
/drivers/staging/vc04_services/include/linux/raspberrypi/
Dvchiq.h7 #define VCHIQ_MAKE_FOURCC(x0, x1, x2, x3) \ argument
8 (((x0) << 24) | ((x1) << 16) | ((x2) << 8) | (x3))

1234