| /linux/tools/testing/selftests/damon/ |
| H A D | _damon_sysfs.py | 60 return os.path.join(self.scheme.sysfs_dir(), 'access_pattern') 64 os.path.join(self.sysfs_dir(), 'sz', 'min'), self.size[0]) 68 os.path.join(self.sysfs_dir(), 'sz', 'max'), self.size[1]) 71 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'min'), 75 err = write_file(os.path.join(self.sysfs_dir(), 'nr_accesses', 'max'), 80 os.path.join(self.sysfs_dir(), 'age', 'min'), self.age[0]) 84 os.path.join(self.sysfs_dir(), 'age', 'max'), self.age[1]) 108 return os.path.join(self.quota.sysfs_dir(), 'goals', '%d' % self.idx) 111 err = write_file(os.path.join(self.sysfs_dir(), 'target_metric'), 115 err = write_file(os.path.join(self.sysfs_dir(), 'target_value'), [all …]
|
| /linux/drivers/comedi/drivers/ni_routing/tools/ |
| H A D | convert_csv_to_c.py | 56 lines = '\n'.join(lines) 113 return '\n'.join(lines) 152 """.format(filename=SET_C, extern_h=os.path.join(ITEMS_DIR, EXTERN_H)) 241 sheet_filename = os.path.join(self.ITEMS_DIR,'{}.c'.format(S)) 258 with open(os.path.join(self.OUTPUT_DIR, sheet_filename), 'w') as f: 259 f.write('\n'.join(s_chunks)) 262 with open(os.path.join(self.OUTPUT_DIR, self.MKFILE_SEGMENTS), 'w') as f: 265 f.write('\n'.join(objs)) 268 EXTERN_H = os.path.join(self.ITEMS_DIR, self.EXTERN_H) 269 with open(os.path.join(self.OUTPUT_DIR, EXTERN_H), 'w') as f: [all …]
|
| H A D | convert_py_to_csv.py | 34 csv_fname = path.join(CSV_DIR, name + '.csv') 54 os.makedirs(path.join(CSV_DIR,d)) 59 create_csv(path.join('route_values',family), dst_src_map, iter_src_values) 62 create_csv(path.join('device_routes',device), dst_src_map, iter_src)
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/ |
| H A D | vmmnv50.c | 147 struct nvkm_vmm_join *join; in nv50_vmm_pgd_pde() local 154 list_for_each_entry(join, &vmm->join, head) { in nv50_vmm_pgd_pde() 155 nvkm_kmap(join->inst); in nv50_vmm_pgd_pde() 156 nvkm_wo64(join->inst, pdeo, data); in nv50_vmm_pgd_pde() 157 nvkm_done(join->inst); in nv50_vmm_pgd_pde() 329 struct nvkm_vmm_join *join; in nv50_vmm_part() local 331 list_for_each_entry(join, &vmm->join, head) { in nv50_vmm_part() 332 if (join->inst == inst) { in nv50_vmm_part() 333 list_del(&join->head); in nv50_vmm_part() 334 kfree(join); in nv50_vmm_part() [all …]
|
| H A D | vmmgk20a.c | 38 .join = gf100_vmm_join, 53 .join = gf100_vmm_join,
|
| /linux/scripts/ |
| H A D | rustdoc_test_gen.rs | 62 let joined_potential_components = potential_components.join("_") + ".rs"; in find_real_path() 64 .join("rust/kernel") in find_real_path() 65 .join(prefix) in find_real_path() 66 .join(&joined_potential_components) in find_real_path() 72 .join(prefix) in find_real_path() 73 .join(joined_potential_components), in find_real_path() 81 let prefix = prefix.join(components_prefix.join("_")); in find_real_path() 82 if srctree.join("rust/kernel").join(&prefix).is_dir() { in find_real_path()
|
| H A D | sphinx-build-wrapper | 62 sys.path.insert(0, os.path.join(SRC_DIR, LIB_DIR)) 74 return ".".join([str(x) for x in version]) 130 config_path = os.path.join(self.srctree, ".config") 146 path = os.path.join(self.srctree, path) 208 self.builddir = self.get_path(os.path.join(self.obj, "output"), 225 bin_dir = os.path.join(venv, "bin") 226 if os.path.isfile(os.path.join(bin_dir, "activate")): 272 print(" ".join(cmd)) 289 css = os.path.join(self.srctree, css) 291 static_dir = os.path.join(output_dir, "_static") [all …]
|
| H A D | checktransupdate.py | 40 return "/".join(opaths) 171 linux_path = os.path.join(script_path, "..") 189 ab_item = os.path.join(pwd, item) 235 linux_path = os.path.join(script_path, "..") 277 os.path.join(linux_path, "Documentation"), ["translations", "output"], "rst" 289 new_file = os.sep.join(new_path_parts)
|
| H A D | test_doc_build.py | 215 self.log("$ " + " ".join(cmd), verbose) 233 cmd=" ".join(cmd), 270 ver = ".".join(map(str, cur_ver)) 288 pip = os.path.join(venv_dir, "bin/pip") 312 bin_dir = os.path.join(venv_dir, "bin") 409 DEFAULT_VERS += "\n - ".join(map(lambda v: f"{v[0]}.{v[1]}.{v[2]}",
|
| /linux/tools/testing/selftests/devices/probe/ |
| H A D | test_discoverable_devices.py | 26 sys.path.append(os.path.join(this_dir, "../../kselftest/")) 44 pci_controllers.append(os.path.join(path, d)) 64 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 80 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 89 with open(os.path.join(sysfs_dev_dir, "firmware_node", "uid")) as f: 95 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 101 with open(os.path.join(sysfs_dev_dir, "uevent")) as f: 147 dirname = os.path.join( 156 path_glob = os.path.join(path_glob, pci_dev_sysfs_fmt.format(dev_func)) 158 dir_list = glob.glob(os.path.join(parent_sysfs, path_glob)) [all …]
|
| /linux/drivers/net/wireless/ti/wl1251/ |
| H A D | cmd.c | 232 struct cmd_join *join; in wl1251_cmd_join() local 236 join = kzalloc(sizeof(*join), GFP_KERNEL); in wl1251_cmd_join() 237 if (!join) in wl1251_cmd_join() 245 bssid = (u8 *) &join->bssid_lsb; in wl1251_cmd_join() 249 join->rx_config_options = wl->rx_config; in wl1251_cmd_join() 250 join->rx_filter_options = wl->rx_filter; in wl1251_cmd_join() 252 join->basic_rate_set = RATE_MASK_1MBPS | RATE_MASK_2MBPS | in wl1251_cmd_join() 255 join->beacon_interval = beacon_interval; in wl1251_cmd_join() 256 join->dtim_interval = dtim_interval; in wl1251_cmd_join() 257 join->bss_type = bss_type; in wl1251_cmd_join() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_bpftool_synctypes.py | 10 LINUX_ROOT = os.path.abspath(os.path.join(__file__, 13 os.path.join(LINUX_ROOT, 'tools/bpf/bpftool')) 15 os.path.join(BPFTOOL_DIR, 'bash-completion')) 17 os.path.join(BPFTOOL_DIR, 'Documentation')) 19 os.path.join(LINUX_ROOT, 'tools/include')) 304 filename = os.path.join(BPFTOOL_DIR, 'main.h') 330 filename = os.path.join(BPFTOOL_DOC_DIR, 'substitutions.rst') 353 filename = os.path.join(BPFTOOL_DIR, 'prog.c') 366 filename = os.path.join(BPFTOOL_DIR, 'map.c') 375 filename = os.path.join(BPFTOOL_DIR, 'cgroup.c') [all …]
|
| /linux/tools/testing/kunit/ |
| H A D | kunit_kernel.py | 33 QEMU_CONFIGS_DIR = os.path.join(ABS_TOOL_PATH, 'qemu_configs') 67 print('Populating config with:\n$', ' '.join(command)) 82 print('Building with:\n$', ' '.join(command)) 121 kernel_path = os.path.join(build_dir, self._kernel_path) 126 '-append', ' '.join(params + [self._kernel_command_line]), 134 print('Running tests with:\n$', ' '.join(shlex.quote(arg) for arg in qemu_command)) 154 linux_bin = os.path.join(build_dir, 'linux') 156 print('Running tests with:\n$', linux_bin, ' '.join(shlex.quote(arg) for arg in params)) 164 return os.path.join(build_dir, KCONFIG_PATH) 167 return os.path.join(build_dir, KUNITCONFIG_PATH) [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | dot2k.py | 46 return '\n'.join(buff) 52 return '\n'.join(buff) 58 return '\n'.join(buff) 84 return '\n'.join(buff) 112 tp_proto_c = ", ".join([a+b for a,b in tp_args]) 113 tp_args_c = ", ".join([b for a,b in tp_args]) 116 return '\n'.join(buff)
|
| H A D | generator.py | 19 os.path.join(os.path.dirname(__file__), "templates", self.template_dir) 34 kernel_path = os.path.join("../..", self.rv_dir) 43 kernel_path = os.path.join("/lib/modules/%s/build" % platform.release(), self.rv_dir) 47 if os.path.exists(os.path.join(kernel_path, "rv_trace.h")): 66 path = os.path.join(self.abs_template_dir, file) 71 path = os.path.join(self.abs_template_dir, "..", file) 127 return '\n'.join(buff) 142 file_to_patch = os.path.join(self.rv_dir, file) 199 path = os.path.join(self.rv_dir, "monitors", path) 220 path = os.path.join(self.rv_dir, "monitors", path)
|
| /linux/Documentation/sphinx/ |
| H A D | kfigure.py | 257 src_fname = path.join(translator.builder.srcdir, img_node['uri']) 259 src_fname = path.join(translator.builder.outdir, img_node['uri']) 274 dst_fname = path.join(translator.builder.outdir, fname + '.pdf') 280 dst_fname = path.join( 284 img_node['uri'] = path.join( 287 '*': path.join(translator.builder.imgpath, fname + '.svg')} 304 dst_fname = path.join(translator.builder.outdir, fname + '.pdf') 323 svg_fname = path.join(translator.builder.outdir, fname + '.svg') 362 "Error #%d when calling: %s" % (exit_code, " ".join(cmd))) 396 (exit_code, " ".join(cmd))) [all …]
|
| H A D | kernel_include.py | 98 sys.path.insert(0, os.path.join(srctree, "tools/docs/lib")) 181 rawtext = '\n'.join(lines[startline:endline]) 221 exceptions_file = os.path.join(source_dir, self.options['exception-file']) 329 src_path = os.path.join(srctree, path) 338 abs_full_path = os.path.abspath(os.path.join(base, path)) 365 path = os.path.join(self.standard_include_path, path[1:-1]) 366 path = os.path.normpath(os.path.join(source_dir, path))
|
| H A D | kernel_abi.py | 46 sys.path.insert(0, os.path.join(srctree, "scripts/lib/abi")) 53 path = os.path.join(srctree, "Documentation/ABI") 150 fname = os.path.join(srctree, f)
|
| /linux/scripts/kconfig/tests/ |
| H A D | conftest.py | 18 CONF_PATH = os.path.abspath(os.path.join('scripts', 'kconfig', 'conf')) 66 shutil.copyfile(os.path.join(self._test_dir, dot_config), 67 os.path.join(temp_dir, '.config')) 109 with open(os.path.join(temp_dir, out_file)) as f: 119 print("[command]\n{}\n".format(' '.join(command))) 169 defconfig_path = os.path.join(self._test_dir, defconfig) 174 all_config_path = os.path.join(self._test_dir, all_config) 249 with open(os.path.join(self._test_dir, expected)) as f:
|
| /linux/tools/net/ynl/pyynl/lib/ |
| H A D | doc_generator.py | 103 return self.headroom(level) + "[" + ", ".join(self.inline(i) for i in list_) + "]" 123 return "\n".join(lines) 133 return "\n".join(lines) 156 return "\n".join(lines) 173 return "\n".join(lines) 183 return "\n".join(lines) 224 return "\n".join(lines) 251 return "\n".join(lines) 280 return "\n".join(lines) 320 return "\n".join(lines) [all …]
|
| /linux/tools/testing/selftests/drivers/net/ |
| H A D | netpoll_basic.py | 141 random_suffix = "".join(random.choices(string.ascii_lowercase + string.digits, k=8)) 258 BPF_THREAD.join() 261 def bpftrace_any_hit(join: bool) -> bool: 267 if join: 269 BPF_THREAD.join() 291 if bpftrace_any_hit(join=True): 304 if not BPF_THREAD.is_alive() or bpftrace_any_hit(join=False):
|
| /linux/Documentation/ |
| H A D | conf.py | 75 full = os.path.join(doctree, p) 85 full = os.path.join(doctree, p) 100 if os.path.exists(os.path.join(app.srcdir, fname + ".rst")): 110 fname = os.path.join(doc, "index") 111 if not os.path.exists(os.path.join(app.srcdir, fname + ".rst")):
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | tdc_helper.py | 37 print(curcase['id'] + ': (' + ', '.join(curcase['category']) + ") " + curcase['name']) 44 print(", ".join(str(s) for s in categories)) 58 print("\n".join(str(s) for s in items))
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_syncmap.c | 298 struct i915_syncmap *join; in igt_syncmap_join_above() local 304 join = sync->parent; in igt_syncmap_join_above() 305 if (!join) /* very first insert will have no parents */ in igt_syncmap_join_above() 308 if (!join->height) { in igt_syncmap_join_above() 314 if (hweight32(join->bitmap) != 2) { in igt_syncmap_join_above() 316 join->bitmap, hweight32(join->bitmap)); in igt_syncmap_join_above() 321 if (__sync_child(join)[__sync_branch_idx(join, context)] != sync) { in igt_syncmap_join_above() local
|
| /linux/scripts/clang-tools/ |
| H A D | gen_compile_commands.py | 86 exclude_dirs = [ os.path.join(directory, d) for d in _EXCLUDE_DIRS ] 96 yield os.path.join(dirpath, filename) 109 return os.path.join(dir, '.' + base + '.cmd') 176 abs_path = os.path.realpath(os.path.join(root_directory, file_path))
|