Searched refs:tv (Results 1 – 10 of 10) sorted by relevance
/net/core/ |
D | sock.c | 335 struct __kernel_sock_timeval tv; in sock_get_timeout() local 339 tv.tv_sec = 0; in sock_get_timeout() 340 tv.tv_usec = 0; in sock_get_timeout() 342 tv.tv_sec = timeo / HZ; in sock_get_timeout() 343 tv.tv_usec = ((timeo % HZ) * USEC_PER_SEC) / HZ; in sock_get_timeout() 347 struct old_timeval32 tv32 = { tv.tv_sec, tv.tv_usec }; in sock_get_timeout() 354 old_tv.tv_sec = tv.tv_sec; in sock_get_timeout() 355 old_tv.tv_usec = tv.tv_usec; in sock_get_timeout() 359 *(struct __kernel_sock_timeval *)optval = tv; in sock_get_timeout() 360 size = sizeof(tv); in sock_get_timeout() [all …]
|
/net/vmw_vsock/ |
D | af_vsock.c | 1418 struct __kernel_old_timeval tv; in vsock_stream_setsockopt() local 1419 COPY_IN(tv); in vsock_stream_setsockopt() 1420 if (tv.tv_sec >= 0 && tv.tv_usec < USEC_PER_SEC && in vsock_stream_setsockopt() 1421 tv.tv_sec < (MAX_SCHEDULE_TIMEOUT / HZ - 1)) { in vsock_stream_setsockopt() 1422 vsk->connect_timeout = tv.tv_sec * HZ + in vsock_stream_setsockopt() 1423 DIV_ROUND_UP(tv.tv_usec, (1000000 / HZ)); in vsock_stream_setsockopt() 1496 struct __kernel_old_timeval tv; in vsock_stream_getsockopt() local 1497 tv.tv_sec = vsk->connect_timeout / HZ; in vsock_stream_getsockopt() 1498 tv.tv_usec = in vsock_stream_getsockopt() 1500 tv.tv_sec * HZ) * (1000000 / HZ); in vsock_stream_getsockopt() [all …]
|
/net/rds/ |
D | recv.c | 553 struct __kernel_old_timeval tv = in rds_cmsg_recv() local 558 sizeof(tv), &tv); in rds_cmsg_recv() 562 sk_tv.tv_sec = tv.tv_sec; in rds_cmsg_recv() 563 sk_tv.tv_usec = tv.tv_usec; in rds_cmsg_recv()
|
/net/bluetooth/ |
D | hci_sock.c | 1387 struct __kernel_old_timeval tv; in hci_sock_cmsg() local 1391 skb_get_timestamp(skb, &tv); in hci_sock_cmsg() 1393 data = &tv; in hci_sock_cmsg() 1394 len = sizeof(tv); in hci_sock_cmsg() 1398 ctv.tv_sec = tv.tv_sec; in hci_sock_cmsg() 1399 ctv.tv_usec = tv.tv_usec; in hci_sock_cmsg()
|
/net/ |
D | compat.c | 225 struct __kernel_old_timeval *tv = (struct __kernel_old_timeval *)data; in put_cmsg_compat() local 226 ctv.tv_sec = tv->tv_sec; in put_cmsg_compat() 227 ctv.tv_usec = tv->tv_usec; in put_cmsg_compat()
|
D | socket.c | 777 struct __kernel_sock_timeval tv; in __sock_recv_timestamp() local 779 skb_get_new_timestamp(skb, &tv); in __sock_recv_timestamp() 781 sizeof(tv), &tv); in __sock_recv_timestamp() 783 struct __kernel_old_timeval tv; in __sock_recv_timestamp() local 785 skb_get_timestamp(skb, &tv); in __sock_recv_timestamp() 787 sizeof(tv), &tv); in __sock_recv_timestamp()
|
/net/can/ |
D | bcm.c | 141 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()
|
/net/ipv4/ |
D | igmp.c | 218 int tv = prandom_u32() % max_delay; in igmp_start_timer() local 221 if (!mod_timer(&im->timer, jiffies+tv+2)) in igmp_start_timer() 227 int tv = prandom_u32() % in_dev->mr_maxdelay; in igmp_gq_start_timer() local 228 unsigned long exp = jiffies + tv + 2; in igmp_gq_start_timer() 241 int tv = prandom_u32() % delay; in igmp_ifc_start_timer() local 243 if (!mod_timer(&in_dev->mr_ifc_timer, jiffies+tv+2)) in igmp_ifc_start_timer()
|
D | tcp.c | 1884 struct __kernel_old_timeval tv; in tcp_recv_timestamp() local 1886 tv.tv_sec = tss->ts[0].tv_sec; in tcp_recv_timestamp() 1887 tv.tv_usec = tss->ts[0].tv_nsec / 1000; in tcp_recv_timestamp() 1889 sizeof(tv), &tv); in tcp_recv_timestamp()
|
/net/ipv6/ |
D | mcast.c | 1035 unsigned long tv = prandom_u32() % idev->mc_maxdelay; in mld_gq_start_timer() local 1038 if (!mod_timer(&idev->mc_gq_timer, jiffies+tv+2)) in mld_gq_start_timer() 1051 unsigned long tv = prandom_u32() % delay; in mld_ifc_start_timer() local 1053 if (!mod_timer(&idev->mc_ifc_timer, jiffies+tv+2)) in mld_ifc_start_timer() 1066 unsigned long tv = prandom_u32() % delay; in mld_dad_start_timer() local 1068 if (!mod_timer(&idev->mc_dad_timer, jiffies+tv+2)) in mld_dad_start_timer()
|