Home
last modified time | relevance | path

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

1234

/net/netfilter/
Dxt_IDLETIMER.c62 struct timer_list timer; member
87 static bool check_for_delayed_trigger(struct idletimer_tg *timer, in check_for_delayed_trigger() argument
93 timer->work_pending = false; in check_for_delayed_trigger()
94 if ((ts->tv_sec - timer->last_modified_timer.tv_sec) > timer->timeout || in check_for_delayed_trigger()
95 timer->delayed_timer_trigger.tv_sec != 0) { in check_for_delayed_trigger()
97 temp.tv_sec = timer->timeout; in check_for_delayed_trigger()
99 if (timer->delayed_timer_trigger.tv_sec != 0) { in check_for_delayed_trigger()
100 temp = timespec_add(timer->delayed_timer_trigger, temp); in check_for_delayed_trigger()
103 timer->delayed_timer_trigger.tv_sec = 0; in check_for_delayed_trigger()
104 timer->work_pending = true; in check_for_delayed_trigger()
[all …]
Dxt_LED.c50 struct timer_list timer; member
67 timer_pending(&ledinternal->timer)) in led_tg()
75 mod_timer(&ledinternal->timer, in led_tg()
147 setup_timer(&ledinternal->timer, led_timeout_callback, in led_tg_check()
185 del_timer_sync(&ledinternal->timer); in led_tg_destroy()
/net/rose/
Drose_timer.c50 del_timer(&rose->timer); in rose_start_t1timer()
52 rose->timer.function = (TIMER_FUNC_TYPE)rose_timer_expiry; in rose_start_t1timer()
53 rose->timer.expires = jiffies + rose->t1; in rose_start_t1timer()
55 add_timer(&rose->timer); in rose_start_t1timer()
62 del_timer(&rose->timer); in rose_start_t2timer()
64 rose->timer.function = (TIMER_FUNC_TYPE)rose_timer_expiry; in rose_start_t2timer()
65 rose->timer.expires = jiffies + rose->t2; in rose_start_t2timer()
67 add_timer(&rose->timer); in rose_start_t2timer()
74 del_timer(&rose->timer); in rose_start_t3timer()
76 rose->timer.function = (TIMER_FUNC_TYPE)rose_timer_expiry; in rose_start_t3timer()
[all …]
/net/sunrpc/
Dtimer.c60 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument
64 if (timer-- == 0) in rpc_update_rtt()
74 srtt = (long *)&rt->srtt[timer]; in rpc_update_rtt()
81 sdrtt = (long *)&rt->sdrtt[timer]; in rpc_update_rtt()
109 unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) in rpc_calc_rto() argument
113 if (timer-- == 0) in rpc_calc_rto()
116 res = ((rt->srtt[timer] + 7) >> 3) + rt->sdrtt[timer]; in rpc_calc_rto()
Dxprt.c548 int timer = task->tk_msg.rpc_proc->p_timer; in xprt_set_retrans_timeout_rtt() local
554 task->tk_timeout = rpc_calc_rto(rtt, timer); in xprt_set_retrans_timeout_rtt()
555 task->tk_timeout <<= rpc_ntimeo(rtt, timer) + req->rq_retries; in xprt_set_retrans_timeout_rtt()
695 mod_timer(&xprt->timer, xprt->last_used + xprt->idle_timeout); in xprt_schedule_autodisconnect()
896 unsigned int timer = task->tk_msg.rpc_proc->p_timer; in xprt_update_rtt() local
899 if (timer) { in xprt_update_rtt()
901 rpc_update_rtt(rtt, timer, m); in xprt_update_rtt()
902 rpc_set_timeo(rtt, timer, req->rq_ntrans - 1); in xprt_update_rtt()
924 if (xprt->ops->timer != NULL) in xprt_complete_rqst()
947 if (xprt->ops->timer) in xprt_timer()
[all …]
/net/x25/
Dx25_timer.c36 setup_timer(&x25->timer, x25_timer_expiry, (unsigned long)sk); in x25_init_timers()
57 mod_timer(&x25->timer, jiffies + x25->t2); in x25_start_t2timer()
64 mod_timer(&x25->timer, jiffies + x25->t21); in x25_start_t21timer()
71 mod_timer(&x25->timer, jiffies + x25->t22); in x25_start_t22timer()
78 mod_timer(&x25->timer, jiffies + x25->t23); in x25_start_t23timer()
83 del_timer(&x25_sk(sk)->timer); in x25_stop_timer()
90 if (!timer_pending(&x25->timer)) in x25_display_timer()
93 return x25->timer.expires - jiffies; in x25_display_timer()
/net/bridge/
Dbr_multicast.c249 if (!netif_running(br->dev) || timer_pending(&mp->timer)) in br_multicast_group_expired()
290 del_timer(&p->timer); in br_multicast_del_pg()
297 mod_timer(&mp->timer, jiffies); in br_multicast_del_pg()
311 if (!netif_running(br->dev) || timer_pending(&pg->timer) || in br_multicast_port_group_expired()
704 setup_timer(&mp->timer, br_multicast_group_expired, in br_multicast_new_group()
732 setup_timer(&p->timer, br_multicast_port_group_expired, in br_multicast_new_port_group()
779 mod_timer(&mp->timer, now + br->multicast_membership_interval); in br_multicast_add_group()
799 mod_timer(&p->timer, now + br->multicast_membership_interval); in br_multicast_add_group()
958 if (!other_query || timer_pending(&other_query->timer)) in br_multicast_send_query()
967 mod_timer(&own_query->timer, time); in br_multicast_send_query()
[all …]
Dbr_stp_timer.c171 unsigned long br_timer_value(const struct timer_list *timer) in br_timer_value() argument
173 return timer_pending(timer) in br_timer_value()
174 ? jiffies_delta_to_clock_t(timer->expires - jiffies) : 0; in br_timer_value()
Dbr_private.h64 struct timer_list timer; member
70 struct timer_list timer; member
191 struct timer_list timer; member
203 struct timer_list timer; member
665 (own_querier_enabled || timer_pending(&querier->timer)); in __br_multicast_querier_exists()
1047 unsigned long br_timer_value(const struct timer_list *timer);
/net/ax25/
Dax25_timer.c44 setup_timer(&ax25->timer, ax25_heartbeat_expiry, (unsigned long)ax25); in ax25_setup_timers()
54 mod_timer(&ax25->timer, jiffies + 5 * HZ); in ax25_start_heartbeat()
85 del_timer(&ax25->timer); in ax25_stop_heartbeat()
113 unsigned long ax25_display_timer(struct timer_list *timer) in ax25_display_timer() argument
115 if (!timer_pending(timer)) in ax25_display_timer()
118 return timer->expires - jiffies; in ax25_display_timer()
/net/core/
Dgen_estimator.c62 struct timer_list timer; member
107 mod_timer(&est->timer, est->next_jiffies); in est_timer()
172 del_timer_sync(&old->timer); in gen_new_estimator()
178 setup_timer(&est->timer, est_timer, (unsigned long)est); in gen_new_estimator()
179 mod_timer(&est->timer, est->next_jiffies); in gen_new_estimator()
201 del_timer_sync(&est->timer); in gen_kill_estimator()
/net/tipc/
Ddiscover.c70 struct timer_list timer; member
193 mod_timer(&req->timer, jiffies + req->timer_intv); in disc_update()
259 mod_timer(&req->timer, jiffies + req->timer_intv); in disc_timeout()
295 setup_timer(&req->timer, disc_timeout, (unsigned long)req); in tipc_disc_create()
296 mod_timer(&req->timer, jiffies + req->timer_intv); in tipc_disc_create()
308 del_timer_sync(&req->timer); in tipc_disc_delete()
331 mod_timer(&req->timer, jiffies + req->timer_intv); in tipc_disc_reset()
/net/llc/
Dllc_conn.c887 setup_timer(&llc->ack_timer.timer, llc_conn_ack_tmr_cb, in llc_sk_init()
891 setup_timer(&llc->pf_cycle_timer.timer, llc_conn_pf_cycle_tmr_cb, in llc_sk_init()
895 setup_timer(&llc->rej_sent_timer.timer, llc_conn_rej_tmr_cb, in llc_sk_init()
899 setup_timer(&llc->busy_state_timer.timer, llc_conn_busy_tmr_cb, in llc_sk_init()
941 del_timer_sync(&llc->pf_cycle_timer.timer); in llc_sk_stop_all_timers()
942 del_timer_sync(&llc->ack_timer.timer); in llc_sk_stop_all_timers()
943 del_timer_sync(&llc->rej_sent_timer.timer); in llc_sk_stop_all_timers()
944 del_timer_sync(&llc->busy_state_timer.timer); in llc_sk_stop_all_timers()
946 del_timer(&llc->pf_cycle_timer.timer); in llc_sk_stop_all_timers()
947 del_timer(&llc->ack_timer.timer); in llc_sk_stop_all_timers()
[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()
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 …]
/net/can/
Dbcm.c107 struct hrtimer timer, thrtimer; member
389 hrtimer_start(&op->timer, in bcm_tx_start_timer()
393 hrtimer_start(&op->timer, in bcm_tx_start_timer()
432 struct bcm_op *op = container_of(hrtimer, struct bcm_op, timer); in bcm_tx_timeout_handler()
561 hrtimer_start(&op->timer, op->kt_ival1, HRTIMER_MODE_REL); in bcm_rx_starttimer()
586 struct bcm_op *op = container_of(hrtimer, struct bcm_op, timer); in bcm_rx_timeout_handler()
688 hrtimer_cancel(&op->timer); in bcm_rx_handler()
760 hrtimer_active(&op->timer)) { in bcm_remove_op()
761 hrtimer_cancel(&op->timer); in bcm_remove_op()
1005 hrtimer_init(&op->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in bcm_tx_setup()
[all …]
/net/atm/
Dlec.c1319 del_timer(&to_remove->timer); in lec_arp_remove()
1512 del_timer_sync(&entry->timer); in lec_arp_destroy()
1521 del_timer_sync(&entry->timer); in lec_arp_destroy()
1570 setup_timer(&to_return->timer, lec_arp_expire_arp, in make_entry()
1597 mod_timer(&entry->timer, jiffies + (1 * HZ)); in lec_arp_expire_arp()
1608 del_timer(&to_remove->timer); in lec_arp_expire_vcc()
1809 entry->timer.expires = jiffies + (1 * HZ); in lec_arp_resolve()
1810 entry->timer.function = lec_arp_expire_arp; in lec_arp_resolve()
1811 add_timer(&entry->timer); in lec_arp_resolve()
1876 del_timer(&entry->timer); in lec_arp_update()
[all …]
/net/sctp/
Dsm_sideeffect.c1063 enum sctp_event_timeout timer, in sctp_cmd_t1_timer_update() argument
1072 asoc->timeouts[timer] *= 2; in sctp_cmd_t1_timer_update()
1073 if (asoc->timeouts[timer] > asoc->max_init_timeo) { in sctp_cmd_t1_timer_update()
1074 asoc->timeouts[timer] = asoc->max_init_timeo; in sctp_cmd_t1_timer_update()
1081 asoc->timeouts[timer]); in sctp_cmd_t1_timer_update()
1261 struct timer_list *timer; in sctp_cmd_interpreter() local
1513 timer = &asoc->timers[cmd->obj.to]; in sctp_cmd_interpreter()
1515 if (timer_pending(timer)) in sctp_cmd_interpreter()
1520 timer = &asoc->timers[cmd->obj.to]; in sctp_cmd_interpreter()
1524 timer->expires = jiffies + timeout; in sctp_cmd_interpreter()
[all …]
Doutput.c268 struct timer_list *timer; in sctp_packet_bundle_sack() local
270 timer = &asoc->timers[SCTP_EVENT_TIMEOUT_SACK]; in sctp_packet_bundle_sack()
273 if (timer_pending(timer)) { in sctp_packet_bundle_sack()
289 if (del_timer(timer)) in sctp_packet_bundle_sack()
615 struct timer_list *timer = in sctp_packet_transmit() local
620 if (!mod_timer(timer, jiffies + timeout)) in sctp_packet_transmit()
/net/netfilter/ipvs/
Dip_vs_conn.c470 mod_timer(&cp->timer, jiffies+t); in __ip_vs_conn_put_timer()
479 !timer_pending(&cp->timer)) in ip_vs_conn_put()
834 del_timer(&cp->timer); in ip_vs_conn_expire()
886 if (timer_pending(&cp->timer) && in ip_vs_conn_expire_now()
887 time_after(cp->timer.expires, jiffies)) in ip_vs_conn_expire_now()
888 mod_timer_pending(&cp->timer, jiffies); in ip_vs_conn_expire_now()
912 setup_timer(&cp->timer, ip_vs_conn_expire, (unsigned long)cp); in ip_vs_conn_new()
1116 (cp->timer.expires-jiffies)/HZ, pe_data); in ip_vs_conn_seq_show()
1127 (cp->timer.expires-jiffies)/HZ, pe_data); in ip_vs_conn_seq_show()
1193 (cp->timer.expires-jiffies)/HZ); in ip_vs_conn_sync_seq_show()
[all …]
/net/mac802154/
Dutil.c54 enum hrtimer_restart ieee802154_xmit_ifs_timer(struct hrtimer *timer) in ieee802154_xmit_ifs_timer() argument
57 container_of(timer, struct ieee802154_local, ifs_timer); in ieee802154_xmit_ifs_timer()
/net/rxrpc/
Dcall_event.c76 if (call->timer.expires != t_j || !timer_pending(&call->timer)) { in __rxrpc_set_timer()
77 mod_timer(&call->timer, t_j); in __rxrpc_set_timer()
382 del_timer_sync(&call->timer); in rxrpc_process_call()
Dcall_object.c127 setup_timer(&call->timer, rxrpc_call_timer_expired, in rxrpc_alloc_call()
198 call->timer.expires = jiffies + LONG_MAX / 2; in rxrpc_start_call_timer()
475 del_timer_sync(&call->timer); in rxrpc_release_call()
540 del_timer_sync(&call->timer); in rxrpc_prepare_call_for_retry()
660 del_timer_sync(&call->timer); in rxrpc_cleanup_call()
/net/ipv4/
Dinet_fragment.c134 if (!del_timer(&fq->timer)) in inet_frags_free_cb()
157 if (del_timer(&fq->timer)) in inet_frag_kill()
211 WARN_ON(del_timer(&q->timer) != 0); in inet_frag_destroy()
253 timer_setup(&q->timer, f->frag_expire, 0); in inet_frag_alloc()
272 mod_timer(&q->timer, jiffies + nf->timeout); in inet_frag_create()
/net/mac80211/
Dled.c262 mod_timer(&tpt_trig->timer, round_jiffies(jiffies + HZ)); in tpt_trig_timer()
310 setup_timer(&tpt_trig->timer, tpt_trig_timer, (unsigned long)local); in __ieee80211_create_tpt_led_trigger()
330 mod_timer(&tpt_trig->timer, round_jiffies(jiffies + HZ)); in ieee80211_start_tpt_led_trig()
342 del_timer_sync(&tpt_trig->timer); in ieee80211_stop_tpt_led_trig()

1234