Home
last modified time | relevance | path

Searched refs:dy (Results 1 – 25 of 87) sorted by relevance

1234

/linux-2.4.37.9/drivers/char/
Damigamouse.c73 int dx, dy; in mouse_interrupt() local
102 dy = ny - lasty; in mouse_interrupt()
103 if (dy < - 127) in mouse_interrupt()
104 dy = (256 + ny) - lasty; in mouse_interrupt()
106 if (dy > 127) in mouse_interrupt()
107 dy = (ny - 256) - lasty; in mouse_interrupt()
121 dy = -lastdy; in mouse_interrupt()
122 dy += (lastdy = joy0dat >> 8); in mouse_interrupt()
123 if (dy < -127) in mouse_interrupt()
124 dy = -255-dy; in mouse_interrupt()
[all …]
Dobmouse.c151 short dx, dy; in ob_interrupt() local
174 dy = (short) coordY - (short) lasty ; in ob_interrupt()
194 if ( dy > OB_ROLL_LIMIT) dy = 0x1000 - dy; in ob_interrupt()
195 else if (-dy > OB_ROLL_LIMIT) dy = -0x1000 - dy; in ob_interrupt()
198 dy /= speed; in ob_interrupt()
206 if (dy) input_report_rel(&obdev, REL_Y, dy); in ob_interrupt()
Dadbmouse.c64 char dx, dy; in adb_mouse_interrupt() local
123 dy = ((buf[1] & 0x7f) < 64 ? (buf[1] & 0x7f) : (buf[1] & 0x7f) - 128); in adb_mouse_interrupt()
124 busmouse_add_movementbuttons(msedev, dx, -dy, buttons); in adb_mouse_interrupt()
128 buf[1], buf[2], buf[3], dx, dy); in adb_mouse_interrupt()
Dlogibusmouse.c86 char dx, dy; in mouse_interrupt() local
94 dy = (inb(MSE_DATA_PORT) & 0xf); in mouse_interrupt()
97 dy |= (buttons & 0xf) << 4; in mouse_interrupt()
99 busmouse_add_movementbuttons(msedev, dx, -dy, buttons); in mouse_interrupt()
Datixlmouse.c72 char dx, dy, buttons; in mouse_interrupt() local
78 dy = inb( ATIXL_MSE_DATA_PORT); in mouse_interrupt()
81 busmouse_add_movementbuttons(msedev, dx, -dy, buttons); in mouse_interrupt()
Dmsbusmouse.c81 char dx, dy; in ms_mouse_interrupt() local
91 dy = inb(MS_MSE_DATA_PORT); in ms_mouse_interrupt()
104 busmouse_add_movementbuttons(msedev, dx, -dy, buttons); in ms_mouse_interrupt()
Dbusmouse.c78 void busmouse_add_movementbuttons(int mousedev, int dx, int dy, int buttons) in busmouse_add_movementbuttons() argument
84 changed = (dx != 0 || dy != 0 || mse->buttons != buttons); in busmouse_add_movementbuttons()
87 add_mouse_randomness((buttons << 16) + (dy << 8) + dx); in busmouse_add_movementbuttons()
91 mse->dypos += dy; in busmouse_add_movementbuttons()
129 void busmouse_add_movement(int mousedev, int dx, int dy) in busmouse_add_movement() argument
133 busmouse_add_movementbuttons(mousedev, dx, dy, mse->buttons); in busmouse_add_movement()
Dbusmouse.h20 extern void busmouse_add_movementbuttons(int mousedev, int dx, int dy, int buttons);
21 extern void busmouse_add_movement(int mousedev, int dx, int dy);
Dpc110pad.c509 int dx, dy, b; in sample_ps2() local
527 dy=0; in sample_ps2()
532 dy = -(thisy-lasty); in sample_ps2()
545 d[0]= ((dy<0)?0x20:0) in sample_ps2()
550 d[2]=dy; in sample_ps2()
/linux-2.4.37.9/drivers/acorn/char/
Dmouse_rpc.c34 short x, y, dx, dy; in mouse_rpc_irq() local
43 dy = y - old_y; in mouse_rpc_irq()
46 if (dx || dy || buttons != old_b) { in mouse_rpc_irq()
47 busmouse_add_movementbuttons(mousedev, dx, dy, buttons); in mouse_rpc_irq()
/linux-2.4.37.9/drivers/video/
Dfbcon-vga.c99 void fbcon_vga_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_vga_bmove() argument
107 dst = (u16 *)(p->screen_base+dy*p->next_line); in fbcon_vga_bmove()
109 } else if (dy < sy || (dy == sy && dx < sx)) { in fbcon_vga_bmove()
111 dst = (u16 *)(p->screen_base+dy*p->next_line+dx*2); in fbcon_vga_bmove()
119 dst = (u16 *)(p->screen_base+(dy+height-1)*p->next_line+dx*2); in fbcon_vga_bmove()
Dfbcon-cfb2.c57 void fbcon_cfb2_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_cfb2_bmove() argument
64 fb_memmove(p->screen_base + dy * linesize, in fbcon_cfb2_bmove()
69 if (dy < sy || (dy == sy && dx < sx)) { in fbcon_cfb2_bmove()
71 dst = p->screen_base + dy * linesize + dx * 2; in fbcon_cfb2_bmove()
81 dst = p->screen_base + (dy+height) * linesize + dx * 2 in fbcon_cfb2_bmove()
Dfbcon-cfb4.c57 void fbcon_cfb4_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_cfb4_bmove() argument
64 fb_memmove(p->screen_base + dy * linesize, in fbcon_cfb4_bmove()
69 if (dy < sy || (dy == sy && dx < sx)) { in fbcon_cfb4_bmove()
71 dst = p->screen_base + dy * linesize + dx * 4; in fbcon_cfb4_bmove()
81 dst = p->screen_base + (dy+height) * linesize + dx * 4 in fbcon_cfb4_bmove()
Dfbcon-iplan2p2.c156 void fbcon_iplan2p2_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_iplan2p2_bmove() argument
175 fb_memmove(p->screen_base + dy * p->next_line * fontheight(p), in fbcon_iplan2p2_bmove()
185 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in fbcon_iplan2p2_bmove()
198 dst = p->screen_base + dy * linesize + (dx>>1)*4 + (dx & 1); in fbcon_iplan2p2_bmove()
221 dst = p->screen_base + dy * linesize + ((dx+width-1)>>1)*4; in fbcon_iplan2p2_bmove()
226 dst = p->screen_base + dy * linesize + (dx>>1)*4 + (dx & 1); in fbcon_iplan2p2_bmove()
243 dst = p->screen_base + dy * linesize + (dx>>1)*4 + (dx & 1); in fbcon_iplan2p2_bmove()
253 dst = p->screen_base + dy * linesize + (dx>>1)*4 + (dx & 1); in fbcon_iplan2p2_bmove()
Dfbcon-iplan2p4.c164 void fbcon_iplan2p4_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_iplan2p4_bmove() argument
183 fb_memmove(p->screen_base + dy * p->next_line * fontheight(p), in fbcon_iplan2p4_bmove()
193 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in fbcon_iplan2p4_bmove()
207 dst = p->screen_base + dy * linesize + (dx>>1)*8 + (dx & 1); in fbcon_iplan2p4_bmove()
230 dst = p->screen_base + dy * linesize + ((dx+width-1)>>1)*8; in fbcon_iplan2p4_bmove()
235 dst = p->screen_base + dy * linesize + (dx>>1)*8 + (dx & 1); in fbcon_iplan2p4_bmove()
254 dst = p->screen_base + dy * linesize + (dx>>1)*8 + (dx & 1); in fbcon_iplan2p4_bmove()
264 dst = p->screen_base + dy * linesize + (dx>>1)*8 + (dx & 1); in fbcon_iplan2p4_bmove()
Dfbcon-sti.c132 int dy, int dx, in fbcon_sti_bmove() argument
136 sti_bmove(default_sti /* FIXME */, sy, sx, dy, dx, height, width); in fbcon_sti_bmove()
143 dest = p->screen_base+dy*fontheight(p)*width; in fbcon_sti_bmove()
145 } else if (dy <= sy) { in fbcon_sti_bmove()
147 dest = p->screen_base+dy*fontheight(p)*p->next_line+dx; in fbcon_sti_bmove()
155 dest = p->screen_base+((dy+height)*fontheight(p)-1)*p->next_line+dx; in fbcon_sti_bmove()
Dfbcon-iplan2p8.c196 void fbcon_iplan2p8_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_iplan2p8_bmove() argument
215 fast_memmove(p->screen_base + dy * p->next_line * fontheight(p), in fbcon_iplan2p8_bmove()
225 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in fbcon_iplan2p8_bmove()
239 dst = p->screen_base + dy * linesize + (dx>>1)*16 + (dx & 1); in fbcon_iplan2p8_bmove()
263 dst = p->screen_base + dy * linesize + ((dx+width-1)>>1)*16; in fbcon_iplan2p8_bmove()
268 dst = p->screen_base + dy * linesize + (dx>>1)*16 + (dx & 1); in fbcon_iplan2p8_bmove()
286 dst = p->screen_base + dy * linesize + (dx>>1)*16 + (dx & 1); in fbcon_iplan2p8_bmove()
296 dst = p->screen_base + dy * linesize + (dx>>1)*16 + (dx & 1); in fbcon_iplan2p8_bmove()
Dfbcon-hga.c52 void fbcon_hga_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_hga_bmove() argument
61 dest = p->screen_base+dy*fontheight(p)*width; in fbcon_hga_bmove()
65 if (dy <= sy) { in fbcon_hga_bmove()
67 y2 = dy*fontheight(p); in fbcon_hga_bmove()
77 y2 = (dy+height)*fontheight(p)-1; in fbcon_hga_bmove()
Dfbcon-mfb.c35 void fbcon_mfb_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_mfb_bmove() argument
43 dest = p->screen_base+dy*fontheight(p)*width; in fbcon_mfb_bmove()
45 } else if (dy <= sy) { in fbcon_mfb_bmove()
47 dest = p->screen_base+dy*fontheight(p)*p->next_line+dx; in fbcon_mfb_bmove()
55 dest = p->screen_base+((dy+height)*fontheight(p)-1)*p->next_line+dx; in fbcon_mfb_bmove()
Dfbcon-cfb8.c48 void fbcon_cfb8_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_cfb8_bmove() argument
55 fb_memmove(p->screen_base + dy * linesize, in fbcon_cfb8_bmove()
65 if (dy < sy || (dy == sy && dx < sx)) { in fbcon_cfb8_bmove()
67 dst = p->screen_base + dy * linesize + dx; in fbcon_cfb8_bmove()
75 dst = p->screen_base + (dy+height) * linesize + dx - bytes; in fbcon_cfb8_bmove()
Dfbcon-vga-planes.c105 void fbcon_vga_planes_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_vga_planes_bmove() argument
118 dy *= fontheight(p); in fbcon_vga_planes_bmove()
121 if (dy < sy || (dy == sy && dx < sx)) { in fbcon_vga_planes_bmove()
123 dest = p->screen_base + dx + dy * p->line_length; in fbcon_vga_planes_bmove()
137 dest = p->screen_base + dx + width + (dy + height - 1) * p->line_length; in fbcon_vga_planes_bmove()
Dmdacon.c465 int dy, int dx, int height, int width) in mdacon_bmove() argument
473 scr_memmovew(MDA_ADDR(0,dy), MDA_ADDR(0,sy), height*width*2); in mdacon_bmove()
475 } else if (dy < sy || (dy == sy && dx < sx)) { in mdacon_bmove()
477 dest = MDA_ADDR(dx, dy); in mdacon_bmove()
486 dest = MDA_ADDR(dx, dy+height-1); in mdacon_bmove()
Dfbcon-ilbm.c44 void fbcon_ilbm_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_ilbm_bmove() argument
48 fb_memmove(p->screen_base+dy*fontheight(p)*p->next_line, in fbcon_ilbm_bmove()
55 if (dy <= sy) { in fbcon_ilbm_bmove()
57 dest = p->screen_base+dy*fontheight(p)*p->next_line+dx; in fbcon_ilbm_bmove()
65 dest = p->screen_base+(dy+height)*fontheight(p)*p->next_line+dx; in fbcon_ilbm_bmove()
/linux-2.4.37.9/drivers/input/
Dmousedev.c65 int dx, dy, dz, oldx, oldy; member
109 list->dy -= (value * yres - list->oldy) / size; in mousedev_event()
110 list->oldy -= list->dy * size; in mousedev_event()
118 case REL_Y: list->dy -= value; break; in mousedev_event()
255 list->ps2[off] = 0x08 | ((list->dx < 0) << 4) | ((list->dy < 0) << 5) | (list->buttons & 0x07); in mousedev_packet()
257 list->ps2[off + 2] = (list->dy > 127 ? 127 : (list->dy < -127 ? -127 : list->dy)); in mousedev_packet()
259 list->dy -= list->ps2[off + 2]; in mousedev_packet()
275 if (!list->dx && !list->dy && (!list->mode || !list->dz)) list->ready = 0; in mousedev_packet()
/linux-2.4.37.9/drivers/video/sis/
Dsis_accel.c356 if(!rect->width || !rect->height || rect->dx >= vxres || rect->dy >= vyres) { in fbcon_sis_fillrect()
362 height = ((rect->dy + rect->height) > vyres) ? (vyres - rect->dy) : rect->height; in fbcon_sis_fillrect()
376 SiS300SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
384 SiS310SubsequentSolidFillRect(ivideo, rect->dx, rect->dy, width, height); in fbcon_sis_fillrect()
412 area->dx >= vxres || area->dy >= vyres) { in fbcon_sis_copyarea()
420 if((area->dy + height) > vyres) height = vyres - area->dy; in fbcon_sis_copyarea()
428 if(area->sy < area->dy) ydir = 0; in fbcon_sis_copyarea()
433 SiS300SubsequentScreenToScreenCopy(ivideo, area->sx, area->sy, area->dx, area->dy, in fbcon_sis_copyarea()
442 SiS310SubsequentScreenToScreenCopy(ivideo, area->sx, area->sy, area->dx, area->dy, in fbcon_sis_copyarea()

1234