/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 | 25 u64 timeout; member 52 u64 timeout; in nft_dynset_new() local 58 timeout = priv->timeout ? : set->timeout; in nft_dynset_new() 62 timeout, 0, GFP_ATOMIC); in nft_dynset_new() 88 u64 timeout; in nft_dynset_eval() local 103 timeout = priv->timeout ? : set->timeout; in nft_dynset_eval() 104 *nft_set_ext_expiration(ext) = get_jiffies_64() + timeout; in nft_dynset_eval() 139 u64 timeout; in nft_dynset_init() local 177 timeout = 0; in nft_dynset_init() 182 err = nf_msecs_to_jiffies64(tb[NFTA_DYNSET_TIMEOUT], &timeout); 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() 287 unsigned int *timeout = data; in icmpv6_timeout_nlattr_to_obj() local 290 if (!timeout) in icmpv6_timeout_nlattr_to_obj() 291 timeout = icmpv6_get_timeouts(net); in icmpv6_timeout_nlattr_to_obj() 293 *timeout = in icmpv6_timeout_nlattr_to_obj() 297 *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 | nft_ct.c | 821 struct nf_ct_timeout *timeout; member 831 struct nf_conn_timeout *timeout; in nft_ct_timeout_obj_eval() local 840 timeout = nf_ct_timeout_find(ct); in nft_ct_timeout_obj_eval() 841 if (!timeout) { in nft_ct_timeout_obj_eval() 842 timeout = nf_ct_timeout_ext_add(ct, priv->timeout, GFP_ATOMIC); in nft_ct_timeout_obj_eval() 843 if (!timeout) { in nft_ct_timeout_obj_eval() 849 rcu_assign_pointer(timeout->timeout, priv->timeout); in nft_ct_timeout_obj_eval() 854 values = nf_ct_timeout_data(timeout); in nft_ct_timeout_obj_eval() 865 struct nf_ct_timeout *timeout; in nft_ct_timeout_obj_init() local 887 timeout = kzalloc(sizeof(struct nf_ct_timeout) + in nft_ct_timeout_obj_init() [all …]
|
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 | 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() 217 u16 buf_size, u16 timeout, in ieee80211_send_addba_resp() argument 260 mgmt->u.action.u.addba_resp.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_resp() 270 u8 dialog_token, u16 timeout, in ___ieee80211_start_rx_ba_session() argument 282 .timeout = timeout, in ___ieee80211_start_rx_ba_session() 359 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() 309 .timeout = 0, in ___ieee80211_stop_tx_ba_session() 485 buf_size, tid_tx->timeout); in ieee80211_send_addba_with_timeout() 499 .timeout = 0, in ieee80211_tx_ba_session_handle_start() 553 unsigned long timeout; in sta_tx_agg_session_timer_expired() local 559 timeout = tid_tx->last_tx + TU_TO_JIFFIES(tid_tx->timeout); in sta_tx_agg_session_timer_expired() 560 if (time_is_after_jiffies(timeout)) { in sta_tx_agg_session_timer_expired() 561 mod_timer(&tid_tx->session_timer, timeout); in sta_tx_agg_session_timer_expired() 572 u16 timeout) in ieee80211_start_tx_ba_session() argument [all …]
|
/net/ipv4/ |
D | tcp_recovery.c | 117 u32 timeout; in tcp_rack_mark_lost() local 124 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_mark_lost() 125 if (timeout) { in tcp_rack_mark_lost() 126 timeout = usecs_to_jiffies(timeout + TCP_TIMEOUT_MIN_US); in tcp_rack_mark_lost() 128 timeout, inet_csk(sk)->icsk_rto); in tcp_rack_mark_lost() 130 return !!timeout; in tcp_rack_mark_lost() 171 u32 timeout, prior_inflight; in tcp_rack_reo_timeout() local 174 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_reo_timeout()
|
D | tcp_timer.c | 186 unsigned int linear_backoff_thresh, timeout; in tcp_model_timeout() local 190 timeout = ((2 << boundary) - 1) * rto_base; in tcp_model_timeout() 192 timeout = ((2 << linear_backoff_thresh) - 1) * rto_base + in tcp_model_timeout() 194 return jiffies_to_msecs(timeout); in tcp_model_timeout() 211 unsigned int timeout) in retransmits_timed_out() argument 219 if (likely(timeout == 0)) { in retransmits_timed_out() 224 timeout = tcp_model_timeout(sk, boundary, rto_base); in retransmits_timed_out() 227 return (s32)(tcp_time_stamp(tcp_sk(sk)) - start_ts - timeout) >= 0; in retransmits_timed_out() 299 if (time_after(icsk->icsk_ack.timeout, jiffies)) { in tcp_delack_timer_handler() 300 sk_reset_timer(sk, &icsk->icsk_delack_timer, icsk->icsk_ack.timeout); in tcp_delack_timer_handler()
|
D | inetpeer.c | 277 bool inet_peer_xrlim_allow(struct inet_peer *peer, int timeout) in inet_peer_xrlim_allow() argument 289 if (token > XRLIM_BURST_FACTOR * timeout) in inet_peer_xrlim_allow() 290 token = XRLIM_BURST_FACTOR * timeout; in inet_peer_xrlim_allow() 291 if (token >= timeout) { in inet_peer_xrlim_allow() 292 token -= timeout; in inet_peer_xrlim_allow()
|
/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 188 timeout = current->flags & PF_EXITING ? in smc_close_active() 212 smc_close_stream_wait(smc, timeout); in smc_close_active() 250 smc_close_stream_wait(smc, timeout); in smc_close_active() 445 long timeout; in smc_close_shutdown_write() local 448 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/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 | 1130 long timeout; in vsock_stream_connect() local 1199 timeout = vsk->connect_timeout; in vsock_stream_connect() 1217 timeout)) in vsock_stream_connect() 1225 timeout = schedule_timeout(timeout); in vsock_stream_connect() 1229 err = sock_intr_errno(timeout); in vsock_stream_connect() 1235 } else if ((sk->sk_state != TCP_ESTABLISHED) && (timeout == 0)) { in vsock_stream_connect() 1268 long timeout; in vsock_accept() local 1289 timeout = sock_rcvtimeo(listener, flags & O_NONBLOCK); in vsock_accept() 1295 timeout = schedule_timeout(timeout); in vsock_accept() 1300 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() 404 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() 583 rdma->timeout = opts->timeout; in alloc_rdma() 681 rdma->timeout); in rdma_create_trans() 689 err = rdma_resolve_route(rdma->cm_id, rdma->timeout); in rdma_create_trans()
|
/net/bluetooth/ |
D | hci_request.c | 128 const void *param, u8 event, u32 timeout) in __hci_cmd_sync_ev() argument 147 hdev->req_status != HCI_REQ_PEND, timeout); in __hci_cmd_sync_ev() 185 const void *param, u32 timeout) in __hci_cmd_sync() argument 187 return __hci_cmd_sync_ev(hdev, opcode, plen, param, 0, timeout); in __hci_cmd_sync() 194 unsigned long opt, u32 timeout, u8 *hci_status) in __hci_req_sync() argument 234 hdev->req_status != HCI_REQ_PEND, timeout); in __hci_req_sync() 270 unsigned long opt, u32 timeout, u8 *hci_status) in hci_req_sync() argument 281 ret = __hci_req_sync(hdev, req, opt, timeout, hci_status); in hci_req_sync() 1742 u16 timeout; in __hci_req_schedule_adv_instance() local 1763 if (adv_instance->timeout == 0 || in __hci_req_schedule_adv_instance() [all …]
|