Home
last modified time | relevance | path

Searched refs:timeout (Results 1 – 25 of 142) sorted by relevance

123456

/net/netfilter/
Dnfnetlink_cttimeout.c52 ctnl_timeout_parse_policy(struct ctnl_timeout *timeout, in ctnl_timeout_parse_policy() argument
66 &timeout->data); in ctnl_timeout_parse_policy()
79 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local
94 list_for_each_entry(timeout, &cttimeout_list, head) { in cttimeout_new_timeout()
95 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout()
101 matching = timeout; in cttimeout_new_timeout()
132 timeout = kzalloc(sizeof(struct ctnl_timeout) + in cttimeout_new_timeout()
134 if (timeout == NULL) { in cttimeout_new_timeout()
139 ret = ctnl_timeout_parse_policy(timeout, l4proto, net, in cttimeout_new_timeout()
144 strcpy(timeout->name, nla_data(cda[CTA_TIMEOUT_NAME])); in cttimeout_new_timeout()
[all …]
Dnf_conntrack_proto_generic.c50 return &(generic_pernet(net)->timeout); in generic_get_timeouts()
60 unsigned int *timeout) in generic_packet() argument
62 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in generic_packet()
81 unsigned int *timeout = data; in generic_timeout_nlattr_to_obj() local
85 *timeout = in generic_timeout_nlattr_to_obj()
89 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj()
98 const unsigned int *timeout = data; in generic_timeout_obj_to_nlattr() local
100 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / HZ))) in generic_timeout_obj_to_nlattr()
148 pn->ctl_table[0].data = &gn->timeout; in generic_kmemdup_sysctl_table()
164 pn->ctl_compat_table[0].data = &gn->timeout; in generic_kmemdup_compat_sysctl_table()
[all …]
Dnf_conntrack_netbios_ns.c35 static unsigned int timeout __read_mostly = 3;
36 module_param(timeout, uint, S_IRUSR);
37 MODULE_PARM_DESC(timeout, "timeout for master connection/replies in seconds");
46 return nf_conntrack_broadcast_help(skb, protoff, ct, ctinfo, timeout); in netbios_ns_help()
61 exp_policy.timeout = timeout; in nf_conntrack_netbios_ns_init()
Dxt_CT.c105 static void __xt_ct_tg_timeout_put(struct ctnl_timeout *timeout) in __xt_ct_tg_timeout_put() argument
111 timeout_put(timeout); in __xt_ct_tg_timeout_put()
121 struct ctnl_timeout *timeout; in xt_ct_set_timeout() local
143 timeout = timeout_find_get(timeout_name); in xt_ct_set_timeout()
144 if (timeout == NULL) { in xt_ct_set_timeout()
150 if (timeout->l3num != par->family) { in xt_ct_set_timeout()
153 "number %d\n", timeout_name, timeout->l3num); in xt_ct_set_timeout()
160 if (timeout->l4proto->l4proto != l4proto->l4proto) { in xt_ct_set_timeout()
164 timeout_name, timeout->l4proto->l4proto); in xt_ct_set_timeout()
167 timeout_ext = nf_ct_timeout_ext_add(ct, timeout, GFP_ATOMIC); in xt_ct_set_timeout()
[all …]
Dnf_conntrack_snmp.c28 static unsigned int timeout __read_mostly = 30;
29 module_param(timeout, uint, S_IRUSR);
30 MODULE_PARM_DESC(timeout, "timeout for master connection/replies in seconds");
43 nf_conntrack_broadcast_help(skb, protoff, ct, ctinfo, timeout); in snmp_conntrack_help()
68 exp_policy.timeout = timeout; in nf_conntrack_snmp_init()
Dnf_conntrack_expect.c50 NF_CT_ASSERT(!timer_pending(&exp->timeout)); in nf_ct_unlink_expect_report()
161 } else if (del_timer(&exp->timeout)) { in nf_ct_find_expectation()
181 if (del_timer(&exp->timeout)) { in nf_ct_remove_expectations()
221 if (del_timer(&exp->timeout)) { in nf_ct_unexpect_related()
330 setup_timer(&exp->timeout, nf_ct_expectation_timed_out, in nf_ct_expect_insert()
335 exp->timeout.expires = jiffies + in nf_ct_expect_insert()
336 helper->expect_policy[exp->class].timeout * HZ; in nf_ct_expect_insert()
338 add_timer(&exp->timeout); in nf_ct_expect_insert()
356 if (last && del_timer(&last->timeout)) { in evict_oldest_expect()
381 if (del_timer(&i->timeout)) { in __nf_ct_expect_check()
[all …]
Dxt_IDLETIMER.c72 int timeout; member
93 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger()
96 temp.tv_sec = timer->timeout; in check_for_delayed_trigger()
310 info->timer->timeout = info->timeout; in idletimer_tg_create()
325 msecs_to_jiffies(info->timeout * 1000) + jiffies); in idletimer_tg_create()
375 msecs_to_jiffies(info->timeout * 1000) + now); in reset_timer()
389 info->label, info->timeout); in idletimer_tg_target()
413 if (info->timeout == 0) { in idletimer_tg_checkentry()
Dnf_conntrack_core.c208 NF_CT_ASSERT(!timer_pending(&ct->timeout)); in destroy_conntrack()
268 ecache->timeout.expires = jiffies + in death_by_event()
270 add_timer(&ecache->timeout); in death_by_event()
286 setup_timer(&ecache->timeout, death_by_event, (unsigned long)ct); in nf_ct_dying_timeout()
287 ecache->timeout.expires = jiffies + in nf_ct_dying_timeout()
289 add_timer(&ecache->timeout); in nf_ct_dying_timeout()
445 add_timer(&ct->timeout); in nf_conntrack_hash_check_insert()
533 ct->timeout.expires += jiffies; in __nf_conntrack_confirm()
534 add_timer(&ct->timeout); in __nf_conntrack_confirm()
645 if (del_timer(&ct->timeout)) { in early_drop()
[all …]
/net/irda/
Dtimer.c44 void irlap_start_slot_timer(struct irlap_cb *self, int timeout) in irlap_start_slot_timer() argument
46 irda_start_timer(&self->slot_timer, timeout, (void *) self, in irlap_start_slot_timer()
52 int timeout; in irlap_start_query_timer() local
63 timeout = ((sysctl_slot_timeout * HZ / 1000) * (S - s) in irlap_start_query_timer()
69 irda_start_timer( &self->query_timer, timeout, (void *) self, in irlap_start_query_timer()
73 void irlap_start_final_timer(struct irlap_cb *self, int timeout) in irlap_start_final_timer() argument
75 irda_start_timer(&self->final_timer, timeout, (void *) self, in irlap_start_final_timer()
79 void irlap_start_wd_timer(struct irlap_cb *self, int timeout) in irlap_start_wd_timer() argument
81 irda_start_timer(&self->wd_timer, timeout, (void *) self, in irlap_start_wd_timer()
85 void irlap_start_backoff_timer(struct irlap_cb *self, int timeout) in irlap_start_backoff_timer() argument
[all …]
Dirda_device.c195 int timeout; in irda_task_kick() local
204 timeout = task->function(task); in irda_task_kick()
211 } while ((timeout == 0) && (task->state != IRDA_TASK_DONE)); in irda_task_kick()
213 if (timeout < 0) { in irda_task_kick()
241 } else if (timeout > 0) { in irda_task_kick()
242 irda_start_timer(&task->timer, timeout, (void *) task, in irda_task_kick()
/net/netfilter/ipset/
Dip_set_bitmap_ipmac.c51 u32 timeout; /* timeout value */ member
118 bitmap_ipmac_add_timeout(unsigned long *timeout, in bitmap_ipmac_add_timeout() argument
123 u32 t = ext->timeout; in bitmap_ipmac_add_timeout()
126 if (t == map->timeout) in bitmap_ipmac_add_timeout()
128 t = *timeout; in bitmap_ipmac_add_timeout()
129 ip_set_timeout_set(timeout, t); in bitmap_ipmac_add_timeout()
136 ip_set_timeout_set(timeout, t); in bitmap_ipmac_add_timeout()
138 *timeout = t; in bitmap_ipmac_add_timeout()
182 ip_set_timeout_stored(struct bitmap_ipmac *map, u32 id, unsigned long *timeout) in ip_set_timeout_stored() argument
187 return elem->filled == MAC_FILLED ? ip_set_timeout_get(timeout) : in ip_set_timeout_stored()
[all …]
Dip_set_bitmap_port.c43 u32 timeout; /* timeout parameter */ member
194 x->timeout == y->timeout && in bitmap_port_same_set()
206 unsigned long timeout; member
218 unsigned long timeout; member
242 map->timeout = IPSET_NO_TIMEOUT; in init_map_port()
286 offsetof(struct bitmap_portct_elem, timeout); in bitmap_port_create()
294 map->timeout = in bitmap_port_create()
310 offsetof(struct bitmap_portt_elem, timeout); in bitmap_port_create()
316 map->timeout = ip_set_timeout_uget(tb[IPSET_ATTR_TIMEOUT]); in bitmap_port_create()
Dip_set_list_set.c35 unsigned long timeout; member
50 unsigned long timeout; member
64 u32 timeout; /* timeout value */ member
221 ip_set_timeout_set(ext_timeout(e, map), ext->timeout); in list_set_add()
323 ip_set_timeout_set(ext_timeout(e, map), ext->timeout); in list_set_uadd()
489 nla_put_net32(skb, IPSET_ATTR_TIMEOUT, htonl(map->timeout))) || in list_set_head()
568 x->timeout == y->timeout && in list_set_same_set()
597 map->gc.expires = jiffies + IPSET_GC_PERIOD(map->timeout) * HZ; in list_set_gc()
609 map->gc.expires = jiffies + IPSET_GC_PERIOD(map->timeout) * HZ; in list_set_gc_init()
617 unsigned long timeout) in init_list_set() argument
[all …]
Dip_set_bitmap_ip.c50 u32 timeout; /* timeout parameter */ member
203 x->timeout == y->timeout && in bitmap_ip_same_set()
215 unsigned long timeout; member
227 unsigned long timeout; member
255 map->timeout = IPSET_NO_TIMEOUT; in init_map_ip()
346 offsetof(struct bitmap_ipct_elem, timeout); in bitmap_ip_create()
356 map->timeout = ip_set_timeout_uget( in bitmap_ip_create()
375 offsetof(struct bitmap_ipt_elem, timeout); in bitmap_ip_create()
383 map->timeout = ip_set_timeout_uget(tb[IPSET_ATTR_TIMEOUT]); in bitmap_ip_create()
Dip_set_hash_gen.h276 u32 timeout; /* timeout value, if enabled */ member
413 h->gc.expires = jiffies + IPSET_GC_PERIOD(h->timeout) * HZ; in mtype_gc_init()
416 IPSET_GC_PERIOD(h->timeout)); in mtype_gc_init()
427 x->timeout == y->timeout && in mtype_same_set()
493 h->gc.expires = jiffies + IPSET_GC_PERIOD(h->timeout) * HZ; in mtype_gc()
664 ip_set_timeout_set(ext_timeout(data, h), ext->timeout); in mtype_add()
837 nla_put_net32(skb, IPSET_ATTR_TIMEOUT, htonl(h->timeout))) || in mtype_head()
1004 h->timeout = IPSET_NO_TIMEOUT; in TOKEN()
1030 h->timeout = in TOKEN()
1038 timeout); in TOKEN()
[all …]
/net/mac80211/
Dagg-rx.c145 unsigned long timeout; in sta_rx_agg_session_timer_expired() local
154 timeout = tid_rx->last_rx + TU_TO_JIFFIES(tid_rx->timeout); in sta_rx_agg_session_timer_expired()
155 if (time_is_after_jiffies(timeout)) { in sta_rx_agg_session_timer_expired()
156 mod_timer(&tid_rx->session_timer, timeout); in sta_rx_agg_session_timer_expired()
183 u16 buf_size, u16 timeout) in ieee80211_send_addba_resp() argument
221 mgmt->u.action.u.addba_resp.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_resp()
233 u16 capab, tid, timeout, ba_policy, buf_size, start_seq_num, status; in ieee80211_process_addba_request() local
239 timeout = le16_to_cpu(mgmt->u.action.u.addba_req.timeout); in ieee80211_process_addba_request()
337 tid_agg_rx->timeout = timeout; in ieee80211_process_addba_request()
344 if (timeout) { in ieee80211_process_addba_request()
[all …]
Dagg-tx.c65 u16 agg_size, u16 timeout) in ieee80211_send_addba_request() argument
106 mgmt->u.action.u.addba_req.timeout = cpu_to_le16(timeout); in ieee80211_send_addba_request()
462 tid_tx->timeout); in ieee80211_tx_ba_session_handle_start()
480 unsigned long timeout; in sta_tx_agg_session_timer_expired() local
489 timeout = tid_tx->last_tx + TU_TO_JIFFIES(tid_tx->timeout); in sta_tx_agg_session_timer_expired()
490 if (time_is_after_jiffies(timeout)) { in sta_tx_agg_session_timer_expired()
491 mod_timer(&tid_tx->session_timer, timeout); in sta_tx_agg_session_timer_expired()
505 u16 timeout) in ieee80211_start_tx_ba_session() argument
603 tid_tx->timeout = timeout; in ieee80211_start_tx_ba_session()
919 if (tid_tx->timeout) { in ieee80211_process_addba_resp()
[all …]
/net/ipv4/netfilter/
Dnf_conntrack_proto_icmp.c86 return &icmp_pernet(net)->timeout; in icmp_get_timeouts()
96 unsigned int *timeout) in icmp_packet() argument
101 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in icmp_packet()
286 unsigned int *timeout = data; in icmp_timeout_nlattr_to_obj() local
290 *timeout = in icmp_timeout_nlattr_to_obj()
294 *timeout = in->timeout; in icmp_timeout_nlattr_to_obj()
302 const unsigned int *timeout = data; in icmp_timeout_obj_to_nlattr() local
304 if (nla_put_be32(skb, CTA_TIMEOUT_ICMP_TIMEOUT, htonl(*timeout / HZ))) in icmp_timeout_obj_to_nlattr()
351 pn->ctl_table[0].data = &in->timeout; in icmp_kmemdup_sysctl_table()
367 pn->ctl_compat_table[0].data = &in->timeout; in icmp_kmemdup_compat_sysctl_table()
[all …]
/net/ipv6/netfilter/
Dnf_conntrack_proto_icmpv6.c98 return &icmpv6_pernet(net)->timeout; in icmpv6_get_timeouts()
108 unsigned int *timeout) in icmpv6_packet() argument
113 nf_ct_refresh_acct(ct, ctinfo, skb, *timeout); in icmpv6_packet()
293 unsigned int *timeout = data; in icmpv6_timeout_nlattr_to_obj() local
297 *timeout = in icmpv6_timeout_nlattr_to_obj()
301 *timeout = in->timeout; in icmpv6_timeout_nlattr_to_obj()
309 const unsigned int *timeout = data; in icmpv6_timeout_obj_to_nlattr() local
311 if (nla_put_be32(skb, CTA_TIMEOUT_ICMPV6_TIMEOUT, htonl(*timeout / HZ))) in icmpv6_timeout_obj_to_nlattr()
347 pn->ctl_table[0].data = &in->timeout; in icmpv6_kmemdup_sysctl_table()
357 in->timeout = nf_ct_icmpv6_timeout; in icmpv6_init_net()
/net/vmw_vsock/
Daf_vsock.c1120 long timeout; in vsock_stream_connect() local
1195 timeout = vsk->connect_timeout; in vsock_stream_connect()
1209 schedule_delayed_work(&vsk->dwork, timeout); in vsock_stream_connect()
1216 timeout = schedule_timeout(timeout); in vsock_stream_connect()
1220 err = sock_intr_errno(timeout); in vsock_stream_connect()
1222 } else if (timeout == 0) { in vsock_stream_connect()
1254 long timeout; in vsock_accept() local
1275 timeout = sock_sndtimeo(listener, flags & O_NONBLOCK); in vsock_accept()
1281 timeout = schedule_timeout(timeout); in vsock_accept()
1285 err = sock_intr_errno(timeout); in vsock_accept()
[all …]
/net/tipc/
Dsubscr.c163 if (sub->timeout == TIPC_WAIT_FOREVER) { in subscr_timeout()
228 if (sub->timeout != TIPC_WAIT_FOREVER) { in subscr_terminate()
275 if (sub->timeout != TIPC_WAIT_FOREVER) { in subscr_cancel()
276 sub->timeout = TIPC_WAIT_FOREVER; in subscr_cancel()
326 sub->timeout = htohl(s->timeout, swap); in subscr_subscribe()
342 if (sub->timeout != TIPC_WAIT_FOREVER) { in subscr_subscribe()
345 k_start_timer(&sub->timer, sub->timeout); in subscr_subscribe()
Dsocket.c892 long timeout; in recv_msg() local
911 timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in recv_msg()
920 if (timeout <= 0L) { in recv_msg()
921 res = timeout ? timeout : -EWOULDBLOCK; in recv_msg()
925 timeout = wait_event_interruptible_timeout(*sk_sleep(sk), in recv_msg()
927 timeout); in recv_msg()
1001 long timeout; in recv_stream() local
1024 timeout = sock_rcvtimeo(sk, flags & MSG_DONTWAIT); in recv_stream()
1033 if (timeout <= 0L) { in recv_stream()
1034 res = timeout ? timeout : -EWOULDBLOCK; in recv_stream()
[all …]
/net/core/
Dstream.c95 void sk_stream_wait_close(struct sock *sk, long timeout) in sk_stream_wait_close() argument
97 if (timeout) { in sk_stream_wait_close()
103 if (sk_wait_event(sk, &timeout, !sk_stream_closing(sk))) in sk_stream_wait_close()
105 } while (!signal_pending(current) && timeout); in sk_stream_wait_close()
/net/llc/
Daf_llc.c41 static int llc_ui_wait_for_conn(struct sock *sk, long timeout);
42 static int llc_ui_wait_for_disc(struct sock *sk, long timeout);
43 static int llc_ui_wait_for_busy_core(struct sock *sk, long timeout);
123 long timeout = sock_sndtimeo(sk, noblock); in llc_ui_send_data() local
125 rc = llc_ui_wait_for_busy_core(sk, timeout); in llc_ui_send_data()
533 static int llc_ui_wait_for_disc(struct sock *sk, long timeout) in llc_ui_wait_for_disc() argument
540 if (sk_wait_event(sk, &timeout, sk->sk_state == TCP_CLOSE)) in llc_ui_wait_for_disc()
546 if (!timeout) in llc_ui_wait_for_disc()
554 static int llc_ui_wait_for_conn(struct sock *sk, long timeout) in llc_ui_wait_for_conn() argument
560 if (sk_wait_event(sk, &timeout, sk->sk_state != TCP_SYN_SENT)) in llc_ui_wait_for_conn()
[all …]
/net/netrom/
Dnr_subr.c127 int len, timeout; in nr_write_internal() local
159 timeout = nr->t1 / HZ; in nr_write_internal()
176 *dptr++ = timeout % 256; in nr_write_internal()
177 *dptr++ = timeout / 256; in nr_write_internal()

123456