Lines Matching refs:code
285 int code = 0; in ps2_mouse_get_packet() local
293 code = ps2_mouse_get_scancode(); in ps2_mouse_get_packet()
294 ((struct ps2_mouse_packet_3bytes *)packet)->byte0 = (unsigned char)code; in ps2_mouse_get_packet()
295 } while (code == -1024); in ps2_mouse_get_packet()
299 code = ps2_mouse_get_scancode(); in ps2_mouse_get_packet()
300 ((struct ps2_mouse_packet_3bytes *)packet)->movement_x = (char)code; in ps2_mouse_get_packet()
301 } while (code == -1024); in ps2_mouse_get_packet()
305 code = ps2_mouse_get_scancode(); in ps2_mouse_get_packet()
306 ((struct ps2_mouse_packet_3bytes *)packet)->movement_y = (char)code; in ps2_mouse_get_packet()
307 } while (code == -1024); in ps2_mouse_get_packet()
318 code = ps2_mouse_get_scancode(); in ps2_mouse_get_packet()
319 ((struct ps2_mouse_packet_4bytes *)packet)->byte0 = (unsigned char)code; in ps2_mouse_get_packet()
320 } while (code == -1024); in ps2_mouse_get_packet()
324 code = ps2_mouse_get_scancode(); in ps2_mouse_get_packet()
325 ((struct ps2_mouse_packet_4bytes *)packet)->movement_x = (char)code; in ps2_mouse_get_packet()
326 } while (code == -1024); in ps2_mouse_get_packet()
330 code = ps2_mouse_get_scancode(); in ps2_mouse_get_packet()
331 ((struct ps2_mouse_packet_4bytes *)packet)->movement_y = (char)code; in ps2_mouse_get_packet()
332 } while (code == -1024); in ps2_mouse_get_packet()
336 code = ps2_mouse_get_scancode(); in ps2_mouse_get_packet()
337 ((struct ps2_mouse_packet_4bytes *)packet)->byte3 = (char)code; in ps2_mouse_get_packet()
338 } while (code == -1024); in ps2_mouse_get_packet()