Lines Matching defs:SW_LENGTH
43 #define SW_LENGTH 512 /* Max number of bits in a packet */
411 unsigned char buf[SW_LENGTH];
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 */
576 unsigned char *buf = NULL; /* [SW_LENGTH] */
577 unsigned char *idbuf = NULL; /* [SW_LENGTH] */
584 buf = kmalloc(SW_LENGTH, GFP_KERNEL);
585 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL);
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 */