Home
last modified time | relevance | path

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

12345678910>>...135

/Linux-v5.10/drivers/rtc/
Drtc-ds1685.c162 (rtc->read(rtc, RTC_CTRL_A) & ~(RTC_CTRL_A_DV0))); in ds1685_rtc_switch_to_bank0()
173 (rtc->read(rtc, RTC_CTRL_A) | RTC_CTRL_A_DV0)); in ds1685_rtc_switch_to_bank1()
194 (rtc->read(rtc, RTC_CTRL_B) | RTC_CTRL_B_SET)); in ds1685_rtc_begin_data_access()
200 while (rtc->read(rtc, RTC_EXT_CTRL_4A) & RTC_CTRL_4A_INCR) in ds1685_rtc_begin_data_access()
220 (rtc->read(rtc, RTC_CTRL_B) & ~(RTC_CTRL_B_SET))); in ds1685_rtc_end_data_access()
240 ssn[0] = rtc->read(rtc, RTC_BANK1_SSN_MODEL); in ds1685_rtc_get_ssn()
241 ssn[1] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_1); in ds1685_rtc_get_ssn()
242 ssn[2] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_2); in ds1685_rtc_get_ssn()
243 ssn[3] = rtc->read(rtc, RTC_BANK1_SSN_BYTE_3); in ds1685_rtc_get_ssn()
244 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.10/Documentation/userspace-api/media/v4l/
Dfunc-read.rst4 .. _func-read:
7 V4L2 read()
13 v4l2-read - Read from a V4L2 device
22 .. c:function:: ssize_t read( int fd, void *buf, size_t count )
34 Max number of bytes to read
39 :c:func:`read()` attempts to read up to ``count`` bytes from file
42 section, see ##. If ``count`` is zero, :c:func:`read()` returns zero
45 :c:func:`read()` call will provide at most one frame (two fields)
48 By default :c:func:`read()` blocks until data becomes available. When
54 :c:func:`read()` function must also support :c:func:`select()` and
[all …]
/Linux-v5.10/Documentation/ABI/testing/
Dconfigfs-spear-pcie-gadget20 link used to enable ltssm and read its status.
21 int_type used to configure and read type of supported interrupt
23 to read no of MSI granted.
26 vendor_id used to write and read vendor id (hex)
27 device_id used to write and read device id (hex)
28 bar0_size used to write and read bar0_size
29 bar0_address used to write and read bar0 mapped area in hex.
30 bar0_rw_offset used to write and read offset of bar0 where bar0_data
31 will be written or read.
32 bar0_data used to write and read data at bar0_rw_offset.
Dsysfs-driver-ufs22 The file is read only.
31 The file is read only.
40 The file is read only.
50 The file is read only.
59 The file is read only.
69 The file is read only.
79 The file is read only.
85 descriptor could be read after partial initialization phase
90 The file is read only.
100 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-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/write file. While reading, it gives '1'
32 It is a read only file. It gives active/inactive status of
39 It is a read only file. It contains watchdog device's
47 It is a read only file. It contains value of time left for
55 It is a read only file. It is read to know about current
62 It is a read only file. It specifies the time in seconds before
70 It is a read only file. It shows the pretimeout governors
77 It is a read/write file. When read, the currently assigned
[all …]
Dsysfs-driver-w1_therm5 (RW) read or write TH and TL (Temperature High an Low) alarms.
63 actual resolution is read back from the chip and verified. Error
75 * If a bulk read has been triggered, it will directly
76 return the temperature computed when the bulk read
80 * If no bulk read has been triggered, it will trigger
95 *read*: return 2 lines with the hexa output data sent on the
115 (RW) trigger a bulk read conversion. read the status
117 *read*:
122 value has not been read yet
128 'trigger': trigger a bulk read on all supporting
[all …]
/Linux-v5.10/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.10/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.10/drivers/gpu/drm/amd/display/modules/hdcp/
Dhdcp_ddc.c150 static enum mod_hdcp_status read(struct mod_hdcp *hdcp, in read() function
197 status = read(hdcp, msg_id, buf + data_offset, cur_size); in read_repeatedly()
248 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BKSV, in mod_hdcp_read_bksv()
255 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BCAPS, in mod_hdcp_read_bcaps()
265 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BSTATUS, in mod_hdcp_read_bstatus()
269 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BSTATUS, in mod_hdcp_read_bstatus()
277 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_RI_R0, in mod_hdcp_read_r0p()
293 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_KSV_FIFO, in mod_hdcp_read_ksvlist()
303 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_0, in mod_hdcp_read_vp()
308 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_1, in mod_hdcp_read_vp()
[all …]
/Linux-v5.10/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.10/drivers/iio/temperature/
Dmlx90632.c304 s16 read; in mlx90632_read_object_raw() local
317 read = (s16)read_tmp; in mlx90632_read_object_raw()
322 *object_new_raw = (read + (s16)read_tmp) / 2; in mlx90632_read_object_raw()
327 read = (s16)read_tmp; in mlx90632_read_object_raw()
332 *object_old_raw = (read + (s16)read_tmp) / 2; in mlx90632_read_object_raw()
383 s32 read; in mlx90632_read_object_raw_extended() local
389 read = (s16)read_tmp; in mlx90632_read_object_raw_extended()
394 read = read - (s16)read_tmp; in mlx90632_read_object_raw_extended()
399 read = read - (s16)read_tmp; in mlx90632_read_object_raw_extended()
404 read = (read + (s16)read_tmp) / 2; in mlx90632_read_object_raw_extended()
[all …]
/Linux-v5.10/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.10/Documentation/userspace-api/media/rc/
Dlirc-read.rst4 .. _lirc-read:
7 LIRC read()
13 lirc-read - Read from a LIRC device
22 .. c:function:: ssize_t read( int fd, void *buf, size_t count )
34 Max number of bytes to read
39 :c:func:`read()` attempts to read up to ``count`` bytes from file
41 :c:func:`read()` returns zero and has no other results. If ``count``
50 read from the chardev.
62 On success, the number of bytes read is returned. It is not an error if
/Linux-v5.10/Documentation/filesystems/spufs/
Dspufs.rst44 tem calls like read(2) or write(2), but often support only a subset of
49 All files that support the read(2) operation also support readv(2) and
57 possible operations, e.g. read access on the wbox file.
68 read(2), pread(2), write(2), pwrite(2), lseek(2)
81 The first SPU to CPU communication mailbox. This file is read-only and
82 can be read in units of 32 bits. The file can only be used in non-
86 read(2)
87 If a count smaller than four is requested, read returns -1 and
90 When data has been read successfully, four bytes are placed in
96 the first mailbox file, but can be read in blocking I/O mode, and the
[all …]
/Linux-v5.10/drivers/crypto/inside-secure/
Dsafexcel_ring.c30 cdr->read = cdr->base; in safexcel_init_ring_descriptors()
67 rdr->read = rdr->base; in safexcel_init_ring_descriptors()
87 if ((ring->write == ring->read - ring->offset) || in safexcel_ring_next_cwptr()
88 (ring->read == ring->base && ring->write == ring->base_end)) in safexcel_ring_next_cwptr()
111 if ((ring->write == ring->read - ring->offset) || in safexcel_ring_next_rwptr()
112 (ring->read == ring->base && ring->write == ring->base_end)) in safexcel_ring_next_rwptr()
126 void *ptr = ring->read; in safexcel_ring_next_rptr()
128 if (ring->write == ring->read) in safexcel_ring_next_rptr()
131 if (ring->read == ring->base_end) in safexcel_ring_next_rptr()
132 ring->read = ring->base; in safexcel_ring_next_rptr()
[all …]
/Linux-v5.10/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.10/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
48 read I/Os, write I/Os, discard I/0s
61 read merges, write merges, discard merges
67 read sectors, write sectors, discard_sectors
70 These values count the number of sectors read from, written to, or
75 read ticks, write ticks, discard ticks, flush ticks
81 example, if 60 read requests wait for an average of 30 ms, the read_ticks
[all …]
/Linux-v5.10/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.10/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.10/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.10/include/linux/
Dcounter.h39 ssize_t (*read)(struct counter_device *counter, member
103 .read = counter_signal_enum_read, \
120 .read = counter_signal_enum_available_read, \
157 ssize_t (*read)(struct counter_device *counter, member
244 .read = counter_count_enum_read, \
261 .read = counter_count_enum_available_read, \
353 ssize_t (*read)(struct counter_device *counter, void *priv, char *buf); member
394 .read = counter_device_enum_read, \
411 .read = counter_device_enum_available_read, \
/Linux-v5.10/drivers/char/hw_random/
Doptee-rng.c118 size_t read = 0, rng_size = 0; in optee_rng_read() local
125 while (read < max) { in optee_rng_read()
126 rng_size = get_optee_rng_data(pvt_data, data, (max - read)); in optee_rng_read()
129 read += rng_size; in optee_rng_read()
132 if ((timeout-- == 0) || (read == max)) in optee_rng_read()
133 return read; in optee_rng_read()
134 msleep((1000 * (max - read)) / pvt_data->data_rate); in optee_rng_read()
136 return read; in optee_rng_read()
140 return read; in optee_rng_read()
172 .read = optee_rng_read,

12345678910>>...135