• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/arch/cris/arch-v10/kernel/

Lines Matching refs:ioif

58 	enum cris_io_interface   ioif;
123 .ioif = if_eth,
139 .ioif = if_serial_0,
156 .ioif = if_serial_1,
172 .ioif = if_serial_2,
188 .ioif = if_serial_3,
204 .ioif = if_sync_serial_1,
220 .ioif = if_sync_serial_3,
236 .ioif = if_shared_ram,
252 .ioif = if_shared_ram_w,
268 .ioif = if_par_0,
284 .ioif = if_par_1,
300 .ioif = if_par_w,
316 .ioif = if_scsi8_0,
332 .ioif = if_scsi8_1,
348 .ioif = if_scsi_w,
364 .ioif = if_ata,
380 .ioif = if_csp,
396 .ioif = if_i2c,
412 .ioif = if_usb_1,
428 .ioif = if_usb_2,
445 .ioif = if_gpio_grp_a,
461 .ioif = if_gpio_grp_b,
477 .ioif = if_gpio_grp_c,
493 .ioif = if_gpio_grp_d,
509 .ioif = if_gpio_grp_e,
525 .ioif = if_gpio_grp_f,
592 int cris_request_io_interface(enum cris_io_interface ioif, const char *device_id)
605 DBG(printk("cris_request_io_interface(%d, \"%s\")\n", ioif, device_id));
607 if ((ioif >= if_max_interfaces) || (ioif < 0)) {
610 ioif,
617 if (interfaces[ioif].used) {
620 interfaces[ioif].name,
622 interfaces[ioif].owner);
629 group_set = interfaces[ioif].groups;
635 if_group_use = interfaces[ioif].group_a;
638 if_group_use = interfaces[ioif].group_b;
641 if_group_use = interfaces[ioif].group_c;
644 if_group_use = interfaces[ioif].group_d;
647 if_group_use = interfaces[ioif].group_e;
650 if_group_use = interfaces[ioif].group_f;
659 grp->name, interfaces[ioif].name);
668 if (((interfaces[ioif].gpio_g_in & gpio_in_pins) !=
669 interfaces[ioif].gpio_g_in) ||
670 ((interfaces[ioif].gpio_g_out & gpio_out_pins) !=
671 interfaces[ioif].gpio_g_out) ||
672 ((interfaces[ioif].gpio_b & gpio_pb_pins) !=
673 interfaces[ioif].gpio_b)) {
675 "required pins for interface %u\n", ioif);
685 switch (ioif)
772 ioif, device_id);
778 group_set = interfaces[ioif].groups;
784 if_group_use = interfaces[ioif].group_a;
787 if_group_use = interfaces[ioif].group_b;
790 if_group_use = interfaces[ioif].group_c;
793 if_group_use = interfaces[ioif].group_d;
796 if_group_use = interfaces[ioif].group_e;
799 if_group_use = interfaces[ioif].group_f;
809 interfaces[ioif].used = 1;
810 interfaces[ioif].owner = (char*)device_id;
830 interfaces[ioif].gpio_g_in,
831 interfaces[ioif].gpio_g_out,
832 interfaces[ioif].gpio_b));
834 gpio_in_pins &= ~interfaces[ioif].gpio_g_in;
835 gpio_out_pins &= ~interfaces[ioif].gpio_g_out;
836 gpio_pb_pins &= ~interfaces[ioif].gpio_b;
850 void cris_free_io_interface(enum cris_io_interface ioif)
858 if ((ioif >= if_max_interfaces) || (ioif < 0)) {
860 ioif);
864 if (!interfaces[ioif].used) {
866 ioif);
870 group_set = interfaces[ioif].groups;
876 if_group_use = interfaces[ioif].group_a;
879 if_group_use = interfaces[ioif].group_b;
882 if_group_use = interfaces[ioif].group_c;
885 if_group_use = interfaces[ioif].group_d;
888 if_group_use = interfaces[ioif].group_e;
891 if_group_use = interfaces[ioif].group_f;
903 interfaces[ioif].used = 0;
904 interfaces[ioif].owner = NULL;
909 interfaces[ioif].gpio_g_in,
910 interfaces[ioif].gpio_g_out,
911 interfaces[ioif].gpio_b));
913 gpio_in_pins |= interfaces[ioif].gpio_g_in;
914 gpio_out_pins |= interfaces[ioif].gpio_g_out;
915 gpio_pb_pins |= interfaces[ioif].gpio_b;
938 int cris_io_interface_allocate_pins(const enum cris_io_interface ioif,
952 ioif, port, start_bit, stop_bit));
1002 owners[i] = ioif;
1012 int cris_io_interface_free_pins(const enum cris_io_interface ioif,
1068 if (owners[i] != ioif) {