Lines Matching refs:j
198 int j; in sw_read_packet() local
200 for (j = 0; j < i; j++) printk("%d", buf[j]); in sw_read_packet()
303 int hat, i, j; in sw_parse() local
323 for (j = 0; j < 7; j++) in sw_parse()
324 input_report_key(dev, sw_btn[SW_ID_3DP][j], !GB(j+8,1)); in sw_parse()
343 for (j = 0; j < 10; j++) in sw_parse()
344 input_report_key(sw->dev[i], sw_btn[SW_ID_GP][j], !GB(i*15+j+4,1)); in sw_parse()
366 for (j = 0; j < 9; j++) in sw_parse()
367 input_report_key(dev, sw_btn[SW_ID_PP][j], !GB(j,1)); in sw_parse()
386 for (j = 0; j < 6; j++) in sw_parse()
387 input_report_key(dev, sw_btn[SW_ID_FSP][j], !GB(j+10,1)); in sw_parse()
408 for (j = 0; j < 8; j++) in sw_parse()
409 input_report_key(dev, sw_btn[SW_ID_FFW][j], !GB(j+22,1)); in sw_parse()
590 int i, j, k, l; in sw_connect() local
634 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Read ID. This initializes the stick */ in sw_connect()
635 m |= sw_guess_mode(idbuf, j); /* ID packet should carry mode info [3DP] */ in sw_connect()
636 dbg("Init 2: Mode %d. ID Length %d.", m, j); in sw_connect()
638 if (j <= 0) { /* Read ID failed. Happens in 1-bit mode on PP */ in sw_connect()
648 j = sw_read_packet(gameport, idbuf, SW_LENGTH, i); /* Retry reading ID */ in sw_connect()
649 dbg("Init 2c: ID Length %d.", j); in sw_connect()
677 if (j <= 40) { /* ID length less or eq 40 -> FSP */ in sw_connect()
693 if (j == 14) { /* ID length 14*3 -> FFP */ in sw_connect()
705 if (j == 160) in sw_connect()
716 sw_print_packet("ID", j * 3, idbuf, 3); in sw_connect()
723 sw_print_packet("ID", j * 3, idbuf, 3); in sw_connect()
731 l = j; in sw_connect()
762 for (j = 0; (bits = sw_bit[sw->type][j]); j++) { in sw_connect()
765 code = sw_abs[sw->type][j]; in sw_connect()
776 for (j = 0; (code = sw_btn[sw->type][j]); j++) in sw_connect()