Lines Matching defs:idbuf
575 unsigned char *idbuf = NULL; /* [SW_LENGTH] */
583 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL);
584 if (!sw || !buf || !idbuf) {
616 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */
617 m |= sw_guess_mode(idbuf, j); /* ID packet should carry mode info [3DP] */
630 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */
681 sprintf(comment, " [AC %s]", str_off_on(sw_get_bits(idbuf,38,1,3)));
694 sw_3dp_id(idbuf, comment, sizeof(comment));
704 sw_print_packet("ID", j * 3, idbuf, 3);
711 sw_print_packet("ID", j * 3, idbuf, 3);
775 kfree(idbuf);