Lines Matching refs:io
696 static int tcic_set_io_map(struct pcmcia_socket *sock, struct pccard_io_map *io) in tcic_set_io_map() argument
703 "%#llx-%#llx)\n", psock, io->map, io->flags, io->speed, in tcic_set_io_map()
704 (unsigned long long)io->start, (unsigned long long)io->stop); in tcic_set_io_map()
705 if ((io->map > 1) || (io->start > 0xffff) || (io->stop > 0xffff) || in tcic_set_io_map()
706 (io->stop < io->start)) return -EINVAL; in tcic_set_io_map()
708 addr = TCIC_IWIN(psock, io->map); in tcic_set_io_map()
710 base = io->start; len = io->stop - io->start; in tcic_set_io_map()
719 ioctl |= (io->flags & MAP_ACTIVE) ? TCIC_ICTL_ENA : 0; in tcic_set_io_map()
720 ioctl |= to_cycles(io->speed) & TCIC_ICTL_WSCNT_MASK; in tcic_set_io_map()
721 if (!(io->flags & MAP_AUTOSZ)) { in tcic_set_io_map()
723 ioctl |= (io->flags & MAP_16BIT) ? TCIC_ICTL_BW_16 : TCIC_ICTL_BW_8; in tcic_set_io_map()
782 pccard_io_map io = { 0, 0, 0, 0, 1 }; in tcic_init() local
786 io.map = i; in tcic_init()
787 tcic_set_io_map(s, &io); in tcic_init()