Searched refs:sw_read_packet (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/input/joystick/
H A Dsidewinder.c130 * sw_read_packet() is a function which reads either a data packet, or an
135 static int sw_read_packet(struct gameport *gameport, unsigned char *buf, int length, int id) sw_read_packet() function
430 i = sw_read_packet(sw->gameport, buf, sw->length, 0); sw_read()
491 i = sw_read_packet(sw->gameport, buf, SW_LENGTH, 0); /* Read normal data packet */ sw_read()
493 sw_read_packet(sw->gameport, buf, SW_LENGTH, i); /* Read ID packet, this initializes the stick */ sw_read()
618 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read normal packet */ sw_connect()
625 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Retry reading packet */ sw_connect()
634 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */ sw_connect()
640 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Retry reading packet */ sw_connect()
648 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */ sw_connect()
659 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read data packet */ sw_connect()

Completed in 77 milliseconds