Lines Matching refs:idbuf
589 unsigned char *idbuf = NULL; /* [SW_LENGTH] */ in sw_connect() local
597 idbuf = kmalloc(SW_LENGTH, GFP_KERNEL); in sw_connect()
598 if (!sw || !buf || !idbuf) { in sw_connect()
630 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */ in sw_connect()
631 m |= sw_guess_mode(idbuf, j); /* ID packet should carry mode info [3DP] */ in sw_connect()
644 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */ in sw_connect()
691 sprintf(comment, " [AC %s]", sw_get_bits(idbuf,38,1,3) ? "off" : "on"); in sw_connect()
702 sw_3dp_id(idbuf, comment, sizeof(comment)); in sw_connect()
712 sw_print_packet("ID", j * 3, idbuf, 3); in sw_connect()
719 sw_print_packet("ID", j * 3, idbuf, 3); in sw_connect()
783 kfree(idbuf); in sw_connect()