Searched defs:clk (Results 1 - 22 of 22) sorted by relevance

/illumos-gate/usr/src/lib/libfakekernel/common/
H A Dclock.c60 clock2ts(clock_t clk, timespec_t *ts) argument
62 ts->tv_sec = clk / hz;
63 ts->tv_nsec = (clk % hz) * (NANOSEC / hz);
/illumos-gate/usr/src/uts/i86pc/io/
H A Dhrtimers.c70 int clk; member in struct:hrtcntla
100 if (uap->clk != CLK_STD) {
/illumos-gate/usr/src/lib/libuuid/common/
H A Duuid.c618 uint8_t clk; local
622 clk = uuid.clock_seq_hi_and_reserved;
625 if ((uu == NULL) || ((tmp & 0x01) != 0x01) || ((clk & 0x80) != 0x80)) {
/illumos-gate/usr/src/lib/libprtdiag/inc/
H A Dreset_info.h100 clock_reset_state clk; /* one clock board */ member in struct:reset_info
/illumos-gate/usr/src/uts/common/io/ipw/
H A Dipw2100_hw.c438 clock_t clk; local
484 clk = drv_usectohz(5000000); /* 5 second */
489 if (cv_reltimedwait(&sc->sc_fw_cond, &sc->sc_ilock, clk,
H A Dipw2100.c1012 clock_t clk; local
1076 clk = drv_usectohz(1000000); /* 1 second */
1083 clk, TR_CLOCK_TICK) < 0)
/illumos-gate/usr/src/uts/common/io/iwi/
H A Dipw2200_hw.c377 clock_t clk = drv_usectohz(5000000); /* 5 second */ local
501 if (cv_reltimedwait(&sc->sc_fw_cond, &sc->sc_ilock, clk,
H A Dipw2200.c974 clock_t clk; local
1019 clk = drv_usectohz(5000000);
1024 clk, TR_CLOCK_TICK) < 0)
/illumos-gate/usr/src/lib/libcpc/i386/
H A Devent_pentium.c558 int usr[2], sys[2], clk[2], pc[2]; member in struct:xcesr
573 xcesr->clk[0] = (cesr >> CPC_P5_CESR_CLK0) & 1u;
574 xcesr->clk[1] = (cesr >> CPC_P5_CESR_CLK1) & 1u;
581 xcesr->clk[0] = 0;
583 xcesr->clk[1] = 0;
651 xcesr.clk[0], xcesr.clk[1], 0, tokens[D_noedge]);
821 if (xcesr.clk[i] == 1)
840 if (xcesr.clk[i] == 1) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dmain.c66 struct timeval clk; variable in typeref:struct:timeval
139 if (gettimeofday(&clk, 0) == -1) {
142 prev_clk = clk;
143 epoch = clk;
344 srandom((int)(clk.tv_sec ^ clk.tv_usec ^ getpid()));
425 prev_clk = clk;
426 if (gettimeofday(&clk, 0) == -1) {
430 if (prev_clk.tv_sec == clk.tv_sec &&
431 prev_clk.tv_usec == clk
[all...]
/illumos-gate/usr/src/uts/common/os/
H A Ddevcache.c1039 clock_t clk; local
1054 clk = cv_reltimedwait(&nvpflush_cv, &nvpflush_lock,
1057 if ((clk == -1 && do_nvpflush == 0 &&
/illumos-gate/usr/src/uts/common/io/sdcard/adapters/sdhost/
H A Dsdhost.c549 uint32_t clk; local
577 clk = ss->ss_baseclk;
579 while (clk > hz) {
582 clk >>= 1; /* divide clock by two */
609 ss->ss_cardclk = clk;
1028 uint32_t clk; local
1155 clk = ((capab & CAPAB_TIMEOUT_FREQ_MASK) >> CAPAB_TIMEOUT_FREQ_SHIFT);
1156 if ((ss->ss_baseclk == 0) || (clk == 0)) {
1163 ss->ss_tmusecs = (1 << 13) / clk;
1164 clk *
[all...]
/illumos-gate/usr/src/uts/common/io/wpi/
H A Dwpi.c2536 clock_t clk; local
2644 clk = ddi_get_lbolt();
2645 if (clk > sc->sc_clk + drv_usectohz(500000)) {
2741 clock_t clk; local
2743 clk = ddi_get_lbolt() + drv_usectohz(2000000);
2745 if (cv_timedwait(&sc->sc_cmd_cv, &sc->sc_glock, clk)
3249 clock_t clk; local
3341 clk = ddi_get_lbolt() + drv_usectohz(2000000);
3343 if (cv_timedwait(&sc->sc_fw_cv, &sc->sc_glock, clk) < 0)
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/desktop/common/
H A Dpicldiag.c467 picldiag_get_clock_from_parent(picl_nodehdl_t nodeh, uint32_t *clk) argument
477 err = picldiag_get_clock_freq(parenth, clk);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/lw8/common/
H A Dlw8.c461 picldiag_get_clock_from_parent(picl_nodehdl_t nodeh, uint32_t *clk) argument
471 err = picldiag_get_clock_freq(parenth, clk);
/illumos-gate/usr/src/lib/libprtdiag_psr/sparc/schumacher/common/
H A Dschumacher.c428 picldiag_get_clock_from_parent(picl_nodehdl_t nodeh, uint32_t *clk) argument
438 err = picldiag_get_clock_freq(parenth, clk);
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_mac.c3735 uint16_t clk; local
3749 MRVL_88X2011_GEN_CTL, &clk);
3750 clk |= MRVL_88X2011_ENA_XFPREFCLK;
3752 MRVL_88X2011_GEN_CTL, clk);
/illumos-gate/usr/src/uts/common/io/iwh/
H A Diwh.c2151 clock_t clk; local
2166 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2172 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) < 0) {
2196 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2202 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) < 0) {
2222 clock_t clk; local
2237 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2243 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) < 0) {
2267 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2273 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) <
3787 clock_t clk; local
3963 clock_t clk; local
4795 clock_t clk; local
[all...]
/illumos-gate/usr/src/uts/common/io/iwp/
H A Diwp.c2058 clock_t clk; local
2073 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2077 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) < 0) {
2101 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2107 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) < 0) {
2127 clock_t clk; local
2142 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2146 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) < 0) {
2170 clk = ddi_get_lbolt() + drv_usectohz(1000000);
2176 if (cv_timedwait(&sc->sc_put_seg_cv, &sc->sc_glock, clk) <
3614 clock_t clk; local
3782 clock_t clk; local
4531 clock_t clk; local
[all...]
/illumos-gate/usr/src/uts/common/io/iwk/
H A Diwk2.c3303 clock_t clk; local
3406 clk = ddi_get_lbolt();
3407 if (clk > sc->sc_clk + drv_usectohz(500000)) {
3454 clock_t clk; local
3489 clk = ddi_get_lbolt() + drv_usectohz(2000000);
3491 if (cv_timedwait(&sc->sc_cmd_cv, &sc->sc_glock, clk) <
4161 clock_t clk; local
4253 clk = ddi_get_lbolt() + drv_usectohz(2000000);
4255 if (cv_timedwait(&sc->sc_fw_cv, &sc->sc_glock, clk) < 0)
/illumos-gate/usr/src/uts/common/io/iwn/
H A Dif_iwn.c4407 clock_t clk; local
4464 clk = ddi_get_lbolt() + drv_usectohz(2000000);
4466 if (cv_timedwait(&sc->sc_cmd_cv, &sc->sc_mtx, clk) < 0)
6372 clock_t clk; local
6386 clk = ddi_get_lbolt() + drv_usectohz(2000000);
6388 if (cv_timedwait(&sc->sc_calib_cv, &sc->sc_mtx, clk) < 0)
6687 clock_t clk; local
6718 clk = ddi_get_lbolt() + drv_usectohz(1000000);
6720 if (cv_timedwait(&sc->sc_alive_cv, &sc->sc_mtx, clk) < 0) {
6758 clock_t clk; local
7290 clock_t clk; local
[all...]
/illumos-gate/usr/src/uts/common/io/cxgbe/common/
H A Dt4_hw.c3123 unsigned int clk = adap->params.vpd.cclk * 1000; local
3129 tps = clk / cpt;

Completed in 171 milliseconds