Home
last modified time | relevance | path

Searched +full:blocking +full:- +full:io (Results 1 – 25 of 248) sorted by relevance

12345678910

/Linux-v6.6/Documentation/block/
Dnull_blk.rst1 .. SPDX-License-Identifier: GPL-2.0
11 block-layer implementations. It emulates a block device of X gigabytes in size.
15 Multi-queue block-layer
17 - Request-based.
18 - Configurable submission queues per device.
20 No block-layer (Known as bio-based)
22 - Bio-based. IO requests are submitted directly to the device driver.
23 - Directly accepts bio data structure and returns them.
30 queue_mode=[0-2]: Default: 2-Multi-queue
31 Selects which block-layer the module should instantiate with.
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/hwmon/
Dsensirion,shtc1.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Christopher Ruehl chris.ruehl@gtsys.com.hk
14 designed especially for battery-driven high-volume consumer electronics
24 - sensirion,shtc1
25 - sensirion,shtw1
26 - sensirion,shtc3
31 sensirion,blocking-io:
36 sensirion,low-precision:
[all …]
/Linux-v6.6/arch/m68k/sun3/prom/
Dconsole.c1 // SPDX-License-Identifier: GPL-2.0
3 * console.c: Routines that deal with sending and receiving IO
16 /* Non blocking get character from console input device, returns -1
22 int i = -1; in prom_nbgetchar()
26 i = (*(romvec->pv_nbgetchar))(); in prom_nbgetchar()
31 /* Non blocking put character to console device, returns -1 if
38 int i = -1; in prom_nbputchar()
41 i = (*(romvec->pv_nbputchar))(c); in prom_nbputchar()
46 /* Blocking version of get character routine above. */
51 while((character = prom_nbgetchar()) == -1) ; in prom_getchar()
[all …]
/Linux-v6.6/kernel/sched/
Dcompletion.c1 // SPDX-License-Identifier: GPL-2.0
4 * Generic wait-for-completion handler;
7 * wait_for_completion default blocks whereas semaphore default non-block. The
20 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_with_flags()
22 if (x->done != UINT_MAX) in complete_with_flags()
23 x->done++; in complete_with_flags()
24 swake_up_locked(&x->wait, wake_flags); in complete_with_flags()
25 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_with_flags()
34 * complete: - signals a single thread waiting on this completion
52 * complete_all: - signals all threads waiting on this completion
[all …]
/Linux-v6.6/Documentation/gpu/
Dvgaarbiter.rst7 implemented on PCI will typically have the same "hard-decoded" addresses as
8 they did on ISA. For more details see "PCI Bus Binding to IEEE Std 1275-1994
14 than one legacy device co-exists on the same machine. But the problem happens
23 ---------------------------
46 An IO state string is of the form {io,mem,io+mem,none}, mc and
47 ic are respectively mem and io lock counts (for debugging/
51 unplugged, we get "invalid" then for card_ID and an -ENODEV
63 non-blocking acquire locks on target (returns EBUSY if
90 In the case of devices hot-{un,}plugged, there is a hook - pci_notify() - to
94 There is also an in-kernel API of the arbiter in case DRM, vgacon, or other
[all …]
/Linux-v6.6/Documentation/core-api/
Dgfp_mask-from-fs-io.rst4 GFP masks used from FS/IO context
13 Code paths in the filesystem and IO stacks must be careful when
15 memory reclaim calling back into the FS or IO paths and blocking on
16 already held resources (e.g. locks - most commonly those used for the
25 of GFP_NOFS/GFP_NOIO can lead to memory over-reclaim or other memory
36 mask so no memory allocation can recurse back in the FS/IO.
38 .. kernel-doc:: include/linux/sched/mm.h
40 .. kernel-doc:: include/linux/sched/mm.h
43 FS/IO code then simply calls the appropriate save function before
44 any critical section with respect to the reclaim is started - e.g.
[all …]
Dmemory-allocation.rst35 :ref:`Documentation/core-api/mm-api.rst <mm-api-gfp-flags>` provides
47 IO or filesystem operations. Consequently, under memory pressure
75 back into the FS or IO paths and blocking on already held
78 :ref:`Documentation/core-api/gfp_mask-from-fs-io.rst <gfp_mask_from_fs_io>`.
88 ------------------------------
93 * ``GFP_KERNEL & ~__GFP_RECLAIM`` - optimistic allocation without _any_
99 * ``GFP_KERNEL & ~__GFP_DIRECT_RECLAIM`` (or ``GFP_NOWAIT``)- optimistic
106 * ``(GFP_KERNEL|__GFP_HIGH) & ~__GFP_DIRECT_RECLAIM`` (aka ``GFP_ATOMIC``) -
108 some portion of memory reserves. Usually used from interrupt/bottom-half
111 * ``GFP_KERNEL`` - both background and direct reclaim are allowed and the
[all …]
/Linux-v6.6/drivers/hwmon/
Dshtc1.c1 // SPDX-License-Identifier: GPL-2.0-or-later
13 #include <linux/hwmon-sysfs.h>
41 /* delays for non-blocking i2c commands, both in us */
75 int ret = i2c_master_send(client, data->command, SHTC1_CMD_LENGTH); in shtc1_update_values()
77 dev_err(&client->dev, "failed to send command: %d\n", ret); in shtc1_update_values()
78 return ret < 0 ? ret : -EIO; in shtc1_update_values()
82 * In blocking mode (clock stretching mode) the I2C bus in shtc1_update_values()
84 * will wait until the data is ready. For non blocking mode, we in shtc1_update_values()
87 if (!data->setup.blocking_io) in shtc1_update_values()
88 usleep_range(data->nonblocking_wait_time, in shtc1_update_values()
[all …]
/Linux-v6.6/arch/sparc/prom/
Dconsole_32.c1 // SPDX-License-Identifier: GPL-2.0
3 * console.c: Routines that deal with sending and receiving IO
19 /* Non blocking put character to console device, returns -1 if
25 int i = -1; in prom_nbputchar()
30 if ((*(romvec->pv_nbputchar))(*buf)) in prom_nbputchar()
35 if ((*(romvec->pv_v2devops).v2_dev_write)(*romvec->pv_v2bootargs.fd_stdout, in prom_nbputchar()
53 len--; in prom_console_write_buf()
/Linux-v6.6/drivers/block/null_blk/
Dnull_blk.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 #include <linux/blk-mq.h>
14 #include <linux/fault-inject.h>
114 bool blocking; /* blocking blk-mq device */ member
115 bool use_per_node_hctx; /* use per-node allocation for hardware context */
121 bool no_sched; /* no IO scheduler for the device */
166 return -EINVAL; in null_init_zoned_dev()
170 return -ENODEV; in null_register_zoned_dev()
188 return -EOPNOTSUPP; in zone_cond_store()
Dmain.c1 // SPDX-License-Identifier: GPL-2.0-only
39 * CACHE: Device is using a write-back cache.
65 #define NULLB_PAGE_LOCK (MAP_SZ - 1)
66 #define NULLB_PAGE_FREE (MAP_SZ - 2)
86 MODULE_PARM_DESC(no_sched, "No io scheduler");
103 * Documentation/fault-injection/fault-injection.rst.
126 return -EINVAL; in null_param_store_val()
129 return -EINVAL; in null_param_store_val()
165 module_param_named(blocking, g_blocking, bool, 0444);
166 MODULE_PARM_DESC(blocking, "Register as a blocking blk-mq driver device");
[all …]
/Linux-v6.6/arch/m68k/include/asm/
Doplib.h1 /* SPDX-License-Identifier: GPL-2.0 */
35 * and usage utility functions. Only prom-lib should use these,
52 /* Map and unmap devices in IO space at virtual addresses. Note that the
65 * of the string is different on V0 vs. V2->higher proms. The caller must
90 * These lists are returned pre-sorted, this should make your life easier
108 /* Enter the prom, with no chance of continuation for the stand-alone
117 * XXX The arguments are different on V0 vs. V2->higher proms, grrr! XXX
139 /* Non-blocking get character from console. */
142 /* Non-blocking put character to console. */
145 /* Blocking get character from console. */
[all …]
/Linux-v6.6/fs/fuse/
Dfile.c3 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu>
32 if (!fm->fc->atomic_o_trunc) in fuse_send_open()
35 if (fm->fc->handle_killpriv_v2 && in fuse_send_open()
66 ff->fm = fm; in fuse_file_alloc()
67 ff->release_args = kzalloc(sizeof(*ff->release_args), in fuse_file_alloc()
69 if (!ff->release_args) { in fuse_file_alloc()
74 INIT_LIST_HEAD(&ff->write_entry); in fuse_file_alloc()
75 mutex_init(&ff->readdir.lock); in fuse_file_alloc()
76 refcount_set(&ff->count, 1); in fuse_file_alloc()
77 RB_CLEAR_NODE(&ff->polled_node); in fuse_file_alloc()
[all …]
/Linux-v6.6/Documentation/devicetree/bindings/power/supply/
Dsbs,sbs-battery.yaml1 # SPDX-License-Identifier: GPL-2.0
3 ---
4 $id: http://devicetree.org/schemas/power/supply/sbs,sbs-battery.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Sebastian Reichel <sre@kernel.org>
16 - $ref: power-supply.yaml#
21 - items:
22 - enum:
23 - ti,bq20z45
24 - ti,bq20z65
[all …]
/Linux-v6.6/io_uring/
Drw.c1 // SPDX-License-Identifier: GPL-2.0
6 #include <linux/blk-mq.h>
33 return req->flags & REQ_F_SUPPORT_NOWAIT; in io_file_supports_nowait()
42 uiov = u64_to_user_ptr(rw->addr); in io_iov_compat_buffer_select_prep()
44 return -EFAULT; in io_iov_compat_buffer_select_prep()
45 if (__get_user(clen, &uiov->iov_len)) in io_iov_compat_buffer_select_prep()
46 return -EFAULT; in io_iov_compat_buffer_select_prep()
48 return -EINVAL; in io_iov_compat_buffer_select_prep()
50 rw->len = clen; in io_iov_compat_buffer_select_prep()
61 if (rw->len != 1) in io_iov_buffer_select_prep()
[all …]
/Linux-v6.6/drivers/media/usb/dvb-usb/
Ddibusb.h1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Header file for all dibusb-based-receivers.
4 * Copyright (C) 2004-5 Patrick Boettcher (patrick.boettcher@posteo.de)
6 * see Documentation/driver-api/media/drivers/dvb-usb.rst for more information
14 #include "dvb-usb.h"
65 /* interrupt the internal read loop, when blocking */
68 /* io control
/Linux-v6.6/drivers/misc/mei/
Dmei_dev.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2003-2022, Intel Corporation. All rights reserved.
44 #define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 1)
71 * enum mei_dev_pxp_mode - MEI PXP mode state
94 * enum mei_cb_file_ops - file operation associated with the callback
118 * enum mei_cl_io_mode - io mode between driver and fw
120 * @MEI_CL_IO_TX_BLOCKING: send is blocking
123 * @MEI_CL_IO_RX_NONBLOCK: recv is non-blocking
152 * struct mei_dma_dscr - dma address descriptor
171 * struct mei_fw_status - storage of FW status data
[all …]
/Linux-v6.6/drivers/pci/
Dvgaarb.c1 // SPDX-License-Identifier: MIT
48 unsigned int io_lock_cnt; /* legacy IO lock count */
50 unsigned int io_norm_cnt; /* normal IO count */
69 return "io+mem"; in vga_iostate_to_str()
71 return "io"; in vga_iostate_to_str()
81 * In theory, we could hand out locks on IO and MEM separately to in vga_str_to_iostate()
90 if (strncmp(buf, "io+mem", 6) == 0) in vga_str_to_iostate()
92 else if (strncmp(buf, "io", 2) == 0) in vga_str_to_iostate()
111 if (pdev == vgadev->pdev) in vgadev_find()
117 * vga_default_device - return the default VGA device, for vgacon
[all …]
/Linux-v6.6/drivers/staging/axis-fifo/
Daxis-fifo.c1 // SPDX-License-Identifier: GPL-2.0
3 * Xilinx AXIS FIFO: interface to the Xilinx AXI-Stream FIFO IP core
12 /* ----------------------------
14 * ----------------------------
27 #include <linux/io.h>
37 /* ----------------------------
39 * ----------------------------
47 /* ----------------------------
49 * ----------------------------
68 /* ----------------------------
[all …]
/Linux-v6.6/Documentation/scheduler/
Dschedutil.rst15 individual tasks to task-group slices to CPU runqueues. As the basis for this
31 Note that blocked tasks still contribute to the aggregates (task-group slices
57 r_dvfs := -----
61 hardware counters (Intel APERF/MPERF, ARMv8.4-AMU) to provide us this ratio.
65 f_cur := ----- * P0
68 4C-turbo; if available and turbo enabled
69 f_max := { 1C-turbo; if turbo enabled
73 r_dvfs := min( 1, ----- )
88 - kernel/sched/pelt.h:update_rq_clock_pelt()
89 - arch/x86/kernel/smpboot.c:"APERF/MPERF frequency ratio computation."
[all …]
/Linux-v6.6/drivers/clk/hisilicon/
Dclk-hi3660-stub.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 2013-2017 Hisilicon Limited.
13 #include <linux/clk-provider.h>
17 #include <linux/io.h>
22 #include <dt-bindings/clock/hi3660-clock.h>
66 stub_clk->rate = readl(freq_reg + (stub_clk->id << 2)) * MHZ; in hi3660_stub_clk_recalc_rate()
67 return stub_clk->rate; in hi3660_stub_clk_recalc_rate()
85 stub_clk->msg[0] = stub_clk->cmd; in hi3660_stub_clk_set_rate()
86 stub_clk->msg[1] = rate / MHZ; in hi3660_stub_clk_set_rate()
89 stub_clk->msg[0], stub_clk->msg[1]); in hi3660_stub_clk_set_rate()
[all …]
/Linux-v6.6/sound/pci/mixart/
Dmixart.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
61 /* memory-maps */
64 /* one and only blocking message or notification may be pending */
126 …last absolute stream position where period_elapsed was called (multiple of runtime->period_size) */
127 u32 buf_periods; /* periods counter in the buffer (< runtime->periods) */
128 …ag; /* defines with buf_period_pos the exact position in the buffer (< runtime->period_size) */
172 /* UID's for the physical io's */
/Linux-v6.6/drivers/clk/imx/
Dclk-pfdv2.c1 // SPDX-License-Identifier: GPL-2.0+
10 #include <linux/clk-provider.h>
12 #include <linux/io.h>
19 * struct clk_pfdv2 - IMX PFD clock
47 return readl_poll_timeout(pfd->reg, val, val & (1 << pfd->vld_bit), in clk_pfdv2_wait()
58 val = readl_relaxed(pfd->reg); in clk_pfdv2_enable()
59 val &= ~(1 << pfd->gate_bit); in clk_pfdv2_enable()
60 writel_relaxed(val, pfd->reg); in clk_pfdv2_enable()
73 val = readl_relaxed(pfd->reg); in clk_pfdv2_disable()
74 val |= (1 << pfd->gate_bit); in clk_pfdv2_disable()
[all …]
/Linux-v6.6/drivers/mailbox/
Dpl320-ipc.c1 // SPDX-License-Identifier: GPL-2.0-only
9 #include <linux/io.h>
18 #include <linux/pl320-ipc.h>
76 /* blocking implementation from the A9 side, not usable in interrupts! */
88 ret = -ETIMEDOUT; in pl320_ipc_transmit()
134 ipc_base = ioremap(adev->res.start, resource_size(&adev->res)); in pl320_probe()
136 return -ENOMEM; in pl320_probe()
140 ipc_irq = adev->irq[0]; in pl320_probe()
141 ret = request_irq(ipc_irq, ipc_handler, 0, dev_name(&adev->dev), NULL); in pl320_probe()
/Linux-v6.6/arch/parisc/include/asm/
Dpdcpat.h9 * Copyright 2000 (c) Hewlett Packard (Paul Bame <bame()spam.parisc-linux.org>)
10 * Copyright 2000,2004 (c) Grant Grundler <grundler()nahspam.parisc-linux.org>
20 #define PDC_PAT_CELL_NUMBER_TO_LOC 10L /* Cell Number -> Location */
29 #define PDC_PAT_CELL_CHANGE_ALIAS 129L /* Change Non-Equivalent Alias Chacking */
63 /* PDC PAT CHASSIS LOG -- Platform logging & forward progress functions */
74 /* PDC PAT CPU -- CPU configuration within the protection domain */
90 /* PDC PAT EVENT -- Platform Events */
97 #define PDC_PAT_EVENT_GET_NB_CALL 4L /* Get Non-Blocking call Args */
99 /* PDC PAT HPMC -- Cause processor to go into spin loop, and wait
114 /* PDC PAT IO -- On-line services for I/O modules */
[all …]

12345678910