Lines Matching defs:SW_LENGTH
40 #define SW_LENGTH 512 /* Max number of bits in a packet */
408 unsigned char buf[SW_LENGTH];
472 i = sw_read_packet(sw->gameport, buf, SW_LENGTH, 0); /* Read normal data packet */
474 sw_read_packet(sw->gameport, buf, SW_LENGTH, i); /* Read ID packet, this initializes the stick */
573 unsigned char *buf = NULL; /* [SW_LENGTH] */
574 unsigned char *idbuf = NULL; /* [SW_LENGTH] */
581 buf = kmalloc(SW_LENGTH, GFP_KERNEL);
582 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL);
599 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read normal packet */
606 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Retry reading packet */
615 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */
621 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Retry reading packet */
629 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */
640 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read data packet */