HomeSort by: relevance | last modified time | path
    Searched refs:tvp (Results 1 - 25 of 86) sorted by relevancy

1 2 3 4

  /src/games/tetris/
input.c 65 * Do a `read wait': poll for reading from stdin, with timeout *tvp.
66 * On return, modify *tvp to reflect the amount of time spent waiting.
70 * If tvp is nil, wait forever, but return if poll is interrupted.
75 rwait(struct timeval *tvp)
82 if (tvp) {
84 endtv = *tvp;
85 timeout = tvp->tv_sec * 1000 + tvp->tv_usec / 1000;
94 if (tvp == 0)
102 if (tvp) {
    [all...]
  /src/lib/libc/gen/
utime.c 52 struct timeval tv[2], *tvp; local in function:utime
57 tvp = NULL;
62 tvp = tv;
64 return (utimes(path, tvp));
  /src/lib/libc/compat/gen/
compat_utime.c 64 struct timeval tv[2], *tvp; variable in typeref:struct:timeval[2]*
69 tvp = NULL;
74 tvp = tv;
76 return __utimes50(path, tvp);
  /src/usr.bin/rump_dhcpclient/
common.h 37 #define timernorm(tvp) \
39 while ((tvp)->tv_usec >= 1000000) { \
40 (tvp)->tv_sec++; \
41 (tvp)->tv_usec -= 1000000; \
  /src/lib/libc/compat/sys/
compat_settimeofday.c 60 const void * __restrict tvp)
64 return __settimeofday50(&tv, tvp);
  /src/usr.bin/audio/common/
decode.c 77 decode_time(const char *arg, struct timeval *tvp)
86 tvp->tv_sec = tvp->tv_usec = 0;
93 tvp->tv_sec = first * 60; /* minutes */
99 tvp->tv_sec += first; /* minutes and hours */
100 tvp->tv_sec *= 60;
114 tvp->tv_usec += base * (dot[i] - '0');
118 tvp->tv_sec += first;
  /src/sys/miscfs/genfs/
genfs_rename.c 144 * . tvp (to vnode, or NULL), and
151 * . fdvp, fvp, tdvp, and tvp are referenced,
153 * . tdvp and tvp (if nonnull) are locked.
157 * . fdvp, fvp, tdvp, and tvp (if nonnull) are unreferenced, and
158 * . tdvp and tvp (if nonnull) are unlocked.
178 struct vnode *tvp = ap->a_tvp; local in function:genfs_insane_rename
193 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
214 if ((tvp != NULL) && (tvp != tdvp)
554 struct vnode *fvp, *tvp; local in function:genfs_rename_enter_common
661 struct vnode *fvp, *tvp; local in function:genfs_rename_enter_separate
    [all...]
  /src/sys/kern/
kern_todr.c 384 struct timeval *tvp)
390 clock_secs_to_ymdhms(tvp->tv_sec, &dt_val);
393 if (tvp == NULL) {
394 tvp = &tv_val;
395 tvp->tv_sec = clock_ymdhms_to_secs(dt);
396 tvp->tv_usec = 0;
404 dt->dt_wday, (unsigned)tvp->tv_sec, (unsigned)tvp->tv_usec);
407 #define todr_debug(prefix, rv, dt, tvp)
436 todr_gettime(todr_chip_handle_t tch, struct timeval *tvp)
    [all...]
  /src/sys/fs/tmpfs/
tmpfs_rename.c 136 struct vnode *tdvp, struct vnode *tvp)
145 KASSERT(fdvp != tvp);
147 KASSERT(tdvp != tvp);
148 KASSERT(fvp != tvp);
154 KASSERT((tvp == NULL) || (tvp->v_mount == mp));
158 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
163 (tvp? VP_TO_TMPFS_NODE(tvp)->tn_flags : 0), (tvp != NULL)
    [all...]
  /src/sys/netinet/
sctputil.h 252 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
253 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
254 #define timercmp(tvp, uvp, cmp) \
255 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
256 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
257 ((tvp)->tv_sec cmp (uvp)->tv_sec)
    [all...]
  /src/sys/ufs/lfs/
lfs_rename.c 156 struct vnode *tdvp, struct vnode *tvp)
165 KASSERT(fdvp != tvp);
167 KASSERT(tdvp != tvp);
168 KASSERT(fvp != tvp);
174 KASSERT((tvp == NULL) || (tvp->v_mount == mp));
178 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
182 VTOI(tdvp)->i_flags, (tvp? VTOI(tvp)->i_flags : 0)
    [all...]
  /src/sys/arch/arm/at91/
at91st.c 283 microtime(register struct timeval *tvp)
292 tvp->tv_sec = 0;
293 tvp->tv_usec = 0;
304 *tvp = time;
308 tvp->tv_usec += at91st_count_to_usec(AT91ST_DIVIDER - current_count);
311 while (__predict_false(tvp->tv_usec >= 1000000))
313 tvp->tv_usec -= 1000000;
314 tvp->tv_sec++;
319 if (__predict_false(tvp->tv_sec == lasttv.tv_sec && tvp->tv_usec <= lasttv.tv_usec))
    [all...]
  /src/sys/arch/vax/vax/
clock.c 161 vax_gettime(todr_chip_handle_t handle, struct timeval *tvp)
163 tvp->tv_sec = handle->todr_base_time;
164 return (*dep_call->cpu_gettime)(tvp);
168 vax_settime(todr_chip_handle_t handle, struct timeval *tvp)
170 (*dep_call->cpu_settime)(tvp);
216 generic_gettime(struct timeval *tvp)
231 tvp->tv_sec = yeartonum(numtoyear(tvp->tv_sec)) + (klocka - TODRBASE) / 100;
239 generic_settime(struct timeval *tvp)
241 unsigned tid = tvp->tv_sec, bastid
    [all...]
  /src/sys/sys/
time.h 71 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0L
72 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
73 #define timercmp(tvp, uvp, cmp) \
74 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
75 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
76 ((tvp)->tv_sec cmp (uvp)->tv_sec)
    [all...]
  /src/sys/fs/udf/
udf_rename.c 161 struct vnode *tdvp, struct vnode *tvp)
169 KASSERT(fdvp != tvp);
171 KASSERT(tdvp != tvp);
172 KASSERT(fvp != tvp);
178 KASSERT((tvp == NULL) || (tvp->v_mount == mp));
182 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
198 struct vnode *tdvp, struct vnode *tvp)
203 struct udf_node *t_node = (tvp? VTOI(tvp): NULL)
    [all...]
  /src/sys/ufs/ufs/
ufs_rename.c 147 struct vnode *tdvp, struct vnode *tvp)
156 KASSERT(fdvp != tvp);
158 KASSERT(tdvp != tvp);
159 KASSERT(fvp != tvp);
165 KASSERT((tvp == NULL) || (tvp->v_mount == mp));
169 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
173 VTOI(tdvp)->i_flags, (tvp? VTOI(tvp)->i_flags : 0)
    [all...]
  /src/sys/ufs/ext2fs/
ext2fs_rename.c 146 struct vnode *tdvp, struct vnode *tvp)
155 KASSERT(fdvp != tvp);
157 KASSERT(tdvp != tvp);
158 KASSERT(fvp != tvp);
164 KASSERT((tvp == NULL) || (tvp->v_mount == mp));
168 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
172 VTOI(tdvp)->i_e2fs_flags, (tvp? VTOI(tvp)->i_e2fs_flags : 0)
    [all...]
  /src/sys/fs/msdosfs/
msdosfs_rename.c 79 * . tvp (to vnode, or NULL), and
86 * . fdvp, fvp, tdvp, and tvp are referenced,
88 * . tdvp and tvp (if nonnull) are locked.
92 * . fdvp, fvp, tdvp, and tvp (if nonnull) are unreferenced, and
93 * . tdvp and tvp are unlocked.
110 struct vnode *tvp = ap->a_tvp; local in function:msdosfs_rename
125 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE));
141 if ((tvp != NULL) && (tvp != tdvp)
    [all...]
  /src/sys/arch/arm/imx/
imxsnvs.c 151 imxsnvs_gettime(todr_chip_handle_t tch, struct timeval *tvp)
164 tvp->tv_sec = c1 >> SVNS_COUNTER_SHIFT;
165 tvp->tv_usec = (c1 % SVNS_COUNTER_HZ) * 1000000 / SVNS_COUNTER_HZ;
171 imxsnvs_settime(todr_chip_handle_t tch, struct timeval *tvp)
177 c = (uint64_t)tvp->tv_sec * SVNS_COUNTER_HZ +
178 (uint64_t)tvp->tv_usec * SVNS_COUNTER_HZ / 1000000;
  /src/sys/fs/unionfs/
unionfs_vnops.c 810 struct vnode *tvp; local in function:unionfs_read
815 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp);
817 error = VOP_READ(tvp, ap->a_uio, ap->a_ioflag, ap->a_cred);
830 struct vnode *tvp; local in function:unionfs_write
835 tvp = (unp->un_uppervp != NULLVP ? unp->un_uppervp : unp->un_lowervp);
837 error = VOP_WRITE(tvp, ap->a_uio, ap->a_ioflag, ap->a_cred);
1021 struct vnode *tvp; local in function:unionfs_rename
1043 tvp = ap->a_tvp;
1050 rtvp = tvp;
1055 (tvp != NULLVP && fvp->v_mount != tvp->v_mount))
1731 struct vnode *tvp; local in function:unionfs_kqfilter
1744 struct vnode *tvp; local in function:unionfs_bmap
1757 struct vnode *tvp; local in function:unionfs_mmap
1770 struct vnode *tvp; local in function:unionfs_abortop
1783 struct vnode *tvp; local in function:unionfs_islocked
1796 struct vnode *tvp; local in function:unionfs_seek
1863 struct vnode *tvp; local in function:unionfs_revoke
    [all...]
  /src/usr.sbin/screenblank/
screenblank.c 95 struct timespec timo_on, timo_off, *tvp, tv; local in function:main
221 tvp = &timo_on;
267 tvp = &timo_off;
273 tvp = &timo_on;
277 tv = *tvp;
402 cvt_arg(char *arg, struct timespec *tvp)
431 tvp->tv_sec = seconds;
435 tvp->tv_nsec = nanoseconds;
  /src/sys/dev/dec/
mcclock.c 153 mcclock_get(todr_chip_handle_t tch, struct timeval *tvp)
185 tvp->tv_sec = yearsecs + clock_ymdhms_to_secs(&dt);
186 if (tvp->tv_sec > tch->todr_base_time - 2 * SECS_PER_DAY)
191 tvp->tv_usec = 0;
199 mcclock_set(todr_chip_handle_t tch, struct timeval *tvp)
210 clock_secs_to_ymdhms(tvp->tv_sec, &dt); /* get the year */
216 yearsecs = tvp->tv_sec - clock_ymdhms_to_secs(&dt);
  /src/sys/arch/amiga/dev/
drbbc.c 162 dracougettod(todr_chip_handle_t h, struct timeval *tvp)
187 tvp->tv_sec = clkbuf;
188 tvp->tv_usec = usecs;
194 dracousettod(todr_chip_handle_t h, struct timeval *tvp)
  /src/sys/arch/next68k/next68k/
rtc.c 364 gettime_new(todr_chip_handle_t tch, struct timeval *tvp)
366 tvp->tv_sec =
375 settime_new(todr_chip_handle_t tch, struct timeval *tvp)
382 printf("Setting RTC to 0x%08llx. Regs before:\n", tvp->tv_sec);
386 rtc_write(RTC_CNTR0, (tvp->tv_sec >> 24) & 0xff);
387 rtc_write(RTC_CNTR1, (tvp->tv_sec >> 16) & 0xff);
388 rtc_write(RTC_CNTR2, (tvp->tv_sec >> 8) & 0xff);
389 rtc_write(RTC_CNTR3, (tvp->tv_sec) & 0xff);
  /src/sys/arch/mips/alchemy/dev/
aurtc.c 150 aurtc_settime(todr_chip_handle_t tch, struct timeval *tvp)
156 tv = *tvp;

Completed in 22 milliseconds

1 2 3 4