Lines Matching refs:ioctl
331 u_short scf1, ioctl, base, num; in is_active() local
344 ioctl = tcic_getw(TCIC_DATA); in is_active()
346 if (ioctl & TCIC_ICTL_TINY) in is_active()
354 (scf1 & TCIC_SCF1_IOSTS) && (ioctl & TCIC_ICTL_ENA) && in is_active()
803 u_short base, ioctl; in tcic_get_io_map() local
812 ioctl = tcic_getw(TCIC_DATA); in tcic_get_io_map()
814 if (ioctl & TCIC_ICTL_TINY) in tcic_get_io_map()
820 io->speed = to_ns(ioctl & TCIC_ICTL_WSCNT_MASK); in tcic_get_io_map()
821 io->flags = (ioctl & TCIC_ICTL_ENA) ? MAP_ACTIVE : 0; in tcic_get_io_map()
822 switch (ioctl & TCIC_ICTL_BW_MASK) { in tcic_get_io_map()
842 u_short base, len, ioctl; in tcic_set_io_map() local
859 ioctl = (psock << TCIC_ICTL_SS_SHFT); in tcic_set_io_map()
860 ioctl |= (len == 0) ? TCIC_ICTL_TINY : 0; in tcic_set_io_map()
861 ioctl |= (io->flags & MAP_ACTIVE) ? TCIC_ICTL_ENA : 0; in tcic_set_io_map()
862 ioctl |= to_cycles(io->speed) & TCIC_ICTL_WSCNT_MASK; in tcic_set_io_map()
864 ioctl |= TCIC_ICTL_QUIET; in tcic_set_io_map()
865 ioctl |= (io->flags & MAP_16BIT) ? TCIC_ICTL_BW_16 : TCIC_ICTL_BW_8; in tcic_set_io_map()
868 tcic_setw(TCIC_DATA, ioctl); in tcic_set_io_map()