Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 3590) sorted by relevance

12345678910>>...144

/Linux-v5.4/Documentation/media/uapi/v4l/
Dfunc-read.rst10 .. _func-read:
13 V4L2 read()
19 v4l2-read - Read from a V4L2 device
30 .. c:function:: ssize_t read( int fd, void *buf, size_t count )
31 :name: v4l2-read
43 Max number of bytes to read
48 :ref:`read() <func-read>` attempts to read up to ``count`` bytes from file
51 section, see ##. If ``count`` is zero, :ref:`read() <func-read>` returns zero
54 :ref:`read() <func-read>` call will provide at most one frame (two fields)
57 By default :ref:`read() <func-read>` blocks until data becomes available. When
[all …]
/Linux-v5.4/drivers/rtc/
Drtc-ds1685.c130 (rtc->read(rtc, RTC_CTRL_A) & ~(RTC_CTRL_A_DV0))); in ds1685_rtc_switch_to_bank0()
141 (rtc->read(rtc, RTC_CTRL_A) | RTC_CTRL_A_DV0)); in ds1685_rtc_switch_to_bank1()
162 (rtc->read(rtc, RTC_CTRL_B) | RTC_CTRL_B_SET)); in ds1685_rtc_begin_data_access()
165 while (rtc->read(rtc, RTC_EXT_CTRL_4A) & RTC_CTRL_4A_INCR) in ds1685_rtc_begin_data_access()
188 (rtc->read(rtc, RTC_CTRL_B) & ~(RTC_CTRL_B_SET))); in ds1685_rtc_end_data_access()
208 ssn[0] = rtc->read(rtc, RTC_BANK1_SSN_MODEL); in ds1685_rtc_get_ssn()
209 ssn[1] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_1); in ds1685_rtc_get_ssn()
210 ssn[2] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_2); in ds1685_rtc_get_ssn()
211 ssn[3] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_3); in ds1685_rtc_get_ssn()
212 ssn[4] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_4); in ds1685_rtc_get_ssn()
[all …]
Drtc-bq4802.c26 u8 (*read)(struct bq4802 *, int); member
59 val = p->read(p, 0x0e); in bq4802_read_time()
62 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time()
63 tm->tm_min = p->read(p, 0x02); in bq4802_read_time()
64 tm->tm_hour = p->read(p, 0x04); in bq4802_read_time()
65 tm->tm_mday = p->read(p, 0x06); in bq4802_read_time()
66 tm->tm_mon = p->read(p, 0x09); in bq4802_read_time()
67 tm->tm_year = p->read(p, 0x0a); in bq4802_read_time()
68 tm->tm_wday = p->read(p, 0x08); in bq4802_read_time()
69 century = p->read(p, 0x0f); in bq4802_read_time()
[all …]
/Linux-v5.4/Documentation/ABI/testing/
Dconfigfs-spear-pcie-gadget18 link ... used to enable ltssm and read its status.
19 int_type ...used to configure and read type of supported
22 to read no of MSI granted.
25 vendor_id ... used to write and read vendor id (hex)
26 device_id ... used to write and read device id (hex)
27 bar0_size ... used to write and read bar0_size
28 bar0_address ... used to write and read bar0 mapped area in hex.
29 bar0_rw_offset ... used to write and read offset of bar0 where
30 bar0_data will be written or read.
31 bar0_data ... used to write and read data at bar0_rw_offset.
Dsysfs-class-watchdog5 It is a read only file. It contains status of the watchdog
13 It is a read only file. It contains identity string of
20 It is a read only file. While reading, it gives '1' if that
27 It is a read only file. It gives active/inactive status of
34 It is a read only file. It contains watchdog device's
42 It is a read only file. It contains value of time left for
50 It is a read only file. It is read to know about current
57 It is a read only file. It specifies the time in seconds before
65 It is a read only file. It shows the pretimeout governors
72 It is a read/write file. When read, the currently assigned
[all …]
Dsysfs-driver-ufs21 The file is read only.
29 The file is read only.
37 The file is read only.
46 The file is read only.
54 The file is read only.
63 The file is read only.
72 The file is read only.
78 descriptor could be read after partial initialization phase
82 The file is read only.
91 The file is read only.
[all …]
Dsysfs-class-switchtec19 (read only)
27 Description: Component revision stored in the hardware (read only)
36 (read only)
44 Description: Device version as stored in the hardware (read only)
52 Description: Currently running firmware version (read only)
60 Description: Partition number for this device in the switch (read only)
68 Description: Total number of partitions in the switch (read only)
77 (read only)
86 (read only)
95 (read only)
Dsysfs-class-cxl12 Description: read only
23 Description: read/write
34 Description: read only
44 Description: read only
52 Description: read only
60 Description: read/write
70 Description: read/write
93 Description: read only
100 Description: read only
114 Description: read only
[all …]
Dsysfs-class-ocxl4 Description: read only
6 Reflects what is read in the configuration space of the AFU
11 Description: read only
20 Description: read only
27 Description: read only
34 Description: read/write
/Linux-v5.4/Documentation/media/uapi/rc/
Dlirc-read.rst10 .. _lirc-read:
13 LIRC read()
19 lirc-read - Read from a LIRC device
30 .. c:function:: ssize_t read( int fd, void *buf, size_t count )
31 :name: lirc-read
44 Max number of bytes to read
49 :ref:`read() <lirc-read>` attempts to read up to ``count`` bytes from file
51 :ref:`read() <lirc-read>` returns zero and has no other results. If ``count``
60 read from the chardev.
73 On success, the number of bytes read is returned. It is not an error if
/Linux-v5.4/drivers/video/fbdev/core/
Dfbcvt.c217 int cnt = 255, offset = 0, read = 0; in fb_cvt_print_name() local
227 read = snprintf(buf+offset, cnt, "fbcvt: %dx%d@%d: CVT Name - ", in fb_cvt_print_name()
229 offset += read; in fb_cvt_print_name()
230 cnt -= read; in fb_cvt_print_name()
237 read = snprintf(buf+offset, cnt, "%d", pixcount); in fb_cvt_print_name()
238 cnt -= read; in fb_cvt_print_name()
239 offset += read; in fb_cvt_print_name()
242 read = snprintf(buf+offset, cnt, ".%03dM", pixcount_mod); in fb_cvt_print_name()
243 cnt -= read; in fb_cvt_print_name()
244 offset += read; in fb_cvt_print_name()
[all …]
/Linux-v5.4/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_util.c16 queue->read = 0; in vchiu_queue_init()
39 return queue->read == queue->write; in vchiu_queue_is_empty()
47 while (queue->write == queue->read + queue->size) { in vchiu_queue_push()
60 while (queue->write == queue->read) { in vchiu_queue_peek()
67 return queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_peek()
74 while (queue->write == queue->read) { in vchiu_queue_pop()
79 header = queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_pop()
80 queue->read++; in vchiu_queue_pop()
/Linux-v5.4/Documentation/admin-guide/
Dufs.rst20 default value, supported as read-only
24 supported as read-write
28 supported as read-write
35 supported as read-write
39 supported as read-write
43 supported as read-only
47 supported as read-only
51 supported as read-only
55 supported as read-only
/Linux-v5.4/arch/parisc/kernel/
Dperf_asm.S91 ;* arg0 : rdr to be read
98 ;* arg0 : rdr to be read
114 ; read(shift in) the RDR.
173 ; RDR 2 read sequence
185 ; RDR 3 read sequence
197 ; RDR 4 read sequence
209 ; RDR 5 read sequence
221 ; RDR 6 read sequence
233 ; RDR 7 read sequence
245 ; RDR 8 read sequence
[all …]
/Linux-v5.4/drivers/crypto/inside-secure/
Dsafexcel_ring.c25 cdr->read = cdr->base; in safexcel_init_ring_descriptors()
35 rdr->read = rdr->base; in safexcel_init_ring_descriptors()
50 if ((ring->write == ring->read - ring->offset) || in safexcel_ring_next_wptr()
51 (ring->read == ring->base && ring->write == ring->base_end)) in safexcel_ring_next_wptr()
65 void *ptr = ring->read; in safexcel_ring_next_rptr()
67 if (ring->write == ring->read) in safexcel_ring_next_rptr()
70 if (ring->read == ring->base_end) in safexcel_ring_next_rptr()
71 ring->read = ring->base; in safexcel_ring_next_rptr()
73 ring->read += ring->offset; in safexcel_ring_next_rptr()
83 return rdr->read; in safexcel_ring_curr_rptr()
[all …]
/Linux-v5.4/include/trace/events/
Dmdio.h12 TP_PROTO(struct mii_bus *bus, char read,
15 TP_ARGS(bus, read, addr, regnum, val, err),
21 __field(char, read)
29 __entry->read = read;
36 __entry->busid, __entry->read ? "read" : "write",
/Linux-v5.4/Documentation/block/
Dstat.rst29 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
46 read I/Os, write I/Os, discard I/0s
51 read merges, write merges, discard merges
57 read sectors, write sectors, discard_sectors
60 These values count the number of sectors read from, written to, or
65 read ticks, write ticks, discard ticks
71 example, if 60 read requests wait for an average of 30 ms, the read_ticks
[all …]
/Linux-v5.4/scripts/coccinelle/api/
Dstream_open.cocci6 // its read and write. Rationale for the conversion is to avoid deadlock in
7 // between read and write.
80 // file_operations + whether they have _any_ .read, .write, .llseek ... at all.
95 .read = read_f,
188 // XXX for simplicity require no .{read/write}_iter and no .splice_{read/write} for now.
202 // read & write
213 .read = readstream,
232 …"ERROR: %s: .read() can deadlock .write(); change nonseekable_open -> stream_open to fix." % (fops…
239 …"WARNING: %s: .read() and .write() have stream semantic; safe to change nonseekable_open -> stream…
248 + nonseekable_open /* read & write (was deadlock) */
[all …]
/Linux-v5.4/drivers/mtd/tests/
Dsubpagetest.c119 size_t read; in verify_eraseblock() local
125 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
126 if (unlikely(err || read != subpgsize)) { in verify_eraseblock()
127 if (mtd_is_bitflip(err) && read == subpgsize) { in verify_eraseblock()
152 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
153 if (unlikely(err || read != subpgsize)) { in verify_eraseblock()
154 if (mtd_is_bitflip(err) && read == subpgsize) { in verify_eraseblock()
180 size_t read; in verify_eraseblock2() local
189 err = mtd_read(mtd, addr, subpgsize * k, &read, readbuf); in verify_eraseblock2()
190 if (unlikely(err || read != subpgsize * k)) { in verify_eraseblock2()
[all …]
Dtorturetest.c73 static void report_corrupt(unsigned char *read, unsigned char *written);
92 size_t read; in check_eraseblock() local
102 err = mtd_read(mtd, addr, len, &read, check_buf); in check_eraseblock()
108 "read %zd\n", err, ebnum, read); in check_eraseblock()
112 if (read != len) { in check_eraseblock()
115 len, ebnum, read); in check_eraseblock()
366 static void print_bufs(unsigned char *read, unsigned char *written, int start,
373 static void report_corrupt(unsigned char *read, unsigned char *written) in report_corrupt() argument
385 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
397 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
[all …]
/Linux-v5.4/drivers/gpio/
Dgpio-lp3943.c87 u8 addr, read; in lp3943_get_gpio_in_status() local
102 err = lp3943_read_byte(lp3943_gpio->lp3943, addr, &read); in lp3943_get_gpio_in_status()
106 return !!(read & BIT(offset)); in lp3943_get_gpio_in_status()
114 u8 read; in lp3943_get_gpio_out_status() local
117 err = lp3943_read_byte(lp3943, mux[offset].reg, &read); in lp3943_get_gpio_out_status()
121 read = (read & mux[offset].mask) >> mux[offset].shift; in lp3943_get_gpio_out_status()
123 if (read == LP3943_GPIO_OUT_HIGH) in lp3943_get_gpio_out_status()
125 else if (read == LP3943_GPIO_OUT_LOW) in lp3943_get_gpio_out_status()
/Linux-v5.4/include/sound/
Dinfo.h30 void (*read)(struct snd_info_entry *entry, member
41 ssize_t (*read)(struct snd_info_entry *entry, void *file_private_data, member
141 void (*read)(struct snd_info_entry *, struct snd_info_buffer *)) in snd_info_set_text_ops()
144 entry->c.text.read = read; in snd_info_set_text_ops()
149 void (*read)(struct snd_info_entry *,
182 void (*read)(struct snd_info_entry *, struct snd_info_buffer *)) {} in snd_info_set_text_ops()
185 void (*read)(struct snd_info_entry *, in snd_card_rw_proc_new()
209 void (*read)(struct snd_info_entry *, in snd_card_ro_proc_new()
212 return snd_card_rw_proc_new(card, name, private_data, read, NULL); in snd_card_ro_proc_new()
/Linux-v5.4/tools/perf/tests/
Dsample-parsing.c70 COMP(read.group.nr); in samples_same()
72 COMP(read.one.value); in samples_same()
74 COMP(read.time_enabled); in samples_same()
76 COMP(read.time_running); in samples_same()
79 for (i = 0; i < s1->read.group.nr; i++) in samples_same()
80 MCOMP(read.group.values[i]); in samples_same()
82 COMP(read.one.id); in samples_same()
211 .read = { in do_test()
237 sample.read.group.nr = 4; in do_test()
238 sample.read.group.values = values; in do_test()
[all …]
/Linux-v5.4/Documentation/filesystems/
Dadfs.txt21 Owner read
23 Other read
32 Owner read -> -r--r--r--
34 Owner read and filetype UnixExec -> ---x--x--x
38 Other read -> -r--r--r--
40 Other read and filetype UnixExec -> ---x--x--x
44 Hence, with the default masks, if a file is owner read/write, and
54 wish that either read bits give read access to the file for all, but
74 type suffixes to be appended to file names read from a directory. If the
/Linux-v5.4/tools/virtio/virtio-trace/
DREADME13 2) Create a read/write thread per CPU. Each thread is bound to a CPU.
14 The read/write threads hold it.
17 the controller wake read/write threads.
18 5) The read/write threads start to read trace data from ring-buffers and
20 6) If the controller receives a stop order from a host, the read/write threads
21 stop to read trace data.
31 trace-agent-ctl.c: includes controller function for read/write threads
32 trace-agent-rw.c: includes read/write threads function
103 read/write threads in the agent wait for start order from host. If you add -o
112 4) Start to read trace data by ordering from a host
[all …]

12345678910>>...144