Home
last modified time | relevance | path

Searched refs:timeout (Results 1676 - 1700 of 7582) sorted by relevance

1...<<61626364656667686970>>...304

/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/
H A Dcmd.c25 unsigned long timeout; in wl1251_cmd_send() local
39 timeout = jiffies + msecs_to_jiffies(WL1251_COMMAND_TIMEOUT); in wl1251_cmd_send()
43 if (time_after(jiffies, timeout)) { in wl1251_cmd_send()
44 wl1251_error("command complete timeout"); in wl1251_cmd_send()
496 int wl1251_cmd_trigger_scan_to(struct wl1251 *wl, u32 timeout) in wl1251_cmd_trigger_scan_to() argument
507 cmd->timeout = timeout; in wl1251_cmd_trigger_scan_to()
/kernel/linux/linux-5.10/drivers/spi/
H A Dspi-sprd-adi.c105 /* Use default timeout 50 ms that converts to watchdog values */
140 u32 timeout = ADI_FIFO_DRAIN_TIMEOUT; in sprd_adi_drain_fifo() local
149 } while (--timeout); in sprd_adi_drain_fifo()
151 if (timeout == 0) { in sprd_adi_drain_fifo()
152 dev_err(sadi->dev, "drain write fifo timeout\n"); in sprd_adi_drain_fifo()
202 dev_err(sadi->dev, "ADI read timeout\n"); in sprd_adi_read()
233 u32 timeout = ADI_FIFO_DRAIN_TIMEOUT; in sprd_adi_write() local
262 } while (--timeout); in sprd_adi_write()
264 if (timeout == 0) { in sprd_adi_write()
391 /* Load the watchdog timeout valu in sprd_adi_restart_handler()
[all...]
/kernel/linux/linux-6.6/drivers/mtd/devices/
H A Dblock2mtd.c14 * wait a little bit and retry. This timeout, by default 3 seconds, gives
223 blk_mode_t mode, int timeout, struct block2mtd_dev *dev) in mdtblock_early_get_bdev()
239 for (i = 0; i <= timeout; i++) { in mdtblock_early_get_bdev()
262 char *label, int timeout) in add_device()
279 bdev = mdtblock_early_get_bdev(devname, mode, timeout, dev); in add_device()
403 /* 80 for device, 12 for erase size, 80 for name, 8 for timeout */ in block2mtd_setup2()
410 unsigned long timeout = MTD_DEFAULT_TIMEOUT; in block2mtd_setup2() local
454 add_device(name, erase_size, label, timeout); in block2mtd_setup2()
222 mdtblock_early_get_bdev(const char *devname, blk_mode_t mode, int timeout, struct block2mtd_dev *dev) mdtblock_early_get_bdev() argument
261 add_device(char *devname, int erase_size, char *label, int timeout) add_device() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/engleder/
H A Dtsnep_tc.c264 u64 timeout; in tsnep_enable_gcl() local
267 /* estimate timeout limit after timeout enable, actually timeout limit in tsnep_enable_gcl()
271 timeout = system_time + TSNEP_GC_TIMEOUT; in tsnep_enable_gcl()
274 limit = timeout + curr->change_limit; in tsnep_enable_gcl()
276 limit = timeout; in tsnep_enable_gcl()
304 WARN_ON(change <= timeout); in tsnep_enable_gcl()
309 WARN_ON(gcl->start_time <= timeout); in tsnep_enable_gcl()
364 /* start timeout whic in tsnep_taprio()
[all...]
/kernel/linux/linux-6.6/drivers/watchdog/
H A Daspeed_wdt.c141 aspeed_wdt_enable(wdt, wdd->timeout * WDT_RATE_1MHZ); in aspeed_wdt_start()
166 unsigned int timeout) in aspeed_wdt_set_timeout()
171 wdd->timeout = timeout; in aspeed_wdt_set_timeout()
173 actual = min(timeout, wdd->max_hw_heartbeat_ms / 1000); in aspeed_wdt_set_timeout()
252 * Clearing the boot code selection and timeout counter also resets to the
351 wdt->wdd.timeout = WDT_DEFAULT_TIMEOUT; in aspeed_wdt_probe()
165 aspeed_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) aspeed_wdt_set_timeout() argument
H A Dstarfive-wdt.c97 bool double_timeout; /* The watchdog need twice timeout to reboot */
108 u32 count; /* count of timeout */
313 * If the watchdog takes twice timeout and set half count value, in starfive_wdt_get_timeleft()
314 * timeleft value should add the count value before first timeout. in starfive_wdt_get_timeleft()
389 unsigned int timeout) in starfive_wdt_set_timeout()
392 unsigned long count = timeout * wdt->freq; in starfive_wdt_set_timeout()
399 wdd->timeout = timeout; in starfive_wdt_set_timeout()
476 wdt->wdd.timeout = STARFIVE_WDT_DEFAULT_TIME; in starfive_wdt_probe()
478 starfive_wdt_set_timeout(&wdt->wdd, wdt->wdd.timeout); in starfive_wdt_probe()
388 starfive_wdt_set_timeout(struct watchdog_device *wdd, unsigned int timeout) starfive_wdt_set_timeout() argument
[all...]
/kernel/linux/linux-6.6/include/net/
H A Daddrconf.h185 static inline unsigned long addrconf_timeout_fixup(u32 timeout, in addrconf_timeout_fixup() argument
188 if (timeout == 0xffffffff) in addrconf_timeout_fixup()
196 if (0xfffffffe > LONG_MAX / unit && timeout > LONG_MAX / unit) in addrconf_timeout_fixup()
199 return timeout; in addrconf_timeout_fixup()
202 static inline int addrconf_finite_timeout(unsigned long timeout) in addrconf_finite_timeout() argument
204 return ~timeout; in addrconf_finite_timeout()
/kernel/linux/linux-6.6/drivers/tty/
H A Dtty_port.c597 long timeout; in tty_port_drain_delay() local
600 timeout = (HZ * 10 * port->drain_delay) / bps; in tty_port_drain_delay()
601 timeout = max_t(long, timeout, HZ / 10); in tty_port_drain_delay()
603 timeout = 2 * HZ; in tty_port_drain_delay()
605 schedule_timeout_interruptible(timeout); in tty_port_drain_delay()
/kernel/linux/linux-6.6/drivers/bus/
H A Dvexpress-config.c164 long timeout; in vexpress_syscfg_exec() local
190 timeout = 100; in vexpress_syscfg_exec()
194 schedule_timeout(usecs_to_jiffies(timeout)); in vexpress_syscfg_exec()
198 udelay(timeout); in vexpress_syscfg_exec()
205 if (timeout > 20) in vexpress_syscfg_exec()
206 timeout -= 20; in vexpress_syscfg_exec()
/kernel/linux/linux-6.6/drivers/char/tpm/
H A Dtpm1-cmd.c350 sizeof(cap.timeout)); in tpm1_get_timeouts()
357 sizeof(cap.timeout)); in tpm1_get_timeouts()
370 timeout_chip[0] = be32_to_cpu(cap.timeout.a); in tpm1_get_timeouts()
371 timeout_chip[1] = be32_to_cpu(cap.timeout.b); in tpm1_get_timeouts()
372 timeout_chip[2] = be32_to_cpu(cap.timeout.c); in tpm1_get_timeouts()
373 timeout_chip[3] = be32_to_cpu(cap.timeout.d); in tpm1_get_timeouts()
377 * Provide ability for vendor overrides of timeout values in case in tpm1_get_timeouts()
455 dev_info(&chip->dev, "Adjusting TPM timeout parameters."); in tpm1_get_timeouts()
/kernel/linux/linux-6.6/drivers/cpufreq/
H A Dpmac64-cpufreq.c118 unsigned long timeout; in g5_vdnap_switch_volt() local
130 timeout = jiffies + HZ/10; in g5_vdnap_switch_volt()
131 while(!time_after(jiffies, timeout)) { in g5_vdnap_switch_volt()
252 unsigned long timeout; in g5_pfunc_switch_freq() local
274 timeout = jiffies + HZ/10; in g5_pfunc_switch_freq()
275 while(!time_after(jiffies, timeout)) { in g5_pfunc_switch_freq()
/kernel/linux/linux-6.6/drivers/crypto/nx/
H A Dnx-842.c169 ktime_t timeout; in compress() local
216 timeout = ktime_add_ms(ktime_get(), COMP_BUSY_TIMEOUT); in compress()
225 } while (ret == -EBUSY && ktime_before(ktime_get(), timeout)); in compress()
348 ktime_t timeout; in decompress() local
394 timeout = ktime_add_ms(ktime_get(), DECOMP_BUSY_TIMEOUT); in decompress()
398 } while (ret == -EBUSY && ktime_before(ktime_get(), timeout)); in decompress()
/kernel/linux/linux-6.6/drivers/dma-buf/
H A Dst-dma-fence.c46 static long mock_wait(struct dma_fence *f, bool intr, long timeout) in mock_wait() argument
52 return timeout; in mock_wait()
54 while (timeout) { in mock_wait()
63 timeout = schedule_timeout(timeout); in mock_wait()
68 return timeout; in mock_wait()
408 pr_err("Wait reported incomplete after timeout\n"); in test_wait_timeout()
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath5k/
H A Dpcu.c266 * ath5k_hw_pcu_init(). It seems all this is doing is setting an ACK timeout on
299 /* Set ACK timeout */ in ath5k_hw_write_rate_duration()
323 * ath5k_hw_set_ack_timeout() - Set ACK timeout on PCU
325 * @timeout: Timeout in usec
328 ath5k_hw_set_ack_timeout(struct ath5k_hw *ah, unsigned int timeout) in ath5k_hw_set_ack_timeout() argument
331 <= timeout) in ath5k_hw_set_ack_timeout()
335 ath5k_hw_htoclock(ah, timeout)); in ath5k_hw_set_ack_timeout()
341 * ath5k_hw_set_cts_timeout() - Set CTS timeout on PCU
343 * @timeout: Timeout in usec
346 ath5k_hw_set_cts_timeout(struct ath5k_hw *ah, unsigned int timeout) in ath5k_hw_set_cts_timeout() argument
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/ti/wl1251/
H A Dcmd.c25 unsigned long timeout; in wl1251_cmd_send() local
39 timeout = jiffies + msecs_to_jiffies(WL1251_COMMAND_TIMEOUT); in wl1251_cmd_send()
43 if (time_after(jiffies, timeout)) { in wl1251_cmd_send()
44 wl1251_error("command complete timeout"); in wl1251_cmd_send()
484 int wl1251_cmd_trigger_scan_to(struct wl1251 *wl, u32 timeout) in wl1251_cmd_trigger_scan_to() argument
495 cmd->timeout = timeout; in wl1251_cmd_trigger_scan_to()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/selftests/
H A Di915_gem_dmabuf.c225 long timeout; in igt_dmabuf_import_same_driver() local
299 timeout = dma_resv_wait_timeout(dmabuf->resv, DMA_RESV_USAGE_WRITE, in igt_dmabuf_import_same_driver()
301 if (!timeout) { in igt_dmabuf_import_same_driver()
303 timeout = -ETIME; in igt_dmabuf_import_same_driver()
305 err = timeout > 0 ? 0 : timeout; in igt_dmabuf_import_same_driver()
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/
H A Di915_sw_fence.c476 unsigned long timeout, in i915_sw_fence_await_dma_fence()
491 cb = kmalloc(timeout ? in i915_sw_fence_await_dma_fence()
511 if (timeout) { in i915_sw_fence_await_dma_fence()
520 mod_timer(&timer->timer, round_jiffies_up(jiffies + timeout)); in i915_sw_fence_await_dma_fence()
575 unsigned long timeout, in i915_sw_fence_await_reservation()
587 pending = i915_sw_fence_await_dma_fence(fence, f, timeout, in i915_sw_fence_await_reservation()
474 i915_sw_fence_await_dma_fence(struct i915_sw_fence *fence, struct dma_fence *dma, unsigned long timeout, gfp_t gfp) i915_sw_fence_await_dma_fence() argument
572 i915_sw_fence_await_reservation(struct i915_sw_fence *fence, struct dma_resv *resv, bool write, unsigned long timeout, gfp_t gfp) i915_sw_fence_await_reservation() argument
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gt/
H A Dsysfs_engines.c267 * (a similar problem to determining the ideal preempt-reset timeout in stop_store()
310 unsigned long long timeout, clamped; in preempt_timeout_store() local
322 err = kstrtoull(buf, 0, &timeout); in preempt_timeout_store()
326 clamped = intel_clamp_preempt_timeout_ms(engine, timeout); in preempt_timeout_store()
327 if (timeout != clamped) in preempt_timeout_store()
330 WRITE_ONCE(engine->props.preempt_timeout_ms, timeout); in preempt_timeout_store()
333 set_timer_ms(&engine->execlists.preempt, timeout); in preempt_timeout_store()
/kernel/linux/linux-6.6/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_cmd.c198 unsigned long timeout) in vmw_fifo_wait_noirq()
201 unsigned long end_jiffies = jiffies + timeout; in vmw_fifo_wait_noirq()
231 unsigned long timeout) in vmw_fifo_wait()
241 interruptible, timeout); in vmw_fifo_wait()
249 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
253 !vmw_fifo_is_full(dev_priv, bytes), timeout); in vmw_fifo_wait()
196 vmw_fifo_wait_noirq(struct vmw_private *dev_priv, uint32_t bytes, bool interruptible, unsigned long timeout) vmw_fifo_wait_noirq() argument
229 vmw_fifo_wait(struct vmw_private *dev_priv, uint32_t bytes, bool interruptible, unsigned long timeout) vmw_fifo_wait() argument
/kernel/linux/linux-6.6/drivers/i2c/busses/
H A Di2c-amd8111.c70 int timeout = 500; in amd_ec_wait_write() local
72 while ((inb(smbus->base + AMD_EC_SC) & AMD_EC_SC_IBF) && --timeout) in amd_ec_wait_write()
75 if (!timeout) { in amd_ec_wait_write()
86 int timeout = 500; in amd_ec_wait_read() local
88 while ((~inb(smbus->base + AMD_EC_SC) & AMD_EC_SC_OBF) && --timeout) in amd_ec_wait_read()
91 if (!timeout) { in amd_ec_wait_read()
H A Di2c-highlander.c127 unsigned long timeout; in highlander_i2c_wait_for_bbsy() local
129 timeout = jiffies + msecs_to_jiffies(iic_timeout); in highlander_i2c_wait_for_bbsy()
131 if (time_after(jiffies, timeout)) { in highlander_i2c_wait_for_bbsy()
132 dev_warn(dev->dev, "timeout waiting for bus ready\n"); in highlander_i2c_wait_for_bbsy()
172 unsigned long timeout; in highlander_i2c_poll() local
175 timeout = jiffies + msecs_to_jiffies(iic_timeout); in highlander_i2c_poll()
187 if (time_after(jiffies, timeout)) in highlander_i2c_poll()
474 MODULE_PARM_DESC(iic_timeout, "Set timeout value in msecs (default 1000 ms)");
/kernel/linux/linux-6.6/drivers/iio/adc/
H A Drzg2l_adc.c118 int timeout = 5; in rzg2l_adc_start_stop() local
134 timeout--; in rzg2l_adc_start_stop()
135 if (!timeout) { in rzg2l_adc_start_stop()
362 int timeout = 5; in rzg2l_adc_hw_init() local
376 if (!timeout) { in rzg2l_adc_hw_init()
380 timeout--; in rzg2l_adc_hw_init()
/kernel/linux/linux-6.6/drivers/leds/flash/
H A Dleds-aat1290.c53 /* maximum flash timeout */
130 struct led_flash_setting *flash_tm = &fled_cdev->timeout; in aat1290_set_flash_safety_timer()
177 struct led_flash_setting *timeout = &fled_cdev->timeout; in aat1290_led_flash_strobe_set() local
182 aat1290_set_flash_safety_timer(led, timeout->val); in aat1290_led_flash_strobe_set()
204 u32 timeout) in aat1290_led_flash_timeout_set()
207 * Don't do anything - flash timeout is cached in the led-class-flash in aat1290_led_flash_timeout_set()
275 ret = of_property_read_u32(child_node, "flash-max-timeout-us", in aat1290_led_parse_dt()
279 "flash-max-timeout-us DT property missing\n"); in aat1290_led_parse_dt()
364 /* Init flash timeout settin in aat1290_init_flash_timeout()
203 aat1290_led_flash_timeout_set(struct led_classdev_flash *fled_cdev, u32 timeout) aat1290_led_flash_timeout_set() argument
[all...]
/kernel/linux/linux-6.6/drivers/leds/
H A Dled-class-flash.c27 "flash-timeout-exceeded",
172 return sprintf(buf, "%u\n", fled_cdev->timeout.val); in flash_timeout_show()
182 return sprintf(buf, "%u\n", fled_cdev->timeout.max); in max_flash_timeout_show()
258 call_flash_op(fled_cdev, timeout_set, fled_cdev->timeout.val); in led_flash_resume()
389 int led_set_flash_timeout(struct led_classdev_flash *fled_cdev, u32 timeout) in led_set_flash_timeout() argument
392 struct led_flash_setting *s = &fled_cdev->timeout; in led_set_flash_timeout()
394 s->val = timeout; in led_set_flash_timeout()
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/mm/
H A Dtlbie_test.c451 int timeout = 0; variable
492 while (!corruption_found && !timeout) { in rim_fn()
530 if (corruption_found || timeout) { in rim_fn()
573 while (!corruption_found && !timeout) { in mem_snapshot_fn()
609 timeout = 1; in alrm_sighandler()
631 printf("%s [-r <start_cpu>] [-n <nrthreads>] [-l <logdir>] [-t <timeout>]\n", argv[0]); in main()
723 if (!timeout) { in main()

Completed in 21 milliseconds

1...<<61626364656667686970>>...304