| /linux/tools/testing/selftests/net/ |
| H A D | proc_net_pktgen.c | 127 len = write(self->thr_fd, thr_cmd_add_loopback_0, sizeof(thr_cmd_add_loopback_0)); in FIXTURE_SETUP() 141 len = write(self->thr_fd, thr_cmd_rm_loopback_0, sizeof(thr_cmd_rm_loopback_0)); in FIXTURE_TEARDOWN() 155 len = write(self->ctrl_fd, wrong_ctrl_cmd, i); in TEST_F() 164 len = write(self->ctrl_fd, ctrl_cmd_stop, sizeof(ctrl_cmd_stop)); in TEST_F() 167 len = write(self->ctrl_fd, ctrl_cmd_stop, sizeof(ctrl_cmd_stop) - 1); in TEST_F() 170 len = write(self->ctrl_fd, ctrl_cmd_start, sizeof(ctrl_cmd_start)); in TEST_F() 173 len = write(self->ctrl_fd, ctrl_cmd_start, sizeof(ctrl_cmd_start) - 1); in TEST_F() 176 len = write(self->ctrl_fd, ctrl_cmd_reset, sizeof(ctrl_cmd_reset)); in TEST_F() 179 len = write(self->ctrl_fd, ctrl_cmd_reset, sizeof(ctrl_cmd_reset) - 1); in TEST_F() 187 len = write(self->thr_fd, wrong_thr_cmd, i); in TEST_F() [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | hyperv_features.c | 27 bool write; member 49 if (msr->write) in guest_msr() 52 if (!vector && (!msr->write || !is_write_only_msr(msr->idx))) in guest_msr() 58 msr->write ? "WR" : "RD", msr->idx, ex_str(vector)); in guest_msr() 62 msr->write ? "WR" : "RD", msr->idx, ex_str(vector)); in guest_msr() 67 if (msr->write) in guest_msr() 169 msr->write = false; in guest_test_msrs_access() 174 msr->write = false; in guest_test_msrs_access() 184 msr->write = true; in guest_test_msrs_access() 190 msr->write = false; in guest_test_msrs_access() [all …]
|
| /linux/arch/loongarch/kernel/ |
| H A D | unaligned.c | 270 bool sign, write; in emulate_load_store_insn() local 284 write = false; in emulate_load_store_insn() 289 write = false; in emulate_load_store_insn() 294 write = true; in emulate_load_store_insn() 299 write = false; in emulate_load_store_insn() 304 write = false; in emulate_load_store_insn() 309 write = true; in emulate_load_store_insn() 314 write = false; in emulate_load_store_insn() 319 write = true; in emulate_load_store_insn() 325 write = false; in emulate_load_store_insn() [all …]
|
| /linux/arch/loongarch/mm/ |
| H A D | fault.c | 34 static int __kprobes spurious_fault(unsigned long write, unsigned long address) in spurious_fault() argument 62 return write ? pmd_write(pmdp_get(pmd)) : 1; in spurious_fault() 68 return write ? pte_write(ptep_get(pte)) : 1; in spurious_fault() 73 unsigned long write, unsigned long address) in no_context() argument 77 if (spurious_fault(write, address)) in no_context() 84 if (kfence_handle_page_fault(address, write, regs)) in no_context() 101 unsigned long write, unsigned long address) in do_out_of_memory() argument 108 no_context(regs, write, address); in do_out_of_memory() 115 unsigned long write, unsigned long address, int si_code) in do_sigbus() argument 119 no_context(regs, write, address); in do_sigbus() [all …]
|
| /linux/drivers/iio/dac/ |
| H A D | ad5446-spi.c | 57 .write = ad5446_write, 62 .write = ad5446_write, 67 .write = ad5446_write, 72 .write = ad5446_write, 77 .write = ad5446_write, 82 .write = ad5446_write, 87 .write = ad5446_write, 92 .write = ad5446_write, 97 .write = ad5446_write, 102 .write = ad5446_write, [all …]
|
| /linux/Documentation/driver-api/md/ |
| H A 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/tools/testing/selftests/bpf/ |
| H A D | generate_udp_fragments.py | 33 f.write("// SPDX-License-Identifier: GPL-2.0\n") 34 f.write("/* DO NOT EDIT -- this file is generated */\n") 35 f.write("\n") 36 f.write("#ifndef _IP_CHECK_DEFRAG_FRAGS_H\n") 37 f.write("#define _IP_CHECK_DEFRAG_FRAGS_H\n") 38 f.write("\n") 39 f.write("#include <stdint.h>\n") 40 f.write("\n") 50 f.write(f"static uint8_t frag{suffix}_{idx}[] = {{\n") 52 f.write(f"\t{chunk},\n") [all …]
|
| /linux/scripts/gdb/linux/ |
| H A D | vmalloc.py | 37 … gdb.write("0x%x-0x%x %10d vm_map_ram\n" % (vmap_area['va_start'], vmap_area['va_end'], 41 gdb.write("0x%x-0x%x %10d" % (v['addr'], v['addr'] + v['size'], v['size'])) 43 gdb.write(" %s" % str(v['caller']).split(' ')[-1]) 45 gdb.write(" pages=%d" % v['nr_pages']) 47 gdb.write(" phys=0x%x" % v['phys_addr']) 49 gdb.write(" ioremap") 51 gdb.write(" vmalloc") 53 gdb.write(" vmap") 55 gdb.write(" user") 57 gdb.write(" dma-coherent") [all …]
|
| H A D | page_owner.py | 27 gdb.write("Unrecognized command\n") 103 gdb.write("pfn is invalid\n") 110 gdb.write("page_ext is null\n") 114 gdb.write("page_owner flag is invalid\n") 118 gdb.write('page_owner tracks the page as allocated\n') 120 gdb.write('page_owner tracks the page as freed\n') 123 gdb.write("page_owner is not allocated\n") 126 …gdb.write("Page last allocated via order %d, gfp_mask: 0x%x, pid: %d, tgid: %d (%s), ts %u ns, fre… 130 gdb.write("PFN: %d, Flags: 0x%x\n" % (pfn, page['flags'])) 132 gdb.write('page_owner allocation stack trace missing\n') [all …]
|
| H A D | proc.py | 33 gdb.write(gdb.parse_and_eval("saved_command_line").string() + "\n") 48 gdb.write(gdb.parse_and_eval("(char *)linux_banner").string()) 77 gdb.write(" " * depth * 2 + 173 gdb.write("{:^18} {:^15} {:>9} {} {} options\n".format( 198 gdb.write("{} {} {} {} {} {}{}{} 0 0\n".format( 254 gdb.write("fdt_magic: 0x{:02X}\n".format(fdt_header[0])) 255 gdb.write("fdt_totalsize: 0x{:02X}\n".format(fdt_header[1])) 256 gdb.write("off_dt_struct: 0x{:02X}\n".format(fdt_header[2])) 257 gdb.write("off_dt_strings: 0x{:02X}\n".format(fdt_header[3])) 258 gdb.write("off_mem_rsvmap: 0x{:02X}\n".format(fdt_header[4])) [all …]
|
| /linux/drivers/rtc/ |
| H A D | rtc-ds1685.c | 161 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank0() 172 rtc->write(rtc, RTC_CTRL_A, in ds1685_rtc_switch_to_bank1() 193 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_begin_data_access() 219 rtc->write(rtc, RTC_CTRL_B, in ds1685_rtc_end_data_access() 358 rtc->write(rtc, RTC_CTRL_B, ctrlb); in ds1685_rtc_set_time() 359 rtc->write(rtc, RTC_SECS, seconds); in ds1685_rtc_set_time() 360 rtc->write(rtc, RTC_MINS, minutes); in ds1685_rtc_set_time() 361 rtc->write(rtc, RTC_HRS, hours); in ds1685_rtc_set_time() 362 rtc->write(rtc, RTC_WDAY, wday); in ds1685_rtc_set_time() 363 rtc->write(rtc, RTC_MDAY, mday); in ds1685_rtc_set_time() [all …]
|
| H A 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/tools/testing/selftests/namespaces/ |
| H A D | file_handle_test.c | 474 write(pipefd[1], "U", in TEST() 486 write(pipefd[1], "M", 1); /* Unable to set mappings */ in TEST() 492 write(setgroups_fd, "deny", 4); in TEST() 498 write(uid_map_fd, mapping, strlen(mapping)); in TEST() 502 write(gid_map_fd, mapping, strlen(mapping)); in TEST() 508 write(pipefd[1], "N", in TEST() 519 write(pipefd[1], "S", 1); /* Unexpected success */ in TEST() 523 write(pipefd[1], "P", 1); in TEST() 526 write(pipefd[1], "F", 1); in TEST() 603 write(pipefd[1], "U", in TEST() [all …]
|
| /linux/drivers/crypto/inside-secure/ |
| H A D | safexcel_ring.c | 28 cdr->write = cdr->base; in safexcel_init_ring_descriptors() 65 rdr->write = rdr->base; in safexcel_init_ring_descriptors() 82 void *ptr = ring->write; in safexcel_ring_next_cwptr() 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() 91 if (ring->write == ring->base_end) { in safexcel_ring_next_cwptr() 92 ring->write = ring->base; in safexcel_ring_next_cwptr() 95 ring->write += ring->offset; in safexcel_ring_next_cwptr() 106 void *ptr = ring->write; in safexcel_ring_next_rwptr() 109 *rtoken = ring->write + ring->shoffset; in safexcel_ring_next_rwptr() [all …]
|
| /linux/Documentation/admin-guide/perf/ |
| H A D | fujitsu_uncore_pmu.rst | 54 - write-count 55 This event counts the number of write requests to MAC (including zero write, 56 full write, partial write, write cancel). 57 - write-count-write 58 This event counts the number of full write requests to MAC (not including 59 zero write). 60 - write-count-pwrite 61 This event counts the number of partial write requests to MAC. 64 - memory-write-count 65 This event counts the number of full write requests from MAC to memory. [all …]
|
| /linux/tools/perf/pmu-events/ |
| H A D | jevents.py | 542 _args.output_file.write('};\n') 544 _args.output_file.write( 550 _args.output_file.write(event.to_c_string(metric=False)) 554 _args.output_file.write(f""" 561 _args.output_file.write(f"""{{ 567 _args.output_file.write('};\n\n') 598 _args.output_file.write('};\n') 600 _args.output_file.write( 606 _args.output_file.write(metric.to_c_string(metric=True)) 609 _args.output_file.write(f""" [all …]
|
| /linux/scripts/ |
| H A D | spdxcheck.py | 239 sys.stdout.write('%s: %d:%d %s: %s\n' %(fname, self.curline, col, pe.txt, tok)) 241 sys.stdout.write('%s: %d:0 %s\n' %(fname, self.curline, pe.txt)) 347 sys.stderr.write('stdin input "-" must be the only path argument\n') 363 sys.stderr.write('%s: %s\n' %(se.el.path, se.txt)) 365 sys.stderr.write('%s\n' %se.txt) 369 sys.stderr.write('FAIL: %s\n' %ex) 370 sys.stderr.write('%s\n' %traceback.format_exc()) 379 sys.stderr.write('FAIL: Reading exclude file %s: %s\n' %(fname, ex)) 395 sys.stderr.write('path %s does not exist\n' %p) 409 sys.stderr.write('\n') [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-bdi | 32 (read-write) 38 total write-back cache that relates to its current average 42 percentage of the write-back cache to a particular device. 45 (read-write) 52 total write-back cache that relates to its current average 56 of the write-back cache to a particular device. The value is 60 (read-write) 67 given percentage of the write-back cache. This is useful in 69 most of the write-back cache. For example in case of an NFS 73 (read-write) [all …]
|
| /linux/drivers/comedi/drivers/ni_routing/tools/ |
| H A D | convert_csv_to_c.py | 48 sys.stderr.write('Invalid register format: {}\n'.format(repr(value))) 49 sys.stderr.write( 259 f.write('\n'.join(s_chunks)) 260 f.write('\n') 263 f.write('# This is the segment that should be included in comedi/drivers/Makefile\n') 264 f.write('ni_routing-objs\t\t\t\t+= \\\n') 265 f.write('\n'.join(objs)) 266 f.write('\n') 270 f.write(self.extern_header.format( 285 f.write( self.to_listinit() ) [all …]
|
| /linux/Documentation/wmi/devices/ |
| H A D | msi-wmi-platform.rst | 26 [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]; 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")] 61 [WmiMethodId(7), Implemented, read, write, Description("Return the contents of a package")] 64 [WmiMethodId(8), Implemented, read, write, Description("Set the contents of a package")] [all …]
|
| /linux/Documentation/scsi/ |
| H A D | sd-parameters.rst | 9 Enable/disable drive write & read cache. 14 write through 0 0 off on 16 write back 1 0 on on 17 write back, no read (daft) 1 1 on off 20 To set cache type to "write back" and save this setting to the drive:: 22 # echo "write back" > cache_type 27 # echo "temporary write back" > cache_type
|
| /linux/Documentation/translations/zh_CN/scsi/ |
| H A D | sd-parameters.rst | 25 write through 0 0 关闭 开启 27 write back 1 0 开启 开启 28 write back, no read (daft) 1 1 开启 关闭 31 将缓存类型设置为“write back”并将该设置保存到驱动器:: 33 # echo "write back" > cache_type 38 # echo "temporary write back" > cache_type
|
| /linux/arch/parisc/kernel/ |
| H A 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/Documentation/driver-api/mmc/ |
| H A D | mmc-test.rst | 12 … aspects of the host controller and device interactions, such as read and write performance, data … 139 | 1 | Basic write | Performs a basic write operation of a | 145 | 3 | Basic write | Performs a basic write operation of a | 153 | 5 | Multi-block write | Performs a multi-block write operation of | 158 | 7 | Power of two block writes | Performs write operations with block sizes | 164 | 9 | Weird sized block writes | Performs write operations with varying | 171 | 11 | Badly aligned write | Performs write operations with buffers | 178 | 13 | Badly aligned multi-block write| same for multi-write | 182 | 15 | Proper xfer_size at write | intentionally create a broken transfer by | 190 | 17 | Proper xfer_size at write | same for 2 blocks | [all …]
|
| /linux/drivers/mtd/spi-nor/ |
| H A D | Kconfig | 28 prompt "Software write protection at boot" 34 This option disables the software write protection on any SPI 40 Don't use this if you intent to use the software write protection 47 power-up or a reset the flash is software write protected by 50 This option disables the software write protection for these kind 52 which have non-volatile write protection bits. 54 If the software write protection will be disabled depending on 61 bool "Keep software write protection as is" 63 If you select this option the software write protection of any 64 SPI flashes will not be changed. If your flash is software write [all …]
|