Searched refs:SW_LENGTH (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/input/joystick/ |
H A D | sidewinder.c | 59 #define SW_LENGTH 512 /* Max number of bits in a packet */ macro 427 unsigned char buf[SW_LENGTH]; 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() 592 unsigned char *buf = NULL; /* [SW_LENGTH] */ sw_connect() 593 unsigned char *idbuf = NULL; /* [SW_LENGTH] */ sw_connect() 600 buf = kmalloc(SW_LENGTH, GFP_KERNEL); sw_connect() 601 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL); sw_connect() 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 34 milliseconds