| /Linux-v5.4/drivers/staging/isdn/gigaset/ |
| D | isocdata.c | 25 iwb->write = 0; in gigaset_isowbuf_init() 37 int read, write, freebytes; in isowbuf_freebytes() local 40 write = iwb->write; in isowbuf_freebytes() 41 freebytes = read - write; in isowbuf_freebytes() 47 return BAS_OUTBUFSIZE - write; in isowbuf_freebytes() 68 __func__, iwb->data[iwb->write], iwb->wbits); in isowbuf_startwrite() 78 int write = iwb->write; in isowbuf_donewrite() local 80 return write; in isowbuf_donewrite() 92 int write = iwb->write; in isowbuf_putbits() local 94 data |= iwb->data[write]; in isowbuf_putbits() [all …]
|
| /Linux-v5.4/Documentation/driver-api/md/ |
| D | raid5-cache.rst | 7 caches data to the RAID disks. The cache can be in write-through (supported 8 since 4.4) or write-back mode (supported since 4.10). mdadm (supported since 9 3.4) has a new option '--write-journal' to create array with cache. Please 11 in write-through mode. A user can switch it to write-back mode by:: 13 echo "write-back" > /sys/block/md0/md/journal_mode 15 And switch it back to write-through mode by:: 17 echo "write-through" > /sys/block/md0/md/journal_mode 22 write-through mode 25 This mode mainly fixes the 'write hole' issue. For RAID 4/5/6 array, an unclean 27 and parity don't match. The reason is that a stripe write involves several RAID [all …]
|
| /Linux-v5.4/kernel/ |
| D | sysctl.c | 211 static int proc_do_cad_pid(struct ctl_table *table, int write, 213 static int proc_taint(struct ctl_table *table, int write, 218 static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write, 222 static int proc_dointvec_minmax_coredump(struct ctl_table *table, int write, 225 static int proc_dostring_coredump(struct ctl_table *table, int write, 228 static int proc_dopipe_max_size(struct ctl_table *table, int write, 235 static int sysrq_sysctl_handler(struct ctl_table *table, int write, in sysrq_sysctl_handler() argument 241 error = proc_dointvec(table, write, buffer, lenp, ppos); in sysrq_sysctl_handler() 245 if (write) in sysrq_sysctl_handler() 2000 static int _proc_do_string(char *data, int maxlen, int write, in _proc_do_string() argument [all …]
|
| D | watchdog.c | 680 static int proc_watchdog_common(int which, struct ctl_table *table, int write, in proc_watchdog_common() argument 687 if (!write) { in proc_watchdog_common() 693 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 696 err = proc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_watchdog_common() 707 int proc_watchdog(struct ctl_table *table, int write, in proc_watchdog() argument 711 table, write, buffer, lenp, ppos); in proc_watchdog() 717 int proc_nmi_watchdog(struct ctl_table *table, int write, in proc_nmi_watchdog() argument 720 if (!nmi_watchdog_available && write) in proc_nmi_watchdog() 723 table, write, buffer, lenp, ppos); in proc_nmi_watchdog() 729 int proc_soft_watchdog(struct ctl_table *table, int write, in proc_soft_watchdog() argument [all …]
|
| /Linux-v5.4/drivers/iio/dac/ |
| D | ad5446.c | 56 int (*write)(struct ad5446_state *st, unsigned val); member 123 ret = st->chip_info->write(st, val); in ad5446_write_dac_powerdown() 133 .write = ad5446_write_dac_powerdown, 201 ret = st->chip_info->write(st, val); in ad5446_write_raw() 346 .write = ad5446_write, 350 .write = ad5446_write, 354 .write = ad5446_write, 358 .write = ad5446_write, 362 .write = ad5446_write, 366 .write = ad5446_write, [all …]
|
| /Linux-v5.4/drivers/rtc/ |
| D | rtc-ds1685.c | 129 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank0() 140 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank1() 161 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_begin_data_access() 187 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_end_data_access() 327 rtc->write(rtc, RTC_CTRL_B, ctrlb); in ds1685_rtc_set_time() 328 rtc->write(rtc, RTC_SECS, seconds); in ds1685_rtc_set_time() 329 rtc->write(rtc, RTC_MINS, minutes); in ds1685_rtc_set_time() 330 rtc->write(rtc, RTC_HRS, hours); in ds1685_rtc_set_time() 331 rtc->write(rtc, RTC_WDAY, wday); in ds1685_rtc_set_time() 332 rtc->write(rtc, RTC_MDAY, mday); in ds1685_rtc_set_time() [all …]
|
| D | rtc-bq4802.c | 27 void (*write)(struct bq4802 *, int, u8); member 60 p->write(p, 0xe, val | 0x08); in bq4802_read_time() 71 p->write(p, 0x0e, val); in bq4802_read_time() 120 p->write(p, 0x0e, val | 0x08); in bq4802_set_time() 122 p->write(p, 0x00, sec); in bq4802_set_time() 123 p->write(p, 0x02, min); in bq4802_set_time() 124 p->write(p, 0x04, hrs); in bq4802_set_time() 125 p->write(p, 0x06, day); in bq4802_set_time() 126 p->write(p, 0x09, mon); in bq4802_set_time() 127 p->write(p, 0x0a, yrs); in bq4802_set_time() [all …]
|
| /Linux-v5.4/arch/mips/lasat/ |
| D | sysctl.c | 29 int proc_dolasatstring(struct ctl_table *table, int write, in proc_dolasatstring() argument 34 r = proc_dostring(table, write, buffer, lenp, ppos); in proc_dolasatstring() 35 if ((!write) || r) in proc_dolasatstring() 47 int proc_dolasatrtc(struct ctl_table *table, int write, in proc_dolasatrtc() argument 53 if (!write) { in proc_dolasatrtc() 60 r = proc_dointvec(table, write, buffer, lenp, ppos); in proc_dolasatrtc() 64 if (write) { in proc_dolasatrtc() 80 int proc_lasat_ip(struct ctl_table *table, int write, in proc_lasat_ip() argument 89 (*ppos && !write)) { in proc_lasat_ip() 94 if (write) { in proc_lasat_ip() [all …]
|
| /Linux-v5.4/net/sctp/ |
| D | sysctl.c | 43 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, 46 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, 49 static int proc_sctp_do_rto_max(struct ctl_table *ctl, int write, 52 static int proc_sctp_do_alpha_beta(struct ctl_table *ctl, int write, 55 static int proc_sctp_do_auth(struct ctl_table *ctl, int write, 325 static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write, in proc_sctp_do_hmac_alg() argument 338 if (write) { in proc_sctp_do_hmac_alg() 346 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in proc_sctp_do_hmac_alg() 347 if (write && ret == 0) { in proc_sctp_do_hmac_alg() 371 static int proc_sctp_do_rto_min(struct ctl_table *ctl, int write, in proc_sctp_do_rto_min() argument [all …]
|
| /Linux-v5.4/Documentation/media/uapi/v4l/ |
| D | func-write.rst | 10 .. _func-write: 13 V4L2 write() 19 v4l2-write - Write to a V4L2 device 30 .. c:function:: ssize_t write( int fd, void *buf, size_t count ) 31 :name: v4l2-write 48 :ref:`write() <func-write>` writes up to ``count`` bytes to the device 51 enables them. When ``count`` is zero, :ref:`write() <func-write>` returns 0 65 variable is set appropriately. In this case the next write will start at 71 available to write the data immediately. 77 The driver does not support multiple write streams and the device is [all …]
|
| /Linux-v5.4/scripts/ |
| D | spdxcheck.py | 198 sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok)) 200 sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, col, pe.txt)) 232 sys.stderr.write('stdin input "-" must be the only path argument\n') 248 sys.stderr.write('%s: %s\n' %(se.el.path, se.txt)) 250 sys.stderr.write('%s\n' %se.txt) 254 sys.stderr.write('FAIL: %s\n' %ex) 255 sys.stderr.write('%s\n' %traceback.format_exc()) 270 sys.stderr.write('path %s does not exist\n' %p) 277 sys.stderr.write('\n') 278 sys.stderr.write('License files: %12d\n' %spdx.license_files) [all …]
|
| /Linux-v5.4/drivers/staging/comedi/drivers/ni_routing/tools/ |
| D | convert_csv_to_c.py | 49 sys.stderr.write('Invalid register format: {}\n'.format(repr(value))) 50 sys.stderr.write( 263 f.write('\n'.join(s_chunks)) 264 f.write('\n') 267 f.write('# This is the segment that should be included in comedi/drivers/Makefile\n') 268 f.write('ni_routing-objs\t\t\t\t+= \\\n') 269 f.write('\n'.join(objs)) 270 f.write('\n') 274 f.write(self.extern_header.format( 289 f.write( self.to_listinit() ) [all …]
|
| /Linux-v5.4/include/linux/sched/ |
| D | sysctl.h | 15 extern int proc_dohung_task_timeout_secs(struct ctl_table *table, int write, 45 int sched_proc_update_handler(struct ctl_table *table, int write, 75 extern int sched_rr_handler(struct ctl_table *table, int write, 79 extern int sched_rt_handler(struct ctl_table *table, int write, 84 extern int sysctl_sched_uclamp_handler(struct ctl_table *table, int write, 89 extern int sysctl_numa_balancing(struct ctl_table *table, int write, 93 extern int sysctl_schedstats(struct ctl_table *table, int write, 99 extern int sched_energy_aware_handler(struct ctl_table *table, int write,
|
| /Linux-v5.4/Documentation/scsi/ |
| D | sd-parameters.txt | 6 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-v5.4/drivers/crypto/inside-secure/ |
| D | safexcel_ring.c | 23 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-v5.4/scripts/gdb/linux/ |
| D | proc.py | 30 gdb.write(gdb.parse_and_eval("saved_command_line").string() + "\n") 45 gdb.write(gdb.parse_and_eval("(char *)linux_banner").string()) 74 gdb.write(" " * depth * 2 + 193 gdb.write( 253 gdb.write("fdt_magic: 0x{:02X}\n".format(fdt_header[0])) 254 gdb.write("fdt_totalsize: 0x{:02X}\n".format(fdt_header[1])) 255 gdb.write("off_dt_struct: 0x{:02X}\n".format(fdt_header[2])) 256 gdb.write("off_dt_strings: 0x{:02X}\n".format(fdt_header[3])) 257 gdb.write("off_mem_rsvmap: 0x{:02X}\n".format(fdt_header[4])) 258 gdb.write("version: {}\n".format(fdt_header[5])) [all …]
|
| /Linux-v5.4/ipc/ |
| D | ipc_sysctl.c | 26 static int proc_ipc_dointvec(struct ctl_table *table, int write, in proc_ipc_dointvec() argument 34 return proc_dointvec(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec() 37 static int proc_ipc_dointvec_minmax(struct ctl_table *table, int write, in proc_ipc_dointvec_minmax() argument 45 return proc_dointvec_minmax(&ipc_table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax() 48 static int proc_ipc_dointvec_minmax_orphans(struct ctl_table *table, int write, in proc_ipc_dointvec_minmax_orphans() argument 52 int err = proc_ipc_dointvec_minmax(table, write, buffer, lenp, ppos); in proc_ipc_dointvec_minmax_orphans() 61 static int proc_ipc_doulongvec_minmax(struct ctl_table *table, int write, in proc_ipc_doulongvec_minmax() argument 68 return proc_doulongvec_minmax(&ipc_table, write, buffer, in proc_ipc_doulongvec_minmax() 72 static int proc_ipc_auto_msgmni(struct ctl_table *table, int write, in proc_ipc_auto_msgmni() argument 81 if (write) in proc_ipc_auto_msgmni() [all …]
|
| /Linux-v5.4/net/core/ |
| D | sysctl_net_core.c | 47 static int rps_sock_flow_sysctl(struct ctl_table *table, int write, in rps_sock_flow_sysctl() argument 66 ret = proc_dointvec(&tmp, write, buffer, lenp, ppos); in rps_sock_flow_sysctl() 68 if (write) { in rps_sock_flow_sysctl() 117 static int flow_limit_cpu_sysctl(struct ctl_table *table, int write, in flow_limit_cpu_sysctl() argument 129 if (write) { in flow_limit_cpu_sysctl() 196 static int flow_limit_table_len_sysctl(struct ctl_table *table, int write, in flow_limit_table_len_sysctl() argument 207 ret = proc_dointvec(table, write, buffer, lenp, ppos); in flow_limit_table_len_sysctl() 208 if (!ret && write && !is_power_of_2(*ptr)) { in flow_limit_table_len_sysctl() 219 static int set_default_qdisc(struct ctl_table *table, int write, in set_default_qdisc() argument 231 ret = proc_dostring(&tbl, write, buffer, lenp, ppos); in set_default_qdisc() [all …]
|
| /Linux-v5.4/arch/arm/mach-omap2/ |
| D | vp.c | 26 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-v5.4/arch/parisc/kernel/ |
| D | perf_asm.S | 1385 sync ; RDR 0 write sequence 1394 sync ; RDR 1 write sequence 1403 sync ; RDR 2 write sequence 1412 sync ; RDR 3 write sequence 1421 sync ; RDR 4 write sequence 1430 sync ; RDR 5 write sequence 1439 sync ; RDR 6 write sequence 1448 sync ; RDR 7 write sequence 1457 sync ; RDR 8 write sequence 1466 sync ; RDR 9 write sequence [all …]
|
| /Linux-v5.4/drivers/staging/vc04_services/interface/vchiq_arm/ |
| D | vchiq_util.c | 17 queue->write = 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() 52 queue->storage[queue->write & (queue->size - 1)] = header; in vchiu_queue_push() 53 queue->write++; in vchiu_queue_push() 60 while (queue->write == queue->read) { in vchiu_queue_peek() 74 while (queue->write == queue->read) { in vchiu_queue_pop()
|
| /Linux-v5.4/Documentation/ABI/testing/ |
| D | configfs-spear-pcie-gadget | 23 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-v5.4/Documentation/networking/ |
| D | cxacru-cf.py | 39 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")
|
| /Linux-v5.4/scripts/coccinelle/api/ |
| D | stream_open.cocci | 6 // 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. 111 .write = write_f, 188 // XXX for simplicity require no .{read/write}_iter and no .splice_{read/write} for now. 202 // read & write 214 .write = writestream, 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/tools/perf/scripts/python/ |
| D | compaction-times.py | 138 sys.stderr.write("missing start compaction event for pid %d\n" % pid) 147 sys.stderr.write("missing start compaction event for pid %d\n" % pid) 192 sys.stdout.write("%d[%s].%d: %s\n" % (self.pid, self.comm, i+1, pelem)) 202 sys.stdout.write("%d[%s]: %s\n" % (self.pid, self.comm, self.val)) 206 sys.stdout.write("total: %s\n" % chead.str()) 249 sys.stdout.write(usage) 250 sys.stdout.write("\n") 251 sys.stdout.write("-h display this help\n") 252 sys.stdout.write("-p display by process\n") 253 sys.stdout.write("-pv display by process (verbose)\n") [all …]
|