Home
last modified time | relevance | path

Searched refs:dev_path (Results 1 – 25 of 36) sorted by relevance

12

/external/ltp/lib/
Dtst_device.c46 static char dev_path[1024]; variable
62 snprintf(dev_path, sizeof(dev_path), dev_variants[i], dev); in set_dev_path()
64 if (stat(dev_path, &st) == 0 && S_ISBLK(st.st_mode)) in set_dev_path()
84 tst_resm(TINFO, "Found free device '%s'", dev_path); in find_free_loopdev()
112 dev_fd = open(dev_path, O_RDONLY); in find_free_loopdev()
118 tst_resm(TINFO, "Device '%s' in use", dev_path); in find_free_loopdev()
122 tst_resm(TINFO, "Found free device '%s'", dev_path); in find_free_loopdev()
280 if (attach_device(dev_path, DEV_FILE)) in tst_acquire_device__()
285 return dev_path; in tst_acquire_device__()
/external/autotest/server/site_tests/firmware_Cr50GetName/
Dcontrol20 @param dev_path: local path for the dev image
33 dev_path = args_dict.get("dev_path", "")
36 iterations=iterations, dev_path=dev_path, full_args=args_dict)
Dfirmware_Cr50GetName.py27 def initialize(self, host, cmdline_args, dev_path='', full_args={}): argument
30 full_args, restore_cr50_state=True, cr50_dev_path=dev_path)
/external/autotest/server/site_tests/firmware_Cr50SetBoardId/
Dcontrol20 @param dev_path: local path for the dev image
33 dev_path = args_dict.get("dev_path", "")
36 full_args=args_dict, iterations=iterations, dev_path=dev_path)
Dfirmware_Cr50SetBoardId.py52 def initialize(self, host, cmdline_args, full_args, dev_path='', bid=''): argument
55 full_args, restore_cr50_state=True, cr50_dev_path=dev_path)
/external/rootdev/
Drootdev.c346 const char *dev_path) { in rootdev_get_path() argument
349 if (!dev_path) in rootdev_get_path()
350 dev_path = kDefaultDevPath; in rootdev_get_path()
355 path_len = snprintf(path, size, "%s/%s", dev_path, device); in rootdev_get_path()
356 if (path_len != strlen(dev_path) + 1 + strlen(device)) in rootdev_get_path()
370 const char *search, const char *dev_path) { in rootdev_wrapper() argument
375 if (!dev_path) in rootdev_wrapper()
376 dev_path = kDefaultDevPath; in rootdev_wrapper()
398 res = rootdev_get_path(path, size, devname, dev_path); in rootdev_wrapper()
Drootdev.h40 const char *search, const char *dev_path);
89 const char *dev_path);
/external/autotest/client/site_tests/security_DeviceJail_Lockdown/
Dsecurity_DeviceJail_Lockdown.py60 dev_path, dev_intf = self._find_device_with_interface()
61 if not dev_path:
63 logging.info('Using device %s, interface %d', dev_path, dev_intf)
65 with device_jail_utils.JailDevice(dev_path) as jail:
/external/libkmsxx/utils/
Dkmsblank.cpp30 string dev_path = "/dev/dri/card0"; in main() local
36 Option("|device=", [&dev_path](string s) in main()
38 dev_path = s; in main()
62 Card card(dev_path); in main()
Dkmsview.cpp41 string dev_path = "/dev/dri/card0"; in main() local
49 Option("|device=", [&dev_path](string s) in main()
51 dev_path = s; in main()
87 Card card(dev_path); in main()
/external/autotest/server/site_tests/firmware_Cr50BID/
Dcontrol34 @param dev_path: local path for the dev image
54 dev_path = args_dict.get("dev_path", "")
60 iterations=iterations, dev_path=dev_path, bid_path=bid_path,
Dfirmware_Cr50BID.py118 def initialize(self, host, cmdline_args, dev_path='', bid_path='', argument
123 cr50_dev_path=dev_path)
131 self.dev_path = self.get_saved_cr50_dev_path()
405 self.cr50_update(self.dev_path)
/external/libxcam/xcore/
Ddrm_display.cpp124 char dev_path [32]; in open_drivers() local
128 sprintf (dev_path, "%s%d", base_path, base_id + i); in open_drivers()
129 if (access (dev_path, F_OK) != 0) in open_drivers()
132 fd = open_driver (dev_path); in open_drivers()
141 DrmDisplay::open_driver (const char *dev_path) in open_driver() argument
143 XCAM_ASSERT (dev_path); in open_driver()
145 int fd = open (dev_path, O_RDWR); in open_driver()
147 XCAM_LOG_ERROR ("failed to open %s", dev_path); in open_driver()
151 if (!strncmp (dev_path, "/dev/dri/card", 13)) { in open_driver()
152 if (!is_authenticated (fd, dev_path)) { in open_driver()
/external/autotest/server/site_tests/firmware_Cr50Update/
Dcontrol41 If dev_path is not specified, then the test will get the cr50 devids and
48 @param dev_path: the location of the dev image. Must be built with CR50_DEV=1
72 dev_path = args_dict.get("dev_path", "")
81 old_release_ver=old_release_ver, dev_path=dev_path,
Dcontrol.post_install42 If dev_path is not specified, then the test will get the cr50 devids and
49 @param dev_path: the location of the dev image. Must be built with CR50_DEV=1
73 dev_path = args_dict.get("dev_path", "")
81 old_release_ver=old_release_ver, dev_path=dev_path,
Dfirmware_Cr50Update.py37 old_release_path="", old_release_ver="", dev_path="", argument
43 cr50_dev_path=dev_path)
70 self.add_image_to_update_order(self.DEV_NAME, dev_path)
/external/autotest/client/site_tests/security_DeviceJail_Detach/
Dsecurity_DeviceJail_Detach.py57 dev_path = device.device_node
59 logging.info('Found device %s', dev_path)
61 with device_jail_utils.JailDevice(dev_path) as jail:
/external/autotest/server/site_tests/provision_Cr50Update/
Dprovision_Cr50Update.py34 chip_bid_str='', dev_path=''): argument
37 provision_update=True, cr50_dev_path=dev_path)
259 dev_path = self.get_saved_cr50_dev_path()
260 self.cr50_update(dev_path)
Dcontrol27 @param dev_path: local path to dev image
43 dev_path = args_dict.get('dev_path', '')
/external/toolchain-utils/crosperf/
Dtranslate_xbuddy.py9 dev_path = os.path.expanduser('~/trunk/src/platform/dev') variable
10 sys.path.append(dev_path)
/external/autotest/client/site_tests/security_DeviceJail_AllowDeny/
Dsecurity_DeviceJail_AllowDeny.py25 dev_path = usb_devices[0].device_node
26 with device_jail_utils.JailDevice(dev_path) as jail:
/external/minijail/
Dlibminijail.c1368 static void mount_dev_cleanup(char *dev_path) in mount_dev_cleanup() argument
1370 umount2(dev_path, MNT_DETACH); in mount_dev_cleanup()
1371 rmdir(dev_path); in mount_dev_cleanup()
1372 free(dev_path); in mount_dev_cleanup()
1385 char *dev_path; in mount_dev() local
1391 dev_path = *dev_path_ret = strdup("/tmp/minijail.dev.XXXXXX"); in mount_dev()
1392 if (dev_path == NULL || mkdtemp(dev_path) == NULL) in mount_dev()
1396 ret = mount("minijail-devfs", dev_path, "tmpfs", in mount_dev()
1399 rmdir(dev_path); in mount_dev()
1407 dev_fd = open(dev_path, O_DIRECTORY|O_PATH|O_CLOEXEC); in mount_dev()
[all …]
/external/ltp/testcases/kernel/device-drivers/acpi/
Dltp_acpi.c34 static const char dev_path[] = "/sys/devices/" ACPI_TEST_NAME "/path"; variable
81 if (read_sysfs_file(dev_path, sysfs_path + 4, 4092)) { in tc_acpi_str()
/external/adhd/cras/src/server/
Dcras_alsa_jack.c644 const char *dev_path, in gpio_switches_monitor_device() argument
673 data, dev_path, switches[sw]); in gpio_switches_monitor_device()
676 data, dev_path, dev_name, switches[sw]); in gpio_switches_monitor_device()
686 static int gpio_switch_list_with_section(const char *dev_path, in gpio_switch_list_with_section() argument
698 data->rc = gpio_switches_monitor_device(data, dev_path, dev_name); in gpio_switch_list_with_section()
727 static int gpio_switch_list_by_matching(const char *dev_path, in gpio_switch_list_by_matching() argument
750 data->rc = gpio_switches_monitor_device(data, dev_path, dev_name); in gpio_switch_list_by_matching()
/external/libese/libese-hw/nxp/include/ese/hw/nxp/pn80t/boards/
Dhikey-spidev.h21 .dev_path = "/dev/spidev0.0",

12