Searched refs:tv (Results 1 – 14 of 14) sorted by relevance
/net/ |
D | compat.c | 247 struct timeval *tv = (struct timeval *)data; in put_cmsg_compat() local 248 ctv.tv_sec = tv->tv_sec; in put_cmsg_compat() 249 ctv.tv_usec = tv->tv_usec; in put_cmsg_compat() 464 struct timeval tv; in compat_sock_get_timestamp() local 473 tv = ktime_to_timeval(sk->sk_stamp); in compat_sock_get_timestamp() 474 if (tv.tv_sec == -1) in compat_sock_get_timestamp() 476 if (tv.tv_sec == 0) { in compat_sock_get_timestamp() 478 tv = ktime_to_timeval(sk->sk_stamp); in compat_sock_get_timestamp() 481 if (put_user(tv.tv_sec, &ctv->tv_sec) || in compat_sock_get_timestamp() 482 put_user(tv.tv_usec, &ctv->tv_usec)) in compat_sock_get_timestamp()
|
D | socket.c | 735 struct timeval tv; in __sock_recv_timestamp() local 736 skb_get_timestamp(skb, &tv); in __sock_recv_timestamp() 738 sizeof(tv), &tv); in __sock_recv_timestamp()
|
/net/vmw_vsock/ |
D | af_vsock.c | 1409 struct timeval tv; in vsock_stream_setsockopt() local 1410 COPY_IN(tv); in vsock_stream_setsockopt() 1411 if (tv.tv_sec >= 0 && tv.tv_usec < USEC_PER_SEC && in vsock_stream_setsockopt() 1412 tv.tv_sec < (MAX_SCHEDULE_TIMEOUT / HZ - 1)) { in vsock_stream_setsockopt() 1413 vsk->connect_timeout = tv.tv_sec * HZ + in vsock_stream_setsockopt() 1414 DIV_ROUND_UP(tv.tv_usec, (1000000 / HZ)); in vsock_stream_setsockopt() 1487 struct timeval tv; in vsock_stream_getsockopt() local 1488 tv.tv_sec = vsk->connect_timeout / HZ; in vsock_stream_getsockopt() 1489 tv.tv_usec = in vsock_stream_getsockopt() 1491 tv.tv_sec * HZ) * (1000000 / HZ); in vsock_stream_getsockopt() [all …]
|
/net/atm/ |
D | mpoa_caches.h | 17 struct timeval tv; member 54 struct timeval tv; member
|
D | mpoa_caches.c | 119 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()
|
D | mpoa_proc.c | 158 (now.tv_sec-in_entry->tv.tv_sec), in mpc_show() 177 (now.tv_sec-eg_entry->tv.tv_sec)), in mpc_show()
|
D | mpc.c | 1179 do_gettimeofday(&(entry->tv)); in MPOA_res_reply_rcvd()
|
/net/core/ |
D | sock.c | 385 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() 2431 struct timeval tv; in sock_get_timestamp() local 2434 tv = ktime_to_timeval(sk->sk_stamp); in sock_get_timestamp() [all …]
|
/net/ipv4/ |
D | tcp_probe.c | 190 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()
|
D | igmp.c | 215 int tv = prandom_u32() % max_delay; in igmp_start_timer() local 218 if (!mod_timer(&im->timer, jiffies+tv+2)) in igmp_start_timer() 224 int tv = prandom_u32() % in_dev->mr_maxdelay; in igmp_gq_start_timer() local 227 if (!mod_timer(&in_dev->mr_gq_timer, jiffies+tv+2)) in igmp_gq_start_timer() 233 int tv = prandom_u32() % delay; in igmp_ifc_start_timer() local 235 if (!mod_timer(&in_dev->mr_ifc_timer, jiffies+tv+2)) in igmp_ifc_start_timer()
|
/net/bluetooth/ |
D | hci_sock.c | 832 struct timeval tv; in hci_sock_cmsg() local 836 skb_get_timestamp(skb, &tv); in hci_sock_cmsg() 838 data = &tv; in hci_sock_cmsg() 839 len = sizeof(tv); in hci_sock_cmsg() 843 ctv.tv_sec = tv.tv_sec; in hci_sock_cmsg() 844 ctv.tv_usec = tv.tv_usec; in hci_sock_cmsg()
|
/net/netfilter/ |
D | nfnetlink_log.c | 532 struct timeval tv = ktime_to_timeval(skb->tstamp); in __build_packet_message() local 533 ts.sec = cpu_to_be64(tv.tv_sec); in __build_packet_message() 534 ts.usec = cpu_to_be64(tv.tv_usec); in __build_packet_message()
|
D | nfnetlink_queue_core.c | 462 struct timeval tv = ktime_to_timeval(entskb->tstamp); in nfqnl_build_packet_message() local 463 ts.sec = cpu_to_be64(tv.tv_sec); in nfqnl_build_packet_message() 464 ts.usec = cpu_to_be64(tv.tv_usec); in nfqnl_build_packet_message()
|
/net/ipv6/ |
D | mcast.c | 999 unsigned long tv = prandom_u32() % idev->mc_maxdelay; in mld_gq_start_timer() local 1002 if (!mod_timer(&idev->mc_gq_timer, jiffies+tv+2)) in mld_gq_start_timer() 1015 unsigned long tv = prandom_u32() % delay; in mld_ifc_start_timer() local 1017 if (!mod_timer(&idev->mc_ifc_timer, jiffies+tv+2)) in mld_ifc_start_timer() 1030 unsigned long tv = prandom_u32() % delay; in mld_dad_start_timer() local 1032 if (!mod_timer(&idev->mc_dad_timer, jiffies+tv+2)) in mld_dad_start_timer()
|