Lines Matching refs:j
225 int i, j, s; in gc_n64_process_packet() local
242 for (j = 0; j < 8; j++) { in gc_n64_process_packet()
243 if (data[23 - j] & s) in gc_n64_process_packet()
244 x |= 1 << j; in gc_n64_process_packet()
245 if (data[31 - j] & s) in gc_n64_process_packet()
246 y |= 1 << j; in gc_n64_process_packet()
257 for (j = 0; j < 10; j++) in gc_n64_process_packet()
258 input_report_key(dev, gc_n64_btn[j], in gc_n64_process_packet()
259 s & data[gc_n64_bytes[j]]); in gc_n64_process_packet()
379 int i, j, s, len; in gc_nes_process_packet() local
400 for (j = 0; j < 4; j++) in gc_nes_process_packet()
401 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet()
402 s & data[gc_nes_bytes[j]]); in gc_nes_process_packet()
411 for (j = 0; j < 8; j++) in gc_nes_process_packet()
412 input_report_key(dev, gc_snes_btn[j], in gc_nes_process_packet()
413 s & data[gc_snes_bytes[j]]); in gc_nes_process_packet()
433 for (j = 0; j < 7; j++) { in gc_nes_process_packet()
435 if (data[25 + j] & s) in gc_nes_process_packet()
439 if (data[17 + j] & s) in gc_nes_process_packet()
569 int i, j, cmd, read; in gc_psx_command() local
580 for (j = 0; j < GC_MAX_DEVICES; j++) { in gc_psx_command()
581 struct gc_pad *pad = &gc->pads[j]; in gc_psx_command()
584 data[j] |= (read & gc_status_bit[j]) ? (1 << i) : 0; in gc_psx_command()
601 int i, j, max_len = 0; in gc_psx_read_packet() local
632 for (j = 0; j < GC_MAX_DEVICES; j++) in gc_psx_read_packet()
633 data[j][i] = data2[j]; in gc_psx_read_packet()