Lines Matching refs:os
19 import os
35 for path, dirs, _ in os.walk(sysfs_devices):
38 pci_controllers.append(os.path.join(path, d))
45 for d in os.scandir(sysfs_usb_devices):
47 usb_controllers.append(os.path.realpath(d.path))
58 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
63 sysfs_dev_dir = os.path.dirname(sysfs_dev_dir)
67 with open(os.path.join(sysfs_dev_dir, "firmware_node", "uid")) as f:
73 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
79 with open(os.path.join(sysfs_dev_dir, "uevent")) as f:
120 dirname = os.path.join(
123 return [os.path.realpath(dirname)]
129 path_glob = os.path.join(path_glob, pci_dev_sysfs_fmt.format(dev_func))
131 dir_list = glob.glob(os.path.join(parent_sysfs, path_glob))
145 sysfs_path = os.path.join(parent_sysfs, pathdir)
166 intf_dirs = glob.glob(os.path.join(sysfs_dir, intf_dir_fmt))
172 driver_link = os.path.join(sysfs_dir, intf_dir, "driver")
173 ksft.test_result(os.path.isdir(driver_link), test_name)
175 driver_link = os.path.join(sysfs_dir, "driver")
177 ksft.test_result(os.path.isdir(driver_link), test_name)
234 os.path.exists(sysfs_dir), current_node["meta"]["pathname"] + ".device"
268 if os.path.exists(platform_compatible_file):
274 vendor_dmi_file = os.path.join(dmi_id_dir, "sys_vendor")
275 product_dmi_file = os.path.join(dmi_id_dir, "product_name")
306 full_board_filename = os.path.join("boards", board_filename + ".yaml")
308 if os.path.exists(full_board_filename):