Lines Matching defs:sw_read_packet
114 * sw_read_packet() is a function which reads either a data packet, or an
119 static int sw_read_packet(struct gameport *gameport, unsigned char *buf, int length, int id)
414 i = sw_read_packet(sw->gameport, buf, sw->length, 0);
475 i = sw_read_packet(sw->gameport, buf, SW_LENGTH, 0); /* Read normal data packet */
477 sw_read_packet(sw->gameport, buf, SW_LENGTH, i); /* Read ID packet, this initializes the stick */
602 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read normal packet */
609 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Retry reading packet */
618 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */
624 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Retry reading packet */
632 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */
643 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read data packet */