Home
last modified time | relevance | path

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

1234

/drivers/gpu/drm/
Ddrm_rect.c48 r1->x2 = min(r1->x2, r2->x2); in drm_rect_intersect()
92 src->x1 = clamp_t(int64_t, src->x2 - new_src_w, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
103 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled()
108 src->x2 = clamp_t(int64_t, src->x1 + new_src_w, INT_MIN, INT_MAX); in drm_rect_clip_scaled()
109 dst->x2 = clip->x2; in drm_rect_clip_scaled()
253 r->x1 = width - tmp.x2; in drm_rect_rotate()
254 r->x2 = width - tmp.x1; in drm_rect_rotate()
269 r->x2 = tmp.y2; in drm_rect_rotate()
270 r->y1 = width - tmp.x2; in drm_rect_rotate()
275 r->x1 = width - tmp.x2; in drm_rect_rotate()
[all …]
Ddrm_damage_helper.c82 dest->x2 = src->x2; in convert_clip_rect_to_rect()
291 iter->plane_src.x2 = (state->src.x2 >> 16) + !!(state->src.x2 & 0xFFFF); in drm_atomic_helper_damage_iter_init()
369 rect->x2 = 0; in drm_atomic_helper_damage_merged()
376 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()
68 size_t len = (clip->x2 - clip->x1) * cpp; in drm_fb_memcpy_dstclip()
91 size_t len = (clip->x2 - clip->x1) * sizeof(u16); in drm_fb_swab16()
108 for (x = clip->x1; x < clip->x2; x++) in drm_fb_swab16()
152 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565()
197 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb565_dstclip()
249 size_t linepixels = clip->x2 - clip->x1; in drm_fb_xrgb8888_to_rgb888_dstclip()
290 unsigned int len = (clip->x2 - clip->x1) * sizeof(u32); in drm_fb_xrgb8888_to_gray8()
310 for (x = clip->x1; x < clip->x2; x++) { in drm_fb_xrgb8888_to_gray8()
/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
115 x2 = rect->x2 - 1; in ili9225_fb_dirty()
123 x2 = rect->y2 - 1; in ili9225_fb_dirty()
124 y1 = fb->width - rect->x2; in ili9225_fb_dirty()
130 x1 = fb->width - rect->x2; in ili9225_fb_dirty()
131 x2 = fb->width - rect->x1 - 1; in ili9225_fb_dirty()
134 x_start = x2; in ili9225_fb_dirty()
139 x2 = fb->height - rect->y1 - 1; in ili9225_fb_dirty()
141 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()
129 rect->x2 = roundup(rect->x2, 3); in st7586_fb_dirty()
139 end = rect->x2 / 3; in st7586_fb_dirty()
185 .x2 = fb->width, in st7586_pipe_enable()
Dgm12u320.c265 int block, dst_offset, len, remain, ret, x1, x2, y1, y2; in gm12u320_copy_fb_to_blocks() local
277 x2 = gm12u320->fb_update.rect.x2; in gm12u320_copy_fb_to_blocks()
299 x2 += (GM12U320_REAL_WIDTH - GM12U320_USER_WIDTH) / 2; in gm12u320_copy_fb_to_blocks()
303 len = (x2 - x1) * 3; in gm12u320_copy_fb_to_blocks()
449 rect->x2 = max(rect->x2, dirty->x2); in gm12u320_fb_mark_dirty()
/drivers/video/fbdev/mb862xx/
Dmb862xxfb_accel.c197 int x2, y2, vxres, vyres; in mb86290fb_imageblit() local
200 x2 = image->dx + image->width; in mb86290fb_imageblit()
204 x2 = min(x2, vxres); in mb86290fb_imageblit()
206 width = x2 - dx; in mb86290fb_imageblit()
256 u32 x2, y2, vxres, vyres, height, width, fg; in mb86290fb_fillrect() local
268 x2 = rect->dx + rect->width; in mb86290fb_fillrect()
270 x2 = min(x2, vxres); in mb86290fb_fillrect()
272 width = x2 - rect->dx; in mb86290fb_fillrect()
/drivers/gpu/drm/selftests/
Dtest-drm_damage_helper.c12 static void set_plane_src(struct drm_plane_state *state, int x1, int y1, int x2, in set_plane_src() argument
17 state->src.x2 = x2; in set_plane_src()
21 static void set_damage_clip(struct drm_mode_rect *r, int x1, int y1, int x2, in set_damage_clip() argument
26 r->x2 = x2; in set_damage_clip()
44 int x1, int y1, int x2, int y2) in check_damage_clip() argument
52 int src_x2 = (state->src.x2 >> 16) + !!(state->src.x2 & 0xFFFF); in check_damage_clip()
55 if (x1 >= x2 || y1 >= y2) { in check_damage_clip()
60 if (x1 < src_x1 || y1 < src_y1 || x2 > src_x2 || y2 > src_y2) { in check_damage_clip()
65 if (r->x1 != x1 || r->y1 != y1 || r->x2 != x2 || r->y2 != y2) { in check_damage_clip()
66 pr_err("Damage = %d %d %d %d\n", r->x1, r->y1, r->x2, r->y2); in check_damage_clip()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_fb.c63 unsigned x2; member
223 dst_x2 = par->dirty.x2 - par->fb_x; in vmw_fb_dirty_flush()
232 par->dirty.x1 = par->dirty.x2 = 0; in vmw_fb_dirty_flush()
250 clip.x2 = dst_x2; in vmw_fb_dirty_flush()
272 unsigned x2 = x1 + width; in vmw_fb_dirty_mark() local
276 if (par->dirty.x1 == par->dirty.x2) { in vmw_fb_dirty_mark()
279 par->dirty.x2 = x2; in vmw_fb_dirty_mark()
291 if (x2 > par->dirty.x2) in vmw_fb_dirty_mark()
292 par->dirty.x2 = x2; in vmw_fb_dirty_mark()
346 par->dirty.x2 = info->var.xres; in vmw_deferred_io()
[all …]
Dvmwgfx_kms.c1017 norect.x2 = framebuffer->width; in vmw_framebuffer_bo_dirty()
1474 if (rects[i].x2 > bounding_box.x2) in vmw_kms_check_display_memory()
1475 bounding_box.x2 = rects[i].x2; in vmw_kms_check_display_memory()
1500 bb_mem = (u64) bounding_box.x2 * bounding_box.y2 * 4; in vmw_kms_check_display_memory()
1633 rects[i].x2 = du->gui_x + crtc_state->mode.hdisplay; in vmw_kms_check_topology()
1638 rects[i].x2 = 0; in vmw_kms_check_topology()
2351 def_rect.x2, def_rect.y2); in vmw_kms_update_layout_ioctl()
2386 drm_rects[i].x2 = curr_rect.x + curr_rect.w; in vmw_kms_update_layout_ioctl()
2391 drm_rects[i].x2, drm_rects[i].y2); in vmw_kms_update_layout_ioctl()
2401 drm_rects[i].x2 > mode_config->max_width || in vmw_kms_update_layout_ioctl()
[all …]
/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/video/fbdev/
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.c883 int x, x2, y2, vxres, vyres, width, height, line_ofs; in vga16fb_fillrect() local
895 x2 = rect->dx + rect->width; in vga16fb_fillrect()
897 x2 = x2 < vxres ? x2 : vxres; in vga16fb_fillrect()
899 width = x2 - rect->dx; in vga16fb_fillrect()
1014 int x, x2, y2, old_dx, old_dy, vxres, vyres; in vga16fb_copyarea() local
1034 x2 = area->dx + area->width; in vga16fb_copyarea()
1038 x2 = x2 < vxres ? x2 : vxres; in vga16fb_copyarea()
1040 width = x2 - dx; in vga16fb_copyarea()
Damifb.c580 #define DIVUL(x1, x2) ({int res; asm("divul %1,%2,%3": "=d" (res): \ argument
581 "d" (x2), "d" ((long)((x1) / 0x100000000ULL)), "0" ((long)(x1))); res;})
584 #define DIVUL(x1, x2) ((((long)((unsigned long long)x1 >> 8) / x2) << 8) + \ argument
585 ((((long)((unsigned long long)x1 >> 8) % x2) << 8) / x2))
3168 int dst_idx, x2, y2; in amifb_fillrect() local
3179 x2 = rect->dx + rect->width; in amifb_fillrect()
3181 x2 = x2 < info->var.xres_virtual ? x2 : info->var.xres_virtual; in amifb_fillrect()
3183 width = x2 - rect->dx; in amifb_fillrect()
3246 int x2, y2; in amifb_copyarea() local
3253 x2 = area->dx + area->width; in amifb_copyarea()
[all …]
/drivers/staging/comedi/drivers/tests/
Dni_routes_test.c69 #define I2(x1, x2) \ argument
71 (x1), (x2), 0 \
73 #define I3(x1, x2, x3) \ argument
75 (x1), (x2), (x3), 0 \
79 #define O9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument
81 O(x1), O(x2), O(x3), O(x4), O(x5), O(x6), O(x7), O(x8), O(x9), \
118 #define RV9(x1, x2, x3, x4, x5, x6, x7, x8, x9) \ argument
119 [x1] = V(x1), [x2] = V(x2), [x3] = V(x3), [x4] = V(x4), \
/drivers/gpu/drm/qxl/
Dqxl_draw.c156 clips->x2 += dumb_shadow_offset; in qxl_draw_dirty_fb()
159 right = clips->x2; in qxl_draw_dirty_fb()
167 right = max_t(int, right, (int)clips_ptr->x2); in qxl_draw_dirty_fb()
239 rects[i].right = clips_ptr->x2; in qxl_draw_dirty_fb()
/drivers/media/dvb-frontends/
Dsi21xx.c712 unsigned int x2; in si21xx_set_frontend() local
772 x2 = ((rf_freq - lnb_lo) / (afs[i] * 2500)) * in si21xx_set_frontend()
776 ((band_low < x2) && (x2 < band_high))) in si21xx_set_frontend()
785 x2 = ((rf_freq - lnb_lo) / (afs[i] * 5000)) * in si21xx_set_frontend()
789 ((band_low < x2) && (x2 < band_high))) in si21xx_set_frontend()
/drivers/iio/pressure/
Dbmp280-core.c809 s32 x1, x2; in bmp180_compensate_temp() local
813 x2 = (calib->MC << 11) / (x1 + calib->MD); in bmp180_compensate_temp()
814 data->t_fine = x1 + x2; in bmp180_compensate_temp()
868 s32 x1, x2, x3, p; in bmp180_compensate_press() local
876 x2 = calib->AC2 * b6 >> 11; in bmp180_compensate_press()
877 x3 = x1 + x2; in bmp180_compensate_press()
880 x2 = (calib->B1 * ((b6 * b6) >> 12)) >> 16; in bmp180_compensate_press()
881 x3 = (x1 + x2 + 2) >> 2; in bmp180_compensate_press()
891 x2 = (-7357 * p) >> 16; in bmp180_compensate_press()
893 return p + ((x1 + x2 + 3791) >> 4); in bmp180_compensate_press()
/drivers/firmware/efi/
Dfake_mem.c27 static int __init cmp_fake_mem(const void *x1, const void *x2) in cmp_fake_mem() argument
30 const struct efi_mem_range *m2 = x2; in cmp_fake_mem()
/drivers/gpu/drm/meson/
Dmeson_plane.c232 SCO_HV_END(dest.x2 - 1); in meson_plane_atomic_update()
287 ((fixed16_to_int(state->src.x2) - 1) << 16) | in meson_plane_atomic_update()
292 priv->viu.osd1_blk0_cfg[3] = ((dest.x2 - 1) << 16) | dest.x1; in meson_plane_atomic_update()
296 priv->viu.osd_blend_din0_scope_h = ((dest.x2 - 1) << 16) | dest.x1; in meson_plane_atomic_update()
/drivers/gpu/drm/mga/
Dmga_state.c60 MGA_CXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_emit_clip_rect()
504 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_clear()
512 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
528 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
544 MGA_FXBNDRY, (box->x2 << 16) | box->x1); in mga_dma_dispatch_clear()
603 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_swap()
605 DMA_BLOCK(MGA_AR0, start + box->x2 - 1, in mga_dma_dispatch_swap()
607 MGA_FXBNDRY, ((box->x2 - 1) << 16) | box->x1, in mga_dma_dispatch_swap()
798 int w = pbox[i].x2 - pbox[i].x1 - 1; in mga_dma_dispatch_blit()
/drivers/media/usb/uvc/
Duvc_video.c666 u32 x1, x2; in uvc_video_clock_update() local
693 x2 = last->dev_stc - delta_stc; in uvc_video_clock_update()
694 if (x1 == x2) in uvc_video_clock_update()
702 y = (u64)(y2 - y1) * (1ULL << 31) + (u64)y1 * (u64)x2 in uvc_video_clock_update()
704 y = div_u64(y, x2 - x1); in uvc_video_clock_update()
713 x1, x2, y1, y2, clock->sof_offset); in uvc_video_clock_update()
717 x2 = (uvc_video_clock_host_sof(last) + 2048) << 16; in uvc_video_clock_update()
718 if (x2 < x1) in uvc_video_clock_update()
719 x2 += 2048 << 16; in uvc_video_clock_update()
720 if (x1 == x2) in uvc_video_clock_update()
[all …]
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_if.h13 #define VCHIQ_MAKE_FOURCC(x0, x1, x2, x3) \ argument
14 (((x0) << 24) | ((x1) << 16) | ((x2) << 8) | (x3))

1234