Home
last modified time | relevance | path

Searched refs:reader (Results 1 – 25 of 68) sorted by relevance

123

/linux-2.6.39/drivers/misc/ibmasm/
Devent.c42 struct event_reader *reader; in wake_up_event_readers() local
44 list_for_each_entry(reader, &sp->event_buffer->readers, node) in wake_up_event_readers()
45 wake_up_interruptible(&reader->wait); in wake_up_event_readers()
91 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader) in ibmasm_get_next_event() argument
98 reader->cancelled = 0; in ibmasm_get_next_event()
100 if (wait_event_interruptible(reader->wait, in ibmasm_get_next_event()
101 event_available(buffer, reader) || reader->cancelled)) in ibmasm_get_next_event()
104 if (!event_available(buffer, reader)) in ibmasm_get_next_event()
111 while (event->serial_number < reader->next_serial_number) { in ibmasm_get_next_event()
115 memcpy(reader->data, event->data, event->data_size); in ibmasm_get_next_event()
[all …]
Dremote.h106 #define set_queue_reader(sp, reader) writel(reader, mouse_addr(sp) + CONDOR_MOUSE_Q_READER) argument
113 static inline int advance_queue_reader(struct service_processor *sp, unsigned long reader) in advance_queue_reader() argument
115 reader++; in advance_queue_reader()
116 if (reader == REMOTE_QUEUE_SIZE) in advance_queue_reader()
117 reader = 0; in advance_queue_reader()
119 set_queue_reader(sp, reader); in advance_queue_reader()
120 return reader; in advance_queue_reader()
Dibmasmfs.c230 struct event_reader reader; member
361 ibmasm_event_reader_register(sp, &event_data->reader); in event_file_open()
373 ibmasm_event_reader_unregister(event_data->sp, &event_data->reader); in event_file_close()
381 struct event_reader *reader = &event_data->reader; in event_file_read() local
401 ret = ibmasm_get_next_event(sp, reader); in event_file_read()
405 if (count < reader->data_size) { in event_file_read()
410 if (copy_to_user(buf, reader->data, reader->data_size)) { in event_file_read()
414 ret = reader->data_size; in event_file_read()
432 ibmasm_cancel_next_event(&event_data->reader); in event_file_write()
Dibmasm.h177 void ibmasm_event_reader_register(struct service_processor *sp, struct event_reader *reader);
178 void ibmasm_event_reader_unregister(struct service_processor *sp, struct event_reader *reader);
179 int ibmasm_get_next_event(struct service_processor *sp, struct event_reader *reader);
180 void ibmasm_cancel_next_event(struct event_reader *reader);
Dremote.c186 unsigned long reader; in ibmasm_handle_mouse_interrupt() local
190 reader = get_queue_reader(sp); in ibmasm_handle_mouse_interrupt()
193 while (reader != writer) { in ibmasm_handle_mouse_interrupt()
194 memcpy_fromio(&input, get_queue_entry(sp, reader), in ibmasm_handle_mouse_interrupt()
205 reader = advance_queue_reader(sp, reader); in ibmasm_handle_mouse_interrupt()
/linux-2.6.39/drivers/hid/
Dhid-roccat.c78 struct roccat_reader *reader = file->private_data; in roccat_read() local
79 struct roccat_device *device = reader->device; in roccat_read()
87 if (reader->cbuf_start == device->cbuf_end) { in roccat_read()
92 while (reader->cbuf_start == device->cbuf_end) { in roccat_read()
120 report = &device->cbuf[reader->cbuf_start]; in roccat_read()
132 reader->cbuf_start = (reader->cbuf_start + 1) % ROCCAT_CBUF_SIZE; in roccat_read()
141 struct roccat_reader *reader = file->private_data; in roccat_poll() local
142 poll_wait(file, &reader->device->wait, wait); in roccat_poll()
143 if (reader->cbuf_start != reader->device->cbuf_end) in roccat_poll()
145 if (!reader->device->exist) in roccat_poll()
[all …]
/linux-2.6.39/Documentation/trace/
Dring-buffer-design.txt25 consumer - the task that reads from the buffer (same as reader)
27 reader - same as consumer.
30 by the reader.
32 head_page - a pointer to the page that the reader will use next
81 same time, nor can a reader preempt/interrupt another reader. A reader
83 buffer at the same time as a writer is writing, but the reader must be
84 on another processor to do so. A reader may read on its own processor
87 A writer can preempt a reader, but a reader cannot preempt a writer.
88 But a reader can read the buffer at the same time (on another processor)
93 At initialization a reader page is allocated for the reader that is not
[all …]
/linux-2.6.39/drivers/mmc/host/
Dcb710-mmc.c87 struct cb710_mmc_reader *reader = mmc_priv(cb710_slot_to_mmc(slot)); in cb710_mmc_enable_irq() local
90 spin_lock_irqsave(&reader->irq_lock, flags); in cb710_mmc_enable_irq()
93 spin_unlock_irqrestore(&reader->irq_lock, flags); in cb710_mmc_enable_irq()
345 static u16 cb710_encode_cmd_flags(struct cb710_mmc_reader *reader, in cb710_encode_cmd_flags() argument
447 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_command() local
450 u16 cb_cmd = cb710_encode_cmd_flags(reader, cmd); in cb710_mmc_command()
487 struct cb710_mmc_reader *reader = mmc_priv(mmc); in cb710_mmc_request() local
489 WARN_ON(reader->mrq != NULL); in cb710_mmc_request()
491 reader->mrq = mrq; in cb710_mmc_request()
497 tasklet_schedule(&reader->finish_req_tasklet); in cb710_mmc_request()
[all …]
/linux-2.6.39/drivers/memstick/host/
DKconfig13 the Texas Instruments(R) Flash Media card reader, found in many
16 probably also need appropriate card reader host adapter, such as
29 the JMicron(R) JMB38X MemoryStick card reader.
40 the Ricoh R5C592 MemoryStick card reader (which is part of 5 in one
41 multifunction reader)
/linux-2.6.39/drivers/gpu/drm/via/
Dvia_dma.c407 uint32_t reader, ptr; in via_hook_segment() local
418 reader = *(dev_priv->hw_addr_ptr); in via_hook_segment()
431 diff = (uint32_t) (ptr - reader) - dev_priv->dma_diff; in via_hook_segment()
437 reader = *(dev_priv->hw_addr_ptr); in via_hook_segment()
438 diff = (uint32_t) (ptr - reader) - dev_priv->dma_diff; in via_hook_segment()
444 reader = *(dev_priv->hw_addr_ptr); in via_hook_segment()
445 diff = (uint32_t) (ptr - reader) - dev_priv->dma_diff; in via_hook_segment()
450 ptr, reader, dev_priv->dma_diff); in via_hook_segment()
519 uint32_t reader; in via_cmdbuf_start() local
556 reader = *(dev_priv->hw_addr_ptr); in via_cmdbuf_start()
[all …]
/linux-2.6.39/kernel/trace/
Dring_buffer.c2552 struct buffer_page *reader = cpu_buffer->reader_page; in rb_per_cpu_empty() local
2560 return reader->read == rb_page_commit(reader) && in rb_per_cpu_empty()
2561 (commit == reader || in rb_per_cpu_empty()
2879 struct buffer_page *reader = NULL; in rb_get_reader_page() local
2896 reader = NULL; in rb_get_reader_page()
2900 reader = cpu_buffer->reader_page; in rb_get_reader_page()
2903 if (cpu_buffer->reader_page->read < rb_page_size(reader)) in rb_get_reader_page()
2908 cpu_buffer->reader_page->read > rb_page_size(reader))) in rb_get_reader_page()
2912 reader = NULL; in rb_get_reader_page()
2928 reader = rb_set_head_page(cpu_buffer); in rb_get_reader_page()
[all …]
/linux-2.6.39/drivers/usb/storage/
DKconfig88 - CompactFlash reader included with Kodak DC3800 camera
89 - Dane-Elec Zmate CompactFlash reader
95 - Maxell UA4 CompactFlash reader
108 SmartMedia reader in the USB Mass Storage driver.
109 Also works for the Microtech Zio! CompactFlash/SmartMedia reader.
118 SmartMedia reader in the USB Mass Storage driver.
127 USB CompactFlash reader.
136 and Fujifilm DPC-R1 USB Card reader/writer devices.
186 tristate "USB ENE card reader support"
190 Say Y here if you wish to control a ENE SD Card reader.
/linux-2.6.39/drivers/staging/keucr/
DKconfig2 tristate "USB ENE SM/MS card reader support"
5 Say Y here if you wish to control a ENE SM/MS Card reader.
/linux-2.6.39/drivers/misc/cb710/
DKconfig2 tristate "ENE CB710/720 Flash memory card reader support"
6 reader found in some laptops (ie. some versions of HP Compaq nx9500).
/linux-2.6.39/Documentation/usb/
Diuu_phoenix.txt22 How to tune the reader speed ?
48 - boost provide a way to overclock the reader ( my favorite :-) )
53 This will put the reader in a base of 3Mhz579 but boosted a 195 % !
/linux-2.6.39/drivers/staging/rts_pstor/
DTODO2 - support more pcie card reader of Realtek family
/linux-2.6.39/drivers/char/
Dapm-emulation.c118 unsigned int reader: 1; member
207 if (as->reader) in queue_event()
386 as->reader = (filp->f_mode & FMODE_READ) == FMODE_READ; in apm_open()
562 if (as->suspend_state != SUSPEND_WAIT && as->reader && in apm_suspend_notifier()
/linux-2.6.39/drivers/char/pcmcia/
DKconfig27 reader.
38 reader.
/linux-2.6.39/drivers/lguest/
DREADME1 Welcome, friend reader, to lguest.
3 Lguest is an adventure, with you, the reader, as Hero. I can't think of many
/linux-2.6.39/Documentation/
Dspinlocks.txt75 Lesson 2: reader-writer spinlocks.
78 to mostly read from the shared variables, the reader-writer locks
83 NOTE! reader-writer locks require more atomic memory operations than
84 simple spinlocks. Unless the reader critical section is long, you
113 NOTE! We are working hard to remove reader-writer spinlocks in most
/linux-2.6.39/arch/um/drivers/
Dcow.h46 extern int read_cow_header(int (*reader)(__u64, char *, int, void *),
/linux-2.6.39/Documentation/ABI/testing/
Dsysfs-platform-asus-wmi24 Control the card reader. 1 means on, 0 means off.
/linux-2.6.39/Documentation/RCU/
Drculist_nulls.txt73 We need to make sure a reader cannot read the new 'obj->obj_next' value
76 before the move, 'next' pointer is NULL, and lockless reader can
122 then the reader doesn't care : It might eventually
DwhatisRCU.txt67 during the removal phase need be considered, because any reader starting
109 So how the heck can a reclaimer tell when a reader is done, given
136 Used by a reader to inform the reclaimer that the reader is
150 Used by a reader to inform the reclaimer that the reader is
217 in value from the updater to the reader. This function returns
234 The reader uses rcu_dereference() to fetch an RCU-protected
288 reader, updater, and reclaimer.
293 +---------------------->| reader |---------+
593 and release a global reader-writer lock. The synchronize_rcu()
601 It is possible to nest rcu_read_lock(), since reader-writer locks may
[all …]
DlistRCU.txt13 The best applications are cases where, if reader-writer locking were
26 system-call auditing support. For example, a reader-writer locked
75 The changes to the update side are also straightforward. A reader-writer
161 However, if it did, reader-writer-locked code to do so might look as
217 the reader-writer lock would become a spinlock in this sort of code.

123