Lines Matching refs:pad

89 	NULL, "SNES pad", "NES pad", "NES FourPort", "Multisystem joystick",
120 /* Reading the main axes of any N64 pad is known to fail if the corresponding bit */
158 * Each pad uses one bit per byte. So all pads connected to this port
168 * Request the pad to transmit data
177 * Wait for the pad response to be loaded into the 33-bit register
334 * Each pad uses one bit per byte. So all pads connected to
358 struct gc_pad *pad;
370 pad = &gc->pads[i];
371 dev = pad->dev;
374 switch (pad->type) {
471 struct gc_pad *pad;
478 pad = &gc->pads[i];
479 dev = pad->dev;
482 switch (pad->type) {
544 * the psx pad.
562 struct gc_pad *pad = &gc->pads[j];
564 if (pad->type == GC_PSX || pad->type == GC_DDR)
586 /* Select pad */
595 gc_psx_command(gc, 0x01, data2); /* Access pad */
599 /* Find the longest pad */
601 struct gc_pad *pad = &gc->pads[i];
603 if ((pad->type == GC_PSX || pad->type == GC_DDR) &&
626 static void gc_psx_report_one(struct gc_pad *pad, unsigned char psx_type,
629 struct input_dev *dev = pad->dev;
643 if (pad->type == GC_DDR) {
670 if (pad->type == GC_DDR) {
702 default: /* not a pad, ignore */
711 struct gc_pad *pad;
717 pad = &gc->pads[i];
718 if (pad->type == GC_PSX || pad->type == GC_DDR)
719 gc_psx_report_one(pad, id[i], data[i]);
799 struct gc_pad *pad = &gc->pads[idx];
809 pad->dev = input_dev = input_allocate_device();
815 pad->type = pad_type;
817 snprintf(pad->phys, sizeof(pad->phys),
821 input_dev->phys = pad->phys;
907 err = input_register_device(pad->dev);
914 input_free_device(pad->dev);
915 pad->dev = NULL;