Lines Matching full:pads
87 struct gc_pad pads[GC_MAX_DEVICES]; member
134 #define GC_N64_OUT 0x1d /* output bits to the 4 pads */
173 * Each pad uses one bit per byte. So all pads connected to this port
228 if (gc->pads[i].type != GC_N64) in gc_n64_process_packet()
231 dev = gc->pads[i].dev; in gc_n64_process_packet()
331 #define GC_NES_LENGTH 8 /* The NES pads use 8 bits of data */
349 * Each pad uses one bit per byte. So all pads connected to
385 pad = &gc->pads[i]; in gc_nes_process_packet()
493 pad = &gc->pads[i]; in gc_multi_process_packet()
577 struct gc_pad *pad = &gc->pads[j]; in gc_psx_command()
616 struct gc_pad *pad = &gc->pads[i]; in gc_psx_read_packet()
732 pad = &gc->pads[i]; in gc_psx_process_packet()
739 * gc_timer() initiates reads of console pads data.
747 * N64 pads - must be read first, any read confuses them for 200 us in gc_timer()
754 * NES and SNES pads or mouse in gc_timer()
814 struct gc_pad *pad = &gc->pads[idx]; in gc_setup_pad()
939 int *pads, n_pads; in gc_attach() local
954 pads = gc_cfg[port_idx].args + 1; in gc_attach()
979 if (!pads[i]) in gc_attach()
982 if (gc_setup_pad(gc, i, pads[i])) in gc_attach()
998 if (gc->pads[i].dev) in gc_attach()
999 input_unregister_device(gc->pads[i].dev); in gc_attach()
1023 if (gc->pads[i].dev) in gc_detach()
1024 input_unregister_device(gc->pads[i].dev); in gc_detach()