Home
last modified time | relevance | path

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

12345678910>>...133

/Linux-v4.19/Documentation/media/uapi/v4l/
Dfunc-read.rst3 .. _func-read:
6 V4L2 read()
12 v4l2-read - Read from a V4L2 device
23 .. c:function:: ssize_t read( int fd, void *buf, size_t count )
24 :name: v4l2-read
36 Max number of bytes to read
41 :ref:`read() <func-read>` attempts to read up to ``count`` bytes from file
44 section, see ##. If ``count`` is zero, :ref:`read() <func-read>` returns zero
47 :ref:`read() <func-read>` call will provide at most one frame (two fields)
50 By default :ref:`read() <func-read>` blocks until data becomes available. When
[all …]
/Linux-v4.19/drivers/rtc/
Drtc-ds1685.c133 (rtc->read(rtc, RTC_CTRL_A) & ~(RTC_CTRL_A_DV0))); in ds1685_rtc_switch_to_bank0()
144 (rtc->read(rtc, RTC_CTRL_A) | RTC_CTRL_A_DV0)); in ds1685_rtc_switch_to_bank1()
165 (rtc->read(rtc, RTC_CTRL_B) | RTC_CTRL_B_SET)); in ds1685_rtc_begin_data_access()
168 while (rtc->read(rtc, RTC_EXT_CTRL_4A) & RTC_CTRL_4A_INCR) in ds1685_rtc_begin_data_access()
191 (rtc->read(rtc, RTC_CTRL_B) & ~(RTC_CTRL_B_SET))); in ds1685_rtc_end_data_access()
247 ssn[0] = rtc->read(rtc, RTC_BANK1_SSN_MODEL); in ds1685_rtc_get_ssn()
248 ssn[1] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_1); in ds1685_rtc_get_ssn()
249 ssn[2] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_2); in ds1685_rtc_get_ssn()
250 ssn[3] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_3); in ds1685_rtc_get_ssn()
251 ssn[4] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_4); in ds1685_rtc_get_ssn()
[all …]
Drtc-bq4802.c25 u8 (*read)(struct bq4802 *, int); member
58 val = p->read(p, 0x0e); in bq4802_read_time()
61 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time()
62 tm->tm_min = p->read(p, 0x02); in bq4802_read_time()
63 tm->tm_hour = p->read(p, 0x04); in bq4802_read_time()
64 tm->tm_mday = p->read(p, 0x06); in bq4802_read_time()
65 tm->tm_mon = p->read(p, 0x09); in bq4802_read_time()
66 tm->tm_year = p->read(p, 0x0a); in bq4802_read_time()
67 tm->tm_wday = p->read(p, 0x08); in bq4802_read_time()
68 century = p->read(p, 0x0f); in bq4802_read_time()
[all …]
/Linux-v4.19/Documentation/media/uapi/rc/
Dlirc-read.rst3 .. _lirc-read:
6 LIRC read()
12 lirc-read - Read from a LIRC device
23 .. c:function:: ssize_t read( int fd, void *buf, size_t count )
24 :name: lirc-read
37 Max number of bytes to read
42 :ref:`read() <lirc-read>` attempts to read up to ``count`` bytes from file
44 :ref:`read() <lirc-read>` returns zero and has no other results. If ``count``
53 read from the chardev.
65 On success, the number of bytes read is returned. It is not an error if
/Linux-v4.19/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_util.c47 queue->read = 0; in vchiu_queue_init()
69 return queue->read == queue->write; in vchiu_queue_is_empty()
74 return queue->write == queue->read + queue->size; in vchiu_queue_is_full()
82 while (queue->write == queue->read + queue->size) { in vchiu_queue_push()
108 while (queue->write == queue->read) { in vchiu_queue_peek()
121 return queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_peek()
128 while (queue->write == queue->read) { in vchiu_queue_pop()
139 header = queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_pop()
147 queue->read++; in vchiu_queue_pop()
/Linux-v4.19/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-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-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
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-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
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 …]
/Linux-v4.19/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-v4.19/Documentation/filesystems/
Dufs.txt18 default value, supported as read-only
21 supported as read-write
24 supported as read-write
29 supported as read-write
32 supported as read-write
35 supported as read-only
39 supported as read-only
43 supported as read-only
47 supported as read-only
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-v4.19/drivers/isdn/hardware/eicon/
Ddqueue.c29 q->read = q->write = q->count = q->segment_pending = 0; in diva_data_q_init()
52 q->read = q->write = q->count = q->segment_pending = 0; in diva_data_q_finit()
90 return (q->data[q->read]); in diva_data_q_get_segment4read()
97 return (q->length[q->read]); in diva_data_q_get_segment_length()
103 q->length[q->read] = 0; in diva_data_q_ack_segment4read()
105 q->read++; in diva_data_q_ack_segment4read()
106 if (q->read >= q->segments) { in diva_data_q_ack_segment4read()
107 q->read = 0; in diva_data_q_ack_segment4read()
/Linux-v4.19/arch/parisc/kernel/
Dperf_asm.S104 ;* arg0 : rdr to be read
111 ;* arg0 : rdr to be read
127 ; read(shift in) the RDR.
186 ; RDR 2 read sequence
198 ; RDR 3 read sequence
210 ; RDR 4 read sequence
222 ; RDR 5 read sequence
234 ; RDR 6 read sequence
246 ; RDR 7 read sequence
258 ; RDR 8 read sequence
[all …]
/Linux-v4.19/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-v4.19/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-v4.19/Documentation/block/
Dstat.txt23 read I/Os requests number of read I/Os processed
24 read merges requests number of read I/Os merged with in-queue I/O
25 read sectors sectors number of sectors read
26 read ticks milliseconds total wait time for read requests
39 read I/Os, write I/Os, discard I/0s
44 read merges, write merges, discard merges
50 read sectors, write sectors, discard_sectors
53 These values count the number of sectors read from, written to, or
58 read ticks, write ticks, discard ticks
64 example, if 60 read requests wait for an average of 30 ms, the read_ticks
[all …]
/Linux-v4.19/drivers/mtd/tests/
Dsubpagetest.c132 size_t read; in verify_eraseblock() local
138 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
139 if (unlikely(err || read != subpgsize)) { in verify_eraseblock()
140 if (mtd_is_bitflip(err) && read == subpgsize) { in verify_eraseblock()
165 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
166 if (unlikely(err || read != subpgsize)) { in verify_eraseblock()
167 if (mtd_is_bitflip(err) && read == subpgsize) { in verify_eraseblock()
193 size_t read; in verify_eraseblock2() local
202 err = mtd_read(mtd, addr, subpgsize * k, &read, readbuf); in verify_eraseblock2()
203 if (unlikely(err || read != subpgsize * k)) { in verify_eraseblock2()
[all …]
Dtorturetest.c85 static void report_corrupt(unsigned char *read, unsigned char *written);
104 size_t read; in check_eraseblock() local
114 err = mtd_read(mtd, addr, len, &read, check_buf); in check_eraseblock()
120 "read %zd\n", err, ebnum, read); in check_eraseblock()
124 if (read != len) { in check_eraseblock()
127 len, ebnum, read); in check_eraseblock()
378 static void print_bufs(unsigned char *read, unsigned char *written, int start,
385 static void report_corrupt(unsigned char *read, unsigned char *written) in report_corrupt() argument
397 if (countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
409 first = countdiffs(written, read, i, pgsize, &bytes, in report_corrupt()
[all …]
/Linux-v4.19/drivers/gpio/
Dgpio-lp3943.c90 u8 addr, read; in lp3943_get_gpio_in_status() local
105 err = lp3943_read_byte(lp3943_gpio->lp3943, addr, &read); in lp3943_get_gpio_in_status()
109 return !!(read & BIT(offset)); in lp3943_get_gpio_in_status()
117 u8 read; in lp3943_get_gpio_out_status() local
120 err = lp3943_read_byte(lp3943, mux[offset].reg, &read); in lp3943_get_gpio_out_status()
124 read = (read & mux[offset].mask) >> mux[offset].shift; in lp3943_get_gpio_out_status()
126 if (read == LP3943_GPIO_OUT_HIGH) in lp3943_get_gpio_out_status()
128 else if (read == LP3943_GPIO_OUT_LOW) in lp3943_get_gpio_out_status()
/Linux-v4.19/tools/perf/tests/
Dsample-parsing.c65 COMP(read.group.nr); in samples_same()
67 COMP(read.one.value); in samples_same()
69 COMP(read.time_enabled); in samples_same()
71 COMP(read.time_running); in samples_same()
74 for (i = 0; i < s1->read.group.nr; i++) in samples_same()
75 MCOMP(read.group.values[i]); in samples_same()
77 COMP(read.one.id); in samples_same()
204 .read = { in do_test()
230 sample.read.group.nr = 4; in do_test()
231 sample.read.group.values = values; in do_test()
[all …]
/Linux-v4.19/drivers/net/can/
Dflexcan.c275 u32 (*read)(void __iomem *addr); member
394 reg = priv->read(&regs->mcr); in flexcan_chip_enable()
398 while (timeout-- && (priv->read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_enable()
401 if (priv->read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK) in flexcan_chip_enable()
413 reg = priv->read(&regs->mcr); in flexcan_chip_disable()
417 while (timeout-- && !(priv->read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable()
420 if (!(priv->read(&regs->mcr) & FLEXCAN_MCR_LPM_ACK)) in flexcan_chip_disable()
432 reg = priv->read(&regs->mcr); in flexcan_chip_freeze()
436 while (timeout-- && !(priv->read(&regs->mcr) & FLEXCAN_MCR_FRZ_ACK)) in flexcan_chip_freeze()
439 if (!(priv->read(&regs->mcr) & FLEXCAN_MCR_FRZ_ACK)) in flexcan_chip_freeze()
[all …]
/Linux-v4.19/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>>...133