/drivers/video/ |
D | auo_k1901fb.c | 125 u16 y1, u16 y2) in auok1901_update_region() argument 139 y2 &= 0xfffe; in auok1901_update_region() 142 1, y1+1, xres, y2-y1, mode); in auok1901_update_region() 148 args[3] = y2 - y1; in auok1901_update_region() 151 args, ((y2 - y1) * line_length)/2, in auok1901_update_region() 160 args[4] = y2 - y1; in auok1901_update_region() 172 u16 y1, u16 y2) in auok1901fb_dpy_update_pages() argument 187 auok1901_update_region(par, mode, y1, y2); in auok1901fb_dpy_update_pages()
|
D | auo_k1900fb.c | 86 u16 y1, u16 y2) in auok1900_update_region() argument 100 y2 &= 0xfffe; in auok1900_update_region() 103 1, y1+1, xres, y2-y1, mode); in auok1900_update_region() 109 args[3] = y2 - y1; in auok1900_update_region() 112 ((y2 - y1) * line_length)/2, (u16 *) buf); in auok1900_update_region() 124 u16 y1, u16 y2) in auok1900fb_dpy_update_pages() argument 139 auok1900_update_region(par, mode, y1, y2); in auok1900fb_dpy_update_pages()
|
D | xen-fbfront.c | 42 int x1, y1, x2, y2; /* dirty rectangle, member 142 int y2 = y1 + h - 1; in xenfb_refresh() local 154 if (info->y2 > y2) in xenfb_refresh() 155 y2 = info->y2; in xenfb_refresh() 166 info->y2 = y2; in xenfb_refresh() 173 info->x2 = info->y2 = 0; in xenfb_refresh() 177 if (x1 <= x2 && y1 <= y2) in xenfb_refresh() 178 xenfb_do_update(info, x1, y1, x2 - x1 + 1, y2 - y1 + 1); in xenfb_refresh() 187 int y1, y2, miny, maxy; in xenfb_deferred_io() local 195 y2 = end / fb_info->fix.line_length; in xenfb_deferred_io() [all …]
|
D | hgafb.c | 479 u_int rows, y1, y2; in hgafb_copyarea() local 485 y2 = area->dy; in hgafb_copyarea() 489 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea() 492 y2++; in hgafb_copyarea() 496 y2 = area->dy + area->height - 1; in hgafb_copyarea() 500 dest = rowaddr(info, y2) + (area->dx >> 3); in hgafb_copyarea() 503 y2--; in hgafb_copyarea()
|
D | tridentfb.c | 233 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in blade_copy_rect() argument 238 u32 d1 = point(x2, y2); in blade_copy_rect() 239 u32 d2 = point(x2 + w - 1, y2 + h - 1); in blade_copy_rect() 241 if ((y1 > y2) || ((y1 == y2) && (x1 > x2))) in blade_copy_rect() 321 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in xp_copy_rect() argument 326 if ((x1 < x2) && (y1 == y2)) { in xp_copy_rect() 335 if (y1 < y2) { in xp_copy_rect() 338 y2_tmp = y2 + h - 1; in xp_copy_rect() 341 y2_tmp = y2; in xp_copy_rect() 395 u32 x1, u32 y1, u32 x2, u32 y2, u32 w, u32 h) in image_copy_rect() argument [all …]
|
D | vga16fb.c | 883 int x, x2, y2, vxres, vyres, width, height, line_ofs; in vga16fb_fillrect() local 896 y2 = rect->dy + rect->height; in vga16fb_fillrect() 898 y2 = y2 < vyres ? y2 : vyres; in vga16fb_fillrect() 905 height = y2 - rect->dy; in vga16fb_fillrect() 1014 int x, x2, y2, old_dx, old_dy, vxres, vyres; in vga16fb_copyarea() local 1035 y2 = area->dy + area->height; in vga16fb_copyarea() 1039 y2 = y2 < vyres ? y2 : vyres; in vga16fb_copyarea() 1041 height = y2 - dy; in vga16fb_copyarea()
|
D | atafb.c | 2501 int x2, y2; in atafb_fillrect() local 2519 y2 = rect->dy + rect->height; in atafb_fillrect() 2521 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_fillrect() 2523 height = y2 - rect->dy; in atafb_fillrect() 2544 int x2, y2; in atafb_copyarea() local 2557 y2 = area->dy + area->height; in atafb_copyarea() 2561 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in atafb_copyarea() 2563 height = y2 - dy; in atafb_copyarea() 2598 int x2, y2; in atafb_imageblit() local 2617 y2 = image->dy + image->height; in atafb_imageblit() [all …]
|
D | amifb.c | 3170 int dst_idx, x2, y2; in amifb_fillrect() local 3182 y2 = rect->dy + rect->height; in amifb_fillrect() 3184 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in amifb_fillrect() 3186 height = y2 - rect->dy; in amifb_fillrect() 3248 int x2, y2; in amifb_copyarea() local 3256 y2 = area->dy + area->height; in amifb_copyarea() 3260 y2 = y2 < info->var.yres_virtual ? y2 : info->var.yres_virtual; in amifb_copyarea() 3262 height = y2 - dy; in amifb_copyarea() 3341 int x2, y2; in amifb_imageblit() local 3353 y2 = image->dy + image->height; in amifb_imageblit() [all …]
|
/drivers/gpu/drm/mgag200/ |
D | mgag200_fb.c | 33 int x2, y2; in mga_dirty_update() local 53 y2 = y + height - 1; in mga_dirty_update() 58 if (mfbdev->y2 > y2) in mga_dirty_update() 59 y2 = mfbdev->y2; in mga_dirty_update() 69 mfbdev->y2 = y2; in mga_dirty_update() 75 mfbdev->x2 = mfbdev->y2 = 0; in mga_dirty_update() 87 for (i = y; i <= y2; i++) { in mga_dirty_update()
|
/drivers/video/mb862xx/ |
D | mb862xxfb_accel.c | 201 int x2, y2, vxres, vyres; in mb86290fb_imageblit() local 205 y2 = image->dy + image->height; in mb86290fb_imageblit() 209 y2 = min(y2, vyres); in mb86290fb_imageblit() 211 height = y2 - dy; in mb86290fb_imageblit() 260 u32 x2, y2, vxres, vyres, height, width, fg; in mb86290fb_fillrect() local 273 y2 = rect->dy + rect->height; in mb86290fb_fillrect() 275 y2 = min(y2, vyres); in mb86290fb_fillrect() 277 height = y2 - rect->dy; in mb86290fb_fillrect()
|
/drivers/gpu/drm/ast/ |
D | ast_fb.c | 57 int x2, y2; in ast_dirty_update() local 77 y2 = y + height - 1; in ast_dirty_update() 82 if (afbdev->y2 > y2) in ast_dirty_update() 83 y2 = afbdev->y2; in ast_dirty_update() 93 afbdev->y2 = y2; in ast_dirty_update() 99 afbdev->x2 = afbdev->y2 = 0; in ast_dirty_update() 111 for (i = y; i <= y2; i++) { in ast_dirty_update()
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_fb.c | 64 unsigned y2; member 232 h = min(par->dirty.y2, info->var.yres) - y; in vmw_fb_dirty_flush() 234 par->dirty.y1 = par->dirty.y2 = 0; in vmw_fb_dirty_flush() 267 unsigned y2 = y1 + height; in vmw_fb_dirty_mark() local 274 par->dirty.y2 = y2; in vmw_fb_dirty_mark() 286 if (y2 > par->dirty.y2) in vmw_fb_dirty_mark() 287 par->dirty.y2 = y2; in vmw_fb_dirty_mark() 299 int y1, y2; in vmw_deferred_io() local 312 y2 = (max / info->fix.line_length) + 1; in vmw_deferred_io() 318 par->dirty.y2 = y2; in vmw_deferred_io() [all …]
|
D | vmwgfx_kms.c | 36 int x1, x2, y1, y2; member 55 int y2 = min_t(int, clip.y2, rects[i].y2); in vmw_clip_cliprects() local 59 if (y1 >= y2) in vmw_clip_cliprects() 65 out_rects[k].bottom = y2; in vmw_clip_cliprects() 497 bottom = clips->y2; in do_surface_dirty_sou() 505 bottom = max_t(int, bottom, (int)clips_ptr->y2); in do_surface_dirty_sou() 522 tmp[i].y2 = clips_ptr->y2 - top; in do_surface_dirty_sou() 534 clip.y2 = bottom - unit->crtc.y; in do_surface_dirty_sou() 539 clip.x2 <= 0 || clip.y2 <= 0) in do_surface_dirty_sou() 549 cmd->body.destRect.bottom = clip.y2; in do_surface_dirty_sou() [all …]
|
/drivers/gpu/drm/cirrus/ |
D | cirrus_fbdev.c | 31 int x2, y2; in cirrus_dirty_update() local 50 y2 = y + height - 1; in cirrus_dirty_update() 55 if (afbdev->y2 > y2) in cirrus_dirty_update() 56 y2 = afbdev->y2; in cirrus_dirty_update() 66 afbdev->y2 = y2; in cirrus_dirty_update() 72 afbdev->x2 = afbdev->y2 = 0; in cirrus_dirty_update()
|
/drivers/gpu/drm/qxl/ |
D | qxl_fb.c | 56 unsigned y2; member 91 u32 x1, x2, y1, y2; in qxl_fb_dirty_flush() local 99 y2 = qfbdev->dirty.y2; in qxl_fb_dirty_flush() 103 qxl_io_log(qdev, "dirty x[%d, %d], y[%d, %d]", x1, x2, y1, y2); in qxl_fb_dirty_flush() 107 image->height = y2 - y1; in qxl_fb_dirty_flush() 125 qfbdev->dirty.y2 = 0; in qxl_fb_dirty_flush() 134 int y1, y2; in qxl_deferred_io() local 147 y2 = (max / info->fix.line_length) + 1; in qxl_deferred_io() 154 qfbdev->dirty.y2 = y2; in qxl_deferred_io()
|
/drivers/gpu/drm/udl/ |
D | udl_fb.c | 156 int x2, y2; in udl_handle_damage() local 190 y2 = y + height - 1; in udl_handle_damage() 196 if (fb->y2 > y2) in udl_handle_damage() 197 y2 = fb->y2; in udl_handle_damage() 207 fb->y2 = y2; in udl_handle_damage() 213 fb->x2 = fb->y2 = 0; in udl_handle_damage() 223 for (i = y; i <= y2 ; i++) { in udl_handle_damage() 433 clips[i].y2 - clips[i].y1); in udl_user_framebuffer_dirty()
|
/drivers/input/touchscreen/ |
D | mc13783_ts.c | 74 int x0, x1, x2, y0, y1, y2; in mc13783_ts_report_sample() local 86 y2 = (priv->sample[1] >> 12) & 0xfff; in mc13783_ts_report_sample() 92 x0, x1, x2, y0, y1, y2, cr0, cr1); in mc13783_ts_report_sample() 95 sort3(y0, y1, y2); in mc13783_ts_report_sample() 101 y2 - y0 < sample_tolerance)) { in mc13783_ts_report_sample()
|
/drivers/input/mouse/ |
D | alps.c | 271 int *x1, int *y1, int *x2, int *y2) in alps_process_bitmap() argument 287 *x1 = *y1 = *x2 = *y2 = 0; in alps_process_bitmap() 367 *y2 = (priv->y_max * in alps_process_bitmap() 387 int x1, int y1, int x2, int y2) in alps_report_semi_mt_data() argument 390 alps_set_slot(dev, 1, num_fingers == 2, x2, y2); in alps_report_semi_mt_data() 522 int x1 = 0, y1 = 0, x2 = 0, y2 = 0; in alps_process_touchpad_packet_v3() local 545 &x1, &y1, &x2, &y2); in alps_process_touchpad_packet_v3() 604 alps_report_semi_mt_data(dev, fingers, x1, y1, x2, y2); in alps_process_touchpad_packet_v3() 656 int x1, y1, x2, y2; in alps_process_packet_v4() local 689 &x1, &y1, &x2, &y2); in alps_process_packet_v4() [all …]
|
D | elantech.c | 313 unsigned int x2, unsigned int y2) in elantech_report_semi_mt_data() argument 316 elantech_set_slot(dev, 1, num_fingers == 2, x2, y2); in elantech_report_semi_mt_data() 328 unsigned int fingers, x1 = 0, y1 = 0, x2 = 0, y2 = 0; in elantech_report_absolute_v2() local 376 y2 = etd->y_max - in elantech_report_absolute_v2() 390 elantech_report_semi_mt_data(dev, fingers, x1, y1, x2, y2); in elantech_report_absolute_v2() 415 unsigned int fingers = 0, x1 = 0, y1 = 0, x2 = 0, y2 = 0; in elantech_report_absolute_v3() local 459 y2 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]); in elantech_report_absolute_v3() 471 elantech_report_semi_mt_data(dev, fingers, x1, y1, x2, y2); in elantech_report_absolute_v3()
|
/drivers/gpu/drm/mga/ |
D | mga_state.c | 63 MGA_YTOP, box->y1 * pitch, MGA_YBOT, (box->y2 - 1) * pitch); in mga_emit_clip_rect() 503 u32 height = box->y2 - box->y1; in mga_dma_dispatch_clear() 506 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_clear() 601 u32 height = box->y2 - box->y1; in mga_dma_dispatch_swap() 605 box->x1, box->y1, box->x2, box->y2); in mga_dma_dispatch_swap() 728 u32 y2; in mga_dma_dispatch_iload() local 732 y2 = length / 64; in mga_dma_dispatch_iload() 749 MGA_FXBNDRY, (63 << 16) | 0, MGA_YDSTLEN + MGA_EXEC, y2); in mga_dma_dispatch_iload() 799 int h = pbox[i].y2 - pbox[i].y1; in mga_dma_dispatch_blit()
|
/drivers/gpu/drm/radeon/ |
D | evergreen_blit_kms.c | 220 int x2, int y2) in set_scissors() argument 226 if (y2 == 0) in set_scissors() 229 if ((x2 == 1) && (y2 == 1)) in set_scissors() 236 radeon_ring_write(ring, (x2 << 0) | (y2 << 16)); in set_scissors() 241 radeon_ring_write(ring, (x2 << 0) | (y2 << 16)); in set_scissors() 246 radeon_ring_write(ring, (x2 << 0) | (y2 << 16)); in set_scissors()
|
D | r300_cmdbuf.c | 85 box.y2--; in r300_emit_cliprects() 94 box.y2 = (box.y2) & in r300_emit_cliprects() 103 box.y2 = (box.y2 + R300_CLIPRECT_OFFSET) & in r300_emit_cliprects() 110 (box.y2 << R300_CLIPRECT_Y_SHIFT)); in r300_emit_cliprects()
|
/drivers/gpu/drm/nouveau/dispnv04/ |
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/uvc/ |
D | uvc_video.c | 602 u32 y1, y2; in uvc_video_clock_update() local 626 y2 = (last->dev_sof + 2048) << 16; in uvc_video_clock_update() 627 if (y2 < y1) in uvc_video_clock_update() 628 y2 += 2048 << 16; in uvc_video_clock_update() 630 y = (u64)(y2 - y1) * (1ULL << 31) + (u64)y1 * (u64)x2 in uvc_video_clock_update() 631 - (u64)y2 * (u64)x1; in uvc_video_clock_update() 641 x1, x2, y1, y2, clock->sof_offset); in uvc_video_clock_update() 653 y2 = (ts.tv_sec + 1) * NSEC_PER_SEC + ts.tv_nsec; in uvc_video_clock_update() 666 y = (u64)(y2 - y1) * (u64)sof + (u64)y1 * (u64)x2 in uvc_video_clock_update() 667 - (u64)y2 * (u64)x1; in uvc_video_clock_update() [all …]
|
/drivers/net/wireless/ath/carl9170/ |
D | phy.c | 1068 static s32 carl9170_interpolate_s32(s32 x, s32 x1, s32 y1, s32 x2, s32 y2) in carl9170_interpolate_s32() argument 1071 if (y2 == y1) in carl9170_interpolate_s32() 1078 return y2; in carl9170_interpolate_s32() 1084 return y1 + (((y2 - y1) * (x - x1)) / (x2 - x1)); in carl9170_interpolate_s32() 1087 static u8 carl9170_interpolate_u8(u8 x, u8 x1, u8 y1, u8 x2, u8 y2) in carl9170_interpolate_u8() argument 1093 y1 << SHIFT, x2 << SHIFT, y2 << SHIFT); in carl9170_interpolate_u8()
|