| /Linux-v5.4/drivers/block/drbd/ |
| D | drbd_state.c | 25 union drbd_state os; member 280 static void after_state_ch(struct drbd_device *device, union drbd_state os, 285 static enum drbd_state_rv is_valid_transition(union drbd_state os, union drbd_state ns); 286 static union drbd_state sanitize_state(struct drbd_device *device, union drbd_state os, 468 union drbd_state os, union drbd_state ns) in cl_wide_st_chg() argument 470 return (os.conn >= C_CONNECTED && ns.conn >= C_CONNECTED && in cl_wide_st_chg() 471 ((os.role != R_PRIMARY && ns.role == R_PRIMARY) || in cl_wide_st_chg() 472 (os.conn != C_STARTING_SYNC_T && ns.conn == C_STARTING_SYNC_T) || in cl_wide_st_chg() 473 (os.conn != C_STARTING_SYNC_S && ns.conn == C_STARTING_SYNC_S) || in cl_wide_st_chg() 474 (os.disk != D_FAILED && ns.disk == D_FAILED))) || in cl_wide_st_chg() [all …]
|
| /Linux-v5.4/drivers/net/fddi/skfp/ |
| D | hwmtm.c | 267 if (!(smc->os.hwm.descr_p = (union s_fp_descr volatile *) in mac_drv_init() 277 smc->os.hwm.mbuf_pool.mb_start=(SMbuf *)(&smc->os.hwm.mbuf_pool.mb[0]) ; in mac_drv_init() 280 if (!(smc->os.hwm.mbuf_pool.mb_start = (SMbuf *) mac_drv_get_space(smc, in mac_drv_init() 360 ds = (struct s_smt_fp_txd volatile *) ((char *)smc->os.hwm.descr_p + in init_txd_ring() 397 ds = (struct s_smt_fp_rxd volatile *) smc->os.hwm.descr_p ; in init_rxd_ring() 430 mb = smc->os.hwm.mbuf_pool.mb_start ; in init_fddi_driver() 431 smc->os.hwm.mbuf_pool.mb_free = (SMbuf *)NULL ; in init_fddi_driver() 453 smc->os.hwm.llc_rx_pipe = smc->os.hwm.llc_rx_tail = (SMbuf *)NULL ; in init_fddi_driver() 454 smc->os.hwm.txd_tx_pipe = smc->os.hwm.txd_tx_tail = NULL ; in init_fddi_driver() 455 smc->os.hwm.pass_SMT = smc->os.hwm.pass_NSA = smc->os.hwm.pass_DB = 0 ; in init_fddi_driver() [all …]
|
| D | skfddi.c | 261 smc->os.dev = dev; in skfp_init_one() 262 smc->os.bus_type = SK_BUS_TYPE_PCI; in skfp_init_one() 263 smc->os.pdev = *pdev; in skfp_init_one() 264 smc->os.QueueSkb = MAX_TX_QUEUE_LEN; in skfp_init_one() 265 smc->os.MaxFrameSize = MAX_FRAME_SIZE; in skfp_init_one() 266 smc->os.dev = dev; in skfp_init_one() 269 smc->os.ResetRequested = FALSE; in skfp_init_one() 270 skb_queue_head_init(&smc->os.SendSkbQueue); in skfp_init_one() 295 if (smc->os.SharedMemAddr) in skfp_init_one() 296 dma_free_coherent(&pdev->dev, smc->os.SharedMemSize, in skfp_init_one() [all …]
|
| /Linux-v5.4/tools/testing/selftests/tc-testing/ |
| D | tdc_config_local_template.py | 7 import os 9 ENVIR = os.environ.copy() 11 ENV_LD_LIBRARY_PATH = os.getenv('LD_LIBRARY_PATH', '') 12 ENV_OTHER_LIB = os.getenv('OTHER_LIB', '') 17 EXTRA_NAMES['SOME_BIN'] = os.path.join(os.getenv('OTHER_BIN', ''), 'some_bin')
|
| D | tdc.py | 11 import os 47 plugindir = os.getenv('TDC_PLUGIN_DIR', './plugins') 48 for dirpath, dirnames, filenames in os.walk(plugindir): 98 if os.path.isfile(pgpath): 527 if not os.path.isfile(NAMES['TC']): 640 if not os.path.isfile(ff): 643 flist.append(os.path.abspath(ff)) 649 for root, dirnames, filenames in os.walk(testdir): 651 candidate = os.path.abspath(os.path.join(root, filename)) 747 if os.getenv('SUDO_UID') is not None: [all …]
|
| /Linux-v5.4/scripts/ |
| D | gen_compile_commands.py | 13 import os 61 directory = args.directory or os.getcwd() 62 output = args.output or os.path.join(directory, _DEFAULT_OUTPUT) 63 directory = os.path.abspath(directory) 94 expected_path = os.path.join(cur_dir, relative_path) 95 if not os.path.exists(expected_path): 99 expected_path = os.path.join(cur_dir, relative_path) 100 if not os.path.exists(expected_path): 121 for dirpath, _, filenames in os.walk(directory): 125 filepath = os.path.join(dirpath, filename)
|
| D | bpf_helpers_doc.py | 11 import sys, os 399 script = os.path.abspath(sys.argv[0]) 400 linuxRoot = os.path.dirname(os.path.dirname(script)) 401 bpfh = os.path.join(linuxRoot, 'include/uapi/linux/bpf.h') 408 if (os.path.isfile(bpfh)):
|
| /Linux-v5.4/tools/power/x86/intel_pstate_tracer/ |
| D | intel_pstate_tracer.py | 29 import os 104 if os.path.exists(file_name): 125 if os.path.exists(file_name): 144 if os.path.exists(file_name): 161 if os.path.exists(file_name): 176 if os.path.exists('cpu.csv'): 353 if os.path.exists('cpu.csv'): 356 os.system('grep -m 1 common_cpu cpu.csv > cpu{:0>3}.csv'.format(index)) 357 os.system('grep CPU_{:0>3} cpu.csv >> cpu{:0>3}.csv'.format(index, index)) 362 uid = os.environ.get('SUDO_UID') [all …]
|
| /Linux-v5.4/drivers/staging/comedi/drivers/ni_routing/tools/ |
| D | convert_csv_to_c.py | 8 import os, sys, re 154 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) 245 sheet_filename = os.path.join(self.ITEMS_DIR,'{}.c'.format(S)) 262 with open(os.path.join(self.OUTPUT_DIR, sheet_filename), 'w') as f: 266 with open(os.path.join(self.OUTPUT_DIR, self.MKFILE_SEGMENTS), 'w') as f: 272 EXTERN_H = os.path.join(self.ITEMS_DIR, self.EXTERN_H) 273 with open(os.path.join(self.OUTPUT_DIR, EXTERN_H), 'w') as f: 282 filename=os.path.join(self.OUTPUT_DIR, self.SET_C) 285 os.makedirs(os.path.join(self.OUTPUT_DIR, self.ITEMS_DIR)) 336 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) [all …]
|
| D | make_blank_csv.py | 5 from os import path 6 import os, csv 15 os.makedirs(CSV_DIR)
|
| /Linux-v5.4/tools/perf/util/ |
| D | stat-display.c | 146 struct outstate *os = ctx; in new_line_std() local 148 os->newline = true; in new_line_std() 152 struct outstate *os) in do_new_line_std() argument 154 fputc('\n', os->fh); in do_new_line_std() 155 fputs(os->prefix, os->fh); in do_new_line_std() 156 aggr_printout(config, os->evsel, os->id, os->nr); in do_new_line_std() 158 fprintf(os->fh, " "); in do_new_line_std() 159 fprintf(os->fh, " "); in do_new_line_std() 166 struct outstate *os = ctx; in print_metric_std() local 167 FILE *out = os->fh; in print_metric_std() [all …]
|
| D | parse-regs-options.c | 17 char *s, *os = NULL, *p; in __parse_regs() local 38 s = os = strdup(str); in __parse_regs() 81 free(os); in __parse_regs()
|
| D | parse-branch-options.c | 47 char *os = NULL; in parse_branch_str() local 56 s = os = strdup(str); in parse_branch_str() 89 free(os); in parse_branch_str()
|
| /Linux-v5.4/scripts/kconfig/tests/ |
| D | conftest.py | 12 import os 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 36 self._test_dir = os.path.dirname(str(request.fspath)) 62 shutil.copyfile(os.path.join(self._test_dir, dot_config), 63 os.path.join(temp_dir, '.config')) 70 env=dict(os.environ, **extra_env)) 90 with open(os.path.join(temp_dir, out_file)) as f: 150 defconfig_path = os.path.join(self._test_dir, defconfig) 155 all_config_path = os.path.join(self._test_dir, all_config) 226 with open(os.path.join(self._test_dir, expected)) as f:
|
| /Linux-v5.4/Documentation/security/tpm/ |
| D | xen-tpmfront.rst | 24 mini-os to reduce memory and processor overhead. 26 This mini-os vTPM subsystem was built on top of the previous vTPM work done by 44 | mini-os/tpmback | 50 | mini-os/tpmfront | 55 | mini-os/tpmback | 61 | mini-os/tpm_tis | 77 * mini-os/tpmback: 78 Mini-os TPM backend driver. The Linux frontend driver 84 A mini-os stub domain that implements a vTPM. There is a 89 * mini-os/tpmfront: [all …]
|
| /Linux-v5.4/Documentation/sphinx/ |
| D | load_config.py | 4 import os 19 config_file = os.environ.get("SPHINX_CONF", None) 21 and os.path.normpath(namespace["__file__"]) != os.path.normpath(config_file) ): 22 config_file = os.path.abspath(config_file) 47 if os.path.isfile(config_file):
|
| D | kernel_include.py | 34 import os.path 62 path = os.path.realpath( 63 os.path.expandvars(self.arguments[0])) 66 if path.startswith(os.sep + "etc"): 88 source_dir = os.path.dirname(os.path.abspath(source)) 91 path = os.path.join(self.standard_include_path, path[1:-1]) 92 path = os.path.normpath(os.path.join(source_dir, path))
|
| /Linux-v5.4/tools/cgroup/ |
| D | iocost_coef_gen.py | 25 import os 64 devname = os.path.basename(devname).decode('utf-8').strip() 69 devname = os.path.basename(os.path.dirname(parents[0])) 70 rdev = os.stat(f'/dev/{devname}').st_rdev 76 if os.path.isfile(path) and os.stat(path).st_size == size: 127 devname = os.path.basename(args.testdev) 128 rdev = os.stat(f'/dev/{devname}').st_rdev
|
| /Linux-v5.4/net/ceph/ |
| D | ceph_fs.c | 15 __u32 os = layout->object_size; in ceph_file_layout_is_valid() local 20 if (!os || (os & (CEPH_MIN_STRIPE_UNIT-1))) in ceph_file_layout_is_valid() 23 if (os < su || os % su) in ceph_file_layout_is_valid()
|
| /Linux-v5.4/Documentation/ |
| D | conf.py | 16 import os 28 sys.path.insert(0, os.path.abspath('sphinx')) 427 for fn in os.listdir('.'): 428 doc = os.path.join(fn, "index") 429 if os.path.exists(doc + ".rst"):
|
| /Linux-v5.4/arch/arm/boot/dts/ |
| D | kirkwood-ib62x0.dts | 23 pmx_led_os_red: pmx-led-os-red { 31 pmx_led_os_green: pmx-led-os-green { 84 green-os { 85 label = "ib62x0:green:os"; 89 red-os { 90 label = "ib62x0:red:os";
|
| /Linux-v5.4/fs/ocfs2/ |
| D | journal.c | 1915 struct ocfs2_orphan_scan *os; in ocfs2_queue_orphan_scan() local 1919 os = &osb->osb_orphan_scan; in ocfs2_queue_orphan_scan() 1921 if (atomic_read(&os->os_state) == ORPHAN_SCAN_INACTIVE) in ocfs2_queue_orphan_scan() 1924 trace_ocfs2_queue_orphan_scan_begin(os->os_count, os->os_seqno, in ocfs2_queue_orphan_scan() 1925 atomic_read(&os->os_state)); in ocfs2_queue_orphan_scan() 1935 if (atomic_read(&os->os_state) == ORPHAN_SCAN_INACTIVE) in ocfs2_queue_orphan_scan() 1938 if (os->os_seqno != seqno) { in ocfs2_queue_orphan_scan() 1939 os->os_seqno = seqno; in ocfs2_queue_orphan_scan() 1951 os->os_count++; in ocfs2_queue_orphan_scan() 1952 os->os_scantime = ktime_get_seconds(); in ocfs2_queue_orphan_scan() [all …]
|
| /Linux-v5.4/tools/perf/Documentation/ |
| D | perf-kvm.txt | 6 perf-kvm - Tool to trace/measure kvm guest os 23 a performance counter profile of guest os in realtime 47 for use by perf report. As buildid is read from /sys/kernel/notes in os, then 80 Guest os root file system mount directory. Users mounts guest os 82 typically, sshfs. For example, start 2 guest os. The one's pid is 8888 89 Guest os /proc/kallsyms file copy. 'perf' kvm' reads it to get guest 90 kernel symbols. Users copy it out from guest os. 92 Guest os /proc/modules file copy. 'perf' kvm' reads it to get guest 93 kernel module information. Users copy it out from guest os. 95 Guest os kernel vmlinux.
|
| /Linux-v5.4/arch/ia64/scripts/ |
| D | unwcheck.py | 14 import os 22 readelf = os.getenv("READELF", "readelf") 40 for line in os.popen("%s -u %s" % (readelf, sys.argv[1])):
|
| /Linux-v5.4/scripts/gdb/linux/ |
| D | symbols.py | 15 import os 78 for root, dirs, files in os.walk(path): 88 if re.match(module_pattern, name) and os.path.exists(name): 167 self.module_paths = [os.path.expanduser(p) for p in arg.split()] 168 self.module_paths.append(os.getcwd())
|