| /linux/Documentation/devicetree/bindings/memory-controllers/ |
| H A D | ti,gpmc-child.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/memory-controllers/ti,gpmc-child.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Tony Lindgren <tony@atomide.com> 11 - Roger Quadros <rogerq@kernel.org> 24 gpmc,sync-clk-ps: 28 # Chip-select signal timings corresponding to GPMC_CONFIG2: 29 gpmc,cs-on-ns: 33 gpmc,cs-rd-off-ns: [all …]
|
| /linux/include/uapi/linux/ |
| H A D | dma-buf.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 26 * struct dma_buf_sync - Synchronize with CPU access. 29 * possible to guarantee coherency between the CPU-visible map and underlying 35 * with DMA_BUF_SYNC_START and the appropriate read/write flags. Once the 37 * DMA_BUF_SYNC_END and the same read/write flags. 43 * wait for buffer to be ready for reading or writing before calling this 45 * follow-up work is not submitted to GPU or other device driver until 50 * poll() on the DMA buffer file descriptor. If the driver or API requires 51 * explicit synchronization, the client may have to wait on a sync_file or 65 * Indicates that the mapped DMA buffer will be read by the [all …]
|
| /linux/scripts/coccinelle/api/ |
| H A D | stream_open.cocci | 1 // SPDX-License-Identifier: GPL-2.0 4 // Search for stream-like files that are using nonseekable_open and convert 5 // them to stream_open. A stream-like file is a file that does not use ppos in 6 // its read and write. Rationale for the conversion is to avoid deadlock in 7 // between read and write. 11 virtual explain // explain decisions in the patch (SPFLAGS="-D explain") 13 // stream-like reader & writer - ones that do not depend on f_pos. 38 identifier wait =~ "^wait_.*"; 42 wait(...) 48 // XXX wait_* can be called not directly from current function (e.g. func -> f -> g -> wait()) [all …]
|
| /linux/include/linux/ |
| H A D | smp.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 42 * Enqueue a llist_node on the call_single_queue; be very careful, read 51 int wait); 54 void *info, bool wait, const struct cpumask *mask); 60 * Architecture-dependent code may override them. 67 * Call a function on all processors 69 static inline void on_each_cpu(smp_call_func_t func, void *info, int wait) in on_each_cpu() argument 71 on_each_cpu_cond_mask(NULL, func, info, wait, cpu_online_mask); in on_each_cpu() 75 * on_each_cpu_mask(): Run a function on processors specified by 77 * @mask: The set of cpus to run on (only runs on online subset). [all …]
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_perf_types.h | 1 /* SPDX-License-Identifier: MIT */ 17 #include <linux/wait.h> 101 * struct i915_perf_stream_ops - the OPs to support a specific stream type 119 * @poll_wait: Call poll_wait, passing a wait queue that will be woken 120 * once there is something ready to read() for the stream 124 poll_table *wait); 127 * @wait_unlocked: For handling a blocking read, wait until there is 128 * something to ready to read() for the stream. E.g. wait on the same 129 * wait queue that would be passed to poll_wait(). 134 * @read: Copy buffered metrics as records to userspace [all …]
|
| /linux/tools/testing/selftests/powerpc/ptrace/ |
| H A D | ptrace-perf-hwbreak.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 #include <sys/wait.h> 13 * Child subroutine that performs a load on the address, then traps 24 * Child subroutine that performs a load on the first address, then a load on 126 attr->type = PERF_TYPE_BREAKPOINT; in perf_user_event_attr_set() 127 attr->size = sizeof(struct perf_event_attr); in perf_user_event_attr_set() 128 attr->bp_type = HW_BREAKPOINT_R; in perf_user_event_attr_set() 129 attr->bp_addr = (u64)addr; in perf_user_event_attr_set() 130 attr->bp_len = len; in perf_user_event_attr_set() 131 attr->exclude_kernel = 1; in perf_user_event_attr_set() [all …]
|
| /linux/drivers/mtd/nand/raw/ |
| H A D | nand_legacy.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * 2002-2006 Thomas Gleixner (tglx@linutronix.de) 23 * nand_read_byte - [DEFAULT] read one byte from the chip 26 * Default read function for 8bit buswidth 30 return readb(chip->legacy.IO_ADDR_R); in nand_read_byte() 34 * nand_read_byte16 - [DEFAULT] read one byte endianness aware from the chip 37 * Default read function for 16bit buswidth with endianness conversion. 42 return (uint8_t) cpu_to_le16(readw(chip->legacy.IO_ADDR_R)); in nand_read_byte16() 46 * nand_select_chip - [DEFAULT] control CE line 48 * @chipnr: chipnumber to select, -1 for deselect [all …]
|
| /linux/Documentation/block/ |
| H A D | stat.rst | 29 read I/Os requests number of read I/Os processed 30 read merges requests number of read I/Os merged with in-queue I/O 31 read sectors sectors number of sectors read 32 read ticks milliseconds total wait time for read requests 34 write merges requests number of write I/Os merged with in-queue I/O 36 write ticks milliseconds total wait time for write requests 39 time_in_queue milliseconds total wait time for all requests 41 discard merges requests number of discard I/Os merged with in-queue I/O 43 discard ticks milliseconds total wait time for discard requests 45 flush ticks milliseconds total wait time for flush requests [all …]
|
| /linux/mm/ |
| H A D | filemap.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * Copyright (C) 1994-1999 Linus Torvalds 30 #include <linux/error-injection.h> 33 #include <linux/backing-dev.h> 73 * finished 'unifying' the page and buffer cache and SMP-threaded the 74 * page-cache, 21.05.1999, Ingo Molnar <mingo@redhat.com> 76 * SMP-threaded pagemap-LRU 1999, Andrea Arcangeli <andrea@suse.de> 82 * ->i_mmap_rwsem (truncate_pagecache) 83 * ->private_lock (__free_pte->block_dirty_folio) 84 * ->swap_lock (exclusive_swap_page, others) [all …]
|
| /linux/Documentation/RCU/ |
| H A D | rcu.rst | 6 The basic idea behind RCU (read-copy update) is to split destructive 11 since dropped their references. For example, an RCU-protected deletion 12 from a linked list would first remove the item from the list, wait for 14 information on using RCU with linked lists. 17 -------------------------- 19 - Why would anyone want to use RCU? 21 The advantage of RCU's two-part approach is that RCU readers need 23 shared memory, or (on CPUs other than Alpha) execute any memory 25 on modern CPUs is what gives RCU its performance advantages 26 in read-mostly situations. The fact that RCU readers need not [all …]
|
| /linux/include/linux/platform_data/ |
| H A D | gpmc-omap.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2014 Texas Instruments, Inc. - https://www.ti.com 34 /* Chip-select signal timings corresponding to GPMC_CS_CONFIG2 */ 36 u32 cs_rd_off; /* Read deassertion time */ 41 u32 adv_rd_off; /* Read deassertion time */ 44 u32 adv_aad_mux_rd_off; /* ADV read deassertion time for AAD */ 59 u32 access; /* Start-cycle to first data valid delay */ 60 u32 rd_cycle; /* Total read cycle time */ 69 /* The following are only on OMAP3430 */ 95 u32 t_rd_cycle; /* read cycle time */ [all …]
|
| /linux/tools/testing/selftests/memfd/ |
| H A D | fuse_test.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * memfd GUP test-case 5 * fuse_mnt.c program to provide a fake direct-IO FUSE mount-point for us. This 6 * file-system delays _all_ reads by 1s and forces direct-IO. This means, any 7 * read() on file [all...] |
| /linux/arch/arm/mach-omap2/ |
| H A D | omap-headsmp.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Copyright (C) 2009-2014 Texas Instruments, Inc. 10 * Interface functions needed for the SMP. This file is based on arm 21 /* Physical address needed since MMU not enabled yet on secondary core */ 43 wait: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 label 49 bne wait 58 .arch armv7-a 61 wait_2: ldr r2, =AUX_CORE_BOOT0_PA @ read from AuxCoreBoot0 84 smc #0 @ read from AuxCoreBoot0 92 * we've been released from the wait loop,secondary_stack [all …]
|
| H A D | sleep24xx.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * linux/arch/arm/mach-omap2/sleep.S 7 * Richard Woodruff <r-woodruff2@ti.com> 26 * omap24xx_cpu_suspend() - Forces OMAP into deep sleep state by completing 27 * SDRC shutdown then ARM shutdown. Upon wake MPU is back on so just restore 31 * R0 : DLL ctrl value pre-Sleep 35 * The if the DPLL is going to AutoIdle. It seems like the DPLL may be back on 36 * when we get called, but the DLL probably isn't. We will wait a bit more in 37 * case the DPLL isn't quite there yet. The code will wait on DLL for DDR even 40 * For less than 242x-ES2.2 upon wake from a sleep mode where the external [all …]
|
| /linux/fs/netfs/ |
| H A D | locking.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * inode_dio_wait_interruptible - wait for outstanding DIO requests to finish 14 * @inode: inode to wait for 20 * to i_dio_count, usually by inode->i_mutex. 28 return !inode_dio_finished(inode) ? -ERESTARTSYS : 0; in netfs_inode_dio_wait_interruptible() 31 /* Call with exclusively locked inode->i_rwsem */ 34 if (!test_bit(NETFS_ICTX_ODIRECT, &ictx->flags)) in netfs_block_o_direct() 36 clear_bit(NETFS_ICTX_ODIRECT, &ictx->flags); in netfs_block_o_direct() 37 return netfs_inode_dio_wait_interruptible(&ictx->inode); in netfs_block_o_direct() 41 * netfs_start_io_read - declare the file is being used for buffered reads [all …]
|
| /linux/kernel/rcu/ |
| H A D | tasks.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 3 * Task-based RCU implementations. 24 * struct rcu_tasks_percpu - Per-CPU component of definition for a Tasks-RCU-like mechanism. 26 * @lock: Lock protecting per-CPU callback list. 29 * @urgent_gp: Number of additional non-laz [all...] |
| H A D | tree_exp.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 27 * Return the value that the expedited-grace-period counter will have 46 * Take a snapshot of the expedited-grace-period counter, which is the 71 * Reset the ->expmaskinit values in the rcu_node tree to reflect any 72 * recent CPU-online activity. Note that these masks are not cleared 75 * no-work-to-do fastpath. 98 if (rnp->expmaskinit == rnp->expmaskinitnext) { in sync_exp_reset_tree_hotplug() 104 oldmask = rnp->expmaskinit; in sync_exp_reset_tree_hotplug() 105 rnp->expmaskinit = rnp->expmaskinitnext; in sync_exp_reset_tree_hotplug() 113 mask = rnp->grpmask; in sync_exp_reset_tree_hotplug() [all …]
|
| /linux/drivers/net/ethernet/wangxun/libwx/ |
| H A D | wx_mbx.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright (c) 2015 - 2025 Beijing WangXun Technology Co., Ltd. */ 9 * wx_obtain_mbx_lock_pf - obtain mailbox lock 13 * Return: return 0 on success and -EBUSY on failure 20 while (count--) { in wx_obtain_mbx_lock_pf() 33 return -EBUSY; in wx_obtain_mbx_lock_pf() 41 return -EBUSY; in wx_check_for_bit_pf() 48 * wx_check_for_ack_pf - checks to see if the VF has acked 52 * Return: return 0 if the VF has set the status bit or else -EBUSY 65 * wx_check_for_msg_pf - checks to see if the VF has sent mail [all …]
|
| /linux/tools/testing/selftests/mm/ |
| H A D | cow.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * COW (Copy On Write) tests. 21 #include <sys/wait.h> 72 for (; size; addr += pagesize, size -= pagesize) in range_is_swapped() 85 if (pipe(comm_pipes->child_ready) < 0) { in setup_comm_pipes() 87 return -errno; in setup_comm_pipes() 89 if (pipe(comm_pipes->parent_ready) < 0) { in setup_comm_pipes() 91 close(comm_pipes->child_ready[0]); in setup_comm_pipes() 92 close(comm_pipes->child_ready[1]); in setup_comm_pipes() 93 return -errno; in setup_comm_pipes() [all …]
|
| /linux/drivers/w1/masters/ |
| H A D | amd_axi_w1.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * amd_axi_w1 - AMD 1Wire programmable logic bus host driver 5 * Copyright (C) 2022-2023 Advanced Micro Devices, Inc. All Rights Reserved. 19 #include <linux/wait.h> 23 /* 1-wire AMD IP definition */ 62 atomic_t flag; /* Set on IRQ, cleared once serviced */ 68 * amd_axi_w1_wait_irq_interruptible_timeout() - Wait for IRQ with timeout. 71 * @IRQ: IRQ channel to wait on 73 * Return: %0 - OK, %-EINTR - Interrupted, %-EBUSY - Timed out 80 /* Enable the IRQ requested and wait for flag to indicate it's been triggered */ in amd_axi_w1_wait_irq_interruptible_timeout() [all …]
|
| /linux/drivers/input/serio/ |
| H A D | serio_raw.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * serio port. Closely emulates behavior of pre-2.6 /dev/psaux device 18 #include <linux/wait.h> 36 wait_queue_head_t wait; member 55 static int serio_raw_fasync(int fd, struct file *file, int on) in serio_raw_fasync() argument 57 struct serio_raw_client *client = file->private_data; in serio_raw_fasync() 59 return fasync_helper(fd, file, on, &client->fasync); in serio_raw_fasync() 67 if (serio_raw->dev.minor == minor) in serio_raw_locate() 82 return -ENODEV; in serio_raw_open() 84 if (serio_raw->dead) in serio_raw_open() [all …]
|
| /linux/drivers/firmware/arm_scmi/ |
| H A D | raw_mode.c | 1 // SPDX-License-Identifier: GPL-2.0 13 * little-endian format. 17 * currently configured on the system under test. 21 * the transport configured on the system. 27 * originated from a test-suite and the normal operations of the SCMI drivers, 40 * `-- 0 41 * |-- atomic_threshold_us 42 * |-- instance_name 43 * |-- raw 44 * | |-- channels [all …]
|
| /linux/drivers/tty/serial/ |
| H A D | zs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 unsigned int tty_break; /* Set on BREAK condition. */ 38 * Per-SCC state for locking and the interrupt handler. 53 #define ZS_BPS_TO_BRG(bps, freq) ((((freq) + (bps)) / (2 * (bps))) - 2) 81 #define RES_RxINT_FC 0x20 /* Reset RxINT on First Character */ 90 /* Write Register 1 (Tx/Rx/Ext Int Enable and WAIT/DMA Commands) */ 96 #define RxINT_FCERR 0x8 /* Rx Int on First Character Only or Error */ 97 #define RxINT_ALL 0x10 /* Int on all Rx Characters or error */ 98 #define RxINT_ERR 0x18 /* Int on error only */ 101 #define WT_RDY_RT 0x20 /* Wait/Ready on R/T */ [all …]
|
| /linux/drivers/mtd/chips/ |
| H A D | cfi_cmdset_0020.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - completely revamped method functions so they are aware and 11 * - scalability vs code size is completely set at compile-time 13 * - optimized write buffer method 14 * 06/21/2002 Joern Engel <joern@wh.fh-wedel.de> and others 15 * - modified Intel Command Set 0x0001 to support ST Advanced Architecture 17 * - added a writev function 18 * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de> 19 * - Plugged memory leak in cfi_staa_writev(). 69 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features() [all …]
|
| /linux/Documentation/driver-api/soundwire/ |
| H A D | bra.rst | 6 ----------- 12 ------------ 14 The SoundWire 1.x specification provides a mechanism to speed-up 17 solution based on the Bulk Payload Transport (BPT) definitions. 20 one byte per frame with write/read commands. With a typical 48kHz 27 (1) Each frame can only support a read or a write transfer, with a 28 10-byte overhead per frame (header and footer response). 30 (2) The read/writes SHALL be from/to contiguous register addresses 36 Port 0, and likewise the Manager SHALL expose audio-like Ports 40 (4) The BRA transport efficiency depends on the available [all …]
|