Home
last modified time | relevance | path

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

12345678910>>...178

/linux/drivers/rtc/
H A 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 …]
H A 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/drivers/gpu/drm/tyr/
H A Dgpu.rs47 let gpu_id = regs::GPU_ID.read(dev, iomem)?; in new()
48 let csf_id = regs::GPU_CSF_ID.read(dev, iomem)?; in new()
49 let gpu_rev = regs::GPU_REVID.read(dev, iomem)?; in new()
50 let core_features = regs::GPU_CORE_FEATURES.read(dev, iomem)?; in new()
51 let l2_features = regs::GPU_L2_FEATURES.read(dev, iomem)?; in new()
52 let tiler_features = regs::GPU_TILER_FEATURES.read(dev, iomem)?; in new()
53 let mem_features = regs::GPU_MEM_FEATURES.read(dev, iomem)?; in new()
54 let mmu_features = regs::GPU_MMU_FEATURES.read(dev, iomem)?; in new()
55 let thread_features = regs::GPU_THREAD_FEATURES.read(dev, iomem)?; in new()
56 let max_threads = regs::GPU_THREAD_MAX_THREADS.read(dev, iomem)?; in new()
[all …]
/linux/Documentation/admin-guide/perf/
H A Dfujitsu_uncore_pmu.rst33 - read-count
34 This event counts the number of read requests to MAC.
35 - read-count-request
36 This event counts the number of read requests including retry to MAC.
37 - read-count-return
38 This event counts the number of responses to read requests to MAC.
39 - read-count-request-pftgt
40 This event counts the number of read requests including retry with PFTGT
42 - read-count-request-normal
43 This event counts the number of read requests including retry without PFTGT
[all …]
/linux/Documentation/wmi/devices/
H A Dlenovo-wmi-other.rst67 [key, read] string InstanceName;
68 [read] boolean Active;
78 [key, read] string InstanceName;
79 [read] boolean Active;
81 [WmiDataId(1), read, Description(" IDs.")] uint32 IDs;
82 [WmiDataId(2), read, Description("Capability.")] uint32 Capability;
83 [WmiDataId(3), read, Description("Capability Default Value.")] uint32 DefaultValue;
88 [key, read] string InstanceName;
89 [read] boolean Active;
91 [WmiDataId(1), read, Description(" IDs.")] uint32 IDs;
[all …]
H A Dmsi-wmi-platform.rst26 [WmiDataId(1), read, write, Description("16 bytes of data")] uint8 Bytes[16];
33 [WmiDataId(1), read, write, Description("32 bytes of data")] uint8 Bytes[32];
40 [key, read] string InstanceName;
41 [read] boolean Active;
43 [WmiMethodId(1), Implemented, read, write, Description("Return the contents of a package")]
46 [WmiMethodId(2), Implemented, read, write, Description("Set the contents of a package")]
49 [WmiMethodId(3), Implemented, read, write, Description("Return the contents of a package")]
52 [WmiMethodId(4), Implemented, read, write, Description("Set the contents of a package")]
55 [WmiMethodId(5), Implemented, read, write, Description("Return the contents of a package")]
58 [WmiMethodId(6), Implemented, read, write, Description("Set the contents of a package")]
[all …]
H A Dlenovo-wmi-gamezone.rst75 [key, read] string InstanceName;
76 [read] boolean Active;
134 [key, read] string InstanceName;
135 [read] boolean Active;
137 [WmiDataId(1), read, Description("OC tune id.")] uint32 Tuneid;
138 [WmiDataId(2), read, Description("Default value.")] uint32 DefaultValue;
139 [WmiDataId(3), read, Description("OC Value.")] uint32 OCValue;
140 [WmiDataId(4), read, Description("Min Value.")] uint32 MinValue;
141 [WmiDataId(5), read, Description("Max Value.")] uint32 MaxValue;
142 [WmiDataId(6), read, Description("Scale Value.")] uint32 ScaleValue;
[all …]
/linux/Documentation/userspace-api/media/v4l/
H A 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/Documentation/driver-api/mmc/
H A Dmmc-test.rst12 …different aspects of the host controller and device interactions, such as read and write performan…
112 To run test number 4 (Basic read with data verification):
126 …This file lists all available tests. You can read this file to see the list of tests and their cor…
143 | 2 | Basic read | Same for read |
150 | 4 | Basic read | Same for read |
156 | 6 | Multi-block read | Same for read |
162 | 8 | Power of two block reads | Same for read |
169 | 10 | Weird sized block reads | same for read |
176 | 12 | Badly aligned read | same for read |
180 | 14 | Badly aligned multi-block read | same for multi-read |
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_devcoredump.c209 pm_needed = ss->read.size > XE_DEVCOREDUMP_CHUNK_MAX; in xe_devcoredump_read()
215 if (!ss->read.buffer) { in xe_devcoredump_read()
220 if (offset >= ss->read.size) in xe_devcoredump_read()
227 if (offset >= ss->read.chunk_position + XE_DEVCOREDUMP_CHUNK_MAX || in xe_devcoredump_read()
228 offset < ss->read.chunk_position) { in xe_devcoredump_read()
229 ss->read.chunk_position = new_chunk_position * in xe_devcoredump_read()
232 __xe_devcoredump_read(ss->read.buffer, in xe_devcoredump_read()
234 ss->read.chunk_position, coredump); in xe_devcoredump_read()
237 byte_copied = count < ss->read.size - offset ? count : in xe_devcoredump_read()
238 ss->read.size - offset; in xe_devcoredump_read()
[all …]
/linux/Documentation/ABI/testing/
H A 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.
H A Dsysfs-driver-xdata17 The user can read the current PCIe link throughput generated
24 The file is read and write.
26 What: /sys/class/misc/dw-xdata-pcie.<device>/read
31 will create read TLPs frames - from the Endpoint to the Root
38 echo 1 > /sys/class/misc/dw-xdata-pcie.<device>/read
40 echo 0 > /sys/class/misc/dw-xdata-pcie.<device>/read
42 The user can read the current PCIe link throughput generated
46 cat /sys/class/misc/dw-xdata-pcie.<device>/read
49 The file is read and write.
/linux/tools/testing/selftests/filesystems/
H A Dfclog.c59 ASSERT_ERRNO_EQ(-ENODATA, read(fsfd, buf, sizeof(buf))); in TEST_F()
72 ASSERT_SUCCESS(read(fsfd, buf, sizeof(buf))); in TEST_F()
76 ASSERT_ERRNO_EQ(-ENODATA, read(fsfd, buf, sizeof(buf))); in TEST_F()
97 ASSERT_SUCCESS(read(fsfd, buf, sizeof(buf))); in TEST_F()
101 ASSERT_ERRNO_EQ(-ENODATA, read(fsfd, buf, sizeof(buf))); in TEST_F()
117 ASSERT_ERRNO_EQ(-EMSGSIZE, read(fsfd, buf, 0)); in TEST_F()
118 ASSERT_ERRNO_EQ(-EMSGSIZE, read(fsfd, buf, 1)); in TEST_F()
120 ASSERT_ERRNO_EQ(-EMSGSIZE, read(fsfd, buf, 16)); in TEST_F()
122 ASSERT_SUCCESS(read(fsfd, buf, sizeof(buf))); in TEST_F()
126 ASSERT_ERRNO_EQ(-ENODATA, read(fsfd, buf, sizeof(buf))); in TEST_F()
/linux/drivers/gpu/drm/amd/display/modules/hdcp/
H A Dhdcp_ddc.c152 static enum mod_hdcp_status read(struct mod_hdcp *hdcp, in read() function
211 status = read(hdcp, msg_id, buf + data_offset, cur_size); in read_repeatedly()
274 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BKSV, in mod_hdcp_read_bksv()
281 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BCAPS, in mod_hdcp_read_bcaps()
291 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BSTATUS, in mod_hdcp_read_bstatus()
295 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_BSTATUS, in mod_hdcp_read_bstatus()
303 return read(hdcp, MOD_HDCP_MESSAGE_ID_READ_RI_R0, in mod_hdcp_read_r0p()
319 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_KSV_FIFO, in mod_hdcp_read_ksvlist()
329 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_0, in mod_hdcp_read_vp()
334 status = read(hdcp, MOD_HDCP_MESSAGE_ID_READ_VH_1, in mod_hdcp_read_vp()
[all …]
/linux/arch/parisc/kernel/
H A 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/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_eeprom.c93 u8 *eeprom_buf, u32 buf_size, bool read) in __amdgpu_eeprom_xfer() argument
103 .flags = read ? I2C_M_RD : 0, in __amdgpu_eeprom_xfer()
119 if (!read) { in __amdgpu_eeprom_xfer()
155 if (!read) { in __amdgpu_eeprom_xfer()
182 u8 *eeprom_buf, u32 buf_size, bool read) in amdgpu_eeprom_xfer() argument
191 else if (read) in amdgpu_eeprom_xfer()
198 eeprom_buf, buf_size, read); in amdgpu_eeprom_xfer()
203 str_read_write(read), EEPROM_OFFSET_SIZE); in amdgpu_eeprom_xfer()
217 eeprom_buf, ps, read); in amdgpu_eeprom_xfer()
/linux/Documentation/admin-guide/
H A 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/Documentation/ABI/stable/
H A Dsysfs-bus-nvmem6 This read/write attribute allows users to set read-write
7 devices as read-only and back to read-write from userspace.
11 Read returns '0' or '1' for read-write or read-only modes
23 This file allows user to read/write the raw NVMEM contents.
46 This read-only attribute allows user to read the NVMEM
/linux/Documentation/filesystems/spufs/
H A 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/tools/testing/selftests/bpf/prog_tests/
H A Dctx_rewrite.c46 char *read; member
72 .read = "r11 = *(u8 *)($ctx + sk_buff::__mono_tc_offset);"
90 .read = "$dst = *(u32 *)($ctx + sk_buff::priority);",
95 .read = "$dst = *(u32 *)($ctx + sk_buff::mark);",
100 .read = "$dst = *(u32 *)($ctx + $(sk_buff::cb + qdisc_skb_cb::data));",
105 .read = "$dst = *(u16 *)($ctx + $(sk_buff::cb + qdisc_skb_cb::tc_classid));",
110 .read = "$dst = *(u16 *)($ctx + sk_buff::tc_index);",
115 .read = "$dst = *(u16 *)($ctx + sk_buff::queue_mapping);",
128 .read = "$dst = *(u32 *)($ctx + sock_common::skc_bound_dev_if);",
133 .read = "$dst = *(u32 *)($ctx + sock::sk_mark);",
[all …]
H A Duser_ringbuf.c38 int read; in write_samples() local
50 read = snprintf(entry->comm, sizeof(entry->comm), "%u", i); in write_samples()
51 if (read <= 0) { in write_samples()
55 ASSERT_GT(read, 0, "snprintf_comm"); in write_samples()
56 err = read; in write_samples()
174 ASSERT_EQ(skel->bss->read, 0, "no_reads_after_load"); in load_skel_create_ringbufs()
210 ASSERT_EQ(skel->bss->read, 0, "num_samples_before_bad_sample"); in manually_write_test_invalid_sample()
228 ASSERT_EQ(skel->bss->read, 0, "num_samples_after_bad_sample"); in manually_write_test_invalid_sample()
293 ASSERT_EQ(skel->bss->read, 0, "num_samples_read_before"); in test_user_ringbuf_basic()
299 ASSERT_EQ(skel->bss->read, 2, "num_samples_read_after"); in test_user_ringbuf_basic()
[all …]
/linux/Documentation/userspace-api/media/rc/
H A 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/drivers/crypto/inside-secure/
H A 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/include/trace/events/
H A 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/scripts/coccinelle/api/
H A 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,
187 // XXX for simplicity require no .{read/write}_iter and no .splice_{read/write} for now.
201 // read & write
212 .read = readstream,
231 …"ERROR: %s: .read() can deadlock .write(); change nonseekable_open -> stream_open to fix." % (fops…
238 …"WARNING: %s: .read() and .write() have stream semantic; safe to change nonseekable_open -> stream…
247 + nonseekable_open /* read & write (was deadlock) */
[all …]

12345678910>>...178