Home
last modified time | relevance | path

Searched refs:timeout_ms (Results 1 – 25 of 157) sorted by relevance

1234567

/linux-6.1.9/tools/testing/selftests/bpf/
Dnetwork_helpers.c54 int settimeo(int fd, int timeout_ms) in settimeo() argument
58 if (timeout_ms > 0) { in settimeo()
59 timeout.tv_sec = timeout_ms / 1000; in settimeo()
60 timeout.tv_usec = (timeout_ms % 1000) * 1000; in settimeo()
81 socklen_t addrlen, int timeout_ms, bool reuseport) in __start_server() argument
92 if (settimeo(fd, timeout_ms)) in __start_server()
121 const char *addr_str, __u16 port, int timeout_ms) in start_server_proto() argument
130 addrlen, timeout_ms, false); in start_server_proto()
134 int timeout_ms) in start_server() argument
136 return start_server_proto(family, type, 0, addr_str, port, timeout_ms); in start_server()
[all …]
Dnetwork_helpers.h22 int timeout_ms; member
42 int settimeo(int fd, int timeout_ms);
44 int timeout_ms);
46 int timeout_ms);
48 __u16 port, int timeout_ms,
51 int connect_to_fd(int server_fd, int timeout_ms);
53 int connect_fd_to_fd(int client_fd, int server_fd, int timeout_ms);
55 int timeout_ms);
/linux-6.1.9/drivers/mmc/core/
Dmmc_ops.h43 unsigned int timeout_ms);
45 unsigned int timeout_ms,
48 int mmc_poll_for_busy(struct mmc_card *card, unsigned int timeout_ms,
51 unsigned int timeout_ms, unsigned char timing,
54 unsigned int timeout_ms);
58 int mmc_sanitize(struct mmc_card *card, unsigned int timeout_ms);
Dmmc_ops.c503 unsigned int timeout_ms, in __mmc_poll_for_busy() argument
513 timeout = jiffies + msecs_to_jiffies(timeout_ms) + 1; in __mmc_poll_for_busy()
544 int mmc_poll_for_busy(struct mmc_card *card, unsigned int timeout_ms, in mmc_poll_for_busy() argument
554 return __mmc_poll_for_busy(host, 0, timeout_ms, &mmc_busy_cb, &cb_data); in mmc_poll_for_busy()
559 unsigned int timeout_ms) in mmc_prepare_busy_cmd() argument
569 (timeout_ms > host->max_busy_timeout)) { in mmc_prepare_busy_cmd()
575 cmd->busy_timeout = timeout_ms; in mmc_prepare_busy_cmd()
595 unsigned int timeout_ms, unsigned char timing, in __mmc_switch() argument
606 if (!timeout_ms) { in __mmc_switch()
609 timeout_ms = card->ext_csd.generic_cmd6_time; in __mmc_switch()
[all …]
/linux-6.1.9/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_intr.c15 int command, unsigned int timeout_ms, in mtk_vcodec_wait_for_done_ctx() argument
21 timeout_jiff = msecs_to_jiffies(timeout_ms); in mtk_vcodec_wait_for_done_ctx()
29 ctx->id, command, ctx->type, timeout_ms, in mtk_vcodec_wait_for_done_ctx()
Dmtk_vcodec_intr.h16 int command, unsigned int timeout_ms,
/linux-6.1.9/tools/testing/selftests/net/
Dudpgso_bench_rx.c92 static void do_poll(int fd, int timeout_ms) in do_poll() argument
108 if (!timeout_ms) in do_poll()
111 timeout_ms -= 10; in do_poll()
112 if (timeout_ms <= 0) { in do_poll()
356 int timeout_ms = cfg_tcp ? cfg_rcv_timeout_ms : cfg_connect_timeout_ms; in do_recv() local
370 do_poll(fd, timeout_ms); in do_recv()
388 timeout_ms = cfg_rcv_timeout_ms; in do_recv()
/linux-6.1.9/drivers/scsi/
Dscsi_debugfs.c38 int timeout_ms = jiffies_to_msecs(rq->timeout); in scsi_show_rq() local
47 timeout_ms / 1000, timeout_ms % 1000, in scsi_show_rq()
/linux-6.1.9/tools/lib/bpf/
Dringbuf.c297 int ring_buffer__poll(struct ring_buffer *rb, int timeout_ms) in ring_buffer__poll() argument
302 cnt = epoll_wait(rb->epoll_fd, rb->events, rb->ring_cnt, timeout_ms); in ring_buffer__poll()
533 void *user_ring_buffer__reserve_blocking(struct user_ring_buffer *rb, __u32 size, int timeout_ms) in user_ring_buffer__reserve_blocking() argument
536 int err, ms_remaining = timeout_ms; in user_ring_buffer__reserve_blocking()
539 if (timeout_ms < 0 && timeout_ms != -1) in user_ring_buffer__reserve_blocking()
542 if (timeout_ms != -1) { in user_ring_buffer__reserve_blocking()
574 if (timeout_ms == -1) in user_ring_buffer__reserve_blocking()
582 ms_remaining = timeout_ms - ms_elapsed; in user_ring_buffer__reserve_blocking()
/linux-6.1.9/include/uapi/linux/
Dnvme_ioctl.h44 __u32 timeout_ms; member
68 __u32 timeout_ms; member
91 __u32 timeout_ms; member
Dvboxguest.h154 __u32 timeout_ms; member
211 __u32 timeout_ms; member
/linux-6.1.9/include/trace/events/
Dib_umad.h28 __field(u32, timeout_ms)
58 __entry->timeout_ms = umad_hdr->timeout_ms;
93 __entry->id, __entry->status, __entry->timeout_ms,
/linux-6.1.9/drivers/firmware/arm_scmi/
Dscmi_power_control.c211 unsigned int timeout_ms) in scmi_request_graceful_transition() argument
215 if (timeout_ms) { in scmi_request_graceful_transition()
222 adj_timeout_ms = mult_frac(timeout_ms, 3, 4); in scmi_request_graceful_transition()
236 sc->required_transition, timeout_ms, adj_timeout_ms); in scmi_request_graceful_transition()
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Di915_selftest.c34 .timeout_ms = 500,
141 i915_selftest.timeout_ms ? in __run_selftests()
142 msecs_to_jiffies_timeout(i915_selftest.timeout_ms) : in __run_selftests()
148 name, i915_selftest.random_seed, i915_selftest.timeout_ms); in __run_selftests()
430 module_param_named(st_timeout, i915_selftest.timeout_ms, uint, 0400);
/linux-6.1.9/drivers/watchdog/
Drealtek_otto_wdt.c128 unsigned int timeout_ms = timeout * 1000; in otto_wdt_determine_timeouts() local
143 total_ticks = div_round_ticks(timeout_ms, tick_ms, 2); in otto_wdt_determine_timeouts()
144 phase1_ticks = div_round_ticks(timeout_ms - pretimeout_ms, tick_ms, 1); in otto_wdt_determine_timeouts()
160 timeout_ms = total_ticks * tick_ms; in otto_wdt_determine_timeouts()
161 ctrl->wdev.timeout = timeout_ms / 1000; in otto_wdt_determine_timeouts()
/linux-6.1.9/include/uapi/rdma/
Dib_user_mad.h76 __u32 timeout_ms; member
120 __u32 timeout_ms; member
Drdma_user_cm.h129 __u32 timeout_ms; member
134 __u32 timeout_ms; member
144 __u32 timeout_ms; member
/linux-6.1.9/drivers/bus/mhi/host/
Ddebugfs.c275 seq_printf(m, "%u ms\n", mhi_cntrl->timeout_ms); in mhi_debugfs_timeout_ms_show()
286 u32 timeout_ms; in mhi_debugfs_timeout_ms_write() local
288 if (kstrtou32_from_user(ubuf, count, 0, &timeout_ms)) in mhi_debugfs_timeout_ms_write()
291 mhi_cntrl->timeout_ms = timeout_ms; in mhi_debugfs_timeout_ms_write()
/linux-6.1.9/kernel/power/
Dwakelock.c236 u64 timeout_ms = timeout_ns + NSEC_PER_MSEC - 1; in pm_wake_lock() local
238 do_div(timeout_ms, NSEC_PER_MSEC); in pm_wake_lock()
239 __pm_wakeup_event(wl->ws, timeout_ms); in pm_wake_lock()
/linux-6.1.9/drivers/iio/magnetometer/
Dak8975.c611 u32 timeout_ms = AK8975_MAX_CONVERSION_TIMEOUT; in wait_conversion_complete_gpio() local
615 while (timeout_ms) { in wait_conversion_complete_gpio()
619 timeout_ms -= AK8975_CONVERSION_DONE_POLL_TIME; in wait_conversion_complete_gpio()
621 if (!timeout_ms) { in wait_conversion_complete_gpio()
637 u32 timeout_ms = AK8975_MAX_CONVERSION_TIMEOUT; in wait_conversion_complete_polled() local
641 while (timeout_ms) { in wait_conversion_complete_polled()
652 timeout_ms -= AK8975_CONVERSION_DONE_POLL_TIME; in wait_conversion_complete_polled()
654 if (!timeout_ms) { in wait_conversion_complete_polled()
/linux-6.1.9/drivers/virt/vboxguest/
Dvboxguest_utils.c471 u32 timeout_ms, bool interruptible, bool *leak_it) in vbg_hgcm_do_call() argument
493 if (timeout_ms == U32_MAX) in vbg_hgcm_do_call()
496 timeout = msecs_to_jiffies(timeout_ms); in vbg_hgcm_do_call()
608 u32 function, u32 timeout_ms, in vbg_hgcm_call() argument
639 ret = vbg_hgcm_do_call(gdev, call, timeout_ms, in vbg_hgcm_call()
664 u32 timeout_ms, struct vmmdev_hgcm_function_parameter32 *parm32, in vbg_hgcm_call32() argument
705 ret = vbg_hgcm_call(gdev, requestor, client_id, function, timeout_ms, in vbg_hgcm_call32()
/linux-6.1.9/drivers/nvme/host/
Dioctl.c294 if (cmd.timeout_ms) in nvme_user_cmd()
295 timeout = msecs_to_jiffies(cmd.timeout_ms); in nvme_user_cmd()
340 if (cmd.timeout_ms) in nvme_user_cmd64()
341 timeout = msecs_to_jiffies(cmd.timeout_ms); in nvme_user_cmd64()
361 __u32 timeout_ms; member
514 d.timeout_ms = READ_ONCE(cmd->timeout_ms); in nvme_uring_cmd_io()
527 req->timeout = d.timeout_ms ? msecs_to_jiffies(d.timeout_ms) : 0; in nvme_uring_cmd_io()
/linux-6.1.9/drivers/mtd/nand/raw/
Dintel-nand-controller.c132 static int ebu_nand_waitrdy(struct nand_chip *chip, int timeout_ms) in ebu_nand_waitrdy() argument
139 (status & EBU_WAIT_WR_C), 20, timeout_ms); in ebu_nand_waitrdy()
519 int i, timeout_ms, ret = 0; in ebu_nand_exec_op() local
552 timeout_ms = instr->ctx.waitrdy.timeout_ms * 1000; in ebu_nand_exec_op()
553 ret = ebu_nand_waitrdy(chip, timeout_ms); in ebu_nand_exec_op()
Dau1550nd.c138 static int au1550nd_waitrdy(struct nand_chip *this, unsigned int timeout_ms) in au1550nd_waitrdy() argument
142 timeout_jiffies += msecs_to_jiffies(timeout_ms) + 1; in au1550nd_waitrdy()
198 ret = au1550nd_waitrdy(this, instr->ctx.waitrdy.timeout_ms); in au1550nd_exec_instr()
/linux-6.1.9/drivers/gpu/drm/i915/
Dintel_uncore.h283 unsigned int timeout_ms) in intel_wait_for_register() argument
286 timeout_ms, NULL); in intel_wait_for_register()
301 unsigned int timeout_ms) in intel_wait_for_register_fw() argument
304 2, timeout_ms, NULL); in intel_wait_for_register_fw()

1234567