/openbmc/linux/drivers/watchdog/ |
H A D | ib700wdt.c | 95 static int timeout = WATCHDOG_TIMEOUT; /* in seconds */ variable 96 module_param(timeout, int, 0); 97 MODULE_PARM_DESC(timeout, 114 int wd_margin = 15 - ((timeout + 1) / 2); in ibwdt_ping() 136 timeout = t; in ibwdt_set_heartbeat() 220 return put_user(timeout, p); in ibwdt_ioctl() 297 if (ibwdt_set_heartbeat(timeout)) { in ibwdt_probe() 299 pr_info("timeout value must be 0<=x<=30, using %d\n", timeout); in ibwdt_probe()
|
H A D | mpc8xxx_wdt.c | 56 static u16 timeout; variable 57 module_param(timeout, ushort, 0); 58 MODULE_PARM_DESC(timeout, 181 ddata->wdd.timeout = WATCHDOG_TIMEOUT; in mpc8xxx_wdt_probe() 182 watchdog_init_timeout(&ddata->wdd, timeout, dev); in mpc8xxx_wdt_probe() 186 ddata->swtc = min(ddata->wdd.timeout * freq / wdt_type->prescaler, in mpc8xxx_wdt_probe() 200 if (ddata->wdd.timeout < ddata->wdd.min_timeout) in mpc8xxx_wdt_probe() 201 ddata->wdd.timeout = ddata->wdd.min_timeout; in mpc8xxx_wdt_probe() 209 reset ? "reset" : "interrupt", ddata->wdd.timeout); in mpc8xxx_wdt_probe()
|
H A D | max63xx_wdt.c | 47 const struct max63xx_timeout *timeout; member 130 wdt->set(wdt, wdt->timeout->wdset); in max63xx_wdt_start() 133 if (wdt->timeout->tdelay == 0) in max63xx_wdt_start() 218 wdt->timeout = max63xx_select_timeout(table, heartbeat); in max63xx_wdt_probe() 219 if (!wdt->timeout) { in max63xx_wdt_probe() 233 wdt->wdd.timeout = wdt->timeout->twd; in max63xx_wdt_probe() 244 wdt->timeout->twd, wdt->timeout->tdelay); in max63xx_wdt_probe()
|
H A D | rza_wdt.c | 50 static void rza_wdt_calc_timeout(struct rza_wdt *priv, int timeout) in rza_wdt_calc_timeout() argument 56 ticks = DIV_ROUND_UP(timeout * rate, DIVIDER_4BIT); in rza_wdt_calc_timeout() 71 timeout, priv->count); in rza_wdt_calc_timeout() 85 rza_wdt_calc_timeout(priv, wdev->timeout); in rza_wdt_start() 110 pr_debug("%s: timeout = %u\n", __func__, wdev->timeout); in rza_wdt_ping() 115 static int rza_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in rza_set_timeout() argument 117 wdev->timeout = timeout; in rza_set_timeout() 216 priv->wdev.timeout = DEFAULT_TIMEOUT; in rza_wdt_probe()
|
H A D | mlx_wdt.c | 108 unsigned int timeout) in mlxreg_wdt_set_timeout() argument 128 set_time = timeout; in mlxreg_wdt_set_timeout() 129 rc = regmap_write(wdt->regmap, reg_data->reg, timeout); in mlxreg_wdt_set_timeout() 133 set_time = timeout; in mlxreg_wdt_set_timeout() 135 regval = timeout & 0xff; in mlxreg_wdt_set_timeout() 138 regval = (timeout & 0xff00) >> 8; in mlxreg_wdt_set_timeout() 143 rc = regmap_write(wdt->regmap, reg_data->reg, timeout); in mlxreg_wdt_set_timeout() 150 wdd->timeout = set_time; in mlxreg_wdt_set_timeout() 273 u32 timeout; in mlxreg_wdt_init_timeout() local 275 timeout = pdata->data[wdt->timeout_idx].health_cntr; in mlxreg_wdt_init_timeout() [all …]
|
H A D | digicolor_wdt.c | 30 static unsigned timeout; variable 31 module_param(timeout, uint, 0); 32 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds"); 64 dc_wdt_set(wdt, wdog->timeout * clk_get_rate(wdt->clk)); in dc_wdt_start() 83 wdog->timeout = t; in dc_wdt_set_timeout() 134 dc_wdt_wdd.timeout = dc_wdt_wdd.max_timeout; in dc_wdt_probe() 141 watchdog_init_timeout(&dc_wdt_wdd, timeout, dev); in dc_wdt_probe()
|
H A D | advantech_ec_wdt.c | 47 static unsigned int timeout; variable 50 module_param(timeout, uint, 0); 51 MODULE_PARM_DESC(timeout, 111 wdd->timeout = t; in adv_ec_wdt_set_timeout() 117 adv_ec_wdt_set_timeout(wdd, wdd->timeout); in adv_ec_wdt_start() 150 .timeout = DEFAULT_TIME, 161 watchdog_init_timeout(&adv_ec_wdt_dev, timeout, dev); in adv_ec_wdt_probe()
|
H A D | dw_wdt.c | 93 u32 timeout; member 123 unsigned int timeout, u32 *top_val) in dw_wdt_find_best_top() argument 133 if (dw_wdt->timeouts[idx].sec >= timeout) in dw_wdt_find_best_top() 166 msec = (u64)timeout->sec * MSEC_PER_SEC + timeout->msec; in dw_wdt_get_max_timeout_ms() 201 unsigned int timeout; in dw_wdt_set_timeout() local 215 wdd->pretimeout = timeout; in dw_wdt_set_timeout() 238 wdd->timeout = timeout * dw_wdt->rmod; in dw_wdt_set_timeout() 240 wdd->timeout = top_s; in dw_wdt_set_timeout() 255 dw_wdt_set_timeout(wdd, wdd->timeout); in dw_wdt_set_pretimeout() 278 dw_wdt_set_timeout(wdd, wdd->timeout); in dw_wdt_start() [all …]
|
H A D | da9055_wdt.c | 53 unsigned int timeout) in da9055_wdt_set_timeout() argument 60 if (da9055_wdt_maps[i].user_time == timeout) in da9055_wdt_set_timeout() 76 wdt_dev->timeout = timeout; in da9055_wdt_set_timeout() 99 return da9055_wdt_set_timeout(wdt_dev, wdt_dev->timeout); in da9055_wdt_start() 136 da9055_wdt->timeout = DA9055_DEF_TIMEOUT; in da9055_wdt_probe()
|
/openbmc/linux/sound/soc/amd/rpl/ |
H A D | rpl-pci-acp6x.c | 24 int timeout; in rpl_power_on() local 33 timeout = 0; in rpl_power_on() 34 while (++timeout < 500) { in rpl_power_on() 46 int timeout; in rpl_reset() local 49 timeout = 0; in rpl_reset() 50 while (++timeout < 500) { in rpl_reset() 57 timeout = 0; in rpl_reset() 58 while (++timeout < 500) { in rpl_reset()
|
/openbmc/linux/net/netfilter/ |
H A D | nf_flow_table_core.c | 178 s32 timeout; in flow_offload_fixup_ct() local 193 timeout = tn->timeouts[state]; in flow_offload_fixup_ct() 199 if (timeout < 0) in flow_offload_fixup_ct() 200 timeout = 0; in flow_offload_fixup_ct() 202 if (nf_flow_timeout_delta(READ_ONCE(ct->timeout)) > (__s32)timeout) in flow_offload_fixup_ct() 203 WRITE_ONCE(ct->timeout, nfct_time_stamp + timeout); in flow_offload_fixup_ct() 269 timeout = tn->offload_timeout; in flow_offload_get_timeout() 276 return timeout; in flow_offload_get_timeout() 315 u32 timeout; in flow_offload_refresh() local 318 if (force || timeout - READ_ONCE(flow->timeout) > HZ) in flow_offload_refresh() [all …]
|
/openbmc/sdbusplus/test/async/ |
H A D | timer.cpp | 11 static constexpr auto timeout = 500ms; in TEST() local 17 ctx.spawn(sdbusplus::async::sleep_for(ctx, timeout) | in TEST() 23 EXPECT_GT(stop - start, timeout); in TEST() 24 EXPECT_LT(stop - start, timeout * 3); in TEST()
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | diag.sh | 98 local timeout=20 106 while [ $i -lt $timeout ]; do 115 if [ $i -ge $timeout ]; then 239 timeout ${timeout_test} \ 248 timeout ${timeout_test} \ 264 timeout ${timeout_test} \ 270 timeout ${timeout_test} \ 286 timeout ${timeout_test} \ 295 timeout ${timeout_test} \
|
/openbmc/linux/include/linux/ |
H A D | wait_bit.h | 13 unsigned long timeout; member 31 …_bit_timeout(void *word, int, wait_bit_action_f *action, unsigned int mode, unsigned long timeout); 123 unsigned long timeout) in wait_on_bit_timeout() argument 130 mode, timeout); in wait_on_bit_timeout() 294 #define __wait_var_event_timeout(var, condition, timeout) \ argument 296 TASK_UNINTERRUPTIBLE, 0, timeout, \ 299 #define wait_var_event_timeout(var, condition, timeout) \ argument 301 long __ret = timeout; \ 304 __ret = __wait_var_event_timeout(var, condition, timeout); \
|
/openbmc/linux/drivers/accel/ivpu/ |
H A D | ivpu_jsm_msg.c | 23 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_register_db() 43 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_unregister_db() 66 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_get_heartbeat() 88 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_reset_engine() 108 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_preempt_engine() 124 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_dyndbg_control() 139 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_trace_get_capability() 163 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_trace_set_config() 178 VPU_IPC_CHAN_ASYNC_CMD, vdev->timeout.jsm); in ivpu_jsm_context_release()
|
/openbmc/linux/fs/orangefs/ |
H A D | waitqueue.c | 21 long timeout, 69 long timeout = MAX_SCHEDULE_TIMEOUT; in service_operation() local 137 timeout = 0; in service_operation() 139 timeout = op_timeout_secs * HZ; in service_operation() 146 ret = wait_for_matching_downcall(op, timeout, flags); in service_operation() 179 timeout = op_timeout_secs * HZ; in service_operation() 319 long timeout, in wait_for_matching_downcall() argument 334 n = wait_for_completion_io_timeout(&op->waitq, timeout); in wait_for_matching_downcall() 337 timeout); in wait_for_matching_downcall() 339 n = wait_for_completion_killable_timeout(&op->waitq, timeout); in wait_for_matching_downcall()
|
/openbmc/linux/drivers/net/wireless/mediatek/mt76/ |
H A D | util.c | 10 int timeout) in __mt76_poll() argument 14 timeout /= 10; in __mt76_poll() 21 } while (timeout-- > 0); in __mt76_poll() 28 int timeout, int tick) in ____mt76_poll_msec() argument 32 timeout /= tick; in ____mt76_poll_msec() 39 } while (timeout-- > 0); in ____mt76_poll_msec()
|
/openbmc/linux/sound/soc/tegra/ |
H A D | tegra20_ac97.c | 40 unsigned long timeout; in tegra20_ac97_codec_reset() local 49 timeout = jiffies + msecs_to_jiffies(100); in tegra20_ac97_codec_reset() 56 } while (!time_after(jiffies, timeout)); in tegra20_ac97_codec_reset() 62 unsigned long timeout; in tegra20_ac97_codec_warm_reset() local 78 timeout = jiffies + msecs_to_jiffies(100); in tegra20_ac97_codec_warm_reset() 85 } while (!time_after(jiffies, timeout)); in tegra20_ac97_codec_warm_reset() 92 unsigned long timeout; in tegra20_ac97_codec_read() local 99 timeout = jiffies + msecs_to_jiffies(100); in tegra20_ac97_codec_read() 106 } while (!time_after(jiffies, timeout)); in tegra20_ac97_codec_read() 116 unsigned long timeout; in tegra20_ac97_codec_write() local [all …]
|
/openbmc/linux/drivers/bus/ |
H A D | bt1-apb.c | 73 u64 timeout = (u64)n * USEC_PER_SEC; in bt1_apb_n_to_timeout_us() local 75 do_div(timeout, apb->rate); in bt1_apb_n_to_timeout_us() 77 return timeout; in bt1_apb_n_to_timeout_us() 82 unsigned long timeout) in bt1_apb_timeout_to_n_us() argument 84 u64 n = (u64)timeout * apb->rate; in bt1_apb_timeout_to_n_us() 276 unsigned long timeout; in timeout_show() local 284 timeout = bt1_apb_n_to_timeout_us(apb, n); in timeout_show() 294 unsigned long timeout; in timeout_store() local 298 if (kstrtoul(buf, 0, &timeout) < 0) in timeout_store() 301 n = bt1_apb_timeout_to_n_us(apb, timeout); in timeout_store() [all …]
|
/openbmc/linux/init/ |
H A D | do_mounts.c | 261 unsigned int timeout; in mount_nfs_root() local 272 timeout = NFSROOT_TIMEOUT_MIN; in mount_nfs_root() 280 ssleep(timeout); in mount_nfs_root() 281 timeout <<= 1; in mount_nfs_root() 282 if (timeout > NFSROOT_TIMEOUT_MAX) in mount_nfs_root() 283 timeout = NFSROOT_TIMEOUT_MAX; in mount_nfs_root() 303 unsigned int timeout; in mount_cifs_root() local 309 timeout = CIFSROOT_TIMEOUT_MIN; in mount_cifs_root() 317 ssleep(timeout); in mount_cifs_root() 318 timeout <<= 1; in mount_cifs_root() [all …]
|
/openbmc/sdeventplus/src/sdeventplus/ |
H A D | event.cpp | 57 int Event::wait(MaybeTimeout timeout) const in wait() 60 uint64_t timeout_usec = timeout ? timeout->count() : -1; in wait() 71 int Event::run(MaybeTimeout timeout) const in run() 74 uint64_t timeout_usec = timeout ? timeout->count() : -1; in run()
|
/openbmc/openbmc-tools/adcapp/src/ |
H A D | EINTR_wrappers.h | 55 … sigwrap_semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout); 56 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); 57 int sigwrap_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const si… 59 int sigwrap_sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); 63 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout); 65 …rap_select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *timeout); 66 …et *readfds, fd_set *writefds, fd_set *exceptfds, const struct timespec *timeout, const sigset_t *…
|
/openbmc/openbmc-tools/pwmtachtool/src/ |
H A D | EINTR_wrappers.h | 55 … sigwrap_semtimedop(int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout); 56 int sigwrap_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout); 57 int sigwrap_epoll_pwait(int epfd, struct epoll_event *events, int maxevents, int timeout, const si… 59 int sigwrap_sigtimedwait(const sigset_t *set, siginfo_t *info, const struct timespec *timeout); 63 int sigwrap_poll(struct pollfd *fds, nfds_t nfds, int timeout); 65 …rap_select(int nfds, fd_set *readfds, fd_set *writefds,fd_set *exceptfds, struct timeval *timeout); 66 …et *readfds, fd_set *writefds, fd_set *exceptfds, const struct timespec *timeout, const sigset_t *…
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | auxg94.c | 46 u32 ctrl, timeout; in g94_i2c_aux_init() local 49 timeout = 1000; in g94_i2c_aux_init() 53 if (!timeout--) { in g94_i2c_aux_init() 61 timeout = 1000; in g94_i2c_aux_init() 65 if (!timeout--) { in g94_i2c_aux_init() 83 u32 ctrl, stat, timeout, retries = 0; in g94_i2c_aux_xfer() local 127 timeout = 2000; in g94_i2c_aux_xfer() 131 if (!timeout--) { in g94_i2c_aux_xfer()
|
/openbmc/linux/net/tipc/ |
H A D | subscr.c | 139 u32 timeout; in tipc_sub_subscribe() local 161 sub->s.timeout = tipc_sub_read(s, timeout); in tipc_sub_subscribe() 170 timeout = tipc_sub_read(&sub->evt.s, timeout); in tipc_sub_subscribe() 171 if (timeout != TIPC_WAIT_FOREVER) in tipc_sub_subscribe() 172 mod_timer(&sub->timer, jiffies + msecs_to_jiffies(timeout)); in tipc_sub_subscribe() 179 if (sub->evt.s.timeout != TIPC_WAIT_FOREVER) in tipc_sub_unsubscribe()
|