tc                133 arch/i386/isa/clock.c u_int i8254_get_timecount(struct timecounter *tc);
tc                134 arch/i386/isa/clock.c u_int i8254_simple_get_timecount(struct timecounter *tc);
tc                716 arch/i386/isa/clock.c i8254_simple_get_timecount(struct timecounter *tc)
tc                722 arch/i386/isa/clock.c i8254_get_timecount(struct timecounter *tc)
tc                130 arch/i386/pci/elan520.c 	struct timecounter *tc;
tc                230 arch/i386/pci/elan520.c 	tc = &sc->sc_tc;
tc                231 arch/i386/pci/elan520.c 	tc->tc_get_timecount = elansc_tc_read;
tc                232 arch/i386/pci/elan520.c 	tc->tc_poll_pps = NULL;
tc                233 arch/i386/pci/elan520.c 	tc->tc_counter_mask = ~0;
tc                234 arch/i386/pci/elan520.c 	tc->tc_frequency = (tmr & 1) ? (33000000 / 4) : (33333333 / 4);
tc                235 arch/i386/pci/elan520.c 	tc->tc_name = sc->sc_dev.dv_xname;
tc                236 arch/i386/pci/elan520.c 	tc->tc_quality = 1000;
tc                237 arch/i386/pci/elan520.c 	tc->tc_priv = sc;
tc                238 arch/i386/pci/elan520.c 	tc_init(tc);
tc                242 arch/i386/pci/elan520.c elansc_tc_read(struct timecounter *tc)
tc                244 arch/i386/pci/elan520.c 	struct elansc_softc *sc = tc->tc_priv;
tc                 62 arch/i386/pci/geodesc.c u_int   geodesc_get_timecount(struct timecounter *tc);
tc                156 arch/i386/pci/geodesc.c geodesc_get_timecount(struct timecounter *tc)
tc                158 arch/i386/pci/geodesc.c 	struct geodesc_softc *sc = tc->tc_priv;
tc                 54 arch/i386/pci/gscpm.c u_int	gscpm_get_timecount(struct timecounter *tc);
tc                136 arch/i386/pci/gscpm.c gscpm_get_timecount(struct timecounter *tc)
tc                138 arch/i386/pci/gscpm.c 	struct gscpm_softc *sc = tc->tc_priv;
tc                 61 arch/i386/pci/ichpcib.c u_int	ichpcib_get_timecount(struct timecounter *tc);
tc                289 arch/i386/pci/ichpcib.c ichpcib_get_timecount(struct timecounter *tc)
tc                291 arch/i386/pci/ichpcib.c 	struct ichpcib_softc *sc = tc->tc_priv;
tc                 94 arch/i386/stand/boot/crt0.c 	struct termios tc;
tc                 96 arch/i386/stand/boot/crt0.c 	if (uioctl(0, TIOCGETA, (char *)&tc) < 0) {
tc                101 arch/i386/stand/boot/crt0.c         tc.c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
tc                102 arch/i386/stand/boot/crt0.c         tc.c_oflag &= ~OPOST;
tc                103 arch/i386/stand/boot/crt0.c         tc.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
tc                104 arch/i386/stand/boot/crt0.c         tc.c_cflag &= ~(CSIZE|PARENB);
tc                105 arch/i386/stand/boot/crt0.c         tc.c_cflag |= CS8;
tc                107 arch/i386/stand/boot/crt0.c 	if (uioctl(0, TIOCSETA, (char *)&tc) < 0) {
tc                142 compat/common/tty_43.c 		struct tchars *tc = (struct tchars *)data;
tc                145 compat/common/tty_43.c 		tc->t_intrc = cc[VINTR];
tc                146 compat/common/tty_43.c 		tc->t_quitc = cc[VQUIT];
tc                147 compat/common/tty_43.c 		tc->t_startc = cc[VSTART];
tc                148 compat/common/tty_43.c 		tc->t_stopc = cc[VSTOP];
tc                149 compat/common/tty_43.c 		tc->t_eofc = cc[VEOF];
tc                150 compat/common/tty_43.c 		tc->t_brkc = cc[VEOL];
tc                154 compat/common/tty_43.c 		struct tchars *tc = (struct tchars *)data;
tc                157 compat/common/tty_43.c 		cc[VINTR] = tc->t_intrc;
tc                158 compat/common/tty_43.c 		cc[VQUIT] = tc->t_quitc;
tc                159 compat/common/tty_43.c 		cc[VSTART] = tc->t_startc;
tc                160 compat/common/tty_43.c 		cc[VSTOP] = tc->t_stopc;
tc                161 compat/common/tty_43.c 		cc[VEOF] = tc->t_eofc;
tc                162 compat/common/tty_43.c 		cc[VEOL] = tc->t_brkc;
tc                163 compat/common/tty_43.c 		if (tc->t_brkc == (char)-1)
tc                 36 dev/acpi/acpihpet.c u_int acpihpet_gettime(struct timecounter *tc);
tc                116 dev/acpi/acpihpet.c acpihpet_gettime(struct timecounter *tc)
tc                118 dev/acpi/acpihpet.c 	struct acpihpet_softc *sc = tc->tc_priv;
tc                 35 dev/acpi/acpitimer.c u_int acpi_get_timecount(struct timecounter *tc);
tc                110 dev/acpi/acpitimer.c acpi_get_timecount(struct timecounter *tc)
tc                112 dev/acpi/acpitimer.c 	struct acpitimer_softc *sc = tc->tc_priv;
tc                339 dev/ic/z8530reg.h #define	TCONST_TO_BPS(f, tc)	((f) / 2 / ((tc) + 2))
tc               2484 dev/isa/ess.c  	u_int tc;
tc               2488 dev/isa/ess.c  		tc = 128 - 397700L / rate;
tc               2490 dev/isa/ess.c  		tc = 256 - 795500L / rate;
tc               2492 dev/isa/ess.c  	return (tc);
tc                123 dev/isa/sbdsp.c #define SB_TC_TO_RATE(tc) (1000000 / (256 - (tc)))
tc                207 dev/isa/sbdsp.c 	    sc->sc_i.rate, sc->sc_i.tc,
tc                208 dev/isa/sbdsp.c 	    sc->sc_o.rate, sc->sc_o.tc);
tc                526 dev/isa/sbdsp.c 	u_int rate, tc, bmode;
tc                580 dev/isa/sbdsp.c 		tc = 1;
tc                646 dev/isa/sbdsp.c 			tc = SB_RATE_TO_TC(p->sample_rate * p->channels);
tc                647 dev/isa/sbdsp.c 			p->sample_rate = SB_TC_TO_RATE(tc) / p->channels;
tc                668 dev/isa/sbdsp.c 			tc = SB_RATE_TO_TC(p->sample_rate * p->channels);
tc                669 dev/isa/sbdsp.c 			p->sample_rate = SB_TC_TO_RATE(tc) / p->channels;
tc                675 dev/isa/sbdsp.c 			sc->sc_o.tc = tc;
tc                681 dev/isa/sbdsp.c 			sc->sc_i.tc = tc;
tc                691 dev/isa/sbdsp.c 			 p->encoding, tc, m->cmd, bmode, m->cmdchan, swcode, factor));
tc               1138 dev/isa/sbdsp.c sbdsp_set_timeconst(sc, tc)
tc               1140 dev/isa/sbdsp.c 	int tc;
tc               1142 dev/isa/sbdsp.c 	DPRINTF(("sbdsp_set_timeconst: sc=%p tc=%d\n", sc, tc));
tc               1145 dev/isa/sbdsp.c 	    sbdsp_wdsp(sc, tc) < 0)
tc               1232 dev/isa/sbdsp.c 		if (sbdsp_set_timeconst(sc, sc->sc_i.tc)) {
tc               1367 dev/isa/sbdsp.c 		if (sbdsp_set_timeconst(sc, sc->sc_o.tc)) {
tc                133 dev/isa/sbdspvar.h 		u_char	tc;		/* Time constant */
tc                 85 dev/pci/amdpm.c u_int amdpm_get_timecount(struct timecounter *tc);
tc                338 dev/pci/amdpm.c amdpm_get_timecount(struct timecounter *tc)
tc                340 dev/pci/amdpm.c 	struct amdpm_softc *sc = tc->tc_priv;
tc                903 dev/pci/isp_pci.c 		u_int16_t tc;
tc                908 dev/pci/isp_pci.c 		tc = oc & ~BIU_PCI1080_CONF1_DMA;
tc                910 dev/pci/isp_pci.c 			tc |= BIU_PCI1080_CONF1_SXP1;
tc                912 dev/pci/isp_pci.c 			tc |= BIU_PCI1080_CONF1_SXP0;
tc                913 dev/pci/isp_pci.c 		BXW2(pcs, IspVirt2Off(isp, BIU_CONF1), tc);
tc                934 dev/pci/isp_pci.c 		u_int16_t tc;
tc                939 dev/pci/isp_pci.c 		tc = oc & ~BIU_PCI1080_CONF1_DMA;
tc                941 dev/pci/isp_pci.c 			tc |= BIU_PCI1080_CONF1_SXP1;
tc                943 dev/pci/isp_pci.c 			tc |= BIU_PCI1080_CONF1_SXP0;
tc                944 dev/pci/isp_pci.c 		BXW2(pcs, IspVirt2Off(isp, BIU_CONF1), tc);
tc                 86 dev/pci/viaenv.c u_int viaenv_get_timecount(struct timecounter *tc);
tc                368 dev/pci/viaenv.c viaenv_get_timecount(struct timecounter *tc)
tc                370 dev/pci/viaenv.c 	struct viaenv_softc *sc = tc->tc_priv;
tc                 43 kern/kern_tc.c dummy_get_timecount(struct timecounter *tc)
tc                110 kern/kern_tc.c 	struct timecounter *tc;
tc                112 kern/kern_tc.c 	tc = th->th_counter;
tc                113 kern/kern_tc.c 	return ((tc->tc_get_timecount(tc) - th->th_offset_count) &
tc                114 kern/kern_tc.c 	    tc->tc_counter_mask);
tc                237 kern/kern_tc.c tc_init(struct timecounter *tc)
tc                241 kern/kern_tc.c 	u = tc->tc_frequency / tc->tc_counter_mask;
tc                245 kern/kern_tc.c 	if (tc->tc_quality >= 0) {
tc                247 kern/kern_tc.c 			tc->tc_quality = -2000;
tc                249 kern/kern_tc.c 			    tc->tc_name, (unsigned long)tc->tc_frequency);
tc                254 kern/kern_tc.c 	tc->tc_next = timecounters;
tc                255 kern/kern_tc.c 	timecounters = tc;
tc                261 kern/kern_tc.c 	if (tc->tc_quality < 0)
tc                263 kern/kern_tc.c 	if (tc->tc_quality < timecounter->tc_quality)
tc                265 kern/kern_tc.c 	if (tc->tc_quality == timecounter->tc_quality &&
tc                266 kern/kern_tc.c 	    tc->tc_frequency < timecounter->tc_frequency)
tc                268 kern/kern_tc.c 	(void)tc->tc_get_timecount(tc);
tc                269 kern/kern_tc.c 	(void)tc->tc_get_timecount(tc);
tc                270 kern/kern_tc.c 	timecounter = tc;
tc                439 kern/kern_tc.c 	struct timecounter *newtc, *tc;
tc                442 kern/kern_tc.c 	tc = timecounter;
tc                443 kern/kern_tc.c 	strlcpy(newname, tc->tc_name, sizeof(newname));
tc                446 kern/kern_tc.c 	if (error != 0 || strcmp(newname, tc->tc_name) == 0)
tc                467 kern/kern_tc.c 	struct timecounter *tc;
tc                473 kern/kern_tc.c 	for (tc = timecounters; tc != NULL; tc = tc->tc_next)
tc                477 kern/kern_tc.c 	for (tc = timecounters; tc != NULL; tc = tc->tc_next) {
tc                479 kern/kern_tc.c 		    spc, tc->tc_name, tc->tc_quality);
tc                287 lib/libsa/tftp.c 	static int tc = 0;
tc                309 lib/libsa/tftp.c 			if ((tc++ % 16) == 0)
tc                545 netinet/ip_ah.c 	struct tdb_crypto *tc;
tc                676 netinet/ip_ah.c 		MALLOC(tc, struct tdb_crypto *,
tc                680 netinet/ip_ah.c 		MALLOC(tc, struct tdb_crypto *, sizeof(struct tdb_crypto),
tc                682 netinet/ip_ah.c 	if (tc == NULL) {
tc                690 netinet/ip_ah.c 	bzero(tc, sizeof(struct tdb_crypto));
tc                699 netinet/ip_ah.c 		    (caddr_t) (tc + 1));
tc                708 netinet/ip_ah.c 			FREE(tc, M_XDATA);
tc                720 netinet/ip_ah.c 	crp->crp_opaque = (caddr_t) tc;
tc                723 netinet/ip_ah.c 	tc->tc_skip = skip;
tc                724 netinet/ip_ah.c 	tc->tc_protoff = protoff;
tc                725 netinet/ip_ah.c 	tc->tc_spi = tdb->tdb_spi;
tc                726 netinet/ip_ah.c 	tc->tc_proto = tdb->tdb_sproto;
tc                727 netinet/ip_ah.c 	tc->tc_ptr = (caddr_t) mtag; /* Save the mtag we've identified. */
tc                728 netinet/ip_ah.c 	bcopy(&tdb->tdb_dst, &tc->tc_dst, sizeof(union sockaddr_union));
tc                747 netinet/ip_ah.c 	struct tdb_crypto *tc;
tc                758 netinet/ip_ah.c 	tc = (struct tdb_crypto *) crp->crp_opaque;
tc                759 netinet/ip_ah.c 	skip = tc->tc_skip;
tc                760 netinet/ip_ah.c 	protoff = tc->tc_protoff;
tc                761 netinet/ip_ah.c 	mtag = (struct m_tag *) tc->tc_ptr;
tc                766 netinet/ip_ah.c 		FREE(tc, M_XDATA);
tc                776 netinet/ip_ah.c 	tdb = gettdb(tc->tc_spi, &tc->tc_dst, tc->tc_proto);
tc                778 netinet/ip_ah.c 		FREE(tc, M_XDATA);
tc                796 netinet/ip_ah.c 		FREE(tc, M_XDATA);
tc                819 netinet/ip_ah.c 		ptr = (caddr_t) (tc + 1);
tc                823 netinet/ip_ah.c 			FREE(tc, M_XDATA);
tc                845 netinet/ip_ah.c 	FREE(tc, M_XDATA);
tc                987 netinet/ip_ah.c 	struct tdb_crypto *tc;
tc               1178 netinet/ip_ah.c 		MALLOC(tc, struct tdb_crypto *,
tc               1181 netinet/ip_ah.c 		MALLOC(tc, struct tdb_crypto *,
tc               1183 netinet/ip_ah.c 	if (tc == NULL) {
tc               1191 netinet/ip_ah.c 	bzero(tc, sizeof(struct tdb_crypto));
tc               1195 netinet/ip_ah.c 		m_copydata(m, 0, skip, (caddr_t) (tc + 1));
tc               1205 netinet/ip_ah.c 			bcopy(((caddr_t)(tc + 1)) +
tc               1216 netinet/ip_ah.c 			bcopy(((caddr_t)(tc + 1)) +
tc               1227 netinet/ip_ah.c 		((u_int8_t *) (tc + 1))[protoff] = IPPROTO_AH;
tc               1237 netinet/ip_ah.c 			FREE(tc, M_XDATA);
tc               1253 netinet/ip_ah.c 	crp->crp_opaque = (caddr_t) tc;
tc               1256 netinet/ip_ah.c 	tc->tc_skip = skip;
tc               1257 netinet/ip_ah.c 	tc->tc_protoff = protoff;
tc               1258 netinet/ip_ah.c 	tc->tc_spi = tdb->tdb_spi;
tc               1259 netinet/ip_ah.c 	tc->tc_proto = tdb->tdb_sproto;
tc               1260 netinet/ip_ah.c 	bcopy(&tdb->tdb_dst, &tc->tc_dst, sizeof(union sockaddr_union));
tc               1275 netinet/ip_ah.c 	struct tdb_crypto *tc;
tc               1283 netinet/ip_ah.c 	tc = (struct tdb_crypto *) crp->crp_opaque;
tc               1284 netinet/ip_ah.c 	skip = tc->tc_skip;
tc               1285 netinet/ip_ah.c 	protoff = tc->tc_protoff;
tc               1286 netinet/ip_ah.c 	ptr = (caddr_t) (tc + 1);
tc               1291 netinet/ip_ah.c 		FREE(tc, M_XDATA);
tc               1301 netinet/ip_ah.c 	tdb = gettdb(tc->tc_spi, &tc->tc_dst, tc->tc_proto);
tc               1303 netinet/ip_ah.c 		FREE(tc, M_XDATA);
tc               1319 netinet/ip_ah.c 		FREE(tc, M_XDATA);
tc               1333 netinet/ip_ah.c 	FREE(tc, M_XDATA);
tc                293 netinet/ip_esp.c 	struct tdb_crypto *tc;
tc                411 netinet/ip_esp.c 		MALLOC(tc, struct tdb_crypto *, sizeof(struct tdb_crypto),
tc                414 netinet/ip_esp.c 		MALLOC(tc, struct tdb_crypto *,
tc                416 netinet/ip_esp.c 	if (tc == NULL)	{
tc                424 netinet/ip_esp.c 	bzero(tc, sizeof(struct tdb_crypto));
tc                425 netinet/ip_esp.c 	tc->tc_ptr = (caddr_t) mtag;
tc                442 netinet/ip_esp.c 			m_copydata(m, m->m_pkthdr.len - alen, alen, (caddr_t) (tc + 1));
tc                452 netinet/ip_esp.c 	crp->crp_opaque = (caddr_t) tc;
tc                455 netinet/ip_esp.c 	tc->tc_skip = skip;
tc                456 netinet/ip_esp.c 	tc->tc_protoff = protoff;
tc                457 netinet/ip_esp.c 	tc->tc_spi = tdb->tdb_spi;
tc                458 netinet/ip_esp.c 	tc->tc_proto = tdb->tdb_sproto;
tc                459 netinet/ip_esp.c 	bcopy(&tdb->tdb_dst, &tc->tc_dst, sizeof(union sockaddr_union));
tc                500 netinet/ip_esp.c 	struct tdb_crypto *tc;
tc                509 netinet/ip_esp.c 	tc = (struct tdb_crypto *) crp->crp_opaque;
tc                510 netinet/ip_esp.c 	skip = tc->tc_skip;
tc                511 netinet/ip_esp.c 	protoff = tc->tc_protoff;
tc                512 netinet/ip_esp.c 	mtag = (struct m_tag *) tc->tc_ptr;
tc                517 netinet/ip_esp.c 		FREE(tc, M_XDATA);
tc                526 netinet/ip_esp.c 	tdb = gettdb(tc->tc_spi, &tc->tc_dst, tc->tc_proto);
tc                528 netinet/ip_esp.c 		FREE(tc, M_XDATA);
tc                546 netinet/ip_esp.c 		FREE(tc, M_XDATA);
tc                564 netinet/ip_esp.c 			ptr = (caddr_t) (tc + 1);
tc                568 netinet/ip_esp.c 				FREE(tc, M_XDATA);
tc                579 netinet/ip_esp.c 	FREE(tc, M_XDATA);
tc                734 netinet/ip_esp.c 	struct tdb_crypto *tc;
tc                964 netinet/ip_esp.c 	MALLOC(tc, struct tdb_crypto *, sizeof(struct tdb_crypto),
tc                966 netinet/ip_esp.c 	if (tc == NULL) {
tc                974 netinet/ip_esp.c 	bzero(tc, sizeof(struct tdb_crypto));
tc                975 netinet/ip_esp.c 	tc->tc_spi = tdb->tdb_spi;
tc                976 netinet/ip_esp.c 	tc->tc_proto = tdb->tdb_sproto;
tc                977 netinet/ip_esp.c 	bcopy(&tdb->tdb_dst, &tc->tc_dst, sizeof(union sockaddr_union));
tc                984 netinet/ip_esp.c 	crp->crp_opaque = (caddr_t) tc;
tc               1012 netinet/ip_esp.c 	struct tdb_crypto *tc;
tc               1017 netinet/ip_esp.c 	tc = (struct tdb_crypto *) crp->crp_opaque;
tc               1022 netinet/ip_esp.c 		FREE(tc, M_XDATA);
tc               1033 netinet/ip_esp.c 	tdb = gettdb(tc->tc_spi, &tc->tc_dst, tc->tc_proto);
tc               1035 netinet/ip_esp.c 		FREE(tc, M_XDATA);
tc               1051 netinet/ip_esp.c 		FREE(tc, M_XDATA);
tc               1058 netinet/ip_esp.c 	FREE(tc, M_XDATA);
tc                149 netinet/ip_ipcomp.c 	struct tdb_crypto *tc;
tc                166 netinet/ip_ipcomp.c 	MALLOC(tc, struct tdb_crypto *, sizeof(struct tdb_crypto),
tc                168 netinet/ip_ipcomp.c 	if (tc == NULL) {
tc                175 netinet/ip_ipcomp.c 	bzero(tc, sizeof(struct tdb_crypto));
tc                182 netinet/ip_ipcomp.c 	tc->tc_ptr = 0;
tc                193 netinet/ip_ipcomp.c 	crp->crp_opaque = (caddr_t) tc;
tc                196 netinet/ip_ipcomp.c 	tc->tc_skip = skip;
tc                197 netinet/ip_ipcomp.c 	tc->tc_protoff = protoff;
tc                198 netinet/ip_ipcomp.c 	tc->tc_spi = tdb->tdb_spi;
tc                199 netinet/ip_ipcomp.c 	tc->tc_proto = IPPROTO_IPCOMP;
tc                200 netinet/ip_ipcomp.c 	bcopy(&tdb->tdb_dst, &tc->tc_dst, sizeof(union sockaddr_union));
tc                217 netinet/ip_ipcomp.c 	struct tdb_crypto *tc;
tc                226 netinet/ip_ipcomp.c 	tc = (struct tdb_crypto *) crp->crp_opaque;
tc                227 netinet/ip_ipcomp.c 	skip = tc->tc_skip;
tc                228 netinet/ip_ipcomp.c 	protoff = tc->tc_protoff;
tc                233 netinet/ip_ipcomp.c 		FREE(tc, M_XDATA);
tc                242 netinet/ip_ipcomp.c 	tdb = gettdb(tc->tc_spi, &tc->tc_dst, tc->tc_proto);
tc                244 netinet/ip_ipcomp.c 		FREE(tc, M_XDATA);
tc                259 netinet/ip_ipcomp.c 		FREE(tc, M_XDATA);
tc                281 netinet/ip_ipcomp.c 		FREE(tc, M_XDATA);
tc                288 netinet/ip_ipcomp.c 	FREE(tc, M_XDATA);
tc                388 netinet/ip_ipcomp.c 	struct tdb_crypto *tc;
tc                518 netinet/ip_ipcomp.c 	MALLOC(tc, struct tdb_crypto *, sizeof(struct tdb_crypto),
tc                520 netinet/ip_ipcomp.c 	if (tc == NULL) {
tc                527 netinet/ip_ipcomp.c 	bzero(tc, sizeof(struct tdb_crypto));
tc                529 netinet/ip_ipcomp.c 	tc->tc_spi = tdb->tdb_spi;
tc                530 netinet/ip_ipcomp.c 	tc->tc_proto = tdb->tdb_sproto;
tc                531 netinet/ip_ipcomp.c 	tc->tc_skip = skip;
tc                532 netinet/ip_ipcomp.c 	bcopy(&tdb->tdb_dst, &tc->tc_dst, sizeof(union sockaddr_union));
tc                539 netinet/ip_ipcomp.c 	crp->crp_opaque = (caddr_t) tc;
tc                553 netinet/ip_ipcomp.c 	struct tdb_crypto *tc;
tc                566 netinet/ip_ipcomp.c 	tc = (struct tdb_crypto *) crp->crp_opaque;
tc                567 netinet/ip_ipcomp.c 	skip = tc->tc_skip;
tc                573 netinet/ip_ipcomp.c 		FREE(tc, M_XDATA);
tc                583 netinet/ip_ipcomp.c 	tdb = gettdb(tc->tc_spi, &tc->tc_dst, tc->tc_proto);
tc                585 netinet/ip_ipcomp.c 		FREE(tc, M_XDATA);
tc                601 netinet/ip_ipcomp.c 		FREE(tc, M_XDATA);
tc                608 netinet/ip_ipcomp.c 	FREE(tc, M_XDATA);
tc                 72 sys/timetc.h   void	tc_init(struct timecounter *tc);