Searched refs:sw_get_bits (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.6/drivers/input/joystick/ |
D | sidewinder.c | 196 #define GB(pos,num) sw_get_bits(buf, pos, num, sw->bits) 198 static __u64 sw_get_bits(unsigned char *buf, int pos, int num, char bits) in sw_get_bits() function 415 if (i == 64 && !sw_check(sw_get_bits(buf,0,64,1))) { /* Last init failed, 1 bit mode */ in sw_read() 515 printk("%x", (int)sw_get_bits(buf, i << 2, 4, bits)); in sw_print_packet() 530 pnp[i] = sw_get_bits(buf, 24+8*i, 8, 1); in sw_3dp_id() 533 rev[i] = sw_get_bits(buf, 88+8*i, 8, 1); in sw_3dp_id() 538 (int) ((sw_get_bits(buf, 8, 6, 1) << 6) | /* Two 6-bit values */ in sw_3dp_id() 539 sw_get_bits(buf, 16, 6, 1)) / 100, in sw_3dp_id() 540 (int) ((sw_get_bits(buf, 8, 6, 1) << 6) | in sw_3dp_id() 541 sw_get_bits(buf, 16, 6, 1)) % 100, in sw_3dp_id() [all …]
|