| /external/ltp/testcases/kernel/device-drivers/zram/ |
| D | zram_lib.sh | 110 local sys_path="/sys/block/zram${i}/max_comp_streams" 111 if ! echo $max_s > $sys_path; then 112 tst_res TFAIL "failed to set '$max_s' to $sys_path" 115 local max_streams=$(cat $sys_path) 123 tst_res TINFO "$sys_path = '$max_streams'" 146 local sys_path="/sys/block/zram${i}/comp_algorithm" 147 if ! echo "$alg" > $sys_path; then 148 tst_res TFAIL "can't set '$alg' to $sys_path" 151 tst_res TINFO "$sys_path = '$alg'" 165 local sys_path="/sys/block/zram${i}/disksize" [all …]
|
| /external/linux-kselftest/tools/testing/selftests/zram/ |
| D | zram_lib.sh | 132 local sys_path="/sys/block/zram${i}/max_comp_streams" 133 echo $max_s > $sys_path || \ 134 echo "FAIL failed to set '$max_s' to $sys_path" 136 local max_streams=$(cat $sys_path) 142 echo "$sys_path = '$max_streams'" 157 local sys_path="/sys/block/zram${i}/comp_algorithm" 158 echo "$alg" > $sys_path || \ 159 echo "FAIL can't set '$alg' to $sys_path" 161 echo "$sys_path = '$alg'" 172 local sys_path="/sys/block/zram${i}/disksize" [all …]
|
| /external/linux-kselftest/tools/testing/selftests/firmware/ |
| D | fw_namespace.c | 39 static void trigger_fw(const char *fw_name, const char *sys_path) in trigger_fw() argument 43 fd = open(sys_path, O_WRONLY); in trigger_fw() 67 static bool test_fw_in_ns(const char *fw_name, const char *sys_path, bool block_fw_in_parent_ns) in test_fw_in_ns() argument 114 trigger_fw(fw_name, sys_path); in test_fw_in_ns() 122 char *sys_path; in main() local 131 sys_path = argv[1]; in main() 140 if (!test_fw_in_ns(fw_name, sys_path, false)) in main() 145 if (test_fw_in_ns(fw_name, sys_path, true)) in main()
|
| /external/mesa3d/src/compiler/clc/ |
| D | nir_load_libclc.c | 54 const char *sys_path; member 65 .sys_path = DYNAMIC_LIBCLC_PATH "spirv-mesa3d-.spv", 75 .sys_path = DYNAMIC_LIBCLC_PATH "spirv64-mesa3d-.spv", 111 if (clc->file->sys_path != NULL) { in open_clc_data() 112 int fd = open(clc->file->sys_path, O_RDONLY); in open_clc_data() 119 fprintf(stderr, "fstat failed on %s: %m\n", clc->file->sys_path); in open_clc_data() 126 _mesa_sha1_update(&ctx, clc->file->sys_path, strlen(clc->file->sys_path)); in open_clc_data() 190 if (clc->file->sys_path != NULL) { in map_clc_data() 222 if (clc->file->sys_path != NULL) { in close_clc_data()
|
| /external/libbrillo/brillo/udev/ |
| D | udev.cc | 51 const char* sys_path) { in CreateDeviceFromSysPath() argument 52 udev_device* device = udev_device_new_from_syspath(udev_, sys_path); in CreateDeviceFromSysPath() 59 udev_, sys_path); in CreateDeviceFromSysPath()
|
| D | udev_enumerate.cc | 123 bool UdevEnumerate::AddSysPath(const char* sys_path) { in AddSysPath() argument 124 int result = udev_enumerate_add_syspath(enumerate_, sys_path); in AddSysPath() 129 enumerate_, sys_path, result); in AddSysPath()
|
| D | udev_enumerate.h | 57 virtual bool AddSysPath(const char* sys_path);
|
| D | udev.h | 34 const char* sys_path);
|
| /external/python/cpython3/Lib/multiprocessing/ |
| D | spawn.py | 173 sys_path=sys.path.copy() 175 i = sys_path.index('') 179 sys_path[i] = process.ORIGINAL_DIR 183 sys_path=sys_path,
|
| D | forkserver.py | 168 def main(listener_fd, alive_r, preload, main_path=None, sys_path=None): argument 171 if sys_path is not None: 172 sys.path[:] = sys_path
|
| /external/grpc-grpc/src/python/grpcio_tests/tests/ |
| D | _loader.py | 36 for sys_path in sys.path: 37 if path.startswith(sys_path): 38 relative = path[len(sys_path) :]
|
| /external/python/cpython3/Lib/test/ |
| D | test_site.py | 70 self.sys_path = sys.path[:] 79 sys.path[:] = self.sys_path 464 self.sys_path = sys.path[:] 468 sys.path[:] = self.sys_path 690 sys_path = [] 695 sys_path.append(abs_path) 696 return sys_path 718 sys_path = self._calc_sys_path_for_underpth_nosite( 729 sys_path, 739 sys_path = self._calc_sys_path_for_underpth_nosite( [all …]
|
| /external/python/cpython3/Modules/ |
| D | main.c | 159 PyObject *sys_path; in pymain_sys_path_add_path0() local 162 sys_path = PyDict_GetItemWithError(sysdict, &_Py_ID(path)); in pymain_sys_path_add_path0() 163 if (sys_path == NULL && PyErr_Occurred()) { in pymain_sys_path_add_path0() 168 sys_path = NULL; in pymain_sys_path_add_path0() 170 if (sys_path == NULL) { in pymain_sys_path_add_path0() 175 if (PyList_Insert(sys_path, 0, path0)) { in pymain_sys_path_add_path0()
|
| /external/python/bumble/bumble/transport/ |
| D | pyusb.py | 391 def _find_device_by_path(sys_path: str) -> Optional[UsbDevice]: 393 bus_num, *port_parts = sys_path.split('-') 404 def _find_hub_by_device_path(sys_path: str) -> Optional[UsbDevice]: 406 hub_sys_path = sys_path.rsplit('.', 1)[0]
|
| /external/autotest/utils/frozen_chromite/lib/ |
| D | auto_updater.py | 392 sys_path = self.device.run( 395 return json.loads(sys_path) 400 sys_path = self._GetDevicePythonSysPath() 401 for p in sys_path: 409 'sys.path for storing packages: %s' % sys_path)
|
| /external/python/cpython3/Lib/test/test_doctest/ |
| D | test_doctest.py | 2887 self.sys_path = sys.path[:] 2897 sys.path[:] = self.sys_path
|
| /external/autotest/client/cros/ |
| D | cros_disks.py | 408 sys_path = '/sys/devices/virtual/block/' + os.path.basename(path) 409 self.interface.AddDeviceToAllowlist(sys_path) 417 sys_path = '/sys/devices/virtual/block/' + os.path.basename(path) 418 self.interface.RemoveDeviceFromAllowlist(sys_path)
|
| /external/libusb/libusb/os/ |
| D | darwin_usb.h | 113 char sys_path[21]; member
|
| /external/autotest/client/cros/ethernet/network_EthernetStressPlug/ |
| D | network_EthernetStressPlug.py | 105 if dev.sys_path.endswith('net/%s' % device): 106 return dev.sys_path
|
| /external/musl/ldso/ |
| D | dynlink.c | 143 static char *env_path, *sys_path; variable 1171 if (!sys_path) { in load_library() 1195 if ((sys_path = malloc(n+1))) in load_library() 1196 sys_path[n] = 0; in load_library() 1197 if (!sys_path || read_loop(fd, sys_path, n)<0) { in load_library() 1198 free(sys_path); in load_library() 1199 sys_path = ""; in load_library() 1203 sys_path = ""; in load_library() 1206 if (!sys_path) sys_path = "/lib:/usr/local/lib:/usr/lib"; in load_library() 1207 fd = path_open_library(name, sys_path, buf, sizeof buf); in load_library()
|
| /external/grpc-grpc/tools/distrib/ |
| D | fix_build_deps.py | 624 for sys_path in [ 635 if hdr.startswith(sys_path + "/"):
|
| /external/rust/android-crates-io/crates/grpcio-sys/grpc/tools/distrib/ |
| D | fix_build_deps.py | 657 for sys_path in [ 668 if hdr.startswith(sys_path + '/'):
|
| /external/ltp/testcases/kernel/device-drivers/acpi/ |
| D | ltp_acpi_cmds.c | 563 static ssize_t sys_path(struct device *dev, in sys_path() function 571 static DEVICE_ATTR(path, S_IRUSR, sys_path, NULL);
|
| /external/trusty/musl/ldso/ |
| D | dynlink.c | 122 static char *env_path, *sys_path; variable 1026 if (!sys_path) { in load_library() 1048 if (getdelim(&sys_path, (size_t[1]){0}, 0, f) <= 0) { in load_library() 1049 free(sys_path); in load_library() 1050 sys_path = ""; in load_library() 1054 sys_path = ""; in load_library() 1057 if (!sys_path) sys_path = "/lib:/usr/local/lib:/usr/lib"; in load_library() 1058 fd = path_open(name, sys_path, buf, sizeof buf); in load_library()
|
| /external/rust/android-crates-io/crates/serialport/src/posix/ |
| D | enumerate.rs | 601 let sys_path = Path::new("/sys/class/tty/"); localVariable 603 for path in sys_path.read_dir().expect("/sys/class/tty/ doesn't exist on this system") {
|