/net/netfilter/ |
D | nf_conntrack_timeout.c | 29 void (*nf_ct_timeout_put_hook)(struct nf_ct_timeout *timeout) __read_mostly; 32 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument 36 if (timeout_ext && (!timeout || timeout_ext->timeout == timeout)) in untimeout() 37 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in untimeout() 43 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) in nf_ct_untimeout() argument 45 nf_ct_iterate_cleanup_net(net, untimeout, timeout, 0, 0); in nf_ct_untimeout() 49 static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout) in __nf_ct_timeout_put() argument 55 timeout_put(timeout); in __nf_ct_timeout_put() 62 struct nf_ct_timeout *timeout; in nf_ct_set_timeout() local 75 timeout = timeout_find_get(net, timeout_name); in nf_ct_set_timeout() [all …]
|
D | nfnetlink_cttimeout.c | 46 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument 67 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy() 83 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local 97 list_for_each_entry(timeout, &net->nfct_timeout_list, head) { in cttimeout_new_timeout() 98 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout() 104 matching = timeout; in cttimeout_new_timeout() 113 if (matching->timeout.l3num != l3num || in cttimeout_new_timeout() 114 matching->timeout.l4proto->l4proto != l4num) in cttimeout_new_timeout() 117 return ctnl_timeout_parse_policy(&matching->timeout.data, in cttimeout_new_timeout() 118 matching->timeout.l4proto, in cttimeout_new_timeout() [all …]
|
D | nf_conntrack_proto_generic.c | 24 unsigned int *timeout = data; in generic_timeout_nlattr_to_obj() local 26 if (!timeout) in generic_timeout_nlattr_to_obj() 27 timeout = &gn->timeout; in generic_timeout_nlattr_to_obj() 30 *timeout = in generic_timeout_nlattr_to_obj() 34 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj() 43 const unsigned int *timeout = data; in generic_timeout_obj_to_nlattr() local 45 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr() 64 gn->timeout = nf_ct_generic_timeout; in nf_conntrack_generic_init_net()
|
D | nft_dynset.c | 22 u64 timeout; member 49 u64 timeout; in nft_dynset_new() local 55 timeout = priv->timeout ? : set->timeout; in nft_dynset_new() 59 timeout, 0, GFP_ATOMIC); in nft_dynset_new() 85 u64 timeout; in nft_dynset_eval() local 100 timeout = priv->timeout ? : set->timeout; in nft_dynset_eval() 101 *nft_set_ext_expiration(ext) = get_jiffies_64() + timeout; in nft_dynset_eval() 135 u64 timeout; in nft_dynset_init() local 179 timeout = 0; in nft_dynset_init() 183 timeout = msecs_to_jiffies(be64_to_cpu(nla_get_be64( in nft_dynset_init() [all …]
|
D | nf_conntrack_proto_icmp.c | 76 unsigned int *timeout = nf_ct_timeout_lookup(ct); in nf_conntrack_icmp_packet() local 96 if (!timeout) in nf_conntrack_icmp_packet() 97 timeout = &nf_icmp_pernet(nf_ct_net(ct))->timeout; in nf_conntrack_icmp_packet() 99 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmp_packet() 315 unsigned int *timeout = data; in icmp_timeout_nlattr_to_obj() local 319 if (!timeout) in icmp_timeout_nlattr_to_obj() 320 timeout = &in->timeout; in icmp_timeout_nlattr_to_obj() 321 *timeout = in icmp_timeout_nlattr_to_obj() 323 } else if (timeout) { in icmp_timeout_nlattr_to_obj() 325 *timeout = in->timeout; in icmp_timeout_nlattr_to_obj() [all …]
|
D | nf_conntrack_proto_icmpv6.c | 81 return &nf_icmpv6_pernet(net)->timeout; in icmpv6_get_timeouts() 90 unsigned int *timeout = nf_ct_timeout_lookup(ct); in nf_conntrack_icmpv6_packet() local 111 if (!timeout) in nf_conntrack_icmpv6_packet() 112 timeout = icmpv6_get_timeouts(nf_ct_net(ct)); in nf_conntrack_icmpv6_packet() 117 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in nf_conntrack_icmpv6_packet() 234 unsigned int *timeout = data; in icmpv6_timeout_nlattr_to_obj() local 237 if (!timeout) in icmpv6_timeout_nlattr_to_obj() 238 timeout = icmpv6_get_timeouts(net); in icmpv6_timeout_nlattr_to_obj() 240 *timeout = in icmpv6_timeout_nlattr_to_obj() 244 *timeout = in->timeout; in icmpv6_timeout_nlattr_to_obj() [all …]
|
D | nf_conntrack_netbios_ns.c | 31 static unsigned int timeout __read_mostly = 3; 32 module_param(timeout, uint, 0400); 33 MODULE_PARM_DESC(timeout, "timeout for master connection/replies in seconds"); 43 return nf_conntrack_broadcast_help(skb, ct, ctinfo, timeout); in netbios_ns_help() 60 exp_policy.timeout = timeout; in nf_conntrack_netbios_ns_init()
|
D | nf_conntrack_snmp.c | 24 static unsigned int timeout __read_mostly = 30; 25 module_param(timeout, uint, 0400); 26 MODULE_PARM_DESC(timeout, "timeout for master connection/replies in seconds"); 40 nf_conntrack_broadcast_help(skb, ct, ctinfo, timeout); in snmp_conntrack_help() 65 exp_policy.timeout = timeout; in nf_conntrack_snmp_init()
|
D | nft_ct.c | 822 struct nf_ct_timeout *timeout; member 832 struct nf_conn_timeout *timeout; in nft_ct_timeout_obj_eval() local 841 timeout = nf_ct_timeout_find(ct); in nft_ct_timeout_obj_eval() 842 if (!timeout) { in nft_ct_timeout_obj_eval() 843 timeout = nf_ct_timeout_ext_add(ct, priv->timeout, GFP_ATOMIC); in nft_ct_timeout_obj_eval() 844 if (!timeout) { in nft_ct_timeout_obj_eval() 850 rcu_assign_pointer(timeout->timeout, priv->timeout); in nft_ct_timeout_obj_eval() 855 values = nf_ct_timeout_data(timeout); in nft_ct_timeout_obj_eval() 866 struct nf_ct_timeout *timeout; in nft_ct_timeout_obj_init() local 888 timeout = kzalloc(sizeof(struct nf_ct_timeout) + in nft_ct_timeout_obj_init() [all …]
|
D | nf_flow_table_core.c | 115 static inline __s32 nf_flow_timeout_delta(unsigned int timeout) in nf_flow_timeout_delta() argument 117 return (__s32)(timeout - (u32)jiffies); in nf_flow_timeout_delta() 124 unsigned int timeout; in flow_offload_fixup_ct_timeout() local 131 timeout = NF_FLOWTABLE_TCP_PICKUP_TIMEOUT; in flow_offload_fixup_ct_timeout() 133 timeout = NF_FLOWTABLE_UDP_PICKUP_TIMEOUT; in flow_offload_fixup_ct_timeout() 137 if (nf_flow_timeout_delta(ct->timeout) > (__s32)timeout) in flow_offload_fixup_ct_timeout() 138 ct->timeout = nfct_time_stamp + timeout; in flow_offload_fixup_ct_timeout() 205 flow->timeout = (u32)jiffies + NF_FLOW_TIMEOUT; in flow_offload_add() 229 return nf_flow_timeout_delta(flow->timeout) <= 0; in nf_flow_has_expired()
|
D | nf_conntrack_expect.c | 54 WARN_ON(timer_pending(&exp->timeout)); in nf_ct_unlink_expect_report() 71 struct nf_conntrack_expect *exp = from_timer(exp, t, timeout); in nf_ct_expectation_timed_out() 107 if (del_timer(&exp->timeout)) { in nf_ct_remove_expect() 201 } else if (del_timer(&exp->timeout)) { in nf_ct_find_expectation() 379 timer_setup(&exp->timeout, nf_ct_expectation_timed_out, 0); in nf_ct_expect_insert() 383 exp->timeout.expires = jiffies + in nf_ct_expect_insert() 384 helper->expect_policy[exp->class].timeout * HZ; in nf_ct_expect_insert() 386 add_timer(&exp->timeout); in nf_ct_expect_insert() 503 if (iter(exp, data) && del_timer(&exp->timeout)) { in nf_ct_expect_iterate_destroy() 533 if (iter(exp, data) && del_timer(&exp->timeout)) { in nf_ct_expect_iterate_net() [all …]
|
D | xt_IDLETIMER.c | 54 int timeout; member 76 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger() 79 temp.tv_sec = timer->timeout; in check_for_delayed_trigger() 318 info->timer->timeout = info->timeout; in idletimer_tg_create() 336 msecs_to_jiffies(info->timeout * 1000) + jiffies); in idletimer_tg_create() 380 msecs_to_jiffies(info->timeout * 1000) + now); in reset_timer() 394 info->label, info->timeout); in idletimer_tg_target() 418 if (info->timeout == 0) { in idletimer_tg_checkentry() 422 if (info->timeout >= INT_MAX / 1000) { in idletimer_tg_checkentry()
|
/net/mac80211/ |
D | agg-rx.c | 68 .timeout = 0, in ___ieee80211_stop_rx_ba_session() 157 unsigned long timeout; in sta_rx_agg_session_timer_expired() local 159 timeout = tid_rx->last_rx + TU_TO_JIFFIES(tid_rx->timeout); in sta_rx_agg_session_timer_expired() 160 if (time_is_after_jiffies(timeout)) { in sta_rx_agg_session_timer_expired() 161 mod_timer(&tid_rx->session_timer, timeout); in sta_rx_agg_session_timer_expired() 216 u16 buf_size, u16 timeout, in ieee80211_send_addba_resp() argument 259 mgmt->u.action.u.addba_resp.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_resp() 269 u8 dialog_token, u16 timeout, in ___ieee80211_start_rx_ba_session() argument 281 .timeout = timeout, in ___ieee80211_start_rx_ba_session() 357 if (tid_rx && tid_rx->timeout == timeout) in ___ieee80211_start_rx_ba_session() [all …]
|
D | agg-tx.c | 64 u16 agg_size, u16 timeout) in ieee80211_send_addba_request() argument 105 mgmt->u.action.u.addba_req.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_request() 308 .timeout = 0, in ___ieee80211_stop_tx_ba_session() 462 .timeout = 0, in ieee80211_tx_ba_session_handle_start() 529 buf_size, tid_tx->timeout); in ieee80211_tx_ba_session_handle_start() 541 unsigned long timeout; in sta_tx_agg_session_timer_expired() local 547 timeout = tid_tx->last_tx + TU_TO_JIFFIES(tid_tx->timeout); in sta_tx_agg_session_timer_expired() 548 if (time_is_after_jiffies(timeout)) { in sta_tx_agg_session_timer_expired() 549 mod_timer(&tid_tx->session_timer, timeout); in sta_tx_agg_session_timer_expired() 560 u16 timeout) in ieee80211_start_tx_ba_session() argument [all …]
|
/net/smc/ |
D | smc_close.c | 50 static void smc_close_stream_wait(struct smc_sock *smc, long timeout) in smc_close_stream_wait() argument 55 if (!timeout) in smc_close_stream_wait() 63 while (!signal_pending(current) && timeout) { in smc_close_stream_wait() 66 rc = sk_wait_event(sk, &timeout, in smc_close_stream_wait() 184 long timeout; in smc_close_active() local 187 timeout = current->flags & PF_EXITING ? in smc_close_active() 211 smc_close_stream_wait(smc, timeout); in smc_close_active() 240 smc_close_stream_wait(smc, timeout); in smc_close_active() 435 long timeout; in smc_close_shutdown_write() local 438 timeout = current->flags & PF_EXITING ? in smc_close_shutdown_write() [all …]
|
/net/nfc/ |
D | digital.h | 50 u16 timeout, nfc_digital_cmd_complete_t cmd_cb, 55 struct sk_buff *skb, u16 timeout, in digital_in_send_cmd() argument 59 return digital_send_cmd(ddev, DIGITAL_CMD_IN_SEND, skb, NULL, timeout, in digital_in_send_cmd() 89 struct sk_buff *skb, u16 timeout, in digital_tg_send_cmd() argument 92 return digital_send_cmd(ddev, DIGITAL_CMD_TG_SEND, skb, NULL, timeout, in digital_tg_send_cmd() 102 static inline int digital_tg_listen(struct nfc_digital_dev *ddev, u16 timeout, in digital_tg_listen() argument 106 timeout, cb, arg); in digital_tg_listen()
|
/net/ipv4/ |
D | tcp_recovery.c | 116 u32 timeout; in tcp_rack_mark_lost() local 123 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_mark_lost() 124 if (timeout) { in tcp_rack_mark_lost() 125 timeout = usecs_to_jiffies(timeout) + TCP_TIMEOUT_MIN; in tcp_rack_mark_lost() 127 timeout, inet_csk(sk)->icsk_rto); in tcp_rack_mark_lost() 169 u32 timeout, prior_inflight; in tcp_rack_reo_timeout() local 172 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_reo_timeout()
|
D | tcp_timer.c | 168 unsigned int linear_backoff_thresh, timeout; in tcp_model_timeout() local 172 timeout = ((2 << boundary) - 1) * rto_base; in tcp_model_timeout() 174 timeout = ((2 << linear_backoff_thresh) - 1) * rto_base + in tcp_model_timeout() 176 return jiffies_to_msecs(timeout); in tcp_model_timeout() 193 unsigned int timeout) in retransmits_timed_out() argument 201 if (likely(timeout == 0)) { in retransmits_timed_out() 206 timeout = tcp_model_timeout(sk, boundary, rto_base); in retransmits_timed_out() 209 return (s32)(tcp_time_stamp(tcp_sk(sk)) - start_ts - timeout) >= 0; in retransmits_timed_out() 281 if (time_after(icsk->icsk_ack.timeout, jiffies)) { in tcp_delack_timer_handler() 282 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in tcp_delack_timer_handler()
|
D | inetpeer.c | 273 bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout) in inet_peer_xrlim_allow() argument 285 if (token > XRLIM_BURST_FACTOR * timeout) in inet_peer_xrlim_allow() 286 token = XRLIM_BURST_FACTOR * timeout; in inet_peer_xrlim_allow() 287 if (token >= timeout) { in inet_peer_xrlim_allow() 288 token -= timeout; in inet_peer_xrlim_allow()
|
/net/netfilter/ipset/ |
D | ip_set_bitmap_ipmac.c | 116 bitmap_ipmac_add_timeout(unsigned long *timeout, in bitmap_ipmac_add_timeout() argument 121 u32 t = ext->timeout; in bitmap_ipmac_add_timeout() 124 if (t == set->timeout) in bitmap_ipmac_add_timeout() 126 t = *timeout; in bitmap_ipmac_add_timeout() 127 ip_set_timeout_set(timeout, t); in bitmap_ipmac_add_timeout() 135 ip_set_timeout_set(timeout, t); in bitmap_ipmac_add_timeout() 137 *timeout = t; in bitmap_ipmac_add_timeout() 288 a->timeout == b->timeout && in bitmap_ipmac_same_set() 308 set->timeout = IPSET_NO_TIMEOUT; in init_map_ipmac() 370 set->timeout = ip_set_timeout_uget(tb[IPSET_ATTR_TIMEOUT]); in bitmap_ipmac_create()
|
/net/tipc/ |
D | subscr.c | 136 u32 timeout; in tipc_sub_subscribe() local 161 timeout = tipc_sub_read(&sub->evt.s, timeout); in tipc_sub_subscribe() 162 if (timeout != TIPC_WAIT_FOREVER) in tipc_sub_subscribe() 163 mod_timer(&sub->timer, jiffies + msecs_to_jiffies(timeout)); in tipc_sub_subscribe() 170 if (sub->evt.s.timeout != TIPC_WAIT_FOREVER) in tipc_sub_unsubscribe()
|
/net/vmw_vsock/ |
D | af_vsock.c | 1129 long timeout; in vsock_stream_connect() local 1196 timeout = vsk->connect_timeout; in vsock_stream_connect() 1208 schedule_delayed_work(&vsk->connect_work, timeout); in vsock_stream_connect() 1215 timeout = schedule_timeout(timeout); in vsock_stream_connect() 1219 err = sock_intr_errno(timeout); in vsock_stream_connect() 1224 } else if (timeout == 0) { in vsock_stream_connect() 1257 long timeout; in vsock_accept() local 1278 timeout = sock_sndtimeo(listener, flags & O_NONBLOCK); in vsock_accept() 1284 timeout = schedule_timeout(timeout); in vsock_accept() 1289 err = sock_intr_errno(timeout); in vsock_accept() [all …]
|
/net/sunrpc/ |
D | sched.c | 67 unsigned long timeout = READ_ONCE(task->tk_timeout); in rpc_task_timeout() local 69 if (timeout != 0) { in rpc_task_timeout() 71 if (time_before(now, timeout)) in rpc_task_timeout() 72 return timeout - now; in rpc_task_timeout() 112 unsigned long timeout) in __rpc_add_timer() argument 115 task->tk_pid, jiffies_to_msecs(timeout - jiffies)); in __rpc_add_timer() 117 task->tk_timeout = timeout; in __rpc_add_timer() 118 if (list_empty(&queue->timer_list.list) || time_before(timeout, queue->timer_list.expires)) in __rpc_add_timer() 119 rpc_set_queue_timer(queue, timeout); in __rpc_add_timer() 399 struct rpc_task *task, unsigned long timeout, in __rpc_sleep_on_priority_timeout() argument [all …]
|
/net/9p/ |
D | trans_rdma.c | 83 long timeout; member 127 long timeout; member 160 if (rdma->timeout != P9_RDMA_TIMEOUT) in p9_rdma_show_options() 161 seq_printf(m, ",timeout=%lu", rdma->timeout); in p9_rdma_show_options() 184 opts->timeout = P9_RDMA_TIMEOUT; in parse_opts() 223 opts->timeout = option; in parse_opts() 574 rdma->timeout = opts->timeout; in alloc_rdma() 672 rdma->timeout); in rdma_create_trans() 680 err = rdma_resolve_route(rdma->cm_id, rdma->timeout); in rdma_create_trans()
|
/net/llc/ |
D | af_llc.c | 43 static bool llc_ui_wait_for_conn(struct sock *sk, long timeout); 44 static int llc_ui_wait_for_disc(struct sock *sk, long timeout); 45 static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout); 126 long timeout = sock_sndtimeo(sk, noblock); in llc_ui_send_data() local 129 rc = llc_ui_wait_for_busy_core(sk, timeout); in llc_ui_send_data() 551 static int llc_ui_wait_for_disc(struct sock *sk, long timeout) in llc_ui_wait_for_disc() argument 558 if (sk_wait_event(sk, &timeout, sk->sk_state == TCP_CLOSE, &wait)) in llc_ui_wait_for_disc() 564 if (!timeout) in llc_ui_wait_for_disc() 572 static bool llc_ui_wait_for_conn(struct sock *sk, long timeout) in llc_ui_wait_for_conn() argument 578 if (sk_wait_event(sk, &timeout, sk->sk_state != TCP_SYN_SENT, &wait)) in llc_ui_wait_for_conn() [all …]
|