Lines Matching refs:dz1
285 int dx1, dy1, dz1; in ps2_mouse_send_packet() local
289 dz1 = s->mouse_dz; in ps2_mouse_send_packet()
308 if (dz1 > 127) in ps2_mouse_send_packet()
309 dz1 = 127; in ps2_mouse_send_packet()
310 else if (dz1 < -127) in ps2_mouse_send_packet()
311 dz1 = -127; in ps2_mouse_send_packet()
312 ps2_queue(&s->common, dz1 & 0xff); in ps2_mouse_send_packet()
315 if (dz1 > 7) in ps2_mouse_send_packet()
316 dz1 = 7; in ps2_mouse_send_packet()
317 else if (dz1 < -7) in ps2_mouse_send_packet()
318 dz1 = -7; in ps2_mouse_send_packet()
319 b = (dz1 & 0x0f) | ((s->mouse_buttons & 0x18) << 1); in ps2_mouse_send_packet()
327 s->mouse_dz -= dz1; in ps2_mouse_send_packet()