Lines Matching full:pads
75 struct gc_pad pads[GC_MAX_DEVICES]; member
122 #define GC_N64_OUT 0x1d /* output bits to the 4 pads */
161 * Each pad uses one bit per byte. So all pads connected to this port
216 if (gc->pads[i].type != GC_N64) in gc_n64_process_packet()
219 dev = gc->pads[i].dev; in gc_n64_process_packet()
319 #define GC_NES_LENGTH 8 /* The NES pads use 8 bits of data */
337 * Each pad uses one bit per byte. So all pads connected to
373 pad = &gc->pads[i]; in gc_nes_process_packet()
481 pad = &gc->pads[i]; in gc_multi_process_packet()
565 struct gc_pad *pad = &gc->pads[j]; in gc_psx_command()
604 struct gc_pad *pad = &gc->pads[i]; in gc_psx_read_packet()
720 pad = &gc->pads[i]; in gc_psx_process_packet()
727 * gc_timer() initiates reads of console pads data.
735 * N64 pads - must be read first, any read confuses them for 200 us in gc_timer()
742 * NES and SNES pads or mouse in gc_timer()
802 struct gc_pad *pad = &gc->pads[idx]; in gc_setup_pad()
928 int *pads, n_pads; in gc_attach() local
943 pads = gc_cfg[port_idx].args + 1; in gc_attach()
968 if (!pads[i]) in gc_attach()
971 if (gc_setup_pad(gc, i, pads[i])) in gc_attach()
987 if (gc->pads[i].dev) in gc_attach()
988 input_unregister_device(gc->pads[i].dev); in gc_attach()
1012 if (gc->pads[i].dev) in gc_detach()
1013 input_unregister_device(gc->pads[i].dev); in gc_detach()