Home
last modified time | relevance | path

Searched refs:timer (Results 1 – 25 of 79) sorted by relevance

1234

/net/netfilter/
Dxt_IDLETIMER.c43 struct timer_list timer; member
69 static bool check_for_delayed_trigger(struct idletimer_tg *timer, in check_for_delayed_trigger() argument
75 timer->work_pending = false; in check_for_delayed_trigger()
76 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger()
77 timer->delayed_timer_trigger.tv_sec != 0) { in check_for_delayed_trigger()
79 temp.tv_sec = timer->timeout; in check_for_delayed_trigger()
81 if (timer->delayed_timer_trigger.tv_sec != 0) { in check_for_delayed_trigger()
82 temp = timespec64_add(timer->delayed_timer_trigger, in check_for_delayed_trigger()
86 timer->delayed_timer_trigger.tv_sec = 0; in check_for_delayed_trigger()
87 timer->work_pending = true; in check_for_delayed_trigger()
[all …]
Dxt_LED.c36 struct timer_list timer; member
53 timer_pending(&ledinternal->timer)) in led_tg()
61 mod_timer(&ledinternal->timer, in led_tg()
77 timer); in led_timeout_callback()
132 timer_setup(&ledinternal->timer, led_timeout_callback, 0); in led_tg_check()
169 del_timer_sync(&ledinternal->timer); in led_tg_destroy()
/net/rose/
Drose_timer.c46 sk_stop_timer(sk, &rose->timer); in rose_start_t1timer()
48 rose->timer.function = rose_timer_expiry; in rose_start_t1timer()
49 rose->timer.expires = jiffies + rose->t1; in rose_start_t1timer()
51 sk_reset_timer(sk, &rose->timer, rose->timer.expires); in rose_start_t1timer()
58 sk_stop_timer(sk, &rose->timer); in rose_start_t2timer()
60 rose->timer.function = rose_timer_expiry; in rose_start_t2timer()
61 rose->timer.expires = jiffies + rose->t2; in rose_start_t2timer()
63 sk_reset_timer(sk, &rose->timer, rose->timer.expires); in rose_start_t2timer()
70 sk_stop_timer(sk, &rose->timer); in rose_start_t3timer()
72 rose->timer.function = rose_timer_expiry; in rose_start_t3timer()
[all …]
/net/sunrpc/
Dtimer.c61 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument
65 if (timer-- == 0) in rpc_update_rtt()
75 srtt = (long *)&rt->srtt[timer]; in rpc_update_rtt()
82 sdrtt = (long *)&rt->sdrtt[timer]; in rpc_update_rtt()
110 unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) in rpc_calc_rto() argument
114 if (timer-- == 0) in rpc_calc_rto()
117 res = ((rt->srtt[timer] + 7) >> 3) + rt->sdrtt[timer]; in rpc_calc_rto()
Dxprt.c800 mod_timer(&xprt->timer, xprt->last_used + xprt->idle_timeout); in xprt_schedule_autodisconnect()
806 struct rpc_xprt *xprt = from_timer(xprt, t, timer); in xprt_init_autodisconnect()
1102 del_singleshot_timer_sync(&xprt->timer); in xprt_request_enqueue_receive()
1130 unsigned int timer = task->tk_msg.rpc_proc->p_timer; in xprt_update_rtt() local
1133 if (timer) { in xprt_update_rtt()
1135 rpc_update_rtt(rtt, timer, m); in xprt_update_rtt()
1136 rpc_set_timeo(rtt, timer, req->rq_ntrans - 1); in xprt_update_rtt()
1179 if (xprt->ops->timer) in xprt_timer()
1180 xprt->ops->timer(xprt, task); in xprt_timer()
1212 int timer = task->tk_msg.rpc_proc->p_timer; in xprt_wait_for_reply_request_rtt() local
[all …]
/net/bridge/
Dbr_multicast.c144 struct net_bridge_mdb_entry *mp = from_timer(mp, t, timer); in br_multicast_group_expired()
148 if (!netif_running(br->dev) || timer_pending(&mp->timer)) in br_multicast_group_expired()
185 del_timer(&p->timer); in br_multicast_del_pg()
192 mod_timer(&mp->timer, jiffies); in br_multicast_del_pg()
202 struct net_bridge_port_group *pg = from_timer(pg, t, timer); in br_multicast_port_group_expired()
206 if (!netif_running(br->dev) || timer_pending(&pg->timer) || in br_multicast_port_group_expired()
460 timer_setup(&mp->timer, br_multicast_group_expired, 0); in br_multicast_new_group()
491 timer_setup(&p->timer, br_multicast_port_group_expired, 0); in br_multicast_new_port_group()
522 mod_timer(&mp->timer, jiffies + mp->br->multicast_membership_interval); in br_multicast_host_join()
577 mod_timer(&p->timer, now + br->multicast_membership_interval); in br_multicast_add_group()
[all …]
Dbr_stp_timer.c157 unsigned long br_timer_value(const struct timer_list *timer) in br_timer_value() argument
159 return timer_pending(timer) in br_timer_value()
160 ? jiffies_delta_to_clock_t(timer->expires - jiffies) : 0; in br_timer_value()
/net/x25/
Dx25_timer.c31 timer_setup(&x25->timer, x25_timer_expiry, 0); in x25_init_timers()
51 mod_timer(&x25->timer, jiffies + x25->t2); in x25_start_t2timer()
58 mod_timer(&x25->timer, jiffies + x25->t21); in x25_start_t21timer()
65 mod_timer(&x25->timer, jiffies + x25->t22); in x25_start_t22timer()
72 mod_timer(&x25->timer, jiffies + x25->t23); in x25_start_t23timer()
77 del_timer(&x25_sk(sk)->timer); in x25_stop_timer()
84 if (!timer_pending(&x25->timer)) in x25_display_timer()
87 return x25->timer.expires - jiffies; in x25_display_timer()
159 struct x25_sock *x25 = from_timer(x25, t, timer); in x25_timer_expiry()
/net/ax25/
Dax25_timer.c41 timer_setup(&ax25->timer, ax25_heartbeat_expiry, 0); in ax25_setup_timers()
50 mod_timer(&ax25->timer, jiffies + 5 * HZ); in ax25_start_heartbeat()
81 del_timer(&ax25->timer); in ax25_stop_heartbeat()
109 unsigned long ax25_display_timer(struct timer_list *timer) in ax25_display_timer() argument
111 if (!timer_pending(timer)) in ax25_display_timer()
114 return timer->expires - jiffies; in ax25_display_timer()
122 ax25_cb *ax25 = from_timer(ax25, t, timer); in ax25_heartbeat_expiry()
/net/rxrpc/
Dnet_ns.c13 static void rxrpc_client_conn_reap_timeout(struct timer_list *timer) in rxrpc_client_conn_reap_timeout() argument
16 container_of(timer, struct rxrpc_net, client_conn_reap_timer); in rxrpc_client_conn_reap_timeout()
22 static void rxrpc_service_conn_reap_timeout(struct timer_list *timer) in rxrpc_service_conn_reap_timeout() argument
25 container_of(timer, struct rxrpc_net, service_conn_reap_timer); in rxrpc_service_conn_reap_timeout()
31 static void rxrpc_peer_keepalive_timeout(struct timer_list *timer) in rxrpc_peer_keepalive_timeout() argument
34 container_of(timer, struct rxrpc_net, peer_keepalive_timer); in rxrpc_peer_keepalive_timeout()
Dconn_object.c24 static void rxrpc_connection_timer(struct timer_list *timer) in rxrpc_connection_timer() argument
27 container_of(timer, struct rxrpc_connection, timer); in rxrpc_connection_timer()
46 timer_setup(&conn->timer, &rxrpc_connection_timer, 0); in rxrpc_alloc_connection()
362 del_timer_sync(&conn->timer); in rxrpc_destroy_connection()
/net/core/
Dgen_estimator.c58 struct timer_list timer; member
78 struct net_rate_estimator *est = from_timer(est, t, timer); in est_timer()
103 mod_timer(&est->timer, est->next_jiffies); in est_timer()
174 del_timer_sync(&old->timer); in gen_new_estimator()
180 timer_setup(&est->timer, est_timer, 0); in gen_new_estimator()
181 mod_timer(&est->timer, est->next_jiffies); in gen_new_estimator()
205 del_timer_sync(&est->timer); in gen_kill_estimator()
/net/tipc/
Ddiscover.c70 struct timer_list timer; member
281 mod_timer(&d->timer, jiffies + d->timer_intv); in tipc_disc_remove_dest()
294 struct tipc_discoverer *d = from_timer(d, t, timer); in tipc_disc_timeout()
311 mod_timer(&d->timer, jiffies + TIPC_DISC_INIT); in tipc_disc_timeout()
330 mod_timer(&d->timer, jiffies + d->timer_intv); in tipc_disc_timeout()
377 timer_setup(&d->timer, tipc_disc_timeout, 0); in tipc_disc_create()
378 mod_timer(&d->timer, jiffies + d->timer_intv); in tipc_disc_create()
390 del_timer_sync(&d->timer); in tipc_disc_delete()
415 mod_timer(&d->timer, jiffies + d->timer_intv); in tipc_disc_reset()
Dsubscr.c105 struct tipc_subscription *sub = from_timer(sub, t, timer); in tipc_sub_timeout()
160 timer_setup(&sub->timer, tipc_sub_timeout, 0); in tipc_sub_subscribe()
163 mod_timer(&sub->timer, jiffies + msecs_to_jiffies(timeout)); in tipc_sub_subscribe()
171 del_timer_sync(&sub->timer); in tipc_sub_unsubscribe()
/net/llc/
Dllc_conn.c887 timer_setup(&llc->ack_timer.timer, llc_conn_ack_tmr_cb, 0); in llc_sk_init()
890 timer_setup(&llc->pf_cycle_timer.timer, llc_conn_pf_cycle_tmr_cb, 0); in llc_sk_init()
893 timer_setup(&llc->rej_sent_timer.timer, llc_conn_rej_tmr_cb, 0); in llc_sk_init()
896 timer_setup(&llc->busy_state_timer.timer, llc_conn_busy_tmr_cb, 0); in llc_sk_init()
937 del_timer_sync(&llc->pf_cycle_timer.timer); in llc_sk_stop_all_timers()
938 del_timer_sync(&llc->ack_timer.timer); in llc_sk_stop_all_timers()
939 del_timer_sync(&llc->rej_sent_timer.timer); in llc_sk_stop_all_timers()
940 del_timer_sync(&llc->busy_state_timer.timer); in llc_sk_stop_all_timers()
942 del_timer(&llc->pf_cycle_timer.timer); in llc_sk_stop_all_timers()
943 del_timer(&llc->ack_timer.timer); in llc_sk_stop_all_timers()
[all …]
Dllc_c_ac.c54 del_timer(&llc->busy_state_timer.timer); in llc_conn_ac_clear_remote_busy()
194 del_timer(&llc->rej_sent_timer.timer); in llc_conn_ac_stop_rej_tmr_if_data_flag_eq_2()
615 mod_timer(&llc->busy_state_timer.timer, in llc_conn_ac_set_remote_busy()
848 mod_timer(&llc->pf_cycle_timer.timer, in llc_conn_ac_start_p_timer()
1114 del_timer(&llc->rej_sent_timer.timer); in llc_conn_ac_stop_other_timers()
1115 del_timer(&llc->pf_cycle_timer.timer); in llc_conn_ac_stop_other_timers()
1116 del_timer(&llc->busy_state_timer.timer); in llc_conn_ac_stop_other_timers()
1126 mod_timer(&llc->ack_timer.timer, jiffies + llc->ack_timer.expire); in llc_conn_ac_start_ack_timer()
1134 mod_timer(&llc->rej_sent_timer.timer, in llc_conn_ac_start_rej_timer()
1144 if (!timer_pending(&llc->ack_timer.timer)) in llc_conn_ac_start_ack_tmr_if_not_running()
[all …]
Dllc_proc.c194 llc->cause_flag, timer_pending(&llc->ack_timer.timer), in llc_seq_core_show()
195 timer_pending(&llc->pf_cycle_timer.timer), in llc_seq_core_show()
196 timer_pending(&llc->rej_sent_timer.timer), in llc_seq_core_show()
197 timer_pending(&llc->busy_state_timer.timer), in llc_seq_core_show()
/net/can/
Dbcm.c111 struct hrtimer timer, thrtimer; member
398 if (bcm_tx_set_expiry(op, &op->timer)) in bcm_tx_start_timer()
399 hrtimer_start_expires(&op->timer, HRTIMER_MODE_ABS_SOFT); in bcm_tx_start_timer()
405 struct bcm_op *op = container_of(hrtimer, struct bcm_op, timer); in bcm_tx_timeout_handler()
430 return bcm_tx_set_expiry(op, &op->timer) ? in bcm_tx_timeout_handler()
557 hrtimer_start(&op->timer, op->kt_ival1, HRTIMER_MODE_REL_SOFT); in bcm_rx_starttimer()
563 struct bcm_op *op = container_of(hrtimer, struct bcm_op, timer); in bcm_rx_timeout_handler()
658 hrtimer_cancel(&op->timer); in bcm_rx_handler()
740 hrtimer_cancel(&op->timer); in bcm_remove_op()
969 hrtimer_init(&op->timer, CLOCK_MONOTONIC, in bcm_tx_setup()
[all …]
/net/atm/
Dlec.c1312 del_timer(&to_remove->timer); in lec_arp_remove()
1505 del_timer_sync(&entry->timer); in lec_arp_destroy()
1514 del_timer_sync(&entry->timer); in lec_arp_destroy()
1563 timer_setup(&to_return->timer, lec_arp_expire_arp, 0); in make_entry()
1576 entry = from_timer(entry, t, timer); in lec_arp_expire_arp()
1589 mod_timer(&entry->timer, jiffies + (1 * HZ)); in lec_arp_expire_arp()
1597 struct lec_arp_table *to_remove = from_timer(to_remove, t, timer); in lec_arp_expire_vcc()
1600 del_timer(&to_remove->timer); in lec_arp_expire_vcc()
1801 entry->timer.expires = jiffies + (1 * HZ); in lec_arp_resolve()
1802 entry->timer.function = lec_arp_expire_arp; in lec_arp_resolve()
[all …]
/net/mac80211/
Dled.c260 struct tpt_led_trigger *tpt_trig = from_timer(tpt_trig, t, timer); in tpt_trig_timer()
269 mod_timer(&tpt_trig->timer, round_jiffies(jiffies + HZ)); in tpt_trig_timer()
318 timer_setup(&tpt_trig->timer, tpt_trig_timer, 0); in __ieee80211_create_tpt_led_trigger()
337 tpt_trig_timer(&tpt_trig->timer); in ieee80211_start_tpt_led_trig()
338 mod_timer(&tpt_trig->timer, round_jiffies(jiffies + HZ)); in ieee80211_start_tpt_led_trig()
350 del_timer_sync(&tpt_trig->timer); in ieee80211_stop_tpt_led_trig()
/net/netfilter/ipvs/
Dip_vs_conn.c460 mod_timer(&cp->timer, jiffies+t); in __ip_vs_conn_put_timer()
469 !timer_pending(&cp->timer)) in ip_vs_conn_put()
471 ip_vs_conn_expire(&cp->timer); in ip_vs_conn_put()
812 struct ip_vs_conn *cp = from_timer(cp, t, timer); in ip_vs_conn_expire()
826 del_timer(&cp->timer); in ip_vs_conn_expire()
891 if (timer_pending(&cp->timer) && in ip_vs_conn_expire_now()
892 time_after(cp->timer.expires, jiffies)) in ip_vs_conn_expire_now()
893 mod_timer_pending(&cp->timer, jiffies); in ip_vs_conn_expire_now()
917 timer_setup(&cp->timer, ip_vs_conn_expire, 0); in ip_vs_conn_new()
1121 jiffies_delta_to_msecs(cp->timer.expires - in ip_vs_conn_seq_show()
[all …]
/net/sctp/
Dsm_sideeffect.c1070 enum sctp_event_timeout timer, in sctp_cmd_t1_timer_update() argument
1079 asoc->timeouts[timer] *= 2; in sctp_cmd_t1_timer_update()
1080 if (asoc->timeouts[timer] > asoc->max_init_timeo) { in sctp_cmd_t1_timer_update()
1081 asoc->timeouts[timer] = asoc->max_init_timeo; in sctp_cmd_t1_timer_update()
1088 asoc->timeouts[timer]); in sctp_cmd_t1_timer_update()
1273 struct timer_list *timer; in sctp_cmd_interpreter() local
1521 timer = &asoc->timers[cmd->obj.to]; in sctp_cmd_interpreter()
1523 if (timer_pending(timer)) in sctp_cmd_interpreter()
1528 timer = &asoc->timers[cmd->obj.to]; in sctp_cmd_interpreter()
1540 if (!timer_pending(timer)) in sctp_cmd_interpreter()
[all …]
Doutput.c265 struct timer_list *timer; in sctp_packet_bundle_sack() local
267 timer = &asoc->timers[SCTP_EVENT_TIMEOUT_SACK]; in sctp_packet_bundle_sack()
270 if (timer_pending(timer)) { in sctp_packet_bundle_sack()
289 if (del_timer(timer)) in sctp_packet_bundle_sack()
607 struct timer_list *timer = in sctp_packet_transmit() local
612 if (!mod_timer(timer, jiffies + timeout)) in sctp_packet_transmit()
/net/mac802154/
Dutil.c48 enum hrtimer_restart ieee802154_xmit_ifs_timer(struct hrtimer *timer) in ieee802154_xmit_ifs_timer() argument
51 container_of(timer, struct ieee802154_local, ifs_timer); in ieee802154_xmit_ifs_timer()
/net/ipv4/
Dinet_fragment.c133 count = del_timer_sync(&fq->timer) ? 1 : 0; in inet_frags_free_cb()
196 if (del_timer(&fq->timer)) in inet_frag_kill()
261 WARN_ON(del_timer(&q->timer) != 0); in inet_frag_destroy()
289 timer_setup(&q->timer, f->frag_expire, 0); in inet_frag_alloc()
308 mod_timer(&q->timer, jiffies + fqdir->timeout); in inet_frag_create()

1234