Home
last modified time | relevance | path

Searched refs:write (Results 1 – 25 of 2949) sorted by relevance

12345678910>>...118

/Linux-v4.19/drivers/isdn/gigaset/
Disocdata.c28 iwb->write = 0; in gigaset_isowbuf_init()
40 int read, write, freebytes; in isowbuf_freebytes() local
43 write = iwb->write; in isowbuf_freebytes()
44 freebytes = read - write; in isowbuf_freebytes()
50 return BAS_OUTBUFSIZE - write; in isowbuf_freebytes()
71 __func__, iwb->data[iwb->write], iwb->wbits); in isowbuf_startwrite()
81 int write = iwb->write; in isowbuf_donewrite() local
83 return write; in isowbuf_donewrite()
95 int write = iwb->write; in isowbuf_putbits() local
97 data |= iwb->data[write]; in isowbuf_putbits()
[all …]
/Linux-v4.19/Documentation/md/
Draid5-cache.txt5 caches data to the RAID disks. The cache can be in write-through (supported
6 since 4.4) or write-back mode (supported since 4.10). mdadm (supported since
7 3.4) has a new option '--write-journal' to create array with cache. Please
9 in write-through mode. A user can switch it to write-back mode by:
11 echo "write-back" > /sys/block/md0/md/journal_mode
13 And switch it back to write-through mode by:
15 echo "write-through" > /sys/block/md0/md/journal_mode
21 write-through mode:
23 This mode mainly fixes the 'write hole' issue. For RAID 4/5/6 array, an unclean
25 and parity don't match. The reason is that a stripe write involves several RAID
[all …]
/Linux-v4.19/drivers/iio/dac/
Dad5446.c57 int (*write)(struct ad5446_state *st, unsigned val); member
124 ret = st->chip_info->write(st, val); in ad5446_write_dac_powerdown()
134 .write = ad5446_write_dac_powerdown,
202 ret = st->chip_info->write(st, val); in ad5446_write_raw()
347 .write = ad5446_write,
351 .write = ad5446_write,
355 .write = ad5446_write,
359 .write = ad5446_write,
363 .write = ad5446_write,
367 .write = ad5446_write,
[all …]
/Linux-v4.19/Documentation/media/uapi/v4l/
Dfunc-write.rst3 .. _func-write:
6 V4L2 write()
12 v4l2-write - Write to a V4L2 device
23 .. c:function:: ssize_t write( int fd, void *buf, size_t count )
24 :name: v4l2-write
41 :ref:`write() <func-write>` writes up to ``count`` bytes to the device
44 enables them. When ``count`` is zero, :ref:`write() <func-write>` returns 0
58 variable is set appropriately. In this case the next write will start at
64 available to write the data immediately.
70 The driver does not support multiple write streams and the device is
[all …]
/Linux-v4.19/kernel/
Dsysctl.c207 static int proc_do_cad_pid(struct ctl_table *table, int write,
209 static int proc_taint(struct ctl_table *table, int write,
214 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
218 static int proc_dointvec_minmax_coredump(struct ctl_table *table, int write,
221 static int proc_dostring_coredump(struct ctl_table *table, int write,
224 static int proc_dopipe_max_size(struct ctl_table *table, int write,
231 static int sysrq_sysctl_handler(struct ctl_table *table, int write, in sysrq_sysctl_handler() argument
237 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler()
241 if (write) in sysrq_sysctl_handler()
1921 static int _proc_do_string(char *data, int maxlen, int write, in _proc_do_string() argument
[all …]
Dwatchdog.c671 static int proc_watchdog_common(int which, struct ctl_table *table, int write, in proc_watchdog_common() argument
678 if (!write) { in proc_watchdog_common()
684 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
687 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common()
698 int proc_watchdog(struct ctl_table *table, int write, in proc_watchdog() argument
702 table, write, buffer, lenp, ppos); in proc_watchdog()
708 int proc_nmi_watchdog(struct ctl_table *table, int write, in proc_nmi_watchdog() argument
711 if (!nmi_watchdog_available && write) in proc_nmi_watchdog()
714 table, write, buffer, lenp, ppos); in proc_nmi_watchdog()
720 int proc_soft_watchdog(struct ctl_table *table, int write, in proc_soft_watchdog() argument
[all …]
/Linux-v4.19/arch/s390/mm/
Dgup.c22 unsigned long end, int write, struct page **pages, int *nr) in gup_pte_range() argument
28 mask = (write ? _PAGE_PROTECT : 0) | _PAGE_INVALID | _PAGE_SPECIAL; in gup_pte_range()
58 unsigned long end, int write, struct page **pages, int *nr) in gup_huge_pmd() argument
64 mask = (write ? _SEGMENT_ENTRY_PROTECT : 0) | _SEGMENT_ENTRY_INVALID; in gup_huge_pmd()
97 unsigned long end, int write, struct page **pages, int *nr) in gup_pmd_range() argument
121 write, pages, nr)) in gup_pmd_range()
124 write, pages, nr)) in gup_pmd_range()
132 unsigned long end, int write, struct page **pages, int *nr) in gup_huge_pud() argument
138 mask = (write ? _REGION_ENTRY_PROTECT : 0) | _REGION_ENTRY_INVALID; in gup_huge_pud()
170 unsigned long end, int write, struct page **pages, int *nr) in gup_pud_range() argument
[all …]
/Linux-v4.19/drivers/rtc/
Drtc-ds1685.c132 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank0()
143 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank1()
164 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_begin_data_access()
190 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_end_data_access()
366 rtc->write(rtc, RTC_CTRL_B, ctrlb); in ds1685_rtc_set_time()
367 rtc->write(rtc, RTC_SECS, seconds); in ds1685_rtc_set_time()
368 rtc->write(rtc, RTC_MINS, minutes); in ds1685_rtc_set_time()
369 rtc->write(rtc, RTC_HRS, hours); in ds1685_rtc_set_time()
370 rtc->write(rtc, RTC_WDAY, wday); in ds1685_rtc_set_time()
371 rtc->write(rtc, RTC_MDAY, mday); in ds1685_rtc_set_time()
[all …]
Drtc-bq4802.c26 void (*write)(struct bq4802 *, int, u8); member
59 p->write(p, 0xe, val | 0x08); in bq4802_read_time()
70 p->write(p, 0x0e, val); in bq4802_read_time()
119 p->write(p, 0x0e, val | 0x08); in bq4802_set_time()
121 p->write(p, 0x00, sec); in bq4802_set_time()
122 p->write(p, 0x02, min); in bq4802_set_time()
123 p->write(p, 0x04, hrs); in bq4802_set_time()
124 p->write(p, 0x06, day); in bq4802_set_time()
125 p->write(p, 0x09, mon); in bq4802_set_time()
126 p->write(p, 0x0a, yrs); in bq4802_set_time()
[all …]
/Linux-v4.19/arch/sparc/mm/
Dgup.c23 unsigned long end, int write, struct page **pages, int *nr) in gup_pte_range() argument
30 if (write) in gup_pte_range()
34 if (write) in gup_pte_range()
70 unsigned long end, int write, struct page **pages, in gup_huge_pmd() argument
79 if (write && !pmd_write(pmd)) in gup_huge_pmd()
109 unsigned long end, int write, struct page **pages, in gup_huge_pud() argument
118 if (write && !pud_write(pud)) in gup_huge_pud()
148 int write, struct page **pages, int *nr) in gup_pmd_range() argument
162 write, pages, nr)) in gup_pmd_range()
164 } else if (!gup_pte_range(pmd, addr, next, write, in gup_pmd_range()
[all …]
/Linux-v4.19/arch/mips/mm/
Dgup.c39 int write, struct page **pages, int *nr) in gup_pte_range() argument
47 pte_special(pte) || (write && !pte_write(pte))) { in gup_pte_range()
73 int write, struct page **pages, int *nr) in gup_huge_pmd() argument
79 if (write && !pte_write(pte)) in gup_huge_pmd()
101 int write, struct page **pages, int *nr) in gup_pmd_range() argument
114 if (!gup_huge_pmd(pmd, addr, next, write, pages,nr)) in gup_pmd_range()
117 if (!gup_pte_range(pmd, addr, next, write, pages,nr)) in gup_pmd_range()
126 int write, struct page **pages, int *nr) in gup_huge_pud() argument
132 if (write && !pte_write(pte)) in gup_huge_pud()
154 int write, struct page **pages, int *nr) in gup_pud_range() argument
[all …]
/Linux-v4.19/arch/sh/mm/
Dgup.c76 unsigned long end, int write, struct page **pages, int *nr) in gup_pte_range() argument
83 if (write) in gup_pte_range()
87 if (write) in gup_pte_range()
91 if (write) in gup_pte_range()
121 int write, struct page **pages, int *nr) in gup_pmd_range() argument
133 if (!gup_pte_range(pmd, addr, next, write, pages, nr)) in gup_pmd_range()
141 int write, struct page **pages, int *nr) in gup_pud_range() argument
153 if (!gup_pmd_range(pud, addr, next, write, pages, nr)) in gup_pud_range()
166 int __get_user_pages_fast(unsigned long start, int nr_pages, int write, in __get_user_pages_fast() argument
180 if (unlikely(!access_ok(write ? VERIFY_WRITE : VERIFY_READ, in __get_user_pages_fast()
[all …]
/Linux-v4.19/arch/mips/lasat/
Dsysctl.c41 int proc_dolasatstring(struct ctl_table *table, int write, in proc_dolasatstring() argument
46 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring()
47 if ((!write) || r) in proc_dolasatstring()
59 int proc_dolasatrtc(struct ctl_table *table, int write, in proc_dolasatrtc() argument
65 if (!write) { in proc_dolasatrtc()
72 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc()
76 if (write) { in proc_dolasatrtc()
92 int proc_lasat_ip(struct ctl_table *table, int write, in proc_lasat_ip() argument
101 (*ppos && !write)) { in proc_lasat_ip()
106 if (write) { in proc_lasat_ip()
[all …]
/Linux-v4.19/net/sctp/
Dsysctl.c61 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
64 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write,
67 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write,
70 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write,
73 static int proc_sctp_do_auth(struct ctl_table *ctl, int write,
336 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, in proc_sctp_do_hmac_alg() argument
349 if (write) { in proc_sctp_do_hmac_alg()
357 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg()
358 if (write && ret == 0) { in proc_sctp_do_hmac_alg()
382 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, in proc_sctp_do_rto_min() argument
[all …]
/Linux-v4.19/scripts/
Dspdxcheck.py191 sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok))
193 sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, col, pe.txt))
225 sys.stderr.write('stdin input "-" must be the only path argument\n')
241 sys.stderr.write('%s: %s\n' %(se.el.path, se.txt))
243 sys.stderr.write('%s\n' %se.txt)
247 sys.stderr.write('FAIL: %s\n' %ex)
248 sys.stderr.write('%s\n' %traceback.format_exc())
262 sys.stderr.write('path %s does not exist\n' %p)
269 sys.stderr.write('\n')
270 sys.stderr.write('License files: %12d\n' %spdx.license_files)
[all …]
/Linux-v4.19/Documentation/scsi/
Dsd-parameters.txt6 Enable/disable drive write & read cache.
10 write through | 0 0 | off | on
12 write back | 1 0 | on | on
13 write back, no read (daft) | 1 1 | on | off
15 To set cache type to "write back" and save this setting to the drive:
17 # echo "write back" > cache_type
22 # echo "temporary write back" > cache_type
/Linux-v4.19/drivers/crypto/inside-secure/
Dsafexcel_ring.c23 cdr->write = cdr->base; in safexcel_init_ring_descriptors()
33 rdr->write = rdr->base; in safexcel_init_ring_descriptors()
48 void *ptr = ring->write; in safexcel_ring_next_wptr()
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()
54 if (ring->write == ring->base_end) in safexcel_ring_next_wptr()
55 ring->write = ring->base; in safexcel_ring_next_wptr()
57 ring->write += ring->offset; in safexcel_ring_next_wptr()
67 if (ring->write == ring->read) in safexcel_ring_next_rptr()
106 if (ring->write == ring->read) in safexcel_ring_rollback_wptr()
[all …]
/Linux-v4.19/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_util.c48 queue->write = 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()
93 queue->storage[queue->write & (queue->size - 1)] = header; in vchiu_queue_push()
101 queue->write++; in vchiu_queue_push()
108 while (queue->write == queue->read) { in vchiu_queue_peek()
128 while (queue->write == queue->read) { in vchiu_queue_pop()
/Linux-v4.19/scripts/gdb/linux/
Dproc.py30 gdb.write(gdb.parse_and_eval("saved_command_line").string() + "\n")
44 gdb.write(gdb.parse_and_eval("linux_banner").string())
72 gdb.write(" " * depth * 2 +
189 gdb.write(
248 gdb.write("fdt_magic: 0x{:02X}\n".format(fdt_header[0]))
249 gdb.write("fdt_totalsize: 0x{:02X}\n".format(fdt_header[1]))
250 gdb.write("off_dt_struct: 0x{:02X}\n".format(fdt_header[2]))
251 gdb.write("off_dt_strings: 0x{:02X}\n".format(fdt_header[3]))
252 gdb.write("off_mem_rsvmap: 0x{:02X}\n".format(fdt_header[4]))
253 gdb.write("version: {}\n".format(fdt_header[5]))
[all …]
/Linux-v4.19/arch/arm/mach-omap2/
Dvp.c26 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage()
29 voltdm->write((vpconfig | vp->common->vpconfig_initvdd), in _vp_set_init_voltage()
33 voltdm->write(vpconfig, vp->vpconfig); in _vp_set_init_voltage()
50 if (!voltdm->read || !voltdm->write) { in omap_vp_init()
79 voltdm->write(val, vp->vpconfig); in omap_vp_init()
84 voltdm->write(val, vp->vstepmin); in omap_vp_init()
89 voltdm->write(val, vp->vstepmax); in omap_vp_init()
95 voltdm->write(val, vp->vlimitto); in omap_vp_init()
152 voltdm->write(vpconfig | vp->common->vpconfig_forceupdate, in omap_vp_forceupdate_scale()
185 voltdm->write(vpconfig, vp->vpconfig); in omap_vp_forceupdate_scale()
[all …]
/Linux-v4.19/arch/parisc/kernel/
Dperf_asm.S1398 sync ; RDR 0 write sequence
1407 sync ; RDR 1 write sequence
1416 sync ; RDR 2 write sequence
1425 sync ; RDR 3 write sequence
1434 sync ; RDR 4 write sequence
1443 sync ; RDR 5 write sequence
1452 sync ; RDR 6 write sequence
1461 sync ; RDR 7 write sequence
1470 sync ; RDR 8 write sequence
1479 sync ; RDR 9 write sequence
[all …]
/Linux-v4.19/ipc/
Dipc_sysctl.c30 static int proc_ipc_dointvec(struct ctl_table *table, int write, in proc_ipc_dointvec() argument
38 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec()
41 static int proc_ipc_dointvec_minmax(struct ctl_table *table, int write, in proc_ipc_dointvec_minmax() argument
49 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax()
52 static int proc_ipc_dointvec_minmax_orphans(struct ctl_table *table, int write, in proc_ipc_dointvec_minmax_orphans() argument
56 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans()
65 static int proc_ipc_doulongvec_minmax(struct ctl_table *table, int write, in proc_ipc_doulongvec_minmax() argument
72 return proc_doulongvec_minmax(&ipc_table, write, buffer, in proc_ipc_doulongvec_minmax()
76 static int proc_ipc_auto_msgmni(struct ctl_table *table, int write, in proc_ipc_auto_msgmni() argument
85 if (write) in proc_ipc_auto_msgmni()
[all …]
/Linux-v4.19/net/core/
Dsysctl_net_core.c38 static int rps_sock_flow_sysctl(struct ctl_table *table, int write, in rps_sock_flow_sysctl() argument
57 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl()
59 if (write) { in rps_sock_flow_sysctl()
108 static int flow_limit_cpu_sysctl(struct ctl_table *table, int write, in flow_limit_cpu_sysctl() argument
120 if (write) { in flow_limit_cpu_sysctl()
187 static int flow_limit_table_len_sysctl(struct ctl_table *table, int write, in flow_limit_table_len_sysctl() argument
198 ret = proc_dointvec(table, write, buffer, lenp, ppos); in flow_limit_table_len_sysctl()
199 if (!ret && write && !is_power_of_2(*ptr)) { in flow_limit_table_len_sysctl()
210 static int set_default_qdisc(struct ctl_table *table, int write, in set_default_qdisc() argument
222 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in set_default_qdisc()
[all …]
/Linux-v4.19/Documentation/ABI/testing/
Dconfigfs-spear-pcie-gadget23 inta ... write 1 to assert INTA and 0 to de-assert.
24 send_msi ... write MSI vector to be sent.
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
31 bar0_data ... used to write and read data at bar0_rw_offset.
/Linux-v4.19/Documentation/networking/
Dcxacru-cf.py39 sys.stdout.write("\n")
40 sys.stderr.write("Error: read {0} not 4 bytes\n".format(len(buf)))
44 sys.stdout.write(" ")
45 sys.stdout.write("{0:x}={1}".format(i, struct.unpack("<I", buf)[0]))
48 sys.stdout.write("\n")

12345678910>>...118