/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/drivers/watchdog/ |
H A D | npcm_wdt.c | 73 if (wdd->timeout < 2) in npcm_wdt_start() 75 else if (wdd->timeout < 3) in npcm_wdt_start() 77 else if (wdd->timeout < 6) in npcm_wdt_start() 79 else if (wdd->timeout < 11) in npcm_wdt_start() 81 else if (wdd->timeout < 22) in npcm_wdt_start() 83 else if (wdd->timeout < 44) in npcm_wdt_start() 85 else if (wdd->timeout < 87) in npcm_wdt_start() 87 else if (wdd->timeout < 173) in npcm_wdt_start() 89 else if (wdd->timeout < 688) in npcm_wdt_start() 113 unsigned int timeout) in npcm_wdt_set_timeout() argument [all...] |
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 | visconti_wdt.c | 43 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_start() local 47 writel(timeout, priv->base + WDT_MAX); in visconti_wdt_start() 76 u32 timeout = wdev->timeout * VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() local 79 if (timeout <= cnt) in visconti_wdt_get_timeleft() 81 timeout -= cnt; in visconti_wdt_get_timeleft() 83 return timeout / VISCONTI_WDT_FREQ; in visconti_wdt_get_timeleft() 86 static int visconti_wdt_set_timeout(struct watchdog_device *wdev, unsigned int timeout) in visconti_wdt_set_timeout() argument 91 wdev->timeout in visconti_wdt_set_timeout() [all...] |
H A D | nic7018_wdt.c | 34 static unsigned int timeout; variable 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() argument 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() argument [all...] |
H A D | ts4800_wdt.c | 36 * TS-4800 supports the following timeout values: 45 * Keep the regmap/timeout map ordered by timeout 48 const int timeout; member 79 unsigned int timeout) in ts4800_wdt_set_timeout() argument 85 if (ts4800_wdt_map[i].timeout >= timeout) in ts4800_wdt_set_timeout() 89 wdd->timeout = ts4800_wdt_map[i].timeout; in ts4800_wdt_set_timeout() 151 wdd->min_timeout = ts4800_wdt_map[0].timeout; in ts4800_wdt_probe() [all...] |
/linux/Documentation/watchdog/ |
H A D | watchdog-parameters.rst | 21 timeout. Setting this to a non-zero value can be useful to ensure that 43 timeout: 44 Watchdog timeout in seconds. 1<= timeout <=63, default=60. 52 timeout: 53 Watchdog timeout in seconds. (0 < timeout < 18000, default=60 61 timeout: 62 Watchdog timeout in seconds. (1<=timeout< [all...] |
/linux/net/netfilter/ |
H A D | nf_conntrack_timeout.c | 28 static int untimeout(struct nf_conn *ct, void *timeout) in untimeout() argument 35 t = rcu_access_pointer(timeout_ext->timeout); in untimeout() 37 if (!timeout || t == timeout) in untimeout() 38 RCU_INIT_POINTER(timeout_ext->timeout, NULL); in untimeout() 45 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout) in nf_ct_untimeout() argument 49 .data = timeout, in nf_ct_untimeout() 56 static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout) in __nf_ct_timeout_put() argument 61 h->timeout_put(timeout); in __nf_ct_timeout_put() 68 struct nf_ct_timeout *timeout; in nf_ct_set_timeout() local [all...] |
H A D | nfnetlink_cttimeout.c | 44 struct nf_ct_timeout timeout; member 54 MODULE_DESCRIPTION("cttimeout: Extended Netfilter Connection Tracking timeout tuning"); 70 ctnl_timeout_parse_policy(void *timeout, in ctnl_timeout_parse_policy() argument 91 ret = l4proto->ctnl_timeout.nlattr_to_obj(tb, net, timeout); in ctnl_timeout_parse_policy() 106 struct ctnl_timeout *timeout, *matching = NULL; in cttimeout_new_timeout() local 120 list_for_each_entry(timeout, &pernet->nfct_timeout_list, head) { in cttimeout_new_timeout() 121 if (strncmp(timeout->name, name, CTNL_TIMEOUT_NAME_MAX) != 0) in cttimeout_new_timeout() 127 matching = timeout; in cttimeout_new_timeout() 133 /* You cannot replace one timeout policy by another of in cttimeout_new_timeout() 136 if (matching->timeout in cttimeout_new_timeout() 185 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 312 ctnl_timeout_try_del(struct net * net,struct ctnl_timeout * timeout) ctnl_timeout_try_del() argument 510 struct ctnl_timeout *timeout, *matching = NULL; ctnl_timeout_find_get() local 527 struct ctnl_timeout *timeout = ctnl_timeout_put() local 654 untimeout(struct nf_conn * ct,void * timeout) untimeout() argument [all...] |
H A D | nf_conntrack_proto_generic.c | 24 unsigned int *timeout = data; in generic_timeout_nlattr_to_obj() local 26 if (!timeout) in generic_timeout_nlattr_to_obj() 27 timeout = &gn->timeout; in generic_timeout_nlattr_to_obj() 30 *timeout = in generic_timeout_nlattr_to_obj() 33 /* Set default generic timeout. */ in generic_timeout_nlattr_to_obj() 34 *timeout = gn->timeout; in generic_timeout_nlattr_to_obj() 43 const unsigned int *timeout = data; in generic_timeout_obj_to_nlattr() local 45 if (nla_put_be32(skb, CTA_TIMEOUT_GENERIC_TIMEOUT, htonl(*timeout / H in generic_timeout_obj_to_nlattr() [all...] |
/linux/tools/include/nolibc/ |
H A D | poll.h | 20 * int poll(struct pollfd *fds, int nfds, int timeout); 24 int sys_poll(struct pollfd *fds, int nfds, int timeout) in sys_poll() argument 29 if (timeout >= 0) { in sys_poll() 30 t.tv_sec = timeout / 1000; in sys_poll() 31 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll() 33 return my_syscall5(__NR_ppoll, fds, nfds, (timeout >= 0) ? &t : NULL, NULL, 0); in sys_poll() 37 if (timeout >= 0) { in sys_poll() 38 t.tv_sec = timeout / 1000; in sys_poll() 39 t.tv_nsec = (timeout % 1000) * 1000000; in sys_poll() 41 return my_syscall5(__NR_ppoll_time64, fds, nfds, (timeout > in sys_poll() 50 poll(struct pollfd * fds,int nfds,int timeout) poll() 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 [all...] |
/linux/io_uring/ |
H A D | timeout.c | 14 #include "timeout.h" 32 /* timeout update */ 43 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_is_timeout_noseq() local 46 return !timeout->off || data->flags & IORING_TIMEOUT_MULTISHOT; in io_is_timeout_noseq() 57 static inline bool io_timeout_finish(struct io_timeout *timeout, in io_timeout_finish() argument 63 if (!timeout->off || (timeout->repeats && --timeout->repeats)) in io_timeout_finish() 73 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); in io_timeout_complete() local 77 if (!io_timeout_finish(timeout, dat in io_timeout_complete() 97 struct io_timeout *timeout; io_flush_killed_timeouts() local 117 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_kill_timeout() local 127 struct io_timeout *timeout, *tmp; io_flush_timeouts() local 242 struct io_timeout *timeout = io_kiocb_to_cmd(link, struct io_timeout); __io_disarm_linked_timeout() local 259 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout_fn() local 282 struct io_timeout *timeout; io_timeout_extract() local 322 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_req_task_link_timeout() local 351 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_link_timeout_fn() local 398 struct io_timeout *timeout; io_linked_timeout_update() local 426 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout_update() local 515 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); __io_timeout_prep() local 593 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_timeout() local 643 struct io_timeout *timeout = io_kiocb_to_cmd(req, struct io_timeout); io_queue_linked_timeout() local 685 struct io_timeout *timeout, *tmp; io_kill_timeouts() local [all...] |
/linux/drivers/gpu/drm/xe/ |
H A D | xe_wait_user_fence.c | 62 long timeout; in to_jiffies_timeout() local 65 * For negative timeout we want to wait "forever" by setting in to_jiffies_timeout() 67 * to args->timeout to avoid being zeroed on the signal delivery in to_jiffies_timeout() 70 if (args->timeout < 0) { in to_jiffies_timeout() 71 args->timeout = MAX_SCHEDULE_TIMEOUT; in to_jiffies_timeout() 75 if (args->timeout == 0) in to_jiffies_timeout() 79 * Save the timeout to an u64 variable because nsecs_to_jiffies in to_jiffies_timeout() 83 t = drm_timeout_abs_to_jiffies(args->timeout); in to_jiffies_timeout() 85 t = nsecs_to_jiffies(args->timeout); in to_jiffies_timeout() 91 * args->timeout shoul in to_jiffies_timeout() 111 long timeout; xe_wait_user_fence_ioctl() local [all...] |
/linux/drivers/accel/ivpu/ |
H A D | ivpu_hw.c | 94 vdev->timeout.boot = -1; in timeouts_init() 95 vdev->timeout.jsm = -1; in timeouts_init() 96 vdev->timeout.tdr = -1; in timeouts_init() 97 vdev->timeout.inference = -1; in timeouts_init() 98 vdev->timeout.autosuspend = -1; in timeouts_init() 99 vdev->timeout.d0i3_entry_msg = -1; in timeouts_init() 101 vdev->timeout.boot = 50; in timeouts_init() 102 vdev->timeout.jsm = 15000; in timeouts_init() 103 vdev->timeout.tdr = 30000; in timeouts_init() 104 vdev->timeout in timeouts_init() [all...] |
/linux/include/linux/ |
H A D | wait.h | 298 * on purpose; we use long where we can return timeout values and int 393 #define __wait_event_timeout(wq_head, condition, timeout) \ argument 395 TASK_UNINTERRUPTIBLE, 0, timeout, \ 399 * wait_event_timeout - sleep until a condition gets true or a timeout elapses 402 * @timeout: timeout, in jiffies 412 * 0 if the @condition evaluated to %false after the @timeout elapsed, 413 * 1 if the @condition evaluated to %true after the @timeout elapsed, 415 * to %true before the @timeout elapsed. 417 #define wait_event_timeout(wq_head, condition, timeout) \ argument 426 __wait_event_freezable_timeout(wq_head,condition,timeout) global() argument 435 wait_event_freezable_timeout(wq_head,condition,timeout) global() argument 510 __wait_event_interruptible_timeout(wq_head,condition,timeout) global() argument 535 wait_event_interruptible_timeout(wq_head,condition,timeout) global() argument 545 __wait_event_hrtimeout(wq_head,condition,timeout,state) global() argument 586 wait_event_hrtimeout(wq_head,condition,timeout) global() argument 612 wait_event_interruptible_hrtimeout(wq,condition,timeout) global() argument 706 __wait_event_idle_timeout(wq_head,condition,timeout) global() argument 730 wait_event_idle_timeout(wq_head,condition,timeout) global() argument 739 __wait_event_idle_exclusive_timeout(wq_head,condition,timeout) global() argument 767 wait_event_idle_exclusive_timeout(wq_head,condition,timeout) global() argument 968 __wait_event_killable_timeout(wq_head,condition,timeout) global() argument 995 wait_event_killable_timeout(wq_head,condition,timeout) global() argument 1143 __wait_event_lock_irq_timeout(wq_head,condition,lock,timeout,state) global() argument 1174 wait_event_interruptible_lock_irq_timeout(wq_head,condition,lock,timeout) global() argument 1185 wait_event_lock_irq_timeout(wq_head,condition,lock,timeout) global() argument [all...] |
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); \ 254 __swait_event_idle_timeout(wq,condition,timeout) global() argument 278 swait_event_idle_timeout_exclusive(wq,condition,timeout) global() argument [all...] |
/linux/include/net/netfilter/ |
H A D | nf_conntrack_timeout.h | 21 struct nf_ct_timeout __rcu *timeout; member 28 struct nf_ct_timeout *timeout; in nf_ct_timeout_data() local 30 timeout = rcu_dereference(t->timeout); in nf_ct_timeout_data() 31 if (timeout == NULL) in nf_ct_timeout_data() 34 return (unsigned int *)timeout->data; in nf_ct_timeout_data() 52 struct nf_ct_timeout *timeout, in nf_ct_timeout_ext_add() argument 62 rcu_assign_pointer(timeout_ext->timeout, timeout); in nf_ct_timeout_ext_add() 84 void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout); [all...] |
/linux/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_wait.c | 19 long timeout) in i915_gem_object_wait_fence() argument 24 return timeout; in i915_gem_object_wait_fence() 27 return i915_request_wait_timeout(to_request(fence), flags, timeout); in i915_gem_object_wait_fence() 31 timeout); in i915_gem_object_wait_fence() 68 long timeout) in i915_gem_object_wait_reservation() argument 72 long ret = timeout ?: 1; in i915_gem_object_wait_reservation() 79 ret = i915_gem_object_wait_fence(fence, flags, timeout); in i915_gem_object_wait_reservation() 83 if (timeout) in i915_gem_object_wait_reservation() 84 timeout = ret; in i915_gem_object_wait_reservation() 161 * @timeout 166 i915_gem_object_wait(struct drm_i915_gem_object * obj,unsigned int flags,long timeout) i915_gem_object_wait() argument [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/drivers/tty/ |
H A D | tty_ldsem.c | 156 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() argument 198 if (!timeout) in down_read_failed() 200 timeout = schedule_timeout(timeout); in down_read_failed() 205 if (!timeout) { in down_read_failed() 209 * was no timeout; otherwise, cleanup lock wait. in down_read_failed() 230 down_write_failed(struct ld_semaphore *sem, long count, long timeout) in down_write_failed() argument 259 if (!timeout) in down_write_failed() 262 timeout = schedule_timeout(timeout); in down_write_failed() 296 __ldsem_down_read_nested(struct ld_semaphore * sem,int subclass,long timeout) __ldsem_down_read_nested() argument 315 __ldsem_down_write_nested(struct ld_semaphore * sem,int subclass,long timeout) __ldsem_down_write_nested() argument 337 ldsem_down_read(struct ld_semaphore * sem,long timeout) ldsem_down_read() argument 363 ldsem_down_write(struct ld_semaphore * sem,long timeout) ldsem_down_write() argument 400 ldsem_down_read_nested(struct ld_semaphore * sem,int subclass,long timeout) ldsem_down_read_nested() argument 407 ldsem_down_write_nested(struct ld_semaphore * sem,int subclass,long timeout) ldsem_down_write_nested() argument [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/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/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/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() 76 printk(KERN_ERR "%s: deadable error : timeout...\n", __func__); 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 < in ec_get_event_num() [all...] |