Lines Matching refs:io
1032 static int i365_set_io_map(u_short sock, struct pccard_io_map *io) in i365_set_io_map() argument
1037 "%#llx-%#llx)\n", sock, io->map, io->flags, io->speed, in i365_set_io_map()
1038 (unsigned long long)io->start, (unsigned long long)io->stop); in i365_set_io_map()
1039 map = io->map; in i365_set_io_map()
1040 if ((map > 1) || (io->start > 0xffff) || (io->stop > 0xffff) || in i365_set_io_map()
1041 (io->stop < io->start)) return -EINVAL; in i365_set_io_map()
1045 i365_set_pair(sock, I365_IO(map)+I365_W_START, io->start); in i365_set_io_map()
1046 i365_set_pair(sock, I365_IO(map)+I365_W_STOP, io->stop); in i365_set_io_map()
1048 if (io->speed) ioctl |= I365_IOCTL_WAIT(map); in i365_set_io_map()
1049 if (io->flags & MAP_0WS) ioctl |= I365_IOCTL_0WS(map); in i365_set_io_map()
1050 if (io->flags & MAP_16BIT) ioctl |= I365_IOCTL_16BIT(map); in i365_set_io_map()
1051 if (io->flags & MAP_AUTOSZ) ioctl |= I365_IOCTL_IOCS16(map); in i365_set_io_map()
1054 if (io->flags & MAP_ACTIVE) in i365_set_io_map()
1186 static int pcic_set_io_map(struct pcmcia_socket *s, struct pccard_io_map *io) in pcic_set_io_map() argument
1192 LOCKED(i365_set_io_map(sock, io)); in pcic_set_io_map()
1208 pccard_io_map io = { 0, 0, 0, 0, 1 }; in pcic_init() local
1212 io.map = i; in pcic_init()
1213 pcic_set_io_map(s, &io); in pcic_init()