Home
last modified time | relevance | path

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

123456789

/Linux-v5.10/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-v5.10/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-v5.10/fs/btrfs/
Dlocking.c1 // SPDX-License-Identifier: GPL-2.0
9 #include <linux/page-flags.h>
26 * - reader/writer exclusion
27 * - writer/writer exclusion
28 * - reader/reader sharing
29 * - spinning lock semantics
30 * - blocking lock semantics
31 * - try-lock semantics for readers and writers
32 * - one level nesting, allowing read lock to be taken by the same thread that
36 * related to the storage in the b-tree (keys, items, but not the individual
[all …]
/Linux-v5.10/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-v5.10/kernel/sched/
Dcompletion.c1 // SPDX-License-Identifier: GPL-2.0
3 * Generic wait-for-completion handler;
6 * wait_for_completion default blocks whereas semaphore default non-block. The
17 * complete: - signals a single thread waiting on this completion
32 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete()
34 if (x->done != UINT_MAX) in complete()
35 x->done++; in complete()
36 swake_up_locked(&x->wait); in complete()
37 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete()
42 * complete_all: - signals all threads waiting on this completion
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/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-v5.10/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>
19 - items:
20 - enum:
21 - ti,bq20z65
22 - ti,bq20z75
23 - enum:
[all …]
/Linux-v5.10/drivers/misc/mei/
Dmei_dev.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2003-2019, Intel Corporation. All rights reserved.
39 #define MEI_MAX_OPEN_HANDLE_COUNT (MEI_CLIENTS_MAX - 1)
73 * enum mei_cb_file_ops - file operation associated with the callback
93 * enum mei_cl_io_mode - io mode between driver and fw
95 * @MEI_CL_IO_TX_BLOCKING: send is blocking
98 * @MEI_CL_IO_RX_NONBLOCK: recv is non-blocking
116 * struct mei_dma_dscr - dma address descriptor
135 * struct mei_fw_status - storage of FW status data
146 * struct mei_me_client - representation of me (fw) client
[all …]
/Linux-v5.10/fs/fuse/
Dfile.c3 Copyright (C) 2001-2008 Miklos Szeredi <miklos@szeredi.hu>
42 inarg.flags = file->f_flags & ~(O_CREAT | O_EXCL | O_NOCTTY); in fuse_send_open()
43 if (!fm->fc->atomic_o_trunc) in fuse_send_open()
71 ff->fm = fm; in fuse_file_alloc()
72 ff->release_args = kzalloc(sizeof(*ff->release_args), in fuse_file_alloc()
74 if (!ff->release_args) { in fuse_file_alloc()
79 INIT_LIST_HEAD(&ff->write_entry); in fuse_file_alloc()
80 mutex_init(&ff->readdir.lock); in fuse_file_alloc()
81 refcount_set(&ff->count, 1); in fuse_file_alloc()
82 RB_CLEAR_NODE(&ff->polled_node); in fuse_file_alloc()
[all …]
/Linux-v5.10/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-v5.10/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 * ----------------------------
25 #include <linux/io.h>
38 /* ----------------------------
40 * ----------------------------
48 /* ----------------------------
50 * ----------------------------
69 /* ----------------------------
[all …]
/Linux-v5.10/drivers/gpu/vga/
Dvgaarb.c69 unsigned int io_lock_cnt; /* legacy IO lock count */
71 unsigned int io_norm_cnt; /* normal IO count */
93 return "io+mem"; in vga_iostate_to_str()
95 return "io"; in vga_iostate_to_str()
104 /* we could in theory hand out locks on IO and mem in vga_str_to_iostate()
112 if (strncmp(buf, "io+mem", 6) == 0) in vga_str_to_iostate()
114 else if (strncmp(buf, "io", 2) == 0) in vga_str_to_iostate()
124 /* this is only used a cookie - it should not be dereferenced */
135 if (pdev == vgadev->pdev) in vgadev_find()
141 * vga_default_device - return the default VGA device, for vgacon
[all …]
/Linux-v5.10/fs/xfs/
Dxfs_log_priv.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
50 XLOG_STATE_IOERROR, /* IO error happened in sync'ing log */
63 * By covering, we mean changing the h_tail_lsn in the last on-disk
64 * log write such that no allocation transactions will be re-done during
65 * recovery after a system crash. Recovery starts at the last on-disk
69 * space allocation transactions which can undo non-transactional changes
82 * non-dummy transaction. The first dummy changes the h_tail_lsn to
91 * IDLE -- no logging has been done on the file system or
93 * NEED -- logging has occurred and we need a dummy transaction
[all …]
/Linux-v5.10/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-v5.10/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-v5.10/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 implmentation from the A9 side, not usuable 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-v5.10/drivers/block/
Dnull_blk_main.c1 // SPDX-License-Identifier: GPL-2.0-only
14 #define PAGE_SECTORS_SHIFT (PAGE_SHIFT - SECTOR_SHIFT)
16 #define SECTOR_MASK (PAGE_SECTORS - 1)
40 * CACHE: Device is using a write-back cache.
66 #define NULLB_PAGE_LOCK (MAP_SZ - 1)
67 #define NULLB_PAGE_FREE (MAP_SZ - 2)
89 MODULE_PARM_DESC(no_sched, "No io scheduler");
102 * Documentation/fault-injection/fault-injection.rst.
125 return -EINVAL; in null_param_store_val()
128 return -EINVAL; in null_param_store_val()
[all …]
/Linux-v5.10/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 */
89 /* PDC PAT EVENT -- Platform Events */
96 #define PDC_PAT_EVENT_GET_NB_CALL 4L /* Get Non-Blocking call Args */
98 /* PDC PAT HPMC -- Cause processor to go into spin loop, and wait
113 /* PDC PAT IO -- On-line services for I/O modules */
[all …]
/Linux-v5.10/tools/perf/bench/
Depoll-wait.c1 // SPDX-License-Identifier: GPL-2.0
11 * |---> [worker A]
12 * |---> [worker B]
13 * [combined queue] .---> [worker C]
14 * |---> [worker D]
15 * |---> [worker E]
17 * While the second model, enabled via --multiq option, uses multiple
23 * [queue A] ---> [worker]
24 * [queue B] ---> [worker]
25 * [queue C] ---> [worker]
[all …]
/Linux-v5.10/drivers/input/serio/
Duserio.c51 * userio_device_write - Write data from serio to a userio device in userspace
57 struct userio_device *userio = id->port_data; in userio_device_write()
60 spin_lock_irqsave(&userio->buf_lock, flags); in userio_device_write()
62 userio->buf[userio->head] = val; in userio_device_write()
63 userio->head = (userio->head + 1) % USERIO_BUFSIZE; in userio_device_write()
65 if (userio->head == userio->tail) in userio_device_write()
69 spin_unlock_irqrestore(&userio->buf_lock, flags); in userio_device_write()
71 wake_up_interruptible(&userio->waitq); in userio_device_write()
82 return -ENOMEM; in userio_char_open()
84 mutex_init(&userio->mutex); in userio_char_open()
[all …]

123456789