Searched refs:SW_LENGTH (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/input/joystick/ |
H A D | sidewinder.c | 43 #define SW_LENGTH 512 /* Max number of bits in a packet */ macro 411 unsigned char buf[SW_LENGTH]; in sw_read() 475 i = sw_read_packet(sw->gameport, buf, SW_LENGTH, 0); /* Read normal data packet */ in sw_read() 477 sw_read_packet(sw->gameport, buf, SW_LENGTH, i); /* Read ID packet, this initializes the stick */ in sw_read() 576 unsigned char *buf = NULL; /* [SW_LENGTH] */ in sw_connect() 577 unsigned char *idbuf = NULL; /* [SW_LENGTH] */ in sw_connect() 584 buf = kmalloc(SW_LENGTH, GFP_KERNEL); in sw_connect() 585 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL); in sw_connect() 602 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read normal packet */ in sw_connect() 609 i = sw_read_packet(gameport, buf, SW_LENGTH, in sw_connect() [all...] |
/kernel/linux/linux-6.6/drivers/input/joystick/ |
H A D | sidewinder.c | 40 #define SW_LENGTH 512 /* Max number of bits in a packet */ macro 408 unsigned char buf[SW_LENGTH]; in sw_read() 472 i = sw_read_packet(sw->gameport, buf, SW_LENGTH, 0); /* Read normal data packet */ in sw_read() 474 sw_read_packet(sw->gameport, buf, SW_LENGTH, i); /* Read ID packet, this initializes the stick */ in sw_read() 573 unsigned char *buf = NULL; /* [SW_LENGTH] */ in sw_connect() 574 unsigned char *idbuf = NULL; /* [SW_LENGTH] */ in sw_connect() 581 buf = kmalloc(SW_LENGTH, GFP_KERNEL); in sw_connect() 582 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL); in sw_connect() 599 i = sw_read_packet(gameport, buf, SW_LENGTH, 0); /* Read normal packet */ in sw_connect() 606 i = sw_read_packet(gameport, buf, SW_LENGTH, in sw_connect() [all...] |
Completed in 2 milliseconds