/kernel/linux/linux-5.10/drivers/crypto/nx/ |
H A D | nx-842.c | 169 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-5.10/drivers/dma-buf/ |
H A D | st-dma-fence.c | 46 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() 394 pr_err("Wait reported incomplete after timeout\n"); in test_wait_timeout()
|
/kernel/linux/linux-5.10/arch/sh/drivers/pci/ |
H A D | pcie-sh7786.c | 157 unsigned int timeout = 100; in phy_wait_for_ack() local 159 while (timeout--) { in phy_wait_for_ack() 171 unsigned int timeout = 100; in pci_wait_for_irq() local 173 while (timeout--) { in pci_wait_for_irq() 262 unsigned int timeout = 100; in phy_init() local 282 while (timeout--) { in phy_init() 346 /* Set the completion timer timeout to the maximum 32ms. */ in pcie_init() 416 * This will timeout if we don't have a link, but we permit the in pcie_init()
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
H A D | tpm1-cmd.c | 350 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-5.10/drivers/crypto/caam/ |
H A D | jr.c | 77 unsigned int timeout = 100000; in caam_reset_hw_jr() local 88 JRINT_ERR_HALT_INPROGRESS) && --timeout) in caam_reset_hw_jr() 92 JRINT_ERR_HALT_COMPLETE || timeout == 0) { in caam_reset_hw_jr() 98 timeout = 100000; in caam_reset_hw_jr() 100 while ((rd_reg32(&jrp->rregs->jrcommand) & JRCR_RESET) && --timeout) in caam_reset_hw_jr() 103 if (timeout == 0) { in caam_reset_hw_jr()
|
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | smp.c | 1002 unsigned long timeout; in smp_send_stop() local 1016 timeout = USEC_PER_SEC; in smp_send_stop() 1017 while (num_other_online_cpus() && timeout--) in smp_send_stop() 1032 unsigned long timeout; in crash_smp_send_stop() local 1059 timeout = USEC_PER_SEC; in crash_smp_send_stop() 1060 while ((atomic_read(&waiting_for_crash_ipi) > 0) && timeout--) in crash_smp_send_stop()
|
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/mm/ |
H A D | tlbie_test.c | 452 int timeout = 0; variable 493 while (!corruption_found && !timeout) { in rim_fn() 531 if (corruption_found || timeout) { in rim_fn() 574 while (!corruption_found && !timeout) { in mem_snapshot_fn() 610 timeout = 1; in alrm_sighandler() 632 printf("%s [-r <start_cpu>] [-n <nrthreads>] [-l <logdir>] [-t <timeout>]\n", argv[0]); in main() 724 if (!timeout) { in main()
|
/kernel/linux/linux-6.6/arch/sh/drivers/pci/ |
H A D | pcie-sh7786.c | 156 unsigned int timeout = 100; in phy_wait_for_ack() local 158 while (timeout--) { in phy_wait_for_ack() 170 unsigned int timeout = 100; in pci_wait_for_irq() local 172 while (timeout--) { in pci_wait_for_irq() 261 unsigned int timeout = 100; in phy_init() local 281 while (timeout--) { in phy_init() 345 /* Set the completion timer timeout to the maximum 32ms. */ in pcie_init() 415 * This will timeout if we don't have a link, but we permit the in pcie_init()
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
H A D | i2c-amd8111.c | 70 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 D | i2c-highlander.c | 127 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() 476 MODULE_PARM_DESC(iic_timeout, "Set timeout value in msecs (default 1000 ms)");
|
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | nomadik-ske-keypad.c | 96 int timeout = keypad->board->debounce_ms; in ske_keypad_chip_init() local 99 while ((readl(keypad->reg_base + SKE_RIS) != 0x00000000) && timeout--) in ske_keypad_chip_init() 102 if (timeout == -1) in ske_keypad_chip_init() 200 int timeout = keypad->board->debounce_ms; in ske_keypad_irq() local 206 while ((readl(keypad->reg_base + SKE_CR) & SKE_KPASON) && --timeout) in ske_keypad_irq() 213 while ((readl(keypad->reg_base + SKE_RIS)) && --timeout) in ske_keypad_irq()
|
/kernel/linux/linux-5.10/drivers/leds/ |
H A D | leds-aat1290.c | 53 /* 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...] |
H A D | led-class-flash.c | 27 "flash-timeout-exceeded", 174 return sprintf(buf, "%u\n", fled_cdev->timeout.val); in flash_timeout_show() 184 return sprintf(buf, "%u\n", fled_cdev->timeout.max); in max_flash_timeout_show() 260 call_flash_op(fled_cdev, timeout_set, fled_cdev->timeout.val); in led_flash_resume() 391 int led_set_flash_timeout(struct led_classdev_flash *fled_cdev, u32 timeout) in led_set_flash_timeout() argument 394 struct led_flash_setting *s = &fled_cdev->timeout; in led_set_flash_timeout() 396 s->val = timeout; in led_set_flash_timeout()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/ |
H A D | pcu.c | 266 * 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-5.10/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-io.c | 107 u32 bits, u32 mask, int timeout) in iwl_poll_bit() 116 } while (t < timeout); in iwl_poll_bit() 158 int timeout) in iwl_poll_direct_bit() 167 } while (t < timeout); in iwl_poll_direct_bit() 221 u32 bits, u32 mask, int timeout) in iwl_poll_prph_bit() 230 } while (t < timeout); in iwl_poll_prph_bit() 106 iwl_poll_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_bit() argument 157 iwl_poll_direct_bit(struct iwl_trans *trans, u32 addr, u32 mask, int timeout) iwl_poll_direct_bit() argument 220 iwl_poll_prph_bit(struct iwl_trans *trans, u32 addr, u32 bits, u32 mask, int timeout) iwl_poll_prph_bit() argument
|
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | tty_port.c | 548 long timeout; in tty_port_drain_delay() local 551 timeout = (HZ * 10 * port->drain_delay) / bps; in tty_port_drain_delay() 552 timeout = max_t(long, timeout, HZ / 10); in tty_port_drain_delay() 554 timeout = 2 * HZ; in tty_port_drain_delay() 556 schedule_timeout_interruptible(timeout); in tty_port_drain_delay()
|
/kernel/linux/linux-5.10/include/net/ |
H A D | addrconf.h | 185 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-5.10/sound/pci/mixart/ |
H A D | mixart_core.c | 227 long timeout; in snd_mixart_send_msg() local 242 timeout = schedule_timeout(MSG_TIMEOUT_JIFFIES); in snd_mixart_send_msg() 245 if (! timeout) { in snd_mixart_send_msg() 274 long timeout; in snd_mixart_send_msg_wait_notif() local 296 timeout = schedule_timeout(MSG_TIMEOUT_JIFFIES); in snd_mixart_send_msg_wait_notif() 299 if (! timeout) { in snd_mixart_send_msg_wait_notif()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | rpcgss.h | 571 unsigned int timeout, 576 TP_ARGS(window_size, expiry, now, timeout, len, data), 581 __field(unsigned int, timeout) 590 __entry->timeout = timeout; 596 TP_printk("win_size=%u expiry=%lu now=%lu timeout=%u acceptor=%.*s", 598 __entry->timeout, __entry->len, __get_str(acceptor))
|
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/ |
H A D | cal-camerarx.c | 201 unsigned long timeout; in cal_camerarx_wait_reset() local 203 timeout = jiffies + msecs_to_jiffies(750); in cal_camerarx_wait_reset() 204 while (time_before(jiffies, timeout)) { in cal_camerarx_wait_reset() 221 unsigned long timeout; in cal_camerarx_wait_stop_state() local 223 timeout = jiffies + msecs_to_jiffies(750); in cal_camerarx_wait_stop_state() 224 while (time_before(jiffies, timeout)) { in cal_camerarx_wait_stop_state() 298 * the x16 and x4 settings, so stop-state-timeout = in cal_camerarx_start() 301 * Stop-state-timeout must be more than 100us as per CSI-2 spec, so we in cal_camerarx_start() 302 * calculate a timeout that's 100us (rounding up). in cal_camerarx_start() 389 (i >= 10) ? "(timeout)" in cal_camerarx_stop() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wl1251/ |
H A D | cmd.c | 25 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 D | spi-sprd-adi.c | 105 /* 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 D | block2mtd.c | 14 * 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 D | tsnep_tc.c | 264 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 D | aspeed_wdt.c | 141 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
|