/drivers/char/ |
D | mmtimer.c | 103 static void mmtimer_setup_int_0(int cpu, u64 expires) in mmtimer_setup_int_0() argument 127 HUB_S((u64 *)LOCAL_MMR_ADDR(SH_INT_CMPB), expires); in mmtimer_setup_int_0() 133 static void mmtimer_setup_int_1(int cpu, u64 expires) in mmtimer_setup_int_1() argument 151 HUB_S((u64 *)LOCAL_MMR_ADDR(SH_INT_CMPC), expires); in mmtimer_setup_int_1() 155 static void mmtimer_setup_int_2(int cpu, u64 expires) in mmtimer_setup_int_2() argument 173 HUB_S((u64 *)LOCAL_MMR_ADDR(SH_INT_CMPD), expires); in mmtimer_setup_int_2() 181 static int mmtimer_setup(int cpu, int comparator, unsigned long expires, in mmtimer_setup() argument 186 mmtimer_setup_int_0(cpu, expires); in mmtimer_setup() 189 mmtimer_setup_int_1(cpu, expires); in mmtimer_setup() 192 mmtimer_setup_int_2(cpu, expires); in mmtimer_setup() [all …]
|
/drivers/md/ |
D | dm-delay.c | 42 unsigned long expires; member 54 static void queue_timeout(struct delay_c *dc, unsigned long expires) in queue_timeout() argument 58 if (!timer_pending(&dc->delay_timer) || expires < dc->delay_timer.expires) in queue_timeout() 59 mod_timer(&dc->delay_timer, expires); in queue_timeout() 85 if (flush_all || time_after_eq(jiffies, delayed->expires)) { in flush_delayed_bios() 99 next_expires = delayed->expires; in flush_delayed_bios() 101 next_expires = min(next_expires, delayed->expires); in flush_delayed_bios() 231 unsigned long expires = 0; in delay_bio() local 239 delayed->expires = expires = jiffies + (delay * HZ / 1000); in delay_bio() 252 queue_timeout(dc, expires); in delay_bio()
|
/drivers/char/hw_random/ |
D | timeriomem-rng.c | 38 unsigned int expires; member 76 delay = cur - priv->expires; in timeriomem_rng_data_read() 79 priv->expires = cur + delay; in timeriomem_rng_data_read() 83 mod_timer(&priv->timer, priv->expires); in timeriomem_rng_data_read() 148 priv->expires = jiffies; in timeriomem_rng_probe()
|
/drivers/watchdog/ |
D | xen_wdt.c | 60 __kernel_time_t expires; in xen_wdt_start() local 65 expires = set_timeout(); in xen_wdt_start() 72 wdt_expires = expires; in xen_wdt_start() 101 __kernel_time_t expires; in xen_wdt_kick() local 106 expires = set_timeout(); in xen_wdt_kick() 112 wdt_expires = expires; in xen_wdt_kick()
|
/drivers/rtc/ |
D | interface.c | 330 alarm->time = rtc_ktime_to_tm(rtc->aie_timer.node.expires); in rtc_read_alarm() 387 rtc->aie_timer.node.expires = rtc_tm_to_ktime(alarm->time); in rtc_set_alarm() 415 rtc->aie_timer.node.expires = rtc_tm_to_ktime(alarm->time); in rtc_initialize_alarm() 420 rtc->aie_timer.node.expires.tv64)) { in rtc_initialize_alarm() 487 rtc->uie_rtctimer.node.expires = ktime_add(now, onesec); in rtc_update_irq_enable() 788 alarm.time = rtc_ktime_to_tm(timer->node.expires); in rtc_timer_enqueue() 836 alarm.time = rtc_ktime_to_tm(next->expires); in rtc_timer_remove() 871 if (next->expires.tv64 > now.tv64) in rtc_timer_do_work() 883 timer->node.expires = ktime_add(timer->node.expires, in rtc_timer_do_work() 894 alarm.time = rtc_ktime_to_tm(next->expires); in rtc_timer_do_work() [all …]
|
/drivers/base/power/ |
D | runtime.c | 134 unsigned long expires = 0; in pm_runtime_autosuspend_expiration() local 152 expires = last_busy + msecs_to_jiffies(autosuspend_delay); in pm_runtime_autosuspend_expiration() 154 expires = round_jiffies(expires); in pm_runtime_autosuspend_expiration() 155 expires += !expires; in pm_runtime_autosuspend_expiration() 156 if (elapsed >= expires - last_busy) in pm_runtime_autosuspend_expiration() 157 expires = 0; /* Already expired. */ in pm_runtime_autosuspend_expiration() 160 return expires; in pm_runtime_autosuspend_expiration() 444 unsigned long expires = pm_runtime_autosuspend_expiration(dev); in rpm_suspend() local 446 if (expires != 0) { in rpm_suspend() 458 dev->power.timer_expires, expires))) { in rpm_suspend() [all …]
|
D | wakeup.c | 623 unsigned long expires; in __pm_wakeup_event() local 637 expires = jiffies + msecs_to_jiffies(msec); in __pm_wakeup_event() 638 if (!expires) in __pm_wakeup_event() 639 expires = 1; in __pm_wakeup_event() 641 if (!ws->timer_expires || time_after(expires, ws->timer_expires)) { in __pm_wakeup_event() 642 mod_timer(&ws->timer, expires); in __pm_wakeup_event() 643 ws->timer_expires = expires; in __pm_wakeup_event()
|
/drivers/s390/cio/ |
D | device_ops.c | 266 unsigned long flags, int expires) in ccw_device_start_timeout_key() argument 272 ccw_device_set_timeout(cdev, expires); in ccw_device_start_timeout_key() 339 unsigned long flags, int expires) in ccw_device_start_timeout() argument 343 expires); in ccw_device_start_timeout() 656 int expires) in ccw_device_tm_start_timeout_key() argument 660 ccw_device_set_timeout(cdev, expires); in ccw_device_tm_start_timeout_key() 698 unsigned long intparm, u8 lpm, int expires) in ccw_device_tm_start_timeout() argument 701 PAGE_DEFAULT_KEY, expires); in ccw_device_tm_start_timeout()
|
D | eadm_sch.c | 115 static void eadm_subchannel_set_timeout(struct subchannel *sch, int expires) in eadm_subchannel_set_timeout() argument 119 if (expires == 0) { in eadm_subchannel_set_timeout() 124 if (mod_timer(&private->timer, jiffies + expires)) in eadm_subchannel_set_timeout() 129 private->timer.expires = jiffies + expires; in eadm_subchannel_set_timeout()
|
/drivers/isdn/divert/ |
D | isdn_divert.c | 73 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_timer_expire() 85 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_timer_expire() 231 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_extern_action() 244 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_extern_action() 259 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in deflect_extern_action() 465 cs->timer.expires = jiffies + (HZ * dv->rule.waittime); in isdn_divert_icall() 467 cs->timer.expires = jiffies + (HZ * extern_wait_max); in isdn_divert_icall() 469 cs->timer.expires = 0; in isdn_divert_icall() 477 if (!cs->timer.expires) { in isdn_divert_icall() 483 cs->timer.expires = jiffies + (HZ * AUTODEL_TIME); in isdn_divert_icall() [all …]
|
/drivers/usb/phy/ |
D | phy-fsl-usb.h | 350 unsigned long expires; /* Number of count increase to timeout */ member 358 (void (*function)(unsigned long), unsigned long expires, unsigned long data) in otg_timer_initializer() argument 366 timer->expires = expires; in otg_timer_initializer()
|
/drivers/staging/vt6655/ |
D | baseband.c | 2730 pDevice->TimerSQ3Tmax1.expires = RUN_AT(pDevice->byTMax * HZ); in BBvAntennaDiversity() 2734 pDevice->TimerSQ3Tmax3.expires = RUN_AT(pDevice->byTMax3 * HZ); in BBvAntennaDiversity() 2759 pDevice->TimerSQ3Tmax3.expires = RUN_AT(pDevice->byTMax3 * HZ); in BBvAntennaDiversity() 2760 pDevice->TimerSQ3Tmax2.expires = RUN_AT(pDevice->byTMax2 * HZ); in BBvAntennaDiversity() 2802 pDevice->TimerSQ3Tmax3.expires = RUN_AT(pDevice->byTMax3 * HZ); in TimerSQ3CallBack() 2803 pDevice->TimerSQ3Tmax2.expires = RUN_AT(pDevice->byTMax2 * HZ); in TimerSQ3CallBack() 2840 pDevice->TimerSQ3Tmax3.expires = RUN_AT(pDevice->byTMax3 * HZ); in TimerState1CallBack() 2841 pDevice->TimerSQ3Tmax2.expires = RUN_AT(pDevice->byTMax2 * HZ); in TimerState1CallBack() 2860 pDevice->TimerSQ3Tmax3.expires = RUN_AT(pDevice->byTMax3 * HZ); in TimerState1CallBack() 2861 pDevice->TimerSQ3Tmax2.expires = RUN_AT(pDevice->byTMax2 * HZ); in TimerState1CallBack()
|
/drivers/s390/block/ |
D | dasd_diag.c | 236 unsigned long long expires; in dasd_ext_handler() local 281 expires = 0; in dasd_ext_handler() 291 expires = next->expires; in dasd_ext_handler() 302 if (expires != 0) in dasd_ext_handler() 303 dasd_device_set_timer(device, expires); in dasd_ext_handler() 567 cqr->expires = memdev->default_expires * HZ; in dasd_diag_build_cp()
|
D | dasd_3990_erp.c | 70 static void dasd_3990_erp_block_queue(struct dasd_ccw_req *erp, int expires) in dasd_3990_erp_block_queue() argument 77 "blocking request queue for %is", expires/HZ); in dasd_3990_erp_block_queue() 84 dasd_block_set_timer(erp->block, expires); in dasd_3990_erp_block_queue() 86 dasd_device_set_timer(device, expires); in dasd_3990_erp_block_queue() 229 dctl_cqr->expires = 5 * 60 * HZ; in dasd_3990_erp_DCTL() 1720 erp->expires = default_erp->expires; in dasd_3990_erp_action_1B_32() 2365 erp->expires = cqr->expires; in dasd_3990_erp_add_erp()
|
D | dasd.c | 1542 void dasd_device_set_timer(struct dasd_device *device, int expires) in dasd_device_set_timer() argument 1544 if (expires == 0) in dasd_device_set_timer() 1547 mod_timer(&device->timer, jiffies + expires); in dasd_device_set_timer() 1622 int expires; in dasd_int_handler() local 1714 expires = 0; in dasd_int_handler() 1747 expires = next->expires; in dasd_int_handler() 1749 if (expires != 0) in dasd_int_handler() 1750 dasd_device_set_timer(device, expires); in dasd_int_handler() 1890 if ((cqr->status == DASD_CQR_IN_IO && cqr->expires != 0) && in __dasd_device_check_expire() 1891 (time_after_eq(jiffies, cqr->expires + cqr->starttime))) { in __dasd_device_check_expire() [all …]
|
/drivers/cpufreq/ |
D | cpufreq_interactive.c | 129 unsigned long expires; in cpufreq_interactive_timer_resched() local 139 expires = jiffies + usecs_to_jiffies(tunables->timer_rate); in cpufreq_interactive_timer_resched() 140 mod_timer_pinned(&pcpu->cpu_timer, expires); in cpufreq_interactive_timer_resched() 144 expires += usecs_to_jiffies(tunables->timer_slack_val); in cpufreq_interactive_timer_resched() 145 mod_timer_pinned(&pcpu->cpu_slack_timer, expires); in cpufreq_interactive_timer_resched() 159 unsigned long expires = jiffies + in cpufreq_interactive_timer_start() local 163 pcpu->cpu_timer.expires = expires; in cpufreq_interactive_timer_start() 167 expires += usecs_to_jiffies(tunables->timer_slack_val); in cpufreq_interactive_timer_start() 168 pcpu->cpu_slack_timer.expires = expires; in cpufreq_interactive_timer_start() 483 } else if (time_after_eq(jiffies, pcpu->cpu_timer.expires)) { in cpufreq_interactive_idle_end()
|
/drivers/gpu/drm/gma500/ |
D | psb_lid.c | 66 lid_timer->expires = jiffies + PSB_LID_DELAY; in psb_lid_timer_func() 84 lid_timer->expires = jiffies + PSB_LID_DELAY; in psb_lid_timer_init()
|
/drivers/ata/ |
D | libata-zpodd.c | 134 unsigned long expires; in zpodd_on_suspend() local 148 expires = zpodd->last_ready + in zpodd_on_suspend() 150 if (time_before(jiffies, expires)) in zpodd_on_suspend()
|
/drivers/net/ethernet/dec/tulip/ |
D | pnic2.c | 328 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change() 353 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change() 377 tp->timer.expires = RUN_AT(3*HZ); in pnic2_lnk_change()
|
/drivers/staging/rtl8188eu/core/ |
D | rtw_pwrctrl.c | 568 unsigned long expires; in _rtw_pwr_wakeup() local 571 expires = jiffies + msecs_to_jiffies(ips_deffer_ms); in _rtw_pwr_wakeup() 572 if (time_before(pwrpriv->ips_deny_time, expires)) in _rtw_pwr_wakeup() 627 expires = jiffies + msecs_to_jiffies(ips_deffer_ms); in _rtw_pwr_wakeup() 628 if (time_before(pwrpriv->ips_deny_time, expires)) in _rtw_pwr_wakeup()
|
/drivers/i2c/busses/ |
D | i2c-pnx.c | 104 unsigned long expires = msecs_to_jiffies(alg_data->timeout); in i2c_pnx_arm_timer() local 106 if (expires <= 1) in i2c_pnx_arm_timer() 107 expires = 2; in i2c_pnx_arm_timer() 112 jiffies, expires); in i2c_pnx_arm_timer() 114 timer->expires = jiffies + expires; in i2c_pnx_arm_timer()
|
/drivers/isdn/hisax/ |
D | fsm.c | 139 ft->tl.expires = jiffies + (millisec * HZ) / 1000; in FsmAddTimer() 160 ft->tl.expires = jiffies + (millisec * HZ) / 1000; in FsmRestartTimer()
|
/drivers/lguest/ |
D | interrupts_and_traps.c | 625 ktime_t expires; in guest_set_clockevent() local 638 expires = ktime_add_ns(ktime_get_real(), delta); in guest_set_clockevent() 639 hrtimer_start(&cpu->hrt, expires, HRTIMER_MODE_ABS); in guest_set_clockevent()
|
/drivers/isdn/mISDN/ |
D | fsm.c | 158 ft->tl.expires = jiffies + (millisec * HZ) / 1000; in mISDN_FsmAddTimer() 180 ft->tl.expires = jiffies + (millisec * HZ) / 1000; in mISDN_FsmRestartTimer()
|
/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_crypt.c | 71 ieee->crypt_deinit_timer.expires = jiffies + HZ; in ieee80211_crypt_deinit_handler() 97 ieee->crypt_deinit_timer.expires = jiffies + HZ; in ieee80211_crypt_delayed_deinit()
|