Lines Matching refs:j
224 int i, j, s; in gc_n64_process_packet() local
241 for (j = 0; j < 8; j++) { in gc_n64_process_packet()
242 if (data[23 - j] & s) in gc_n64_process_packet()
243 x |= 1 << j; in gc_n64_process_packet()
244 if (data[31 - j] & s) in gc_n64_process_packet()
245 y |= 1 << j; in gc_n64_process_packet()
256 for (j = 0; j < 10; j++) in gc_n64_process_packet()
257 input_report_key(dev, gc_n64_btn[j], in gc_n64_process_packet()
258 s & data[gc_n64_bytes[j]]); in gc_n64_process_packet()
378 int i, j, s, len; in gc_nes_process_packet() local
399 for (j = 0; j < 4; j++) in gc_nes_process_packet()
400 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet()
401 s & data[gc_nes_bytes[j]]); in gc_nes_process_packet()
410 for (j = 0; j < 8; j++) in gc_nes_process_packet()
411 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet()
412 s & data[gc_snes_bytes[j]]); in gc_nes_process_packet()
432 for (j = 0; j < 7; j++) { in gc_nes_process_packet()
434 if (data[25 + j] & s) in gc_nes_process_packet()
438 if (data[17 + j] & s) in gc_nes_process_packet()
568 int i, j, cmd, read; in gc_psx_command() local
579 for (j = 0; j < GC_MAX_DEVICES; j++) { in gc_psx_command()
580 struct gc_pad *pad = &gc->pads[j]; in gc_psx_command()
583 data[j] |= (read & gc_status_bit[j]) ? (1 << i) : 0; in gc_psx_command()
600 int i, j, max_len = 0; in gc_psx_read_packet() local
631 for (j = 0; j < GC_MAX_DEVICES; j++) in gc_psx_read_packet()
632 data[j][i] = data2[j]; in gc_psx_read_packet()