Home
last modified time | relevance | path

Searched refs:dx (Results 1 – 25 of 105) sorted by relevance

12345

/linux-2.4.37.9/drivers/char/
Damigamouse.c73 int dx, dy; in mouse_interrupt() local
95 dx = nx - lastx; in mouse_interrupt()
96 if (dx < - 127) in mouse_interrupt()
97 dx = (256 + nx) - lastx; in mouse_interrupt()
99 if (dx > 127) in mouse_interrupt()
100 dx = (nx - 256) - lastx; in mouse_interrupt()
113 dx = -lastdx; in mouse_interrupt()
114 dx += (lastdx = joy0dat & 0xff); in mouse_interrupt()
115 if (dx < -127) in mouse_interrupt()
116 dx = -255-dx; /* underrun */ in mouse_interrupt()
[all …]
Dobmouse.c151 short dx, dy; in ob_interrupt() local
169 dx = (short) rawx - (short) lastx ; in ob_interrupt()
182 if (dx > OB_ROLL_LIMIT) { in ob_interrupt()
184 dx = 0x1000 - dx; in ob_interrupt()
185 } else if (-dx > OB_ROLL_LIMIT) { in ob_interrupt()
190 dx = -0x1000 - dx; in ob_interrupt()
197 dx /= speed; /* scale */ in ob_interrupt()
205 if (dx) input_report_rel(&obdev, REL_X, -dx); in ob_interrupt()
Dadbmouse.c64 char dx, dy; in adb_mouse_interrupt() local
122 dx = ((buf[2] & 0x7f) < 64 ? (buf[2] & 0x7f) : (buf[2] & 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
90 dx = (inb(MSE_DATA_PORT) & 0xf); in mouse_interrupt()
92 dx |= (inb(MSE_DATA_PORT) & 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
76 dx = 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
88 dx = 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()
90 mse->dxpos += dx; 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);
/linux-2.4.37.9/arch/i386/boot/
Dvideo.S173 movw %dx, %fs:(PARAM_CURSOR_POS)
693 movw $0x3cc, %dx # Get CRTC port
694 inb %dx, %al
714 pushw %dx
716 inb %dx, %al
720 outb %al, %dx
721 popw %dx
807 movw %ax, %dx
865 outidx: outb %al, %dx
868 incw %dx
[all …]
Dbootsect.S135 xorw %dx, %dx # drive 0, head 0
176 call set_next # set %bx properly; it uses %ax,%cx,%dx
281 movw 4(%si), %dx # 4(%si) = track
285 movw 2(%si), %dx # 2(%si) = head
287 andw $0x0100, %dx
289 pushw %dx # save for error dump
338 # %dx
380 movw (%bp), %dx # load word into %dx
382 rolw $4, %dx # rotate to use low 4 bits
396 # NOTE: Doesn't save %ax or %dx; do it yourself if you need to.
[all …]
/linux-2.4.37.9/arch/x86_64/boot/
Dvideo.S172 movw %dx, %fs:(PARAM_CURSOR_POS)
692 movw $0x3cc, %dx # Get CRTC port
693 inb %dx, %al
713 pushw %dx
715 inb %dx, %al
719 outb %al, %dx
720 popw %dx
798 movw %ax, %dx
856 outidx: outb %al, %dx
859 incw %dx
[all …]
Dbootsect.S135 xorw %dx, %dx # drive 0, head 0
176 call set_next # set %bx properly; it uses %ax,%cx,%dx
281 movw 4(%si), %dx # 4(%si) = track
285 movw 2(%si), %dx # 2(%si) = head
287 andw $0x0100, %dx
289 pushw %dx # save for error dump
338 # %dx
380 movw (%bp), %dx # load word into %dx
382 rolw $4, %dx # rotate to use low 4 bits
396 # NOTE: Doesn't save %ax or %dx; do it yourself if you need to.
/linux-2.4.37.9/drivers/video/
Dfbcon-iplan2p2.c156 void fbcon_iplan2p2_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_iplan2p2_bmove() argument
171 if (sx == 0 && dx == 0 && width * 2 == p->next_line) { in fbcon_iplan2p2_bmove()
185 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in fbcon_iplan2p2_bmove()
194 if ((sx & 1) == (dx & 1)) { 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()
251 dx += width-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
179 if (sx == 0 && dx == 0 && width * 4 == p->next_line) { in fbcon_iplan2p4_bmove()
193 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in fbcon_iplan2p4_bmove()
202 if ((sx & 1) == (dx & 1)) { 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()
262 dx += width-1; in fbcon_iplan2p4_bmove()
264 dst = p->screen_base + dy * linesize + (dx>>1)*8 + (dx & 1); in fbcon_iplan2p4_bmove()
Dfbcon-iplan2p8.c196 void fbcon_iplan2p8_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_iplan2p8_bmove() argument
211 if (sx == 0 && dx == 0 && width * 8 == p->next_line) { in fbcon_iplan2p8_bmove()
225 u_int upwards = (dy < sy) || (dy == sy && dx < sx); in fbcon_iplan2p8_bmove()
234 if ((sx & 1) == (dx & 1)) { 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()
294 dx += width-1; in fbcon_iplan2p8_bmove()
296 dst = p->screen_base + dy * linesize + (dx>>1)*16 + (dx & 1); in fbcon_iplan2p8_bmove()
Dfbcon-vga.c99 void fbcon_vga_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_vga_bmove() argument
105 if (sx == 0 && dx == 0 && width == p->next_line/2) { 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-cfb8.c48 void fbcon_cfb8_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_cfb8_bmove() argument
54 if (sx == 0 && dx == 0 && width * fontwidth(p) == bytes) { in fbcon_cfb8_bmove()
61 sx <<= fontwidthlog(p); dx <<= fontwidthlog(p); width <<= fontwidthlog(p); in fbcon_cfb8_bmove()
63 sx *= fontwidth(p); dx *= fontwidth(p); width *= fontwidth(p); 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-cfb2.c57 void fbcon_cfb2_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_cfb2_bmove() argument
63 if (sx == 0 && dx == 0 && width * 2 == bytes) { 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
63 if (sx == 0 && dx == 0 && width * 4 == bytes) { 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-cfb24.c32 void fbcon_cfb24_bmove(struct display *p, int sy, int sx, int dy, int dx, in fbcon_cfb24_bmove() argument
38 if (sx == 0 && dx == 0 && width * fontwidth(p) * 3 == bytes) { in fbcon_cfb24_bmove()
46 dx <<= fontwidthlog(p); in fbcon_cfb24_bmove()
50 dx *= fontwidth(p); in fbcon_cfb24_bmove()
53 sx *= 3; dx *= 3; width *= 3; in fbcon_cfb24_bmove()
54 if (dy < sy || (dy == sy && dx < sx)) { in fbcon_cfb24_bmove()
56 dst = p->screen_base + dy * linesize + dx; in fbcon_cfb24_bmove()
64 dst = p->screen_base + (dy+height) * linesize + dx - bytes; in fbcon_cfb24_bmove()
/linux-2.4.37.9/drivers/acorn/char/
Dmouse_rpc.c34 short x, y, dx, dy; in mouse_rpc_irq() local
41 dx = x - old_x; 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/net/sched/
Dsch_hfsc.c93 u64 dx; /* the x-projection of the 1st segment */ member
106 u64 dx; /* the x-projection of the 1st segment */ member
498 u64 dx; in d2dx() local
500 dx = ((u64)d * PSCHED_JIFFIE2US(HZ)); in d2dx()
501 dx += 1000000 - 1; in d2dx()
502 do_div(dx, 1000000); in d2dx()
503 return dx; in d2dx()
518 dx2d(u64 dx) in dx2d() argument
522 d = dx * 1000000; in dx2d()
532 isc->dx = d2dx(sc->d); in sc2isc()
[all …]
/linux-2.4.37.9/drivers/input/
Dmousedev.c65 int dx, dy, dz, oldx, oldy; member
104 list->dx += (value * xres - list->oldx) / size; in mousedev_event()
105 list->oldx += list->dx * size; in mousedev_event()
117 case REL_X: list->dx += value; break; in mousedev_event()
255 list->ps2[off] = 0x08 | ((list->dx < 0) << 4) | ((list->dy < 0) << 5) | (list->buttons & 0x07); in mousedev_packet()
256 list->ps2[off + 1] = (list->dx > 127 ? 127 : (list->dx < -127 ? -127 : list->dx)); in mousedev_packet()
258 list->dx -= list->ps2[off + 1]; 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()
361 width = ((rect->dx + rect->width) > vxres) ? (vxres - rect->dx) : rect->width; 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()
418 if((area->dx + width) > vxres) width = vxres - area->dx; in fbcon_sis_copyarea()
426 if(area->sx < area->dx) xdir = 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()
/linux-2.4.37.9/drivers/isdn/sc/
Dmessage.h38 #define IS_CM_MESSAGE(mesg, tx, cx, dx) \ argument
41 &&(mesg.code == cmRsp##dx))
46 #define IS_CE_MESSAGE(mesg, tx, cx, dx) \ argument
49 &&(mesg.code == ceRsp##tx##dx))

12345