Lines Matching refs:pad

107 	NULL, "SNES pad", "NES pad", "NES FourPort", "Multisystem joystick",
138 /* Reading the main axes of any N64 pad is known to fail if the corresponding bit */
176 * Each pad uses one bit per byte. So all pads connected to this port
186 * Request the pad to transmit data
195 * Wait for the pad response to be loaded into the 33-bit register
352 * Each pad uses one bit per byte. So all pads connected to
376 struct gc_pad *pad;
388 pad = &gc->pads[i];
389 dev = pad->dev;
392 switch (pad->type) {
489 struct gc_pad *pad;
496 pad = &gc->pads[i];
497 dev = pad->dev;
500 switch (pad->type) {
562 * the psx pad.
580 struct gc_pad *pad = &gc->pads[j];
582 if (pad->type == GC_PSX || pad->type == GC_DDR)
604 /* Select pad */
613 gc_psx_command(gc, 0x01, data2); /* Access pad */
617 /* Find the longest pad */
619 struct gc_pad *pad = &gc->pads[i];
621 if ((pad->type == GC_PSX || pad->type == GC_DDR) &&
644 static void gc_psx_report_one(struct gc_pad *pad, unsigned char psx_type,
647 struct input_dev *dev = pad->dev;
660 if (pad->type == GC_DDR) {
687 if (pad->type == GC_DDR) {
719 default: /* not a pad, ignore */
728 struct gc_pad *pad;
734 pad = &gc->pads[i];
735 if (pad->type == GC_PSX || pad->type == GC_DDR)
736 gc_psx_report_one(pad, id[i], data[i]);
816 struct gc_pad *pad = &gc->pads[idx];
826 pad->dev = input_dev = input_allocate_device();
832 pad->type = pad_type;
834 snprintf(pad->phys, sizeof(pad->phys),
838 input_dev->phys = pad->phys;
917 err = input_register_device(pad->dev);
924 input_free_device(pad->dev);
925 pad->dev = NULL;