/Linux-v6.1/sound/soc/sti/ |
D | uniperif_reader.c | 12 #define UNIPERIF_READER_I2S_IN 0 /* reader id connected to I2S/TDM TX bus */ 46 struct uniperif *reader = dev_id; in uni_reader_irq_handler() local 49 spin_lock(&reader->irq_lock); in uni_reader_irq_handler() 50 if (!reader->substream) in uni_reader_irq_handler() 53 snd_pcm_stream_lock(reader->substream); in uni_reader_irq_handler() 54 if (reader->state == UNIPERIF_STATE_STOPPED) { in uni_reader_irq_handler() 56 dev_warn(reader->dev, "unexpected IRQ\n"); in uni_reader_irq_handler() 61 status = GET_UNIPERIF_ITS(reader); in uni_reader_irq_handler() 62 SET_UNIPERIF_ITS_BCLR(reader, status); in uni_reader_irq_handler() 65 if (unlikely(status & UNIPERIF_ITS_FIFO_ERROR_MASK(reader))) { in uni_reader_irq_handler() [all …]
|
/Linux-v6.1/drivers/misc/ibmasm/ |
D | event.c | 28 struct event_reader *reader; in wake_up_event_readers() local 30 list_for_each_entry(reader, &sp->event_buffer->readers, node) in wake_up_event_readers() 31 wake_up_interruptible(&reader->wait); in wake_up_event_readers() 40 * There is no reader marker in the buffer, therefore readers are 77 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader) in ibmasm_get_next_event() argument 84 reader->cancelled = 0; in ibmasm_get_next_event() 86 if (wait_event_interruptible(reader->wait, in ibmasm_get_next_event() 87 event_available(buffer, reader) || reader->cancelled)) in ibmasm_get_next_event() 90 if (!event_available(buffer, reader)) in ibmasm_get_next_event() 97 while (event->serial_number < reader->next_serial_number) { in ibmasm_get_next_event() [all …]
|
D | remote.h | 93 #define set_queue_reader(sp, reader) writel(reader, mouse_addr(sp) + CONDOR_MOUSE_Q_READER) argument 100 static inline int advance_queue_reader(struct service_processor *sp, unsigned long reader) in advance_queue_reader() argument 102 reader++; in advance_queue_reader() 103 if (reader == REMOTE_QUEUE_SIZE) in advance_queue_reader() 104 reader = 0; in advance_queue_reader() 106 set_queue_reader(sp, reader); in advance_queue_reader() 107 return reader; in advance_queue_reader()
|
/Linux-v6.1/drivers/hid/ |
D | hid-roccat.c | 76 struct roccat_reader *reader = file->private_data; in roccat_read() local 77 struct roccat_device *device = reader->device; in roccat_read() 85 if (reader->cbuf_start == device->cbuf_end) { in roccat_read() 90 while (reader->cbuf_start == device->cbuf_end) { in roccat_read() 118 report = &device->cbuf[reader->cbuf_start]; in roccat_read() 130 reader->cbuf_start = (reader->cbuf_start + 1) % ROCCAT_CBUF_SIZE; in roccat_read() 139 struct roccat_reader *reader = file->private_data; in roccat_poll() local 140 poll_wait(file, &reader->device->wait, wait); in roccat_poll() 141 if (reader->cbuf_start != reader->device->cbuf_end) in roccat_poll() 143 if (!reader->device->exist) in roccat_poll() [all …]
|
/Linux-v6.1/Documentation/trace/ |
D | ring-buffer-design.rst | 34 - the task that reads from the buffer (same as reader) 36 reader 41 by the reader. 44 - a pointer to the page that the reader will use next 98 same time, nor can a reader preempt/interrupt another reader. A reader 100 buffer at the same time as a writer is writing, but the reader must be 101 on another processor to do so. A reader may read on its own processor 104 A writer can preempt a reader, but a reader cannot preempt a writer. 105 But a reader can read the buffer at the same time (on another processor) 110 At initialization a reader page is allocated for the reader that is not [all …]
|
/Linux-v6.1/drivers/usb/storage/ |
D | Kconfig | 36 tristate "Realtek Card Reader support" 44 bool "Realtek Card Reader autosuspend support" 49 tristate "Datafab Compact Flash Reader support" 88 - CompactFlash reader included with Kodak DC3800 camera 89 - Dane-Elec Zmate CompactFlash reader 95 - Maxell UA4 CompactFlash reader 107 SmartMedia reader in the USB Mass Storage driver. 108 Also works for the Microtech Zio! CompactFlash/SmartMedia reader. 116 SmartMedia reader in the USB Mass Storage driver. 121 tristate "Lexar Jumpshot Compact Flash Reader" [all …]
|
D | unusual_realtek.h | 3 * Driver for Realtek RTS51xx USB card reader 17 "USB Card Reader", 22 "USB Card Reader", 27 "USB Card Reader", 32 "USB Card Reader", 37 "USB Card Reader", 42 "USB Card Reader",
|
D | unusual_datafab.h | 3 * Unusual Devices File for the Datafab USB Compact Flash reader 11 "MDCFE-B USB CF Reader", 28 "SIIG/Datafab Memory Stick+CF Reader/Writer", 41 "Datafab-based Reader", 47 "Datafab-based Reader", 53 "PNY/Datafab CF+SM Reader", 59 "Simple Tech/Datafab CF+SM Reader",
|
/Linux-v6.1/drivers/memstick/host/ |
D | Kconfig | 14 the Texas Instruments(R) Flash Media card reader, found in many 17 probably also need appropriate card reader host adapter, such as 30 the JMicron(R) JMB38X MemoryStick card reader. 41 the Ricoh R5C592 MemoryStick card reader (which is part of 5 in one 42 multifunction reader) 52 of Realtek PCI-E card reader 62 of Realtek RTS5129/39 series USB card reader
|
/Linux-v6.1/drivers/mmc/host/ |
D | cb710-mmc.c | 86 struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot)); in cb710_mmc_enable_irq() local 89 spin_lock_irqsave(&reader->irq_lock, flags); in cb710_mmc_enable_irq() 92 spin_unlock_irqrestore(&reader->irq_lock, flags); in cb710_mmc_enable_irq() 344 static u16 cb710_encode_cmd_flags(struct cb710_mmc_reader *reader, in cb710_encode_cmd_flags() argument 446 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_command() local 449 u16 cb_cmd = cb710_encode_cmd_flags(reader, cmd); in cb710_mmc_command() 486 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_request() local 488 WARN_ON(reader->mrq != NULL); in cb710_mmc_request() 490 reader->mrq = mrq; in cb710_mmc_request() 496 tasklet_schedule(&reader->finish_req_tasklet); in cb710_mmc_request() [all …]
|
/Linux-v6.1/drivers/misc/cardreader/ |
D | Kconfig | 3 tristate "Alcor Micro/Alcor Link PCI-E card reader" 7 This supports for Alcor Micro PCI-Express card reader including au6601, 14 tristate "Realtek PCI-E card reader" 18 This supports for Realtek PCI-Express card reader including rts5209, 25 tristate "Realtek USB card reader" 31 Realtek card reader supports access to many types of memory cards,
|
/Linux-v6.1/kernel/locking/ |
D | percpu-rwsem.c | 57 * If the reader misses the writer's assignment of sem->block, then the in __percpu_down_read_trylock() 58 * writer is guaranteed to see the reader's increment. in __percpu_down_read_trylock() 92 static bool __percpu_rwsem_trylock(struct percpu_rw_semaphore *sem, bool reader) in __percpu_rwsem_trylock() argument 94 if (reader) { in __percpu_rwsem_trylock() 123 bool reader = wq_entry->flags & WQ_FLAG_CUSTOM; in percpu_rwsem_wake_function() local 128 if (!__percpu_rwsem_trylock(sem, reader)) in percpu_rwsem_wake_function() 138 return !reader; /* wake (readers until) 1 writer */ in percpu_rwsem_wake_function() 141 static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader) in percpu_rwsem_wait() argument 151 wait = !__percpu_rwsem_trylock(sem, reader); in percpu_rwsem_wait() 153 wq_entry.flags |= WQ_FLAG_EXCLUSIVE | reader * WQ_FLAG_CUSTOM; in percpu_rwsem_wait() [all …]
|
D | rwbase_rt.c | 4 * RT-specific reader/writer semaphores and reader/writer locks 8 * 2) Remove the reader BIAS to force readers into the slow path 14 * 2) Set the reader BIAS, so readers can use the fast path again 18 * 1) Try fast path acquisition (reader BIAS is set) 25 * 1) Try fast path release (reader count != 1) 36 * for one reader after the other. We can't use multi-reader inheritance 38 * Implementing the one by one reader boosting/handover mechanism is a 58 * Increment reader count, if sem->readers < 0, i.e. READER_BIAS is in rwbase_read_trylock() 125 * active. Increment the reader count and immediately drop the in __rwbase_read_lock() 192 * _release() is needed in case that reader is in fast path, pairing in __rwbase_write_unlock() [all …]
|
D | rwsem.c | 39 * - Bit 1: RWSEM_NONSPINNABLE - Cannot spin on a reader-owned lock 41 * When the rwsem is reader-owned and a spinning writer has timed out, 47 * When a reader acquires a rwsem, it will also puts its task_struct 50 * for a free or reader-owned rwsem, the owner value may contain 51 * information about the last reader that acquires the rwsem. 54 * seems to hang on a reader owned rwsem especially if only one reader 58 * A fast path reader optimistic lock stealing is supported when the rwsem 88 * Bits 8-62 - 55-bit reader count 97 * Bits 8-30 - 23-bit reader count 102 * just in case we need to use up more of the reader bits for other purpose [all …]
|
/Linux-v6.1/drivers/gpu/drm/lima/ |
D | lima_drv.c | 293 static bool lima_read_block(struct lima_block_reader *reader, in lima_read_block() argument 296 size_t max_off = reader->base + src_size; in lima_read_block() 298 if (reader->off < max_off) { in lima_read_block() 299 size_t size = min_t(size_t, max_off - reader->off, in lima_read_block() 300 reader->count); in lima_read_block() 302 memcpy(reader->dst, src + (reader->off - reader->base), size); in lima_read_block() 304 reader->dst += size; in lima_read_block() 305 reader->off += size; in lima_read_block() 306 reader->read += size; in lima_read_block() 307 reader->count -= size; in lima_read_block() [all …]
|
/Linux-v6.1/tools/testing/selftests/bpf/ |
D | test_bpftool_synctypes.py | 26 @reader: a pointer to the open file to parse 28 def __init__(self, reader): argument 29 self.reader = reader 36 offset = self.reader.tell() 37 array_start = re.search(start_marker, self.reader.read()) 40 self.reader.seek(offset + array_start.start()) 51 line = self.reader.readline() 62 @reader: a pointer to the open file to parse 67 def __init__(self, reader, array_name): argument 70 super().__init__(reader) [all …]
|
/Linux-v6.1/Documentation/locking/ |
D | seqlock.rst | 8 Sequence counters are a reader-writer consistency mechanism with 11 reader wants a consistent set of information and is willing to retry if 19 the reader must retry. 28 or interrupted by read side sections. Otherwise the reader will spin for 30 interrupted writer. If that reader belongs to a real-time scheduling 34 as the writer can invalidate a pointer that the reader is following. 197 number. Writers do not wait for a sequence reader:: 206 2. Locking readers which will wait if a writer or another locking reader 207 is in progress. A locking reader in progress will also block a writer 209 exclusive. Unlike rwlock_t, only one locking reader can acquire it:: [all …]
|
/Linux-v6.1/drivers/acpi/acpica/ |
D | utlock.c | 4 * Module Name: utlock - Reader/Writer lock interfaces 25 * DESCRIPTION: Reader/writer lock creation and deletion interfaces. 62 * DESCRIPTION: Reader interfaces for reader/writer locks. On acquisition, 63 * only the first reader acquires the write mutex. On release, 64 * only the last reader releases the write mutex. Although this 80 /* Acquire the write lock only for the first reader */ in acpi_ut_acquire_read_lock() 102 /* Release the write lock only for the very last reader */ in acpi_ut_release_read_lock() 122 * DESCRIPTION: Writer interfaces for reader/writer locks. Simply acquire or
|
/Linux-v6.1/scripts/ |
D | jobserver-exec | 27 reader, writer = [int(x) for x in fds.split(",", 1)] variable 28 # Open a private copy of reader to avoid setting nonblocking 29 # on an unexpecting process with the same reader fd. 30 reader = os.open("/proc/self/fd/%d" % (reader), variable 36 slot = os.read(reader, 8)
|
/Linux-v6.1/include/linux/ |
D | seqlock.h | 6 * seqcount_t / seqlock_t - a reader-writer consistency mechanism with 32 * via seqcount_t under KCSAN: upon beginning a seq-reader critical section, 52 * as the writer can invalidate a pointer that a reader is following. 141 * reader preempting the writer, use a different technique: let the reader 576 * meant to propagate to the reader critical section. This is necessary because 669 * See raw_write_seqcount_latch() for details and a full reader/writer 995 * read_seqlock_excl() - begin a seqlock_t locking reader section 998 * read_seqlock_excl opens a seqlock_t locking reader critical section. A 999 * locking reader exclusively locks out *both* other writers *and* other 1016 * read_sequnlock_excl() - end a seqlock_t locking reader critical section [all …]
|
/Linux-v6.1/kernel/trace/ |
D | ring_buffer.c | 67 * associated with the CPU it is currently executing on. A reader may read 70 * The reader is special. For each per cpu buffer, the reader has its own 71 * reader page. When a reader has read the entire reader page, this reader 74 * Now, as long as the writer is off the reader page, the reader can do what 81 * |reader| RING BUFFER 92 * |reader| RING BUFFER 103 * |reader| RING BUFFER 119 * | Reader------^ | 124 * After we make this swap, the reader can hand this page off to the splice 910 /* The reader can read an empty page, but not more than that */ in ring_buffer_nr_dirty_pages() [all …]
|
/Linux-v6.1/drivers/net/ethernet/sfc/ |
D | ef100_nic.c | 835 const struct ef100_tlv_state *reader) in ef100_process_design_param() argument 839 switch (reader->type) { in ef100_process_design_param() 859 nic_data->tso_max_hdr_len = min_t(u64, reader->value, 0xffff); in ef100_process_design_param() 863 if (!reader->value) { in ef100_process_design_param() 876 if (!reader->value || reader->value > EFX_MIN_DMAQ_SIZE || in ef100_process_design_param() 877 EFX_MIN_DMAQ_SIZE % (u32)reader->value) { in ef100_process_design_param() 880 reader->type == ESE_EF100_DP_GZ_RXQ_SIZE_GRANULARITY ? "RXQ" : "TXQ", in ef100_process_design_param() 881 reader->value); in ef100_process_design_param() 886 nic_data->tso_max_payload_len = min_t(u64, reader->value, in ef100_process_design_param() 892 nic_data->tso_max_payload_num_segs = min_t(u64, reader->value, 0xffff); in ef100_process_design_param() [all …]
|
/Linux-v6.1/fs/btrfs/ |
D | locking.c | 110 * - reader/writer exclusion 112 * - reader/reader sharing 317 * DREW stands for double-reader-writer-exclusion lock. It's used in situation 320 * Currently implementation gives more priority to reader. If a reader and a 322 * would yield its lock as soon as it detects a concurrent reader. Additionally 385 * Ensure the pending reader count is perceieved BEFORE this reader in btrfs_drew_read_lock() 387 * won't be allowed and that the current reader will be woken up when in btrfs_drew_read_lock()
|
/Linux-v6.1/arch/arc/include/asm/ |
D | spinlock.h | 76 * Unfair locking as Writers could be starved indefinitely by Reader(s) 84 * zero means writer holds the lock exclusively, deny Reader. in arch_read_lock() 85 * Otherwise grant lock to first/subseq reader in arch_read_lock() 96 " sub %[val], %[val], 1 \n" /* reader lock */ in arch_read_lock() 139 * If reader(s) hold lock (lock < __ARCH_RW_LOCK_UNLOCKED__), in arch_write_lock() 291 * Unfair locking as Writers could be starved indefinitely by Reader(s) 307 * zero means writer holds the lock exclusively, deny Reader. in arch_read_trylock() 308 * Otherwise grant lock to first/subseq reader in arch_read_trylock() 331 * If reader(s) hold lock (lock < __ARCH_RW_LOCK_UNLOCKED__), in arch_write_trylock()
|
/Linux-v6.1/tools/testing/selftests/rcutorture/bin/ |
D | kvm-recheck-refscale.sh | 66 print "Average reader duration: " sum / newNR " nanoseconds"; 67 print "Minimum reader duration: " readertimes[1]; 68 print "Median reader duration: " medianvalue; 69 print "Maximum reader duration: " readertimes[newNR];
|