/kernel/linux/linux-5.10/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...] |
/kernel/linux/linux-5.10/drivers/watchdog/ |
H A D | alim7101_wdt.c | 13 * because this particular WDT has a very short timeout (1.6 50 * We're going to use a 1 second timeout. 61 #define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ 63 static int timeout = WATCHDOG_TIMEOUT; variable 64 module_param(timeout, int, 0); 65 MODULE_PARM_DESC(timeout, 66 "Watchdog timeout in seconds. (1<=timeout<=3600, default=" 153 next_heartbeat = jiffies + (timeout * HZ); in wdt_startup() 177 next_heartbeat = jiffies + (timeout * H in wdt_keepalive() [all...] |
H A D | mlx_wdt.c | 36 * @timeout: defined timeout in sec.; 109 unsigned int timeout) in mlxreg_wdt_set_timeout() 122 hw_timeout = order_base_2(timeout * MLXREG_WDT_CLOCK_SCALE); in mlxreg_wdt_set_timeout() 129 set_time = timeout; in mlxreg_wdt_set_timeout() 130 rc = regmap_write(wdt->regmap, reg_data->reg, timeout); in mlxreg_wdt_set_timeout() 134 set_time = timeout; in mlxreg_wdt_set_timeout() 136 regval = timeout & 0xff; in mlxreg_wdt_set_timeout() 139 regval = (timeout & 0xff00) >> 8; in mlxreg_wdt_set_timeout() 144 rc = regmap_write(wdt->regmap, reg_data->reg, timeout); in mlxreg_wdt_set_timeout() 108 mlxreg_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) mlxreg_wdt_set_timeout() argument 274 u32 timeout; mlxreg_wdt_init_timeout() local [all...] |
H A D | qcom-wdt.c | 77 unsigned int bark = wdd->timeout - wdd->pretimeout; in qcom_wdt_start() 82 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME)); in qcom_wdt_start() 104 unsigned int timeout) in qcom_wdt_set_timeout() 106 wdd->timeout = timeout; in qcom_wdt_set_timeout() 111 unsigned int timeout) in qcom_wdt_set_pretimeout() 113 wdd->pretimeout = timeout; in qcom_wdt_set_pretimeout() 121 u32 timeout; in qcom_wdt_restart() local 127 timeout = 128 * wdt->rate / 1000; in qcom_wdt_restart() 131 writel(timeout, wdt_add in qcom_wdt_restart() 103 qcom_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) qcom_wdt_set_timeout() argument 110 qcom_wdt_set_pretimeout(struct watchdog_device *wdd, unsigned int timeout) qcom_wdt_set_pretimeout() argument [all...] |
H A D | hpwdt.c | 69 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_start() 71 dev_dbg(wdd->parent, "start watchdog 0x%08x:0x%08x:0x%02x\n", wdd->timeout, reload, control); in hpwdt_start() 104 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_ping() 106 dev_dbg(wdd->parent, "ping watchdog 0x%08x:0x%08x\n", wdd->timeout, reload); in hpwdt_ping() 121 wdd->timeout = val; in hpwdt_settimeout() 123 dev_dbg(wdd->parent, "pretimeout < timeout. Setting to zero\n"); in hpwdt_settimeout() 142 if (val >= wdd->timeout) in hpwdt_set_pretimeout() 188 unsigned int val = max((unsigned int)kdumptimeout, hpwdt_dev.timeout); in hpwdt_pretimeout() 228 .timeout = DEFAULT_MARGIN, 337 if (pretimeout && hpwdt_dev.timeout < in hpwdt_init_one() [all...] |
H A D | mpc8xxx_wdt.c | 56 static u16 timeout; variable 57 module_param(timeout, ushort, 0); 58 MODULE_PARM_DESC(timeout, 59 "Watchdog timeout in seconds. (1<timeout<65535, default=" 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 in mpc8xxx_wdt_probe() [all...] |
H A D | advantechwdt.c | 44 #define WATCHDOG_TIMEOUT 60 /* 60 sec default timeout */ 54 * To enable or restart, write the timeout value in seconds (1 to 63) 70 static int timeout = WATCHDOG_TIMEOUT; /* in seconds */ variable 71 module_param(timeout, int, 0); 72 MODULE_PARM_DESC(timeout, 73 "Watchdog timeout in seconds. 1<= timeout <=63, default=" 89 outb_p(timeout, wdt_start); in advwdt_ping() 101 timeout = t; in advwdt_set_heartbeat() 182 return put_user(timeout, in advwdt_ioctl() [all...] |
H A D | sc520_wdt.c | 35 * - made timeout (the emulated heartbeat) a module_param 44 * because this particular WDT has a very short timeout (1.6 70 * The AMD Elan SC520 timeout value is 492us times a power of 2 (0-7) 75 * We will program the SC520 watchdog for a timeout of 2.01s. 87 #define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ 89 static int timeout = WATCHDOG_TIMEOUT; variable 90 module_param(timeout, int, 0); 91 MODULE_PARM_DESC(timeout, 92 "Watchdog timeout in seconds. (1 <= timeout < [all...] |
H A D | rc32434_wdt.c | 52 /* Use a default timeout of 20s. This should be 57 static int timeout = WATCHDOG_TIMEOUT; variable 58 module_param(timeout, int, 0); 59 MODULE_PARM_DESC(timeout, "Watchdog timeout value, in seconds (default=" 76 pr_err("timeout value must be between 0 and %d\n", max_to); in rc32434_wdt_set() 79 timeout = new_timeout; in rc32434_wdt_set() 81 writel(SEC2WTCOMP(timeout), &wdt_reg->wtcompare); in rc32434_wdt_set() 101 /* reset the ERRCS timeout bit in case it's set */ in rc32434_wdt_start() 106 /* set the timeout (eithe in rc32434_wdt_start() [all...] |
H A D | rza_wdt.c | 35 /* The maximum CKS register setting value to get the longest timeout */ 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() 59 * Since max_timeout was set in probe, we know that the timeout in rza_wdt_calc_timeout() 66 /* Start timer with longest timeout */ in rza_wdt_calc_timeout() 70 pr_debug("%s: timeout set to %u (WTCNT=%d)\n", __func__, 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 rza_set_timeout(struct watchdog_device *wdev, unsigned int timeout) rza_set_timeout() argument [all...] |
H A D | uniphier_wdt.c | 44 static unsigned int timeout = 0; variable 129 tmp_timeout = roundup_pow_of_two(w->timeout); in uniphier_watchdog_start() 149 if (tmp_timeout == w->timeout) in uniphier_watchdog_set_timeout() 158 w->timeout = tmp_timeout; in uniphier_watchdog_set_timeout() 205 wdev->wdt_dev.timeout = WDT_DEFAULT_TIMEOUT; in uniphier_wdt_probe() 208 watchdog_init_timeout(&wdev->wdt_dev, timeout, dev); in uniphier_wdt_probe() 223 dev_info(dev, "watchdog driver (timeout=%d sec, nowayout=%d)\n", in uniphier_wdt_probe() 224 wdev->wdt_dev.timeout, nowayout); in uniphier_wdt_probe() 245 module_param(timeout, uint, 0000); 246 MODULE_PARM_DESC(timeout, [all...] |
H A D | max63xx_wdt.c | 49 const struct max63xx_timeout *timeout; member 61 * The timeout values used are actually the absolute minimum the chip 63 * (10s setting ends up with a 25s timeout), and can be up to 3 times 69 * I also decided to remove from the tables any timeout smaller than a 132 wdt->set(wdt, wdt->timeout->wdset); in max63xx_wdt_start() 135 if (wdt->timeout->tdelay == 0) in max63xx_wdt_start() 217 wdt->timeout = max63xx_select_timeout(table, heartbeat); in max63xx_wdt_probe() 218 if (!wdt->timeout) { in max63xx_wdt_probe() 232 wdt->wdd.timeout = wdt->timeout in max63xx_wdt_probe() [all...] |
/kernel/linux/linux-6.6/drivers/watchdog/ |
H A D | alim7101_wdt.c | 13 * because this particular WDT has a very short timeout (1.6 50 * We're going to use a 1 second timeout. 61 #define WATCHDOG_TIMEOUT 30 /* 30 sec default timeout */ 63 static int timeout = WATCHDOG_TIMEOUT; variable 64 module_param(timeout, int, 0); 65 MODULE_PARM_DESC(timeout, 66 "Watchdog timeout in seconds. (1<=timeout<=3600, default=" 153 next_heartbeat = jiffies + (timeout * HZ); in wdt_startup() 177 next_heartbeat = jiffies + (timeout * H in wdt_keepalive() [all...] |
H A D | hpwdt.c | 73 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_start() 75 dev_dbg(wdd->parent, "start watchdog 0x%08x:0x%08x:0x%02x\n", wdd->timeout, reload, control); in hpwdt_start() 108 int reload = SECS_TO_TICKS(min(wdd->timeout, wdd->max_hw_heartbeat_ms/1000)); in hpwdt_ping() 110 dev_dbg(wdd->parent, "ping watchdog 0x%08x:0x%08x\n", wdd->timeout, reload); in hpwdt_ping() 125 wdd->timeout = val; in hpwdt_settimeout() 127 dev_dbg(wdd->parent, "pretimeout < timeout. Setting to zero\n"); in hpwdt_settimeout() 146 if (val >= wdd->timeout) in hpwdt_set_pretimeout() 192 unsigned int val = max((unsigned int)kdumptimeout, hpwdt_dev.timeout); in hpwdt_pretimeout() 232 .timeout = DEFAULT_MARGIN, 346 if (pretimeout && hpwdt_dev.timeout < in hpwdt_init_one() [all...] |
H A D | mlx_wdt.c | 36 * @timeout: defined timeout in sec.; 108 unsigned int timeout) in mlxreg_wdt_set_timeout() 121 hw_timeout = order_base_2(timeout * MLXREG_WDT_CLOCK_SCALE); in mlxreg_wdt_set_timeout() 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() 107 mlxreg_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) mlxreg_wdt_set_timeout() argument 273 u32 timeout; mlxreg_wdt_init_timeout() local [all...] |
H A D | qcom-wdt.c | 76 unsigned int bark = wdd->timeout - wdd->pretimeout; in qcom_wdt_start() 81 writel(wdd->timeout * wdt->rate, wdt_addr(wdt, WDT_BITE_TIME)); in qcom_wdt_start() 103 unsigned int timeout) in qcom_wdt_set_timeout() 105 wdd->timeout = timeout; in qcom_wdt_set_timeout() 110 unsigned int timeout) in qcom_wdt_set_pretimeout() 112 wdd->pretimeout = timeout; in qcom_wdt_set_pretimeout() 120 u32 timeout; in qcom_wdt_restart() local 126 timeout = 128 * wdt->rate / 1000; in qcom_wdt_restart() 130 writel(timeout, wdt_add in qcom_wdt_restart() 102 qcom_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) qcom_wdt_set_timeout() argument 109 qcom_wdt_set_pretimeout(struct watchdog_device *wdd, unsigned int timeout) qcom_wdt_set_pretimeout() argument [all...] |
/kernel/linux/linux-6.6/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() 84 u64 n = (u64)timeout * apb->rate; in bt1_apb_timeout_to_n_us() 100 "APB-bus fault %d: Slave access timeout at 0x%08x\n", in bt1_apb_isr() 276 unsigned long timeout; in timeout_show() local 284 timeout = bt1_apb_n_to_timeout_us(apb, n); in timeout_show() 286 return scnprintf(buf, PAGE_SIZE, "%lu\n", timeout); in timeout_show() 294 unsigned long timeout; in timeout_store() local 81 bt1_apb_timeout_to_n_us(struct bt1_apb *apb, unsigned long timeout) bt1_apb_timeout_to_n_us() argument [all...] |
/kernel/linux/linux-6.6/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 << in mount_cifs_root() [all...] |
/kernel/linux/linux-6.6/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...] |
/third_party/python/Lib/multiprocessing/ |
H A D | connection.py | 42 # A very generous timeout when it comes to local connections... 59 def _init_timeout(timeout=CONNECTION_TIMEOUT): 60 return time.monotonic() + timeout 252 def poll(self, timeout=0.0): 256 return self._poll(timeout) 325 def _poll(self, timeout): 329 return bool(wait([self], timeout)) 422 def _poll(self, timeout): 423 r = wait([self], timeout) 804 def _exhaustive_wait(handles, timeout) [all...] |
/kernel/linux/linux-5.10/sound/pci/asihpi/ |
H A D | hpi6000.c | 631 u32 timeout; in hpi6000_adapter_boot_load_dsp() local 1040 timeout = 2000000; in hpi6000_adapter_boot_load_dsp() 1041 while (timeout) { in hpi6000_adapter_boot_load_dsp() 1045 } while (--timeout in hpi6000_adapter_boot_load_dsp() 1060 if (timeout == 0) in hpi6000_adapter_boot_load_dsp() 1133 u32 timeout = PCI_TIMEOUT; in hpi_set_address() local 1139 && --timeout); in hpi_set_address() 1141 if (timeout) in hpi_set_address() 1290 u32 timeout; in hpi6000_message_response_sequence() local 1306 timeout in hpi6000_message_response_sequence() 1546 u32 timeout = TIMEOUT; hpi6000_send_host_command() local 1593 u32 timeout; hpi6000_wait_dsp_ack() local 1635 u32 timeout; hpi6000_update_control_cache() local [all...] |
/kernel/linux/linux-6.6/sound/pci/asihpi/ |
H A D | hpi6000.c | 631 u32 timeout; in hpi6000_adapter_boot_load_dsp() local 1040 timeout = 2000000; in hpi6000_adapter_boot_load_dsp() 1041 while (timeout) { in hpi6000_adapter_boot_load_dsp() 1045 } while (--timeout in hpi6000_adapter_boot_load_dsp() 1060 if (timeout == 0) in hpi6000_adapter_boot_load_dsp() 1133 u32 timeout = PCI_TIMEOUT; in hpi_set_address() local 1139 && --timeout); in hpi_set_address() 1141 if (timeout) in hpi_set_address() 1288 u32 timeout; in hpi6000_message_response_sequence() local 1304 timeout in hpi6000_message_response_sequence() 1544 u32 timeout = TIMEOUT; hpi6000_send_host_command() local 1591 u32 timeout; hpi6000_wait_dsp_ack() local 1633 u32 timeout; hpi6000_update_control_cache() local [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | wait_bit.h | 13 unsigned long timeout; member 31 int out_of_line_wait_on_bit_timeout(void *word, int, wait_bit_action_f *action, unsigned int mode, unsigned long timeout); 107 * wait_on_bit_timeout - wait for a bit to be cleared or a timeout elapses 111 * @timeout: timeout, in jiffies 115 * timeout parameter. 118 * @timeout elapsed, or non-zero if the @timeout elapsed or process 123 unsigned long timeout) in wait_on_bit_timeout() 130 mode, timeout); in wait_on_bit_timeout() 122 wait_on_bit_timeout(unsigned long *word, int bit, unsigned mode, unsigned long timeout) wait_on_bit_timeout() argument [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_recovery.c | 103 u32 timeout; in tcp_rack_mark_lost() local 110 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_mark_lost() 111 if (timeout) { in tcp_rack_mark_lost() 112 timeout = usecs_to_jiffies(timeout + TCP_TIMEOUT_MIN_US); in tcp_rack_mark_lost() 114 timeout, inet_csk(sk)->icsk_rto); in tcp_rack_mark_lost() 116 return !!timeout; in tcp_rack_mark_lost() 136 * the aRTT term is bounded by the fast recovery or timeout, in tcp_rack_advance() 157 u32 timeout, prior_inflight; in tcp_rack_reo_timeout() local 160 tcp_rack_detect_loss(sk, &timeout); in tcp_rack_reo_timeout() [all...] |
/kernel/linux/linux-6.6/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()
|