/openbmc/qemu/target/hppa/ |
H A D | sys_helper.c | 31 uint64_t timeout; in HELPER() local 38 timeout = deposit64(current, 0, 34, (uint64_t)val << 2); in HELPER() 41 if (timeout < current + 1000) { in HELPER() 42 timeout += 1ULL << 34; in HELPER() 45 cpu->env.cr[CR_IT] = timeout; in HELPER() 46 timer_mod(cpu->alarm_timer, timeout); in HELPER()
|
/openbmc/openbmc/meta-security/recipes-mac/smack/tcp-smack-test/ |
H A D | tcp_client.c | 43 struct timeval timeout; in main() local 44 timeout.tv_sec = 15; in main() 45 timeout.tv_usec = 0; in main() 83 if(setsockopt(sock, SOL_SOCKET, SO_SNDTIMEO, &timeout, sizeof(timeout)) < 0) in main()
|
H A D | tcp_server.c | 40 struct timeval timeout; in main() local 41 timeout.tv_sec = 15; in main() 42 timeout.tv_usec = 0; in main() 73 if(setsockopt(sock, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) < 0) in main()
|
/openbmc/u-boot/drivers/mmc/ |
H A D | mxsmmc.c | 68 timeout = MXSMMC_MAX_TIMEOUT; in mxsmmc_send_cmd_pio() 74 timeout *= 100; in mxsmmc_send_cmd_pio() 80 timeout = MXSMMC_MAX_TIMEOUT; in mxsmmc_send_cmd_pio() 86 return timeout ? 0 : -ECOMM; in mxsmmc_send_cmd_pio() 140 int timeout; in mxsmmc_send_cmd() local 147 timeout = MXSMMC_MAX_TIMEOUT; in mxsmmc_send_cmd() 148 while (--timeout) { in mxsmmc_send_cmd() 158 if (!timeout) { in mxsmmc_send_cmd() 235 timeout = MXSMMC_MAX_TIMEOUT; in mxsmmc_send_cmd() 236 while (--timeout) { in mxsmmc_send_cmd() [all …]
|
/openbmc/qemu/hw/watchdog/ |
H A D | sbsa_gwdt.c | 100 uint64_t timeout = 0; in sbsa_gwdt_update_timer() local 109 timeout = s->woru; in sbsa_gwdt_update_timer() 110 timeout <<= 32; in sbsa_gwdt_update_timer() 111 timeout |= s->worl; in sbsa_gwdt_update_timer() 112 timeout = muldiv64(timeout, NANOSECONDS_PER_SECOND, SBSA_TIMER_FREQ); in sbsa_gwdt_update_timer() 113 timeout += qemu_clock_get_ns(QEMU_CLOCK_VIRTUAL); in sbsa_gwdt_update_timer() 118 s->wcvu = timeout >> 32; in sbsa_gwdt_update_timer() 119 s->wcvl = timeout; in sbsa_gwdt_update_timer() 121 timer_mod(s->timer, timeout); in sbsa_gwdt_update_timer()
|
/openbmc/linux/drivers/watchdog/ |
H A D | ie6xx_wdt.c | 48 static unsigned int timeout = DEFAULT_TIME; variable 49 module_param(timeout, uint, 0); 50 MODULE_PARM_DESC(timeout, 128 wdd->timeout = t; in ie6xx_wdt_set_timeout() 134 ie6xx_wdt_set_timeout(wdd, wdd->timeout); in ie6xx_wdt_start() 243 ie6xx_wdt_dev.timeout = timeout; in ie6xx_wdt_probe() 293 if ((timeout < MIN_TIME) || in ie6xx_wdt_init() 294 (timeout > MAX_TIME)) { in ie6xx_wdt_init() 297 timeout, MIN_TIME, MAX_TIME); in ie6xx_wdt_init()
|
H A D | keembay_wdt.c | 40 static unsigned int timeout = WDT_TIMEOUT; variable 41 module_param(timeout, int, 0); 42 MODULE_PARM_DESC(timeout, "Watchdog timeout period in seconds (default = " 74 keembay_wdt_writel(wdt, TIM_WATCHDOG, wdog->timeout * wdt->rate); in keembay_wdt_set_timeout_reg() 83 th_val = wdog->timeout - wdog->pretimeout; in keembay_wdt_set_pretimeout_reg() 115 wdog->timeout = t; in keembay_wdt_set_timeout() 124 if (t > wdog->timeout) in keembay_wdt_set_pretimeout() 234 wdt->wdd.timeout = WDT_TIMEOUT; in keembay_wdt_probe() 239 watchdog_init_timeout(&wdt->wdd, timeout, dev); in keembay_wdt_probe() 240 keembay_wdt_set_timeout(&wdt->wdd, wdt->wdd.timeout); in keembay_wdt_probe() [all …]
|
H A D | sbc8360.c | 192 static int timeout = 27; variable 197 module_param(timeout, int, 0); 198 MODULE_PARM_DESC(timeout, "Index into timeout table (0-63) (default=27 (60s))"); 330 if (timeout < 0 || timeout > 63) { in sbc8360_init() 361 wd_margin = wd_times[timeout][0]; in sbc8360_init() 362 wd_multiplier = wd_times[timeout][1]; in sbc8360_init()
|
H A D | mena21_wdt.c | 83 unsigned int timeout) in a21_wdt_set_timeout() argument 87 if (timeout != 1 && timeout != 30) { in a21_wdt_set_timeout() 92 if (timeout == 30 && wdt->timeout == 1) { in a21_wdt_set_timeout() 98 if (timeout == 1) in a21_wdt_set_timeout() 103 wdt->timeout = timeout; in a21_wdt_set_timeout()
|
H A D | sb_wdog.c | 94 static unsigned long timeout = 0x7fffffUL; /* useconds: 8.3ish secs. */ variable 116 sbwdog_set(user_dog, timeout); in sbwdog_open() 202 timeout = time; in sbwdog_ioctl() 203 sbwdog_set(user_dog, timeout); in sbwdog_ioctl() 318 timeout / 1000000, (timeout / 100000) % 10); in sbwdog_init() 341 module_param(timeout, ulong, 0); 342 MODULE_PARM_DESC(timeout,
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_gt_requests.c | 34 static bool flush_submission(struct intel_gt *gt, long timeout) in flush_submission() argument 40 if (!timeout) in flush_submission() 133 long intel_gt_retire_requests_timeout(struct intel_gt *gt, long timeout, in intel_gt_retire_requests_timeout() argument 141 flush_submission(gt, timeout); /* kick the ksoftirqd tasklets */ in intel_gt_retire_requests_timeout() 154 if (timeout > 0) { in intel_gt_retire_requests_timeout() 161 timeout = dma_fence_wait_timeout(fence, in intel_gt_retire_requests_timeout() 163 timeout); in intel_gt_retire_requests_timeout() 196 if (flush_submission(gt, timeout)) /* Wait, there's more! */ in intel_gt_retire_requests_timeout() 200 *remaining_timeout = timeout; in intel_gt_retire_requests_timeout() 202 return active_count ? timeout ?: -ETIME : 0; in intel_gt_retire_requests_timeout()
|
/openbmc/linux/Documentation/watchdog/ |
H A D | watchdog-api.rst | 30 system (causing a reboot) after the timeout occurs. 92 Setting and getting the timeout 99 timeout used in the same variable, and this timeout might differ from 102 int timeout = 45; 103 ioctl(fd, WDIOC_SETTIMEOUT, &timeout); 104 printf("The timeout was set to %d seconds\n", timeout); 110 current timeout using the GETTIMEOUT ioctl:: 112 ioctl(fd, WDIOC_GETTIMEOUT, &timeout); 113 printf("The timeout was is %d seconds\n", timeout); 135 ioctl(fd, WDIOC_GETPRETIMEOUT, &timeout); [all …]
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | ksm_tests.c | 234 if ((cur_time.tv_sec - start_time.tv_sec) > timeout) { in ksm_do_scan() 244 struct timespec start_time, int timeout) in ksm_merge_pages() argument 262 if (ksm_do_scan(2, start_time, timeout)) in ksm_merge_pages() 269 struct timespec start_time, int timeout) in ksm_unmerge_pages() argument 348 long page_count, int timeout, size_t page_size) in check_ksm_merge() argument 405 if (ksm_do_scan(1, start_time, timeout)) in check_ksm_unmerge() 422 int timeout, bool use_zero_pages, size_t page_size) in check_ksm_zero_page_merge() argument 551 int timeout, size_t map_size) in ksm_merge_hugepages_time() argument 593 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_merge_hugepages_time() 634 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_merge_time() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/glib-2.0/glib-2.0/ |
H A D | memory-monitor.patch | 79 - while timeout >= 0: 85 - timeout -= 1 114 - timeout = 2 115 - while timeout > 0: 117 - timeout -= 0.5 179 - timeout -= 1 206 - timeout = 2 207 - while timeout > 0: 209 - timeout -= 0.5 262 - timeout -= 1 [all …]
|
/openbmc/linux/block/ |
H A D | bsg.c | 28 unsigned int timeout; member 47 unsigned int timeout = BLK_DEFAULT_SG_TIMEOUT; in bsg_timeout() local 49 if (hdr->timeout) in bsg_timeout() 50 timeout = msecs_to_jiffies(hdr->timeout); in bsg_timeout() 51 else if (bd->timeout) in bsg_timeout() 52 timeout = bd->timeout; in bsg_timeout() 54 return max_t(unsigned int, timeout, BLK_MIN_SG_TIMEOUT); in bsg_timeout() 133 bd->timeout = clock_t_to_jiffies(val); in bsg_ioctl() 136 return jiffies_to_clock_t(bd->timeout); in bsg_ioctl()
|
/openbmc/u-boot/drivers/watchdog/ |
H A D | mtk_wdt.c | 73 static void mtk_wdt_set_timeout(struct udevice *dev, unsigned int timeout) in mtk_wdt_set_timeout() argument 81 timeout = WDT_LENGTH_TIMEOUT(timeout << 6) | WDT_LENGTH_KEY; in mtk_wdt_set_timeout() 82 writel(timeout, priv->base + MTK_WDT_LENGTH); in mtk_wdt_set_timeout() 87 static int mtk_wdt_start(struct udevice *dev, u64 timeout, ulong flags) in mtk_wdt_start() argument 91 mtk_wdt_set_timeout(dev, timeout); in mtk_wdt_start()
|
/openbmc/phosphor-pid-control/test/ |
H A D | sensor_pluggable_unittest.cpp | 29 int64_t timeout = 1; in TEST() local 31 PluggableSensor p(name, timeout, std::move(ri), std::move(wi)); in TEST() 47 int64_t timeout = 1; in TEST() local 51 PluggableSensor p(name, timeout, std::move(ri), std::move(wi)); in TEST() 77 int64_t timeout = 1; in TEST() local 81 PluggableSensor p(name, timeout, std::move(ri), std::move(wi)); in TEST()
|
/openbmc/linux/Documentation/userspace-api/media/rc/ |
H A D | lirc-set-rec-timeout.rst | 14 LIRC_GET_REC_TIMEOUT/LIRC_SET_REC_TIMEOUT - Get/set the integer value for IR inactivity timeout. 21 ``int ioctl(int fd, LIRC_GET_REC_TIMEOUT, __u32 *timeout)`` 25 ``int ioctl(int fd, LIRC_SET_REC_TIMEOUT, __u32 *timeout)`` 33 ``timeout`` 39 Get and set the integer value for IR inactivity timeout. 48 The range of supported timeout is given by :ref:`LIRC_GET_MIN_TIMEOUT`.
|
/openbmc/qemu/hw/timer/ |
H A D | imx_gpt.c | 174 if ((count < reg) && (timeout > reg)) { in imx_gpt_find_limit() 175 timeout = reg; in imx_gpt_find_limit() 178 return timeout; in imx_gpt_find_limit() 184 uint32_t timeout = GPT_TIMER_MAX; in imx_gpt_compute_next_timeout() local 215 timeout = imx_gpt_find_limit(count, s->ocr1, timeout); in imx_gpt_compute_next_timeout() 218 timeout = imx_gpt_find_limit(count, s->ocr2, timeout); in imx_gpt_compute_next_timeout() 221 timeout = imx_gpt_find_limit(count, s->ocr3, timeout); in imx_gpt_compute_next_timeout() 227 if ((s->ir & GPT_IR_OF1IE) && (timeout == s->ocr1)) { in imx_gpt_compute_next_timeout() 230 if ((s->ir & GPT_IR_OF2IE) && (timeout == s->ocr2)) { in imx_gpt_compute_next_timeout() 241 limit = timeout - imx_gpt_update_count(s); in imx_gpt_compute_next_timeout() [all …]
|
/openbmc/linux/include/linux/ |
H A D | rcuwait.h | 79 #define __rcuwait_wait_event_timeout(w, condition, state, timeout) \ argument 81 state, timeout, \ 84 #define rcuwait_wait_event_timeout(w, condition, state, timeout) \ argument 86 long __ret = timeout; \ 89 state, timeout); \
|
/openbmc/u-boot/cmd/ |
H A D | fdc.c | 186 unsigned long timeout; in wait_for_fdc_int() local 187 timeout = FDC_TIME_OUT; in wait_for_fdc_int() 189 timeout--; in wait_for_fdc_int() 201 unsigned long timeout; in read_fdc_byte() local 206 timeout--; in read_fdc_byte() 230 unsigned long timeout; in write_fdc_byte() local 234 timeout--; in write_fdc_byte() 327 timeout=FDC_TIME_OUT; in fdc_issue_cmd() 330 timeout--; in fdc_issue_cmd() 331 if(timeout==0) { in fdc_issue_cmd() [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | stv0297.c | 408 unsigned long timeout; in stv0297_set_frontend() local 542 if (time_after(jiffies, timeout)) { in stv0297_set_frontend() 543 goto timeout; in stv0297_set_frontend() 556 if (time_after(jiffies, timeout)) { in stv0297_set_frontend() 557 goto timeout; in stv0297_set_frontend() 569 if (time_after(jiffies, timeout)) { in stv0297_set_frontend() 570 goto timeout; in stv0297_set_frontend() 586 if (time_after(jiffies, timeout)) { in stv0297_set_frontend() 587 goto timeout; in stv0297_set_frontend() 593 goto timeout; in stv0297_set_frontend() [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | rc-ir-raw.c | 188 if (!ev->pulse && dev->timeout && in ir_raw_event_store_with_filter() 246 u32 timeout = 0; in change_protocol() local 273 if (timeout == 0) in change_protocol() 274 timeout = IR_DEFAULT_TIMEOUT; in change_protocol() 276 timeout += MS_TO_US(10); in change_protocol() 278 if (timeout < dev->min_timeout) in change_protocol() 279 timeout = dev->min_timeout; in change_protocol() 281 timeout = dev->max_timeout; in change_protocol() 284 dev->s_timeout(dev, timeout); in change_protocol() 286 dev->timeout = timeout; in change_protocol() [all …]
|
/openbmc/u-boot/drivers/ddr/fsl/ |
H A D | fsl_ddr_gen4.c | 24 int timeout = 1000; in set_wait_for_bits_clear() local 30 timeout--; in set_wait_for_bits_clear() 32 if (timeout <= 0) in set_wait_for_bits_clear() 57 int timeout; in fsl_ddr_set_memctl_regs() local 349 timeout = 40; in fsl_ddr_set_memctl_regs() 354 timeout--; in fsl_ddr_set_memctl_regs() 400 timeout = 40; in fsl_ddr_set_memctl_regs() 404 timeout--; in fsl_ddr_set_memctl_regs() 469 timeout--; in fsl_ddr_set_memctl_regs() 537 timeout = 100; in fsl_ddr_set_memctl_regs() [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvkm/subdev/i2c/ |
H A D | auxgm200.c | 46 u32 ctrl, timeout; in gm200_i2c_aux_init() local 49 timeout = 1000; in gm200_i2c_aux_init() 53 if (!timeout--) { in gm200_i2c_aux_init() 61 timeout = 1000; in gm200_i2c_aux_init() 65 if (!timeout--) { in gm200_i2c_aux_init() 83 u32 ctrl, stat, timeout, retries = 0; in gm200_i2c_aux_xfer() local 127 timeout = 2000; in gm200_i2c_aux_xfer() 131 if (!timeout--) { in gm200_i2c_aux_xfer()
|