Lines Matching defs:idbuf
574 unsigned char *idbuf = NULL; /* [SW_LENGTH] */
582 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL);
583 if (!sw || !buf || !idbuf) {
615 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */
616 m |= sw_guess_mode(idbuf, j); /* ID packet should carry mode info [3DP] */
629 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */
680 sprintf(comment, " [AC %s]", sw_get_bits(idbuf,38,1,3) ? "off" : "on");
693 sw_3dp_id(idbuf, comment, sizeof(comment));
703 sw_print_packet("ID", j * 3, idbuf, 3);
710 sw_print_packet("ID", j * 3, idbuf, 3);
774 kfree(idbuf);