Home
last modified time | relevance | path

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

/net/core/
Dsock.c364 struct __kernel_sock_timeval tv; in sock_get_timeout() local
367 tv.tv_sec = 0; in sock_get_timeout()
368 tv.tv_usec = 0; in sock_get_timeout()
370 tv.tv_sec = timeo / HZ; in sock_get_timeout()
371 tv.tv_usec = ((timeo % HZ) * USEC_PER_SEC) / HZ; in sock_get_timeout()
375 struct old_timeval32 tv32 = { tv.tv_sec, tv.tv_usec }; in sock_get_timeout()
382 old_tv.tv_sec = tv.tv_sec; in sock_get_timeout()
383 old_tv.tv_usec = tv.tv_usec; in sock_get_timeout()
388 *(struct __kernel_sock_timeval *)optval = tv; in sock_get_timeout()
389 return sizeof(tv); in sock_get_timeout()
[all …]
/net/rds/
Drecv.c554 struct __kernel_old_timeval tv = in rds_cmsg_recv() local
559 sizeof(tv), &tv); in rds_cmsg_recv()
563 sk_tv.tv_sec = tv.tv_sec; in rds_cmsg_recv()
564 sk_tv.tv_usec = tv.tv_usec; in rds_cmsg_recv()
/net/
Dcompat.c241 struct __kernel_old_timeval *tv = (struct __kernel_old_timeval *)data; in put_cmsg_compat() local
242 ctv.tv_sec = tv->tv_sec; in put_cmsg_compat()
243 ctv.tv_usec = tv->tv_usec; in put_cmsg_compat()
Dsocket.c900 struct __kernel_sock_timeval tv; in __sock_recv_timestamp() local
902 skb_get_new_timestamp(skb, &tv); in __sock_recv_timestamp()
904 sizeof(tv), &tv); in __sock_recv_timestamp()
906 struct __kernel_old_timeval tv; in __sock_recv_timestamp() local
908 skb_get_timestamp(skb, &tv); in __sock_recv_timestamp()
910 sizeof(tv), &tv); in __sock_recv_timestamp()
/net/vmw_vsock/
Daf_vsock.c1651 struct __kernel_sock_timeval tv; in vsock_connectible_setsockopt() local
1653 err = sock_copy_user_timeval(&tv, optval, optlen, in vsock_connectible_setsockopt()
1657 if (tv.tv_sec >= 0 && tv.tv_usec < USEC_PER_SEC && in vsock_connectible_setsockopt()
1658 tv.tv_sec < (MAX_SCHEDULE_TIMEOUT / HZ - 1)) { in vsock_connectible_setsockopt()
1659 vsk->connect_timeout = tv.tv_sec * HZ + in vsock_connectible_setsockopt()
1660 DIV_ROUND_UP((unsigned long)tv.tv_usec, (USEC_PER_SEC / HZ)); in vsock_connectible_setsockopt()
/net/bluetooth/
Dhci_sock.c1473 struct __kernel_old_timeval tv; in hci_sock_cmsg() local
1477 skb_get_timestamp(skb, &tv); in hci_sock_cmsg()
1479 data = &tv; in hci_sock_cmsg()
1480 len = sizeof(tv); in hci_sock_cmsg()
1484 ctv.tv_sec = tv.tv_sec; in hci_sock_cmsg()
1485 ctv.tv_usec = tv.tv_usec; in hci_sock_cmsg()
/net/can/
Dbcm.c146 static inline ktime_t bcm_timeval_to_ktime(struct bcm_timeval tv) in bcm_timeval_to_ktime() argument
148 return ktime_set(tv.tv_sec, tv.tv_usec * NSEC_PER_USEC); in bcm_timeval_to_ktime()
/net/ipv4/
Digmp.c216 int tv = prandom_u32_max(max_delay); in igmp_start_timer() local
220 if (mod_timer(&im->timer, jiffies + tv + 2)) in igmp_start_timer()
227 int tv = prandom_u32_max(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_max(delay); in igmp_ifc_start_timer() local
243 if (!mod_timer(&in_dev->mr_ifc_timer, jiffies+tv+2)) in igmp_ifc_start_timer()
Dtcp.c2361 struct __kernel_old_timeval tv = { in tcp_recv_timestamp() local
2366 sizeof(tv), &tv); in tcp_recv_timestamp()
/net/ipv6/
Dmcast.c1053 unsigned long tv = prandom_u32_max(idev->mc_maxdelay); in mld_gq_start_work() local
1056 if (!mod_delayed_work(mld_wq, &idev->mc_gq_work, tv + 2)) in mld_gq_start_work()
1071 unsigned long tv = prandom_u32_max(delay); in mld_ifc_start_work() local
1073 if (!mod_delayed_work(mld_wq, &idev->mc_ifc_work, tv + 2)) in mld_ifc_start_work()
1088 unsigned long tv = prandom_u32_max(delay); in mld_dad_start_work() local
1090 if (!mod_delayed_work(mld_wq, &idev->mc_dad_work, tv + 2)) in mld_dad_start_work()