/linux/sound/soc/sti/ |
H A 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/drivers/misc/ibmasm/ |
H A 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 …]
|
H A 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()
|
H A D | ibmasmfs.c | 220 struct event_reader reader; member 351 ibmasm_event_reader_register(sp, &event_data->reader); in event_file_open() 363 ibmasm_event_reader_unregister(event_data->sp, &event_data->reader); in event_file_close() 371 struct event_reader *reader = &event_data->reader; in event_file_read() local 391 ret = ibmasm_get_next_event(sp, reader); in event_file_read() 395 if (count < reader->data_size) { in event_file_read() 400 if (copy_to_user(buf, reader->data, reader->data_size)) { in event_file_read() 404 ret = reader->data_size; in event_file_read() 422 ibmasm_cancel_next_event(&event_data->reader); in event_file_write()
|
/linux/drivers/hid/ |
H A 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/Documentation/trace/ |
H A 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 …]
|
H A D | ring-buffer-map.rst | 21 fields of the meta-page is the reader. It contains the sub-buffer ID which can 25 therefore effortless to know where the reader starts in the mapping: 29 reader_id = meta->reader->id; 32 When the application is done with the current reader, it can get a new one using 70 void *map, *reader, *data; 96 reader_id = meta->reader.id; 97 reader = data + meta->subbuf_size * reader_id; 99 printf("Current reader address: %p\n", reader);
|
/linux/include/uapi/linux/ |
H A D | trace_mmap.h | 12 * @nr_subbufs: Number of subbfs in the ring-buffer, including the reader. 13 * @reader.lost_events: Number of events lost at the time of the reader swap. 14 * @reader.id: subbuf ID of the current reader. ID range [0 : @nr_subbufs - 1] 15 * @reader.read: Number of bytes read on the reader subbuf. 34 } reader; member
|
/linux/include/linux/ |
H A D | srcu.h | 227 * srcu_read_lock - register a new reader for an SRCU-protected structure. 228 * @ssp: srcu_struct in which to register the new reader. 258 * srcu_read_lock_fast - register a new reader for an SRCU-protected structure. 259 * @ssp: srcu_struct in which to register the new reader. 262 * smp_mb()-free reader. See srcu_read_lock() for more information. 285 * srcu_down_read_fast - register a new reader for an SRCU-protected structure. 286 * @ssp: srcu_struct in which to register the new reader. 289 * a light-weight smp_mb()-free reader. See srcu_read_lock_fast() and 303 * srcu_read_lock_lite - register a new reader for an SRCU-protected structure. 304 * @ssp: srcu_struct in which to register the new reader. [all …]
|
H A D | kfifo.h | 30 * Note about locking: There is no locking required until only one reader 33 * in the reader thread. 34 * For multiple writer and one reader there is only a need to lock the writer. 35 * And vice versa for only one writer and multiple reader there is only a need 36 * to lock the reader. 225 * from the reader thread and there is only one concurrent reader. Otherwise 413 * Note that with only one concurrent reader and one concurrent 450 * Note that with only one concurrent reader and one concurrent 489 * Note that with only one concurrent reader and one concurrent 527 * Note that with only one concurrent reader and one concurrent [all …]
|
/linux/drivers/usb/storage/ |
H A 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",
|
H A 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/scripts/ |
H A D | jobserver-exec | 30 # Starting with GNU Make 4.4, named pipes are used for reader and writer. 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) variable 38 reader, writer = [int(x) for x in fds.split(",", 1)] variable 39 # Open a private copy of reader to avoid setting nonblocking 40 # on an unexpecting process with the same reader fd. 41 reader = os.open("/proc/self/fd/%d" % (reader), variable 47 slot = os.read(reader, 8)
|
/linux/drivers/misc/cardreader/ |
H A 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, 26 tristate "Realtek USB card reader" 32 Realtek card reader supports access to many types of memory cards,
|
/linux/drivers/memstick/host/ |
H A 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 RTS5129/39 series USB card reader
|
/linux/kernel/locking/ |
H A 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/tools/testing/selftests/bpf/ |
H A 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/drivers/acpi/acpica/ |
H A 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/fs/btrfs/ |
H A D | locking.c | 121 * - reader/writer exclusion 123 * - reader/reader sharing 304 * DREW stands for double-reader-writer-exclusion lock. It's used in situation 307 * Currently implementation gives more priority to reader. If a reader and a 309 * would yield its lock as soon as it detects a concurrent reader. Additionally 364 * Ensure the pending reader count is perceieved BEFORE this reader in btrfs_drew_read_lock() 366 * won't be allowed and that the current reader will be woken up when in btrfs_drew_read_lock()
|
/linux/kernel/trace/ |
H A D | ring_buffer.c | 91 * associated with the CPU it is currently executing on. A reader may read 94 * The reader is special. For each per cpu buffer, the reader has its own 95 * reader page. When a reader has read the entire reader page, this reader 98 * Now, as long as the writer is off the reader page, the reader can do what 105 * |reader| RING BUFFER 116 * |reader| RING BUFFER 127 * |reader| RING BUFFER 143 * | Reader------^ | 148 * After we make this swap, the reader can hand this page off to the splice 750 /* The reader can read an empty page, but not more than that */ in ring_buffer_nr_dirty_pages() [all …]
|
/linux/drivers/md/dm-vdo/indexer/ |
H A D | io-factory.h | 13 * clients are the index layout and the volume. The buffered reader and buffered writer interfaces 45 void uds_free_buffered_reader(struct buffered_reader *reader); 47 int __must_check uds_read_from_buffered_reader(struct buffered_reader *reader, u8 *data, 50 int __must_check uds_verify_buffered_data(struct buffered_reader *reader, const u8 *value,
|
/linux/arch/arc/include/asm/ |
H A 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/drivers/net/ethernet/sfc/ |
H A D | ef100_nic.c | 861 const struct ef100_tlv_state *reader) in ef100_process_design_param() argument 865 switch (reader->type) { in ef100_process_design_param() 885 nic_data->tso_max_hdr_len = min_t(u64, reader->value, 0xffff); in ef100_process_design_param() 889 if (!reader->value) { in ef100_process_design_param() 901 if (!reader->value || reader->value > EFX_MIN_DMAQ_SIZE || in ef100_process_design_param() 902 EFX_MIN_DMAQ_SIZE % (u32)reader->value) { in ef100_process_design_param() 905 reader->type == ESE_EF100_DP_GZ_RXQ_SIZE_GRANULARITY ? "RXQ" : "TXQ", in ef100_process_design_param() 906 reader->value); in ef100_process_design_param() 911 nic_data->tso_max_payload_len = min_t(u64, reader->value, in ef100_process_design_param() 915 nic_data->tso_max_payload_num_segs = min_t(u64, reader->value, 0xffff); in ef100_process_design_param() [all …]
|
/linux/tools/testing/selftests/rcutorture/bin/ |
H A 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];
|
/linux/Documentation/admin-guide/laptops/ |
H A D | lg-laptop.rst | 18 - FN-F9 (Reader mode) - Generates F14 23 Reader mode 27 reader mode. In this mode the screen colors change (blue color reduced), 28 and the reader mode indicator LED (on F9 key) turns on.
|