| /linux/kernel/time/ |
| H A D | sleep_timeout.c | 3 * Kernel internal schedule timeout and sleeping functions 25 struct process_timer *timeout = timer_container_of(timeout, t, timer); in process_timeout() local 27 wake_up_process(timeout->task); in process_timeout() 31 * schedule_timeout - sleep until timeout 32 * @timeout: timeout value in jiffies 34 * Make the current task sleep until @timeout jiffies have elapsed. 42 * %TASK_UNINTERRUPTIBLE - at least @timeout jiffies are guaranteed to 53 * Specifying a @timeout valu 61 schedule_timeout(signed long timeout) schedule_timeout() argument 125 schedule_timeout_interruptible(signed long timeout) schedule_timeout_interruptible() argument 140 schedule_timeout_killable(signed long timeout) schedule_timeout_killable() argument 155 schedule_timeout_uninterruptible(signed long timeout) schedule_timeout_uninterruptible() argument 172 schedule_timeout_idle(signed long timeout) schedule_timeout_idle() argument 315 unsigned long timeout = msecs_to_jiffies(msecs); msleep() local 336 unsigned long timeout = msecs_to_jiffies(msecs); msleep_interruptible() local [all...] |
| /linux/Documentation/watchdog/ |
| H A D | watchdog-parameters.rst | 26 timeout. Setting this to a non-zero value can be useful to ensure that 52 timeout: 53 Watchdog timeout in seconds. 1<= timeout <=63, default=60. 61 timeout: 62 Watchdog timeout in seconds. (0 < timeout < 18000, default=60) 70 timeout: 71 Watchdog timeout in seconds. (1<=timeout< [all...] |
| /linux/net/netfilter/ |
| H A D | nfnetlink_cttimeout.c | 41 struct nf_ct_timeout *timeout; member 51 MODULE_DESCRIPTION("cttimeout: Extended Netfilter Connection Tracking timeout tuning"); 67 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument 88 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy() 103 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() 117 list_for_each_entry(timeout, &pernet->nfct_timeout_list, head) { in cttimeout_new_timeout() 118 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout() 124 matching = timeout; in cttimeout_new_timeout() 130 /* You cannot replace one timeout policy by another of in cttimeout_new_timeout() 133 if (matching->timeout in cttimeout_new_timeout() 102 struct ctnl_timeout *timeout, *matching = NULL; cttimeout_new_timeout() local 190 ctnl_timeout_fill_info(struct sk_buff * skb,u32 portid,u32 seq,u32 type,int event,struct ctnl_timeout * timeout) ctnl_timeout_fill_info() argument 316 ctnl_timeout_del(struct net * net,struct ctnl_timeout * timeout) ctnl_timeout_del() argument 506 struct ctnl_timeout *timeout, *matching = NULL; ctnl_timeout_find_get() local 522 ctnl_timeout_put(struct nf_ct_timeout * timeout) ctnl_timeout_put() argument [all...] |
| /linux/kernel/sched/ |
| H A D | completion.c | 87 long (*action)(long), long timeout, int state) in do_wait_for_common() argument 94 timeout = -ERESTARTSYS; in do_wait_for_common() 100 timeout = action(timeout); in do_wait_for_common() 102 } while (!x->done && timeout); in do_wait_for_common() 105 return timeout; in do_wait_for_common() 109 return timeout ?: 1; in do_wait_for_common() 114 long (*action)(long), long timeout, int state) in __wait_for_common() argument 121 timeout = do_wait_for_common(x, action, timeout, state); in __wait_for_common() 126 return timeout; in __wait_for_common() 130 wait_for_common(struct completion *x, long timeout, int state) in wait_for_common() argument [all …]
|
| /linux/tools/testing/selftests/firmware/ |
| H A D | fw_fallback.sh | 30 local timeout=10 33 timeout=$(( $timeout - 1 )) 34 if [ "$timeout" -eq 0 ]; then 57 local timeout=10 60 timeout=$(( $timeout - 1 )) 61 if [ "$timeout" -eq 0 ]; then 86 local timeout=10 89 timeout=$(( $timeout - 1 )) 90 if [ "$timeout" -eq 0 ]; then 119 local timeout=10 [all …]
|
| /linux/io_uring/ |
| H A D | timeout.c | 15 #include "timeout.h" 33 /* timeout update */ 82 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_is_timeout_noseq() local 85 return !timeout->off || data->flags & IORING_TIMEOUT_MULTISHOT; in io_is_timeout_noseq() 96 static inline bool io_timeout_finish(struct io_timeout *timeout, in io_timeout_finish() argument 102 if (!timeout->off || (timeout->repeats && --timeout->repeats)) in io_timeout_finish() 113 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_timeout_complete() local 117 if (!io_timeout_finish(timeout, dat in io_timeout_complete() 137 struct io_timeout *timeout; io_flush_killed_timeouts() local 157 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_kill_timeout() local 167 struct io_timeout *timeout, *tmp; io_flush_timeouts() local 284 struct io_timeout *timeout = io_kiocb_to_cmd(link, struct io_timeout); __io_disarm_linked_timeout() local 305 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout_fn() local 328 struct io_timeout *timeout; io_timeout_extract() local 369 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_req_task_link_timeout() local 406 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_link_timeout_fn() local 444 struct io_timeout *timeout; io_linked_timeout_update() local 472 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout_update() local 565 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); __io_timeout_prep() local 645 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout() local 695 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_queue_linked_timeout() local 736 struct io_timeout *timeout, *tmp; io_kill_timeouts() local [all...] |
| /linux/include/linux/ |
| H A D | swait.h | 193 #define __swait_event_timeout(wq, condition, timeout) \ argument 195 TASK_UNINTERRUPTIBLE, timeout, \ 198 #define swait_event_timeout_exclusive(wq, condition, timeout) \ argument 200 long __ret = timeout; \ 202 __ret = __swait_event_timeout(wq, condition, timeout); \ 218 #define __swait_event_interruptible_timeout(wq, condition, timeout) \ argument 220 TASK_INTERRUPTIBLE, timeout, \ 223 #define swait_event_interruptible_timeout_exclusive(wq, condition, timeout)\ argument 225 long __ret = timeout; \ 228 condition, timeout); \ [all …]
|
| /linux/block/ |
| H A D | blk-timeout.c | 3 * Functions related to generic timeout handling of requests. 75 * request by deleting the timer and calling the q's timeout function. 76 * LLDDs who implement their own error recovery MAY ignore the timeout 82 * All we need to ensure is that timeout scan takes place in blk_abort_request() 83 * immediately and that scan sees the new timeout value. in blk_abort_request() 109 unsigned long blk_rq_timeout(unsigned long timeout) in blk_rq_timeout() argument 114 if (time_after(timeout, maxt)) in blk_rq_timeout() 115 timeout = maxt; in blk_rq_timeout() 117 return timeout; in blk_rq_timeout() 121 * blk_add_timer - Start timeout time [all...] |
| /linux/tools/testing/selftests/timens/ |
| H A D | futex.c | 23 struct timespec timeout, end; in run_test() local 29 clock_gettime(clockid, &timeout); in run_test() 30 timeout.tv_nsec += NSEC_PER_SEC / 10; // 100ms in run_test() 31 if (timeout.tv_nsec > NSEC_PER_SEC) { in run_test() 32 timeout.tv_sec++; in run_test() 33 timeout.tv_nsec -= NSEC_PER_SEC; in run_test() 37 &timeout, 0, FUTEX_BITSET_MATCH_ANY) >= 0) { in run_test() 50 if (end.tv_sec < timeout.tv_sec || in run_test() 51 (end.tv_sec == timeout.tv_sec && end.tv_nsec < timeout in run_test() [all...] |
| /linux/tools/include/nolibc/sys/ |
| H A D | select.h | 64 int _sys_select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in _sys_select() argument 69 if (timeout) { in _sys_select() 70 t.tv_sec = timeout->tv_sec; in _sys_select() 71 t.tv_nsec = (uint32_t)timeout->tv_usec * 1000; in _sys_select() 74 timeout ? &t : NULL, NULL); in _sys_select() 78 if (timeout) { in _sys_select() 79 t.tv_sec = timeout->tv_sec; in _sys_select() 80 t.tv_nsec = (uint32_t)timeout->tv_usec * 1000; in _sys_select() 83 timeout ? &t : NULL, NULL); in _sys_select() 88 int select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *timeout) in select() argument [all …]
|
| /linux/drivers/watchdog/ |
| H A D | da9063_wdt.c | 25 * Watchdog selector to timeout in seconds. 27 * others: timeout = 2048 ms * 2^(TWDSCALE-1). 52 * Read the currently active timeout. 72 da9063_wdt_update_timeout(struct da9063 *da9063, unsigned int timeout) in da9063_wdt_update_timeout() argument 78 * The watchdog triggers a reboot if a timeout value is already in da9063_wdt_update_timeout() 79 * programmed because the timeout value combines two functions in da9063_wdt_update_timeout() 81 * The watchdog must be disabled to be able to change the timeout in da9063_wdt_update_timeout() 83 * new timeout value which enables the watchdog again. in da9063_wdt_update_timeout() 90 regval = da9063_wdt_timeout_to_sel(timeout); in da9063_wdt_update_timeout() 101 ret = da9063_wdt_update_timeout(da9063, wdd->timeout); in da9063_wdt_start() 144 da9063_wdt_set_timeout(struct watchdog_device * wdd,unsigned int timeout) da9063_wdt_set_timeout() argument 219 unsigned int timeout; da9063_wdt_probe() local [all...] |
| H A D | sunxi_wdt.c | 38 static unsigned int timeout; 64 * [timeout seconds] = register value 98 /* Set lowest timeout and enable watchdog */ in sunxi_wdt_restart() 144 unsigned int timeout; in sunxi_wdt_get_timeout() 150 /* Round the 0.5-second interval up to the minimum representable timeout. */ in sunxi_wdt_get_timeout() 154 for (timeout = WDT_MIN_TIMEOUT; in sunxi_wdt_get_timeout() 155 timeout < ARRAY_SIZE(wdt_timeout_map); timeout++) { in sunxi_wdt_get_timeout() 156 if (wdt_timeout_map[timeout] == interval) in sunxi_wdt_get_timeout() 157 return timeout; in sunxi_wdt_get_timeout() 37 static unsigned int timeout; global() variable 143 unsigned int timeout; sunxi_wdt_get_timeout() local 164 sunxi_wdt_set_timeout(struct watchdog_device * wdt_dev,unsigned int timeout) sunxi_wdt_set_timeout() argument [all...] |
| H A D | nic7018_wdt.c | 34 static unsigned int timeout; 35 module_param(timeout, uint, 0); 36 MODULE_PARM_DESC(timeout, 37 "Watchdog timeout in seconds. (default=" 67 static const struct nic7018_config *nic7018_get_config(u32 timeout, in nic7018_get_config() 73 if (timeout < 30 && timeout != 16) { in nic7018_get_config() 75 count = timeout / 2 + 1; in nic7018_get_config() 78 count = DIV_ROUND_UP(timeout + 16, 32); in nic7018_get_config() 88 unsigned int timeout) in nic7018_set_timeout() 33 static unsigned int timeout; global() variable 66 nic7018_get_config(u32 timeout,u8 * counter) nic7018_get_config() argument 87 nic7018_set_timeout(struct watchdog_device * wdd,unsigned int timeout) nic7018_set_timeout() argument [all...] |
| H A D | visconti_wdt.c | 44 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_start() 48 writel(timeout, priv->base + WDT_MAX); in visconti_wdt_start() 77 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() 80 if (timeout <= cnt) in visconti_wdt_get_timeleft() 82 timeout -= cnt; in visconti_wdt_get_timeleft() 84 return timeout / VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() 87 static int visconti_wdt_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in visconti_wdt_set_timeout() 92 wdev->timeout in visconti_wdt_set_timeout() 43 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; visconti_wdt_start() local 76 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; visconti_wdt_get_timeleft() local 86 visconti_wdt_set_timeout(struct watchdog_device * wdev,unsigned int timeout) visconti_wdt_set_timeout() argument [all...] |
| H A D | ts4800_wdt.c | 37 * TS-4800 supports the following timeout values: 46 * Keep the regmap/timeout map ordered by timeout 49 const int timeout; 80 unsigned int timeout) in ts4800_wdt_set_timeout() 86 if (ts4800_wdt_map[i].timeout >= timeout) in ts4800_wdt_set_timeout() 90 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout() 152 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe() 48 const int timeout; global() member 79 ts4800_wdt_set_timeout(struct watchdog_device * wdd,unsigned int timeout) ts4800_wdt_set_timeout() argument [all...] |
| H A D | sun4v_wdt.c | 28 static unsigned int timeout; 29 module_param(timeout, uint, 0); 30 MODULE_PARM_DESC(timeout, "Watchdog timeout in seconds (default=" 50 * HV watchdog timer will round up the timeout in sun4v_wdt_ping() 54 hverr = sun4v_mach_set_watchdog(wdd->timeout * 1000, NULL); in sun4v_wdt_ping() 62 unsigned int timeout) in sun4v_wdt_set_timeout() 64 wdd->timeout = timeout; in sun4v_wdt_set_timeout() 90 .timeout 27 static unsigned int timeout; global() variable 61 sun4v_wdt_set_timeout(struct watchdog_device * wdd,unsigned int timeout) sun4v_wdt_set_timeout() argument [all...] |
| H A D | kempld_wdt.c | 8 * Note: From the PLD watchdog point of view timeout and pretimeout are 10 * First the pretimeout stage runs out before the timeout stage gets 14 * |-----------------------T timeout 85 static unsigned int timeout = DEFAULT_TIMEOUT; 86 module_param(timeout, uint, 0); 87 MODULE_PARM_DESC(timeout, 88 "Watchdog timeout in seconds. (>=0, default=" 131 unsigned int timeout) in kempld_wdt_set_stage_timeout() 145 stage_timeout64 = (u64)timeout * pld->pld_clock; in kempld_wdt_set_stage_timeout() 174 unsigned int timeout; in kempld_wdt_get_timeout() 84 static unsigned int timeout = DEFAULT_TIMEOUT; global() variable 130 kempld_wdt_set_stage_timeout(struct kempld_wdt_data * wdt_data,struct kempld_wdt_stage * stage,unsigned int timeout) kempld_wdt_set_stage_timeout() argument 173 unsigned int timeout; kempld_wdt_get_timeout() local 198 kempld_wdt_set_timeout(struct watchdog_device * wdd,unsigned int timeout) kempld_wdt_set_timeout() argument 261 unsigned int pretimeout, timeout; kempld_wdt_update_timeouts() local [all...] |
| H A D | meson_wdt.c | 35 static unsigned int timeout; 87 unsigned int timeout) in meson_wdt_change_timeout() 94 reg |= MESON_SEC_TO_TC(timeout, meson_wdt->data->count_unit); in meson_wdt_change_timeout() 99 unsigned int timeout) in meson_wdt_set_timeout() 101 wdt_dev->timeout = timeout; in meson_wdt_set_timeout() 103 meson_wdt_change_timeout(wdt_dev, timeout); in meson_wdt_set_timeout() 126 meson_wdt_change_timeout(wdt_dev, meson_wdt->wdt_dev.timeout); in meson_wdt_start() 183 meson_wdt->wdt_dev.timeout = min_t(unsigned int, in meson_wdt_probe() 189 watchdog_init_timeout(&meson_wdt->wdt_dev, timeout, de in meson_wdt_probe() 34 static unsigned int timeout; global() variable 86 meson_wdt_change_timeout(struct watchdog_device * wdt_dev,unsigned int timeout) meson_wdt_change_timeout() argument 98 meson_wdt_set_timeout(struct watchdog_device * wdt_dev,unsigned int timeout) meson_wdt_set_timeout() argument [all...] |
| H A D | txx9wdt.c | 27 static unsigned int timeout = TIMER_MARGIN; /* in seconds */ 28 module_param(timeout, uint, 0); 29 MODULE_PARM_DESC(timeout, 30 "Watchdog timeout in seconds. " 31 "(0<timeout<((2^" __stringify(TXX9_TIMER_BITS) ")/(IMCLK/256)), " 55 __raw_writel(WD_TIMER_CLK * wdt_dev->timeout, &txx9wdt_reg->cpra); in txx9wdt_start() 78 wdt_dev->timeout = new_timeout; in txx9wdt_set_timeout() 125 if (timeout < 1 || timeout > WD_MAX_TIMEOUT) in txx9wdt_probe() 126 timeout in txx9wdt_probe() 26 static unsigned int timeout = TIMER_MARGIN; /* in seconds */ global() variable [all...] |
| /linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
| H A D | func_stack_tracer.tc | 12 timeout=10 13 while [ $timeout -ne 0 ]; do 17 timeout=$((timeout - 1)) 28 timeout=10 29 while [ $timeout -ne 0 ]; do 33 timeout=$((timeout - 1))
|
| /linux/drivers/i2c/algos/ |
| H A D | i2c-algo-pcf.c | 81 int timeout = DEF_TIMEOUT; in wait_for_bb() local 86 while (!(status & I2C_PCF_BB) && --timeout) { in wait_for_bb() 91 if (timeout == 0) { in wait_for_bb() 102 int timeout = DEF_TIMEOUT; in wait_for_pin() local 106 while ((*status & I2C_PCF_PIN) && --timeout) { in wait_for_pin() 115 if (timeout == 0) in wait_for_pin() 184 int wrcount, status, timeout; in pcf_sendbytes() local 188 timeout = wait_for_pin(adap, &status); in pcf_sendbytes() 189 if (timeout) { in pcf_sendbytes() 190 if (timeout == -EINTR) in pcf_sendbytes() [all …]
|
| /linux/drivers/gpu/drm/amd/pm/powerplay/hwmgr/ |
| H A D | common_baco.c | 30 u32 timeout = 5000, data; in baco_wait_register() local 35 timeout--; in baco_wait_register() 36 } while (value != (data & mask) && (timeout != 0)); in baco_wait_register() 38 if (timeout == 0) in baco_wait_register() 45 u32 shift, u32 value, u32 timeout) in baco_cmd_handler() argument 64 if (timeout) in baco_cmd_handler() 66 msleep(timeout); in baco_cmd_handler() 69 if (timeout) in baco_cmd_handler() 71 udelay(timeout); in baco_cmd_handler() 94 entry[i].shift, entry[i].val, entry[i].timeout)) in baco_program_registers() [all …]
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_hw_engine_class_sysfs.c | 21 * xe_hw_engine_timeout_in_range - Helper to check if timeout is in range 22 * @timeout: timeout to validate 26 * This helper helps to validate if timeout is in min-max range of HW engine 31 bool xe_hw_engine_timeout_in_range(u64 timeout, u64 min, u64 max) in xe_hw_engine_timeout_in_range() 33 return timeout >= min && timeout <= max; in xe_hw_engine_timeout_in_range() 94 u32 timeout; in job_timeout_max_store() 97 err = kstrtou32(buf, 0, &timeout); in job_timeout_max_store() 101 if (timeout < eclas in job_timeout_max_store() 30 xe_hw_engine_timeout_in_range(u64 timeout,u64 min,u64 max) xe_hw_engine_timeout_in_range() argument 93 u32 timeout; job_timeout_max_store() local 129 u32 timeout; job_timeout_min_store() local 167 u32 timeout; job_timeout_store() local 376 u32 timeout; preempt_timeout_store() local 443 u32 timeout; preempt_timeout_max_store() local 480 u32 timeout; preempt_timeout_min_store() local [all...] |
| /linux/arch/mips/loongson2ef/lemote-2f/ |
| H A D | ec_kb3310b.c | 53 int timeout; in ec_query_seq() local 66 timeout = EC_CMD_TIMEOUT; in ec_query_seq() 68 while (timeout-- && (status & (1 << 1))) { in ec_query_seq() 75 if (timeout <= 0) { in ec_query_seq() 81 timeout, EC_CMD_TIMEOUT - timeout, cmd, status); in ec_query_seq() 104 int timeout = 100; in ec_get_event_num() local 111 while (timeout-- && !(status & (1 << 0))) { in ec_get_event_num() 115 if (timeout <= 0) { in ec_get_event_num()
|
| /linux/arch/arm/mach-sa1100/ |
| H A D | ssp.c | 53 int timeout = TIMEOUT; in ssp_write_word() local 56 if (!--timeout) in ssp_write_word() 63 timeout = TIMEOUT; in ssp_write_word() 65 if (!--timeout) in ssp_write_word() 90 int timeout = TIMEOUT; in ssp_read_word() local 93 if (!--timeout) in ssp_read_word() 117 int timeout = TIMEOUT * 2; in ssp_flush() local 121 if (!--timeout) in ssp_flush() 125 if (!--timeout) in ssp_flush()
|