Home
last modified time | relevance | path

Searched refs:sys_path (Results 1 – 24 of 24) sorted by relevance

/third_party/ltp/testcases/kernel/device-drivers/zram/
Dzram_lib.sh111 local sys_path="/sys/block/zram${i}/max_comp_streams"
112 echo $max_s > $sys_path || \
113 tst_brk TFAIL "failed to set '$max_s' to $sys_path"
114 local max_streams=$(cat $sys_path)
120 tst_res TINFO "$sys_path = '$max_streams'"
143 local sys_path="/sys/block/zram${i}/comp_algorithm"
144 echo "$alg" > $sys_path || \
145 tst_brk TFAIL "can't set '$alg' to $sys_path"
146 tst_res TINFO "$sys_path = '$alg'"
160 local sys_path="/sys/block/zram${i}/disksize"
[all …]
/third_party/mesa3d/src/compiler/spirv/
Dnir_load_libclc.c53 const char *sys_path; member
64 .sys_path = DYNAMIC_LIBCLC_PATH "spirv-mesa3d-.spv",
74 .sys_path = DYNAMIC_LIBCLC_PATH "spirv64-mesa3d-.spv",
110 if (clc->file->sys_path != NULL) { in open_clc_data()
111 int fd = open(clc->file->sys_path, O_RDONLY); in open_clc_data()
118 fprintf(stderr, "fstat failed on %s: %m\n", clc->file->sys_path); in open_clc_data()
125 _mesa_sha1_update(&ctx, clc->file->sys_path, strlen(clc->file->sys_path)); in open_clc_data()
185 if (clc->file->sys_path != NULL) { in map_clc_data()
217 if (clc->file->sys_path != NULL) { in close_clc_data()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/
Dpython_adapter.cc38 py::list sys_path = sys.attr("path"); in SetPythonPath() local
42 for (size_t i = 0; i < sys_path.size(); i++) { in SetPythonPath()
43 std::string path_str = py::cast<std::string>(sys_path[i]); in SetPythonPath()
49 (void)sys_path.attr("append")(path.c_str()); in SetPythonPath()
/third_party/python/Lib/multiprocessing/
Dspawn.py163 sys_path=sys.path.copy()
165 i = sys_path.index('')
169 sys_path[i] = process.ORIGINAL_DIR
173 sys_path=sys_path,
Dforkserver.py167 def main(listener_fd, alive_r, preload, main_path=None, sys_path=None): argument
/third_party/python/Modules/
Dmain.c161 PyObject *sys_path; in pymain_sys_path_add_path0() local
164 sys_path = _PyDict_GetItemIdWithError(sysdict, &PyId_path); in pymain_sys_path_add_path0()
165 if (sys_path == NULL && PyErr_Occurred()) { in pymain_sys_path_add_path0()
170 sys_path = NULL; in pymain_sys_path_add_path0()
172 if (sys_path == NULL) { in pymain_sys_path_add_path0()
177 if (PyList_Insert(sys_path, 0, path0)) { in pymain_sys_path_add_path0()
/third_party/python/Python/
Dpathconfig.c278 const wchar_t *sys_path = pathconfig->module_search_path; in config_init_module_search_paths() local
281 const wchar_t *p = wcschr(sys_path, delim); in config_init_module_search_paths()
283 p = sys_path + wcslen(sys_path); /* End of string */ in config_init_module_search_paths()
286 size_t path_len = (p - sys_path); in config_init_module_search_paths()
291 memcpy(path, sys_path, path_len * sizeof(wchar_t)); in config_init_module_search_paths()
303 sys_path = p + 1; in config_init_module_search_paths()
Dinitconfig.c3041 PyObject *sys_path = PySys_GetObject("path"); /* borrowed reference */ in _Py_DumpPathConfig() local
3042 if (sys_path != NULL && PyList_Check(sys_path)) { in _Py_DumpPathConfig()
3044 Py_ssize_t len = PyList_GET_SIZE(sys_path); in _Py_DumpPathConfig()
3046 PyObject *path = PyList_GET_ITEM(sys_path, i); in _Py_DumpPathConfig()
Dimport.c1489 PyObject *sys_path = PySys_GetObject("path"); in import_find_and_load() local
1493 abs_name, Py_None, sys_path ? sys_path : Py_None, in import_find_and_load()
Dsysmodule.c3186 PyObject *sys_path = sys_get_object_id(tstate, &PyId_path); in PySys_SetArgvEx() local
3187 if (sys_path != NULL) { in PySys_SetArgvEx()
3188 if (PyList_Insert(sys_path, 0, path0) < 0) { in PySys_SetArgvEx()
/third_party/python/Lib/test/
Dtest_site.py68 self.sys_path = sys.path[:]
77 sys.path[:] = self.sys_path
408 self.sys_path = sys.path[:]
412 sys.path[:] = self.sys_path
585 sys_path = []
590 sys_path.append(abs_path)
591 return sys_path
603 sys_path = self._calc_sys_path_for_underpth_nosite(
617 sys_path,
Dtest_doctest.py2714 self.sys_path = sys.path[:]
2724 sys.path[:] = self.sys_path
Dtest_sysconfig.py29 self.sys_path = sys.path[:]
56 sys.path[:] = self.sys_path
/third_party/python/Lib/distutils/command/
Dinstall.py597 sys_path = map(os.path.normpath, sys.path)
598 sys_path = map(os.path.normcase, sys_path)
602 install_lib not in sys_path):
/third_party/gstreamer/gstplugins_good/sys/v4l2/
Dv4l2-utils.h69 const gchar *sys_path; member
Dv4l2-utils.c84 it->parent.sys_path = g_udev_device_get_sysfs_path (it->device); in gst_v4l2_iterator_next()
/third_party/libusb/libusb/os/
Ddarwin_usb.h162 char sys_path[21]; member
Ddarwin_usb.c1070 snprintf(new_device->sys_path, 20, "%03i-%04x-%04x-%02x-%02x", new_device->address, in darwin_get_cached_device()
1157 dev->port_number, (void *) dev->parent_dev, priv->dev->sys_path); in process_new_device()
/third_party/musl/porting/liteos_a/user_debug/ldso/
Ddynlink.c122 static char *env_path, *sys_path; variable
1059 if (!sys_path) { in load_library()
1081 if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) { in load_library()
1082 free(sys_path); in load_library()
1083 sys_path = ""; in load_library()
1087 sys_path = ""; in load_library()
1090 if (!sys_path || sys_path[0] == 0) sys_path = "/usr/lib:/lib:/usr/local/lib"; in load_library()
1091 fd = path_open(name, sys_path, buf, sizeof buf); in load_library()
/third_party/musl/porting/liteos_a/user/ldso/
Ddynlink.c122 static char *env_path, *sys_path; variable
1059 if (!sys_path) { in load_library()
1081 if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) { in load_library()
1082 free(sys_path); in load_library()
1083 sys_path = ""; in load_library()
1087 sys_path = ""; in load_library()
1090 if (!sys_path || sys_path[0] == 0) sys_path = "/usr/lib:/lib:/usr/local/lib"; in load_library()
1091 fd = path_open(name, sys_path, buf, sizeof buf); in load_library()
/third_party/ltp/testcases/kernel/device-drivers/acpi/
Dltp_acpi_cmds.c563 static ssize_t sys_path(struct device *dev, in sys_path() function
571 static DEVICE_ATTR(path, S_IRUSR, sys_path, NULL);
/third_party/musl/ldso/
Ddynlink.c124 static char *env_path, *sys_path; variable
1046 if (!sys_path) { in load_library()
1068 if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) { in load_library()
1069 free(sys_path); in load_library()
1070 sys_path = ""; in load_library()
1074 sys_path = ""; in load_library()
1077 if (!sys_path) sys_path = "/lib:/usr/local/lib:/usr/lib"; in load_library()
1078 fd = path_open(name, sys_path, buf, sizeof buf); in load_library()
/third_party/musl/porting/linux/user/ldso/
Ddynlink.c206 static char *env_path, *sys_path; variable
293 ns_set_lib_paths(default_ns, sys_path); in init_default_namespace()
302 sys_path, env_path); in init_default_namespace()
394 if (!sys_path) get_sys_path(conf); in init_namespace()
401 if (!sys_path) get_sys_path(conf); in init_namespace()
1685 sys_path = conf->get_sys_paths(); in get_sys_path()
1689 sys_path = conf->get_asan_sys_paths(); in get_sys_path()
1691 if (!sys_path) { in get_sys_path()
1692 sys_path = sys_path_default; in get_sys_path()
1694 size_t newlen = strlen(sys_path) + strlen(sys_path_default) + 2; in get_sys_path()
[all …]
/third_party/python/Lib/test/test_import/
D__init__.py623 self.sys_path = sys.path[:]
632 sys.path[:] = self.sys_path