/linux-6.12.1/sound/soc/sti/ |
D | uniperif_reader.c | 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() 66 dev_err(reader->dev, "FIFO error detected\n"); in uni_reader_irq_handler() [all …]
|
/linux-6.12.1/drivers/md/dm-vdo/indexer/ |
D | io-factory.c | 112 static void read_ahead(struct buffered_reader *reader, sector_t block_number) in read_ahead() argument 114 if (block_number < reader->limit) { in read_ahead() 116 reader->limit - block_number); in read_ahead() 118 dm_bufio_prefetch(reader->client, block_number, read_ahead); in read_ahead() 122 void uds_free_buffered_reader(struct buffered_reader *reader) in uds_free_buffered_reader() argument 124 if (reader == NULL) in uds_free_buffered_reader() 127 if (reader->buffer != NULL) in uds_free_buffered_reader() 128 dm_bufio_release(reader->buffer); in uds_free_buffered_reader() 130 dm_bufio_client_destroy(reader->client); in uds_free_buffered_reader() 131 uds_put_io_factory(reader->factory); in uds_free_buffered_reader() [all …]
|
D | io-factory.h | 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,
|
D | open-chapter.c | 356 static int load_version20(struct uds_index *index, struct buffered_reader *reader) in load_version20() argument 372 result = uds_read_from_buffered_reader(reader, (u8 *) &record_count_data, in load_version20() 381 result = uds_read_from_buffered_reader(reader, (u8 *) &record, in load_version20() 405 int uds_load_open_chapter(struct uds_index *index, struct buffered_reader *reader) in uds_load_open_chapter() argument 410 result = uds_verify_buffered_data(reader, OPEN_CHAPTER_MAGIC, in uds_load_open_chapter() 415 result = uds_read_from_buffered_reader(reader, version, sizeof(version)); in uds_load_open_chapter() 425 return load_version20(index, reader); in uds_load_open_chapter()
|
D | index-layout.c | 1136 static int __must_check load_region_table(struct buffered_reader *reader, in load_region_table() argument 1146 result = uds_read_from_buffered_reader(reader, buffer, sizeof(buffer)); in load_region_table() 1177 result = uds_read_from_buffered_reader(reader, region_buffer, in load_region_table() 1196 static int __must_check read_super_block_data(struct buffered_reader *reader, in read_super_block_data() argument 1209 result = uds_read_from_buffered_reader(reader, buffer, saved_size); in read_super_block_data() 1379 u64 first_block, struct buffered_reader *reader) in load_super_block() argument 1385 result = load_region_table(reader, &table); in load_super_block() 1395 result = read_super_block_data(reader, layout, table->header.payload); in load_super_block() 1414 static int __must_check read_index_save_data(struct buffered_reader *reader, in read_index_save_data() argument 1429 result = uds_read_from_buffered_reader(reader, buffer, sizeof(buffer)); in read_index_save_data() [all …]
|
/linux-6.12.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() 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() 101 memcpy(reader->data, event->data, event->data_size); 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()
|
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()
|
D | ibmasm.h | 166 void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader); 167 void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader); 168 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader); 169 void ibmasm_cancel_next_event(struct event_reader *reader);
|
/linux-6.12.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-6.12.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 …]
|
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-6.12.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 queue_work(system_bh_wq, &reader->finish_req_bh_work); in cb710_mmc_request() [all …]
|
/linux-6.12.1/tools/testing/selftests/bpf/ |
D | test_bpftool_synctypes.py | 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() 67 def __init__(self, reader, array_name): argument 70 super().__init__(reader) 86 line = self.reader.readline() 107 line = self.reader.readline() [all …]
|
/linux-6.12.1/drivers/gpu/drm/lima/ |
D | lima_drv.c | 291 static bool lima_read_block(struct lima_block_reader *reader, in lima_read_block() argument 294 size_t max_off = reader->base + src_size; in lima_read_block() 296 if (reader->off < max_off) { in lima_read_block() 297 size_t size = min_t(size_t, max_off - reader->off, in lima_read_block() 298 reader->count); in lima_read_block() 300 memcpy(reader->dst, src + (reader->off - reader->base), size); in lima_read_block() 302 reader->dst += size; in lima_read_block() 303 reader->off += size; in lima_read_block() 304 reader->read += size; in lima_read_block() 305 reader->count -= size; in lima_read_block() [all …]
|
/linux-6.12.1/kernel/locking/ |
D | percpu-rwsem.c | 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()
|
/linux-6.12.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, 26 tristate "Realtek USB card reader" 32 Realtek card reader supports access to many types of memory cards,
|
/linux-6.12.1/scripts/ |
D | jobserver-exec | 35 reader = os.open(path, os.O_RDONLY | os.O_NONBLOCK) variable 38 reader, writer = [int(x) for x in fds.split(",", 1)] variable 41 reader = os.open("/proc/self/fd/%d" % (reader), variable 47 slot = os.read(reader, 8)
|
D | bpf_doc.py | 24 def __init__(self, line='<line not provided>', reader=None): argument 25 if reader: 28 (reader.tell(), line)) 93 self.reader = open(filename, 'r') 125 self.line = self.reader.readline() 140 self.line = self.reader.readline() 153 self.line = self.reader.readline() 179 self.line = self.reader.readline() 196 self.reader.seek(0) 197 offset = self.reader.read().find(target) [all …]
|
/linux-6.12.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 RTS5129/39 series USB card reader
|
/linux-6.12.1/drivers/net/ethernet/sfc/ |
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() 902 if (!reader->value || reader->value > EFX_MIN_DMAQ_SIZE || in ef100_process_design_param() 903 EFX_MIN_DMAQ_SIZE % (u32)reader->value) { in ef100_process_design_param() 906 reader->type == ESE_EF100_DP_GZ_RXQ_SIZE_GRANULARITY ? "RXQ" : "TXQ", in ef100_process_design_param() 907 reader->value); in ef100_process_design_param() 912 nic_data->tso_max_payload_len = min_t(u64, reader->value, in ef100_process_design_param() 918 nic_data->tso_max_payload_num_segs = min_t(u64, reader->value, 0xffff); in ef100_process_design_param() [all …]
|
/linux-6.12.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-6.12.1/tools/testing/radix-tree/ |
D | regression4.c | 60 pthread_t reader, writer; in regression4_test() local 67 if (pthread_create(&reader, NULL, reader_fn, NULL) || in regression4_test() 73 if (pthread_join(reader, NULL) || pthread_join(writer, NULL)) { in regression4_test()
|
/linux-6.12.1/kernel/trace/ |
D | ring_buffer.c | 3065 struct buffer_page *reader) in rb_update_meta_reader() argument 3069 void *new_reader = reader->page; in rb_update_meta_reader() 3072 id = reader->id; in rb_update_meta_reader() 3074 reader->id = 0; in rb_update_meta_reader() 3080 rb_update_meta_head(cpu_buffer, reader); in rb_update_meta_reader() 4640 struct buffer_page *reader = cpu_buffer->reader_page; in rb_per_cpu_empty() local 4649 if (reader->read != rb_page_size(reader)) in rb_per_cpu_empty() 4656 if (commit == reader) in rb_per_cpu_empty() 5083 struct buffer_page *reader; in ring_buffer_iter_empty() local 5092 reader = cpu_buffer->reader_page; in ring_buffer_iter_empty() [all …]
|
/linux-6.12.1/drivers/usb/storage/ |
D | Kconfig | 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. 124 USB CompactFlash reader. 132 and Fujifilm DPC-R1 USB Card reader/writer devices. 179 tristate "USB ENE card reader support" 181 Say Y here if you wish to control a ENE SD/MS Card reader.
|