/netbsd-src/sys/kern/ |
H A D | kern_todr.c | 387 if ((rv = todr_wenable(tch, 1)) != 0) { \ 395 if (todr_wenable(tch, 0) != 0) \ 401 todr_gettime(todr_chip_handle_t tch, struct timeval *tvp) in todr_gettime() argument 410 if (tch->todr_gettime) { in todr_gettime() 412 rv = tch->todr_gettime(tch, tvp); in todr_gettime() 422 } else if (tch->todr_gettime_ymdhms) { in todr_gettime() 425 rv = tch->todr_gettime_ymdhms(tch, &dt); in todr_gettime() 459 todr_settime(todr_chip_handle_t tch, struct timeval *tvp) in todr_settime() argument 463 if (tch->todr_settime) { in todr_settime() 467 rv = tch->todr_settime(tch, ©); in todr_settime() [all …]
|
/netbsd-src/external/bsd/flex/dist/src/ |
H A D | ecs.c | 201 void mkechar (int tch, int fwd[], int bck[]) in mkechar() argument 207 if (fwd[tch] != NIL) in mkechar() 208 bck[fwd[tch]] = bck[tch]; in mkechar() 210 if (bck[tch] != NIL) in mkechar() 211 fwd[bck[tch]] = fwd[tch]; in mkechar() 213 fwd[tch] = NIL; in mkechar() 214 bck[tch] = NIL; in mkechar()
|
H A D | dfa.c | 1007 int tch, i, j, k, ns, dupfwd[CSIZE + 1], lenccl, cclp, ich; in sympartition() local 1024 tch = transchar[ns]; in sympartition() 1026 if (tch != SYM_EPSILON) { in sympartition() 1027 if (tch < -lastccl || tch >= csize) { in sympartition() 1032 if (tch >= 0) { /* character transition */ in sympartition() 1033 int ec = ecgroup[tch]; in sympartition() 1040 tch = -tch; in sympartition() 1042 lenccl = ccllen[tch]; in sympartition() 1043 cclp = cclmap[tch]; in sympartition() 1047 if (cclng[tch]) { in sympartition()
|
/netbsd-src/sys/arch/next68k/next68k/ |
H A D | rtc.c | 77 static struct todr_chip_handle tch; in rtc_init() local 93 tch.todr_gettime = gettime_new; in rtc_init() 94 tch.todr_settime = settime_new; in rtc_init() 95 tch.todr_gettime_ymdhms = NULL; in rtc_init() 96 tch.todr_settime_ymdhms = NULL; in rtc_init() 98 tch.todr_gettime_ymdhms = gettime_old; in rtc_init() 99 tch.todr_settime_ymdhms = settime_old; in rtc_init() 100 tch.todr_gettime = NULL; in rtc_init() 101 tch.todr_settime = NULL; in rtc_init() 103 tch.todr_setwen = NULL; in rtc_init() [all …]
|
/netbsd-src/sys/arch/dreamcast/dev/g2/ |
H A D | g2rtc.c | 89 todr_chip_handle_t tch; in g2rtc_attach() local 100 tch = &sc->sc_tch; in g2rtc_attach() 101 tch->cookie = sc; in g2rtc_attach() 102 tch->todr_gettime = g2rtc_todr_gettime; in g2rtc_attach() 103 tch->todr_settime = g2rtc_todr_settime; in g2rtc_attach() 104 todr_attach(tch); in g2rtc_attach()
|
/netbsd-src/sys/arch/x86/isa/ |
H A D | rtc.c | 323 rtc_get_ymdhms(todr_chip_handle_t tch, struct clock_ymdhms *dt) in rtc_get_ymdhms() 346 rtc_set_ymdhms(todr_chip_handle_t tch, struct clock_ymdhms *dt) in rtc_set_ymdhms() 383 static struct todr_chip_handle tch; in rtc_register() 384 tch.todr_gettime_ymdhms = rtc_get_ymdhms; in rtc_register() 385 tch.todr_settime_ymdhms = rtc_set_ymdhms; in rtc_register() 386 tch.todr_setwen = NULL; in rtc_register() 388 todr_attach(&tch); in rtc_register() 322 rtc_get_ymdhms(todr_chip_handle_t tch,struct clock_ymdhms * dt) rtc_get_ymdhms() argument 345 rtc_set_ymdhms(todr_chip_handle_t tch,struct clock_ymdhms * dt) rtc_set_ymdhms() argument 382 static struct todr_chip_handle tch; rtc_register() local
|
/netbsd-src/sys/arch/luna68k/dev/ |
H A D | timekeeper.c | 119 mkclock_get(todr_chip_handle_t tch, struct clock_ymdhms *dt) in mkclock_get() argument 121 struct timekeeper_softc *sc = (void *)tch->cookie; in mkclock_get() 143 mkclock_set(todr_chip_handle_t tch, struct clock_ymdhms *dt) in mkclock_set() argument 145 struct timekeeper_softc *sc = (void *)tch->cookie; in mkclock_set() 192 dsclock_get(todr_chip_handle_t tch, struct clock_ymdhms *dt) in dsclock_get() argument 194 struct timekeeper_softc *sc = (void *)tch->cookie; in dsclock_get() 217 dsclock_set(todr_chip_handle_t tch, struct clock_ymdhms *dt) in dsclock_set() argument 219 struct timekeeper_softc *sc = (void *)tch->cookie; in dsclock_set()
|
/netbsd-src/sys/dev/ic/ |
H A D | pl031.c | 53 plrtc_gettime(todr_chip_handle_t tch, struct timeval *tv) in plrtc_gettime() argument 55 struct plrtc_softc * const sc = tch->cookie; in plrtc_gettime() 64 plrtc_settime(todr_chip_handle_t tch, struct timeval *tv) in plrtc_settime() argument 66 struct plrtc_softc * const sc = tch->cookie; in plrtc_settime()
|
/netbsd-src/external/bsd/pcc/dist/pcc/arch/nova/ |
H A D | local2.c | 158 int andval, tch = 0; 162 case CHAR: case UCHAR: tch = 'b'; break; 163 case SHORT: case USHORT: tch = 'w'; break; 164 case INT: case UNSIGNED: tch = 'l'; break; 169 printf(" mov%c ", tch); 177 printf(" and%c $%d,", tch, andval); 183 printf(" and%c $%d,", tch, andval); 189 printf(" sal%c $%d,", tch, shift); 195 printf(" or%c ", tch);
|
/netbsd-src/sys/dev/dec/ |
H A D | mcclock.c | 152 mcclock_get(todr_chip_handle_t tch, struct timeval *tvp) in mcclock_get() argument 154 struct mcclock_softc *sc = tch->cookie; in mcclock_get() 185 if (tvp->tv_sec > tch->base_time - 2 * SECS_PER_DAY) in mcclock_get() 198 mcclock_set(todr_chip_handle_t tch, struct timeval *tvp) in mcclock_set() argument 200 struct mcclock_softc *sc = tch->cookie; in mcclock_set()
|
/netbsd-src/sys/arch/arm/samsung/ |
H A D | exynos_rtc.c | 125 exynos_rtc_gettime(todr_chip_handle_t tch, struct timeval *tv) in exynos_rtc_gettime() argument 127 struct exynos_rtc_softc * const sc = tch->cookie; in exynos_rtc_gettime() 136 exynos_rtc_settime(todr_chip_handle_t tch, struct timeval *tv) in exynos_rtc_settime() argument 138 struct exynos_rtc_softc * const sc = tch->cookie; in exynos_rtc_settime()
|
/netbsd-src/sys/arch/arm/nvidia/ |
H A D | tegra_rtc.c | 117 tegra_rtc_gettime(todr_chip_handle_t tch, struct timeval *tv) in tegra_rtc_gettime() argument 119 struct tegra_rtc_softc * const sc = tch->cookie; in tegra_rtc_gettime() 128 tegra_rtc_settime(todr_chip_handle_t tch, struct timeval *tv) in tegra_rtc_settime() argument 130 struct tegra_rtc_softc * const sc = tch->cookie; in tegra_rtc_settime()
|
/netbsd-src/sys/dev/ofw/ |
H A D | ofrtc.c | 159 ofrtc_gettod(todr_chip_handle_t tch, struct clock_ymdhms *dt) in ofrtc_gettod() argument 161 struct ofrtc_softc *of = tch->cookie; in ofrtc_gettod() 188 ofrtc_settod(todr_chip_handle_t tch, struct clock_ymdhms *dt) in ofrtc_settod() argument 190 struct ofrtc_softc *of = tch->cookie; in ofrtc_settod()
|
/netbsd-src/sys/arch/mipsco/obio/ |
H A D | mkclock.c | 114 mkclock_read(todr_chip_handle_t tch, struct clock_ymdhms *dt) in mkclock_read() argument 116 struct mkclock_softc *sc = tch->cookie; in mkclock_read() 135 mkclock_write(todr_chip_handle_t tch, struct clock_ymdhms *dt) in mkclock_write() argument 137 struct mkclock_softc *sc = tch->cookie; in mkclock_write()
|
/netbsd-src/sys/arch/x68k/dev/ |
H A D | rtclock.c | 116 rtgettod(todr_chip_handle_t tch, struct clock_ymdhms *dt) in rtgettod() argument 118 struct rtc_softc *rtc = tch->cookie; in rtgettod() 139 rtsettod(todr_chip_handle_t tch, struct clock_ymdhms *dt) in rtsettod() argument 141 struct rtc_softc *rtc = tch->cookie; in rtsettod()
|
/netbsd-src/sys/arch/arm/imx/ |
H A D | imxsnvs.c | 151 imxsnvs_gettime(todr_chip_handle_t tch, struct timeval *tvp) in imxsnvs_gettime() argument 156 sc = tch->cookie; in imxsnvs_gettime() 173 imxsnvs_settime(todr_chip_handle_t tch, struct timeval *tvp) in imxsnvs_settime() argument 184 sc = tch->cookie; in imxsnvs_settime()
|
/netbsd-src/sys/arch/macppc/dev/ |
H A D | adb.c | 272 adb_todr_get(todr_chip_handle_t tch, struct timeval *tvp) in adb_todr_get() argument 284 adb_todr_set(todr_chip_handle_t tch, struct timeval *tvp) in adb_todr_set() argument 295 static struct todr_chip_handle tch = { in adb_todr_init() local 300 todr_attach(&tch); in adb_todr_init()
|
/netbsd-src/sys/dev/i2c/ |
H A D | ac100.c | 178 ac100_rtc_gettime(todr_chip_handle_t tch, struct clock_ymdhms *dt) in ac100_rtc_gettime() argument 180 struct ac100_softc *sc = tch->cookie; in ac100_rtc_gettime() 205 ac100_rtc_settime(todr_chip_handle_t tch, struct clock_ymdhms *dt) in ac100_rtc_settime() argument 207 struct ac100_softc *sc = tch->cookie; in ac100_rtc_settime()
|
H A D | twl4030.c | 170 twl_rtc_gettime(todr_chip_handle_t tch, struct clock_ymdhms *dt) in twl_rtc_gettime() argument 172 struct twl_softc *sc = tch->cookie; in twl_rtc_gettime() 198 twl_rtc_settime(todr_chip_handle_t tch, struct clock_ymdhms *dt) in twl_rtc_settime() argument 200 struct twl_softc *sc = tch->cookie; in twl_rtc_settime()
|
/netbsd-src/sys/arch/atari/dev/ |
H A D | clock.c | 173 struct todr_chip_handle *tch; in clockattach() local 176 tch = &sc->sc_handle; in clockattach() 177 tch->todr_gettime_ymdhms = atari_rtc_get; in clockattach() 178 tch->todr_settime_ymdhms = atari_rtc_set; in clockattach() 179 tch->todr_setwen = NULL; in clockattach() 181 todr_attach(tch); in clockattach()
|
/netbsd-src/sys/dev/fdt/ |
H A D | fdt_rtc.c | 40 fdtbus_todr_attach(device_t dev, int phandle, todr_chip_handle_t tch) in fdtbus_todr_attach() argument 55 todr_attach(tch); in fdtbus_todr_attach()
|
/netbsd-src/sys/arch/sun2/sun2/ |
H A D | tod.c | 212 todr_chip_handle_t tch; in tod_attach() local 225 if ((tch = mm58167_attach(sc)) == NULL) in tod_attach() 228 todr_attach(tch); in tod_attach()
|
/netbsd-src/sys/arch/evbppc/walnut/dev/ |
H A D | ds1743.c | 230 dsrtc_write(todr_chip_handle_t tch, struct clock_ymdhms *dt) in dsrtc_write() argument 232 struct dsrtc_softc *sc = tch->cookie; in dsrtc_write() 251 dsrtc_read(todr_chip_handle_t tch, struct clock_ymdhms *dt) in dsrtc_read() argument 253 struct dsrtc_softc *sc = tch->cookie; in dsrtc_read()
|
/netbsd-src/sys/arch/mips/alchemy/dev/ |
H A D | aurtc.c | 141 aurtc_gettime(todr_chip_handle_t tch, struct timeval *tv) in aurtc_gettime() argument 152 aurtc_settime(todr_chip_handle_t tch, struct timeval *tvp) in aurtc_settime() argument
|
/netbsd-src/sys/arch/hpcmips/vr/ |
H A D | rtc.c | 274 vrrtc_get(todr_chip_handle_t tch, struct timeval *tvp) in vrrtc_get() argument 276 struct vrrtc_softc *sc = (struct vrrtc_softc *)tch->cookie; in vrrtc_get() 305 vrrtc_set(todr_chip_handle_t tch, struct timeval *tvp) in vrrtc_set() argument 307 struct vrrtc_softc *sc = (struct vrrtc_softc *)tch->cookie; in vrrtc_set()
|