Home
last modified time | relevance | path

Searched refs:tvp (Results 1 – 25 of 135) sorted by relevance

123456

/netbsd/sys/miscfs/genfs/
H A Dgenfs_rename.c193 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in genfs_insane_rename()
214 if ((tvp != NULL) && (tvp != tdvp)) in genfs_insane_rename()
219 vrele(tvp); in genfs_insane_rename()
470 if ((tvp != NULL) && (tvp->v_type == VDIR)) in genfs_rename_cache_purge()
594 tvp = NULL; in genfs_rename_enter_common()
620 if ((tvp != NULL) && (tvp != fvp)) { in genfs_rename_enter_common()
638 fail4: if ((tvp != NULL) && (tvp != fvp)) in genfs_rename_enter_common()
642 vrele(tvp); in genfs_rename_enter_common()
990 if ((tvp != NULL) && (tvp != fvp)) in genfs_rename_exit()
994 vrele(tvp); in genfs_rename_exit()
[all …]
/netbsd/external/bsd/tcpdump/dist/
H A Dtimeval-operations.h41 #define netdissect_timevalclear(tvp) ((tvp)->tv_sec = (tvp)->tv_usec = 0) argument
43 #define netdissect_timevalisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
45 #define netdissect_timevalcmp(tvp, uvp, cmp) \ argument
46 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
47 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
48 ((tvp)->tv_sec cmp (uvp)->tv_sec))
50 #define netdissect_timevaladd(tvp, uvp, vvp, nano_prec) \ argument
52 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
53 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
69 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
[all …]
/netbsd/sys/fs/tmpfs/
H A Dtmpfs_rename.c148 KASSERT(fvp != tvp); in tmpfs_gro_rename_check_possible()
154 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in tmpfs_gro_rename_check_possible()
158 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in tmpfs_gro_rename_check_possible()
163 (tvp? VP_TO_TMPFS_NODE(tvp)->tn_flags : 0), (tvp != NULL), in tmpfs_gro_rename_check_possible()
186 KASSERT(fvp != tvp); in tmpfs_gro_rename_check_permitted()
192 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in tmpfs_gro_rename_check_permitted()
196 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in tmpfs_gro_rename_check_permitted()
204 tvp, (tvp? VP_TO_TMPFS_NODE(tvp)->tn_uid : 0)); in tmpfs_gro_rename_check_permitted()
298 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in tmpfs_gro_rename()
302 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in tmpfs_gro_rename()
[all …]
/netbsd/sys/ufs/lfs/
H A Dlfs_rename.c174 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ulfs_gro_rename_check_possible()
182 VTOI(tdvp)->i_flags, (tvp? VTOI(tvp)->i_flags : 0), in ulfs_gro_rename_check_possible()
212 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ulfs_gro_rename_check_permitted()
222 tvp, (tvp? VTOI(tvp)->i_uid : 0)); in ulfs_gro_rename_check_permitted()
757 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ulfs_gro_rename()
1035 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in lfs_gro_rename()
1053 if (tvp && VTOI(tvp)->i_nlink == 0) in lfs_gro_rename()
1054 lfs_orphan(VTOI(tvp)->i_lfs, VTOI(tvp)->i_number); in lfs_gro_rename()
1059 if (tvp) { in lfs_gro_rename()
1064 if (tvp) { in lfs_gro_rename()
[all …]
/netbsd/sys/kern/
H A Dkern_todr.c349 struct timeval *tvp) in todr_debug() argument
358 if (tvp == NULL) { in todr_debug()
359 tvp = &tv_val; in todr_debug()
361 tvp->tv_usec = 0; in todr_debug()
369 dt->dt_wday, (unsigned)tvp->tv_sec, (unsigned)tvp->tv_usec); in todr_debug()
412 rv = tch->todr_gettime(tch, tvp); in todr_gettime()
419 tvp->tv_sec += rtc_offset * 60; in todr_gettime()
451 tvp->tv_usec = 0; in todr_gettime()
452 return tvp->tv_sec < 0 ? EINVAL : 0; in todr_gettime()
464 struct timeval copy = *tvp; in todr_settime()
[all …]
/netbsd/sys/fs/msdosfs/
H A Dmsdosfs_rename.c125 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in msdosfs_rename()
141 if ((tvp != NULL) && (tvp != tdvp)) in msdosfs_rename()
145 if (tvp != NULL) in msdosfs_rename()
146 vrele(tvp); in msdosfs_rename()
258 (void)tvp; in msdosfs_gro_rename_check_possible()
271 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in msdosfs_gro_rename_check_possible()
275 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in msdosfs_gro_rename_check_possible()
303 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in msdosfs_gro_rename_check_permitted()
307 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in msdosfs_gro_rename_check_permitted()
316 tvp, (tvp? pmp->pm_uid : 0)); in msdosfs_gro_rename_check_permitted()
[all …]
/netbsd/external/bsd/ntp/dist/sntp/libevent/include/event2/
H A Dutil.h488 #define evutil_timeradd(tvp, uvp, vvp) timeradd((tvp), (uvp), (vvp)) argument
489 #define evutil_timersub(tvp, uvp, vvp) timersub((tvp), (uvp), (vvp)) argument
491 #define evutil_timeradd(tvp, uvp, vvp) \ argument
500 #define evutil_timersub(tvp, uvp, vvp) \ argument
512 #define evutil_timerclear(tvp) timerclear(tvp) argument
514 #define evutil_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 argument
520 #define evutil_timercmp(tvp, uvp, cmp) \ argument
521 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
523 ((tvp)->tv_sec cmp (uvp)->tv_sec))
526 #define evutil_timerisset(tvp) timerisset(tvp) argument
[all …]
/netbsd/games/tetris/
H A Dinput.c75 rwait(struct timeval *tvp) in rwait() argument
82 if (tvp) { in rwait()
84 endtv = *tvp; in rwait()
85 timeout = tvp->tv_sec * 1000 + tvp->tv_usec / 1000; in rwait()
94 if (tvp == 0) in rwait()
102 if (tvp) { in rwait()
103 tvp->tv_sec = 0; in rwait()
104 tvp->tv_usec = 0; in rwait()
108 if (tvp) { in rwait()
112 TV_SUB(tvp, &endtv); /* adjust *tvp by elapsed time */ in rwait()
/netbsd/sys/ufs/ext2fs/
H A Dext2fs_rename.c164 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ext2fs_gro_rename_check_possible()
168 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in ext2fs_gro_rename_check_possible()
172 VTOI(tdvp)->i_e2fs_flags, (tvp? VTOI(tvp)->i_e2fs_flags : 0), in ext2fs_gro_rename_check_possible()
173 (tvp != NULL), in ext2fs_gro_rename_check_possible()
202 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ext2fs_gro_rename_check_permitted()
206 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in ext2fs_gro_rename_check_permitted()
212 tvp, (tvp? VTOI(tvp)->i_uid : 0)); in ext2fs_gro_rename_check_permitted()
300 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ext2fs_gro_rename()
304 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in ext2fs_gro_rename()
315 KASSERT((tvp == NULL) || (directory_p == (tvp->v_type == VDIR))); in ext2fs_gro_rename()
[all …]
/netbsd/sys/arch/arm/at91/
H A Dat91st.c283 microtime(register struct timeval *tvp) in microtime() argument
292 tvp->tv_sec = 0; in microtime()
293 tvp->tv_usec = 0; in microtime()
304 *tvp = time; in microtime()
313 tvp->tv_usec -= 1000000; in microtime()
314 tvp->tv_sec++; in microtime()
319 if (__predict_false(tvp->tv_sec == lasttv.tv_sec && tvp->tv_usec <= lasttv.tv_usec)) in microtime()
322 if (tvp->tv_usec >= 1000000) in microtime()
324 tvp->tv_usec -= 1000000; in microtime()
325 tvp->tv_sec++; in microtime()
[all …]
/netbsd/external/bsd/libevent/dist/include/event2/
H A Dutil.h531 #define evutil_timeradd(tvp, uvp, vvp) timeradd((tvp), (uvp), (vvp)) argument
532 #define evutil_timersub(tvp, uvp, vvp) timersub((tvp), (uvp), (vvp)) argument
534 #define evutil_timeradd(tvp, uvp, vvp) \ argument
543 #define evutil_timersub(tvp, uvp, vvp) \ argument
555 #define evutil_timerclear(tvp) timerclear(tvp) argument
557 #define evutil_timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 argument
563 #define evutil_timercmp(tvp, uvp, cmp) \ argument
564 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
566 ((tvp)->tv_sec cmp (uvp)->tv_sec))
569 #define evutil_timerisset(tvp) timerisset(tvp) argument
[all …]
/netbsd/sys/ufs/ufs/
H A Dufs_rename.c165 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ufs_gro_rename_check_possible()
169 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in ufs_gro_rename_check_possible()
173 VTOI(tdvp)->i_flags, (tvp? VTOI(tvp)->i_flags : 0), in ufs_gro_rename_check_possible()
174 (tvp != NULL), in ufs_gro_rename_check_possible()
203 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ufs_gro_rename_check_permitted()
207 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in ufs_gro_rename_check_permitted()
213 tvp, (tvp? VTOI(tvp)->i_uid : 0)); in ufs_gro_rename_check_permitted()
310 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in ufs_gro_rename()
314 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in ufs_gro_rename()
325 KASSERT((tvp == NULL) || (directory_p == (tvp->v_type == VDIR))); in ufs_gro_rename()
[all …]
/netbsd/sys/netinet/
H A Dsctputil.h251 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0 argument
252 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
253 #define timercmp(tvp, uvp, cmp) \ argument
254 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
255 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
256 ((tvp)->tv_sec cmp (uvp)->tv_sec))
257 #define timeradd(tvp, uvp, vvp) \ argument
259 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
260 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
266 #define timersub(tvp, uvp, vvp) \ argument
[all …]
/netbsd/sys/arch/vax/vax/
H A Dclock.c163 tvp->tv_sec = handle->base_time; in vax_gettime()
164 return (*dep_call->cpu_gettime)(tvp); in vax_gettime()
170 (*dep_call->cpu_settime)(tvp); in vax_settime()
216 generic_gettime(struct timeval *tvp) in generic_gettime() argument
231 tvp->tv_sec = yeartonum(numtoyear(tvp->tv_sec)) + (klocka - TODRBASE) / 100; in generic_gettime()
239 generic_settime(struct timeval *tvp) in generic_settime() argument
241 unsigned tid = tvp->tv_sec, bastid; in generic_settime()
258 chip_gettime(struct timeval *tvp) in chip_gettime() argument
290 tvp->tv_usec = 0; in chip_gettime()
295 chip_settime(struct timeval *tvp) in chip_settime() argument
[all …]
/netbsd/sys/fs/udf/
H A Dudf_rename.c173 KASSERT(fvp != tvp); in udf_gro_rename_check_possible()
179 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in udf_gro_rename_check_possible()
183 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in udf_gro_rename_check_possible()
204 struct udf_node *t_node = (tvp? VTOI(tvp): NULL); in udf_gro_rename_check_permitted()
224 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in udf_gro_rename_check_permitted()
228 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in udf_gro_rename_check_permitted()
246 tvp, tuid); in udf_gro_rename_check_permitted()
346 KASSERT((tvp == NULL) || (tvp->v_mount == mp)); in udf_gro_rename()
350 KASSERT((tvp == NULL) || (VOP_ISLOCKED(tvp) == LK_EXCLUSIVE)); in udf_gro_rename()
358 tnode = (tvp == NULL) ? NULL : VTOI(tvp); in udf_gro_rename()
[all …]
/netbsd/sys/sys/
H A Dtime.h71 #define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0L argument
72 #define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec) argument
73 #define timercmp(tvp, uvp, cmp) \ argument
74 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
75 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
76 ((tvp)->tv_sec cmp (uvp)->tv_sec))
77 #define timeradd(tvp, uvp, vvp) \ argument
79 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
80 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
86 #define timersub(tvp, uvp, vvp) \ argument
[all …]
/netbsd/usr.bin/audio/common/
H A Ddecode.c77 decode_time(const char *arg, struct timeval *tvp) in decode_time() argument
86 tvp->tv_sec = tvp->tv_usec = 0; in decode_time()
93 tvp->tv_sec = first * 60; /* minutes */ in decode_time()
99 tvp->tv_sec += first; /* minutes and hours */ in decode_time()
100 tvp->tv_sec *= 60; in decode_time()
114 tvp->tv_usec += base * (dot[i] - '0'); in decode_time()
118 tvp->tv_sec += first; in decode_time()
/netbsd/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dtemplateparamsem.d76 override void visit(TemplateValueParameter tvp) in visit() argument
78 tvp.valType = tvp.valType.typeSemantic(tvp.loc, sc); in visit()
82 if (tvp.specValue) in visit()
84 Expression e = tvp.specValue; in visit()
88 e = e.implicitCastTo(sc, tvp.valType); in visit()
92 tvp.specValue = e; in visit()
95 if (tvp.defaultValue) in visit()
101 e = e.implicitCastTo(sc, tvp.valType); in visit()
104 tvp.defaultValue = e; in visit()
107 result = !isError(tvp.valType); in visit()
/netbsd/sys/fs/unionfs/
H A Dunionfs_vnops.c1043 tvp = ap->a_tvp; in unionfs_rename()
1050 rtvp = tvp; in unionfs_rename()
1055 (tvp != NULLVP && fvp->v_mount != tvp->v_mount)) { in unionfs_rename()
1061 if (fvp == tvp) in unionfs_rename()
1157 if (tvp != NULLVP && tvp != tdvp) in unionfs_rename()
1160 if (tvp != NULLVP && tvp != tdvp) in unionfs_rename()
1185 if (tvp != rtvp && tvp != NULLVP) { in unionfs_rename()
1187 vput(tvp); in unionfs_rename()
1189 vrele(tvp); in unionfs_rename()
1208 vput(tvp); in unionfs_rename()
[all …]
/netbsd/external/bsd/tmux/dist/
H A Dcompat.h230 #define timercmp(tvp, uvp, cmp) \ argument
231 (((tvp)->tv_sec == (uvp)->tv_sec) ? \
232 ((tvp)->tv_usec cmp (uvp)->tv_usec) : \
233 ((tvp)->tv_sec cmp (uvp)->tv_sec))
237 #define timeradd(tvp, uvp, vvp) \ argument
239 (vvp)->tv_sec = (tvp)->tv_sec + (uvp)->tv_sec; \
240 (vvp)->tv_usec = (tvp)->tv_usec + (uvp)->tv_usec; \
249 #define timersub(tvp, uvp, vvp) \ argument
251 (vvp)->tv_sec = (tvp)->tv_sec - (uvp)->tv_sec; \
252 (vvp)->tv_usec = (tvp)->tv_usec - (uvp)->tv_usec; \
/netbsd/external/bsd/ntp/dist/libntp/
H A Dmachines.c121 struct timeval *tvp in gettimeofday() argument
351 int gettimeofday(struct timeval *tvp) in gettimeofday() argument
373 tvp->tv_sec = mpetime / 1000000LL; in gettimeofday()
374 tvp->tv_usec = mpetime % 1000000LL; in gettimeofday()
401 big_sec = tvp->tv_sec; in settimeofday()
402 big_usec = tvp->tv_usec; in settimeofday()
434 struct timeval *tvp, in ntp_set_tod() argument
451 ts.tv_sec = tvp->tv_sec; in ntp_set_tod()
452 ts.tv_nsec = 1000 * tvp->tv_usec; in ntp_set_tod()
474 rc = SETTIMEOFDAY(tvp, tzp); in ntp_set_tod()
[all …]
/netbsd/sys/dev/dec/
H A Dmcclock.c152 mcclock_get(todr_chip_handle_t tch, struct timeval *tvp) in mcclock_get() argument
184 tvp->tv_sec = yearsecs + clock_ymdhms_to_secs(&dt); in mcclock_get()
185 if (tvp->tv_sec > tch->base_time - 2 * SECS_PER_DAY) in mcclock_get()
190 tvp->tv_usec = 0; in mcclock_get()
198 mcclock_set(todr_chip_handle_t tch, struct timeval *tvp) in mcclock_set() argument
209 clock_secs_to_ymdhms(tvp->tv_sec, &dt); /* get the year */ in mcclock_set()
215 yearsecs = tvp->tv_sec - clock_ymdhms_to_secs(&dt); in mcclock_set()
/netbsd/lib/libc/gen/
H A Dutime.c52 struct timeval tv[2], *tvp; in utime() local
57 tvp = NULL; in utime()
62 tvp = tv; in utime()
64 return (utimes(path, tvp)); in utime()
/netbsd/lib/libc/compat/gen/
H A Dcompat_utime.c64 struct timeval tv[2], *tvp; in __weak_alias() local
69 tvp = NULL; in __weak_alias()
74 tvp = tv; in __weak_alias()
76 return __utimes50(path, tvp); in __weak_alias()
/netbsd/usr.sbin/screenblank/
H A Dscreenblank.c95 struct timespec timo_on, timo_off, *tvp, tv; in main() local
221 tvp = &timo_on; in main()
267 tvp = &timo_off; in main()
273 tvp = &timo_on; in main()
277 tv = *tvp; in main()
402 cvt_arg(char *arg, struct timespec *tvp) in cvt_arg() argument
431 tvp->tv_sec = seconds; in cvt_arg()
435 tvp->tv_nsec = nanoseconds; in cvt_arg()

123456