Lines Matching refs:pad
92 NULL, "SNES pad", "NES pad", "NES FourPort", "Multisystem joystick",
123 /* Reading the main axes of any N64 pad is known to fail if the corresponding bit */
161 * Each pad uses one bit per byte. So all pads connected to this port
171 * Request the pad to transmit data
180 * Wait for the pad response to be loaded into the 33-bit register
337 * Each pad uses one bit per byte. So all pads connected to
361 struct gc_pad *pad;
373 pad = &gc->pads[i];
374 dev = pad->dev;
377 switch (pad->type) {
474 struct gc_pad *pad;
481 pad = &gc->pads[i];
482 dev = pad->dev;
485 switch (pad->type) {
547 * the psx pad.
565 struct gc_pad *pad = &gc->pads[j];
567 if (pad->type == GC_PSX || pad->type == GC_DDR)
589 /* Select pad */
598 gc_psx_command(gc, 0x01, data2); /* Access pad */
602 /* Find the longest pad */
604 struct gc_pad *pad = &gc->pads[i];
606 if ((pad->type == GC_PSX || pad->type == GC_DDR) &&
629 static void gc_psx_report_one(struct gc_pad *pad, unsigned char psx_type,
632 struct input_dev *dev = pad->dev;
646 if (pad->type == GC_DDR) {
673 if (pad->type == GC_DDR) {
705 default: /* not a pad, ignore */
714 struct gc_pad *pad;
720 pad = &gc->pads[i];
721 if (pad->type == GC_PSX || pad->type == GC_DDR)
722 gc_psx_report_one(pad, id[i], data[i]);
802 struct gc_pad *pad = &gc->pads[idx];
812 pad->dev = input_dev = input_allocate_device();
818 pad->type = pad_type;
820 snprintf(pad->phys, sizeof(pad->phys),
824 input_dev->phys = pad->phys;
910 err = input_register_device(pad->dev);
917 input_free_device(pad->dev);
918 pad->dev = NULL;