Home
last modified time | relevance | path

Searched refs:tv (Results 1 – 15 of 15) sorted by relevance

/net/ipv4/
Dip_options.c61 struct timespec tv; in ip_options_build() local
63 getnstimeofday(&tv); in ip_options_build()
64 midtime = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC); in ip_options_build()
419 struct timespec tv; in __ip_options_compile() local
421 getnstimeofday(&tv); in __ip_options_compile()
422 midtime = (tv.tv_sec % 86400) * MSEC_PER_SEC + tv.tv_nsec / NSEC_PER_MSEC; in __ip_options_compile()
Dtcp_probe.c190 struct timespec tv in tcpprobe_sprint() local
195 (unsigned long)tv.tv_sec, in tcpprobe_sprint()
196 (unsigned long)tv.tv_nsec, in tcpprobe_sprint()
Dicmp.c960 struct timespec tv; in icmp_timestamp() local
971 getnstimeofday(&tv); in icmp_timestamp()
972 icmp_param.data.times[1] = htonl((tv.tv_sec % 86400) * MSEC_PER_SEC + in icmp_timestamp()
973 tv.tv_nsec / NSEC_PER_MSEC); in icmp_timestamp()
Digmp.c219 int tv = prandom_u32() % max_delay; in igmp_start_timer() local
222 if (!mod_timer(&im->timer, jiffies+tv+2)) in igmp_start_timer()
228 int tv = prandom_u32() % in_dev->mr_maxdelay; in igmp_gq_start_timer() local
229 unsigned long exp = jiffies + tv + 2; in igmp_gq_start_timer()
242 int tv = prandom_u32() % delay; in igmp_ifc_start_timer() local
244 if (!mod_timer(&in_dev->mr_ifc_timer, jiffies+tv+2)) in igmp_ifc_start_timer()
/net/
Dcompat.c218 struct timeval *tv = (struct timeval *)data; in put_cmsg_compat() local
219 ctv.tv_sec = tv->tv_sec; in put_cmsg_compat()
220 ctv.tv_usec = tv->tv_usec; in put_cmsg_compat()
438 struct timeval tv; in compat_sock_get_timestamp() local
447 tv = ktime_to_timeval(sock_read_timestamp(sk)); in compat_sock_get_timestamp()
449 if (tv.tv_sec == -1) in compat_sock_get_timestamp()
451 if (tv.tv_sec == 0) { in compat_sock_get_timestamp()
454 tv = ktime_to_timeval(kt); in compat_sock_get_timestamp()
457 if (put_user(tv.tv_sec, &ctv->tv_sec) || in compat_sock_get_timestamp()
458 put_user(tv.tv_usec, &ctv->tv_usec)) in compat_sock_get_timestamp()
Dsocket.c668 struct timeval tv; in __sock_recv_timestamp() local
669 skb_get_timestamp(skb, &tv); in __sock_recv_timestamp()
671 sizeof(tv), &tv); in __sock_recv_timestamp()
/net/atm/
Dmpoa_caches.h17 struct timeval tv; member
54 struct timeval tv; member
Dmpoa_caches.c119 do_gettimeofday(&(entry->tv)); in in_cache_add_entry()
238 if ((now.tv_sec - entry->tv.tv_sec) in clear_count_and_expired()
482 do_gettimeofday(&(entry->tv)); in eg_cache_add_entry()
497 do_gettimeofday(&(entry->tv)); in update_eg_cache_entry()
514 if ((now.tv_sec - entry->tv.tv_sec) in clear_expired()
Dmpoa_proc.c158 (now.tv_sec-in_entry->tv.tv_sec), in mpc_show()
177 (now.tv_sec-eg_entry->tv.tv_sec)), in mpc_show()
Dmpc.c1179 do_gettimeofday(&(entry->tv)); in MPOA_res_reply_rcvd()
/net/core/
Dsock.c385 struct timeval tv; in sock_set_timeout() local
387 if (optlen < sizeof(tv)) in sock_set_timeout()
389 if (copy_from_user(&tv, optval, sizeof(tv))) in sock_set_timeout()
391 if (tv.tv_usec < 0 || tv.tv_usec >= USEC_PER_SEC) in sock_set_timeout()
394 if (tv.tv_sec < 0) { in sock_set_timeout()
406 if (tv.tv_sec == 0 && tv.tv_usec == 0) in sock_set_timeout()
408 if (tv.tv_sec < (MAX_SCHEDULE_TIMEOUT/HZ - 1)) in sock_set_timeout()
409 *timeo_p = tv.tv_sec*HZ + (tv.tv_usec+(1000000/HZ-1))/(1000000/HZ); in sock_set_timeout()
2557 struct timeval tv; in sock_get_timestamp() local
2560 tv = ktime_to_timeval(sk->sk_stamp); in sock_get_timestamp()
[all …]
/net/vmw_vsock/
Daf_vsock.c1444 struct timeval tv; in vsock_stream_setsockopt() local
1445 COPY_IN(tv); in vsock_stream_setsockopt()
1446 if (tv.tv_sec >= 0 && tv.tv_usec < USEC_PER_SEC && in vsock_stream_setsockopt()
1447 tv.tv_sec < (MAX_SCHEDULE_TIMEOUT / HZ - 1)) { in vsock_stream_setsockopt()
1448 vsk->connect_timeout = tv.tv_sec * HZ + in vsock_stream_setsockopt()
1449 DIV_ROUND_UP(tv.tv_usec, (1000000 / HZ)); in vsock_stream_setsockopt()
1522 struct timeval tv; in vsock_stream_getsockopt() local
1523 tv.tv_sec = vsk->connect_timeout / HZ; in vsock_stream_getsockopt()
1524 tv.tv_usec = in vsock_stream_getsockopt()
1526 tv.tv_sec * HZ) * (1000000 / HZ); in vsock_stream_getsockopt()
[all …]
/net/bluetooth/
Dhci_sock.c988 struct timeval tv; in hci_sock_cmsg() local
992 skb_get_timestamp(skb, &tv); in hci_sock_cmsg()
994 data = &tv; in hci_sock_cmsg()
995 len = sizeof(tv); in hci_sock_cmsg()
999 ctv.tv_sec = tv.tv_sec; in hci_sock_cmsg()
1000 ctv.tv_usec = tv.tv_usec; in hci_sock_cmsg()
/net/ipv6/
Dmcast.c1004 unsigned long tv = prandom_u32() % idev->mc_maxdelay; in mld_gq_start_timer() local
1007 if (!mod_timer(&idev->mc_gq_timer, jiffies+tv+2)) in mld_gq_start_timer()
1020 unsigned long tv = prandom_u32() % delay; in mld_ifc_start_timer() local
1022 if (!mod_timer(&idev->mc_ifc_timer, jiffies+tv+2)) in mld_ifc_start_timer()
1035 unsigned long tv = prandom_u32() % delay; in mld_dad_start_timer() local
1037 if (!mod_timer(&idev->mc_dad_timer, jiffies+tv+2)) in mld_dad_start_timer()
/net/can/
Dbcm.c141 static inline ktime_t bcm_timeval_to_ktime(struct bcm_timeval tv) in bcm_timeval_to_ktime() argument
143 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in bcm_timeval_to_ktime()