/third_party/eudev/src/libudev/ |
D | libudev-enumerate.c | 44 struct syspath { struct 45 char *syspath; member 66 struct syspath *devices; argument 147 free(udev_enumerate->devices[i].syspath); in udev_enumerate_unref() 168 static int syspath_add(struct udev_enumerate *udev_enumerate, const char *syspath) in syspath_add() argument 171 struct syspath *entry; in syspath_add() 175 struct syspath *buf; in syspath_add() 181 …f = realloc(udev_enumerate->devices, (udev_enumerate->devices_max + add) * sizeof(struct syspath)); in syspath_add() 188 path = strdup(syspath); in syspath_add() 192 entry->syspath = path; in syspath_add() [all …]
|
D | libudev-util.c | 114 ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, cha… in util_get_sys_core_link_value() argument 121 strscpyl(path, sizeof(path), syspath, "/", slink, NULL); in util_get_sys_core_link_value() 133 int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size) in util_resolve_sys_link() argument 142 len = readlink(syspath, link_target, sizeof(link_target)); in util_resolve_sys_link() 150 base = strrchr(syspath, '/'); in util_resolve_sys_link() 156 strscpyl(base, size - (base - syspath), "/", &link_target[back * 3], NULL); in util_resolve_sys_link()
|
D | libudev-device.c | 62 char *syspath; member 217 …if (util_get_sys_core_link_value(udev_device->udev, "driver", udev_device->syspath, driver, sizeof… in udev_device_get_driver() 293 …til_get_sys_core_link_value(udev_device->udev, "subsystem", udev_device->syspath, subsystem, sizeo… in udev_device_get_subsystem() 412 static int udev_device_set_syspath(struct udev_device *udev_device, const char *syspath) in udev_device_set_syspath() argument 417 free(udev_device->syspath); in udev_device_set_syspath() 418 udev_device->syspath = strdup(syspath); in udev_device_set_syspath() 419 if (udev_device->syspath == NULL) in udev_device_set_syspath() 421 udev_device->devpath = udev_device->syspath + strlen("/sys"); in udev_device_set_syspath() 424 pos = strrchr(udev_device->syspath, '/'); in udev_device_set_syspath() 672 strscpyl(filename, sizeof(filename), udev_device->syspath, "/uevent", NULL); in udev_device_read_uevent_file() [all …]
|
D | libudev-private.h | 40 struct udev_device *udev_device_new_from_synthetic_event(struct udev *udev, const char *syspath, co… 140 ssize_t util_get_sys_core_link_value(struct udev *udev, const char *slink, const char *syspath, cha… 141 int util_resolve_sys_link(struct udev *udev, char *syspath, size_t size);
|
D | libudev.h | 81 struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath); 157 int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath);
|
/third_party/eudev/src/udev/ |
D | udevadm-test-builtin.c | 53 char *syspath = NULL; in adm_builtin() local 74 syspath = argv[optind++]; in adm_builtin() 75 if (syspath == NULL) { in adm_builtin() 92 if (!startswith(syspath, "/sys")) in adm_builtin() 93 strscpyl(filename, sizeof(filename), "/sys", syspath, NULL); in adm_builtin() 95 strscpy(filename, sizeof(filename), syspath); in adm_builtin()
|
D | udevadm-test.c | 49 const char *syspath = NULL; in adm_test() local 93 syspath = argv[optind]; in adm_test() 94 if (syspath == NULL) { in adm_test() 117 if (!startswith(syspath, "/sys")) in adm_test() 118 strscpyl(filename, sizeof(filename), "/sys", syspath, NULL); in adm_test() 120 strscpy(filename, sizeof(filename), syspath); in adm_test()
|
/third_party/eudev/test/ |
D | test-libudev.c | 111 static int test_device(struct udev *udev, const char *syspath) { in test_device() argument 114 printf("looking at device: %s\n", syspath); in test_device() 115 device = udev_device_new_from_syspath(udev, syspath); in test_device() 125 static int test_device_parents(struct udev *udev, const char *syspath) { in test_device_parents() argument 129 printf("looking at device: %s\n", syspath); in test_device_parents() 130 device = udev_device_new_from_syspath(udev, syspath); in test_device_parents() 416 const char *syspath = "/devices/virtual/mem/null"; in main() local 432 syspath = optarg; in main() 461 if (!startswith(syspath, "/sys")) { in main() 462 snprintf(path, sizeof(path), "/sys/%s", syspath); in main() [all …]
|
D | test-udev.c | 94 char syspath[UTIL_PATH_SIZE]; in main() local 127 strscpyl(syspath, sizeof(syspath), "/sys", devpath, NULL); in main() 128 dev = udev_device_new_from_synthetic_event(udev, syspath, action); in main()
|
/third_party/libinput/src/ |
D | udev-seat.c | 57 const char *syspath; in filter_duplicates() local 64 syspath = udev_device_get_syspath(ud); in filter_duplicates() 65 if (syspath && new_syspath && streq(syspath, new_syspath)) in filter_duplicates() 152 const char *syspath; in device_removed() local 154 syspath = udev_device_get_syspath(udev_device); in device_removed() 158 if (streq(syspath, in device_removed()
|
D | evdev-tablet-pad-leds.c | 197 const char *syspath) in pad_group_new() argument 210 led = pad_led_new(libinput, syspath, group_index, nleds); in pad_group_new() 282 char syspath[PATH_MAX]; in pad_init_led_groups() local 290 if (!pad_led_get_sysfs_base_path(device, syspath, sizeof(syspath))) in pad_init_led_groups() 302 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups() 309 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups() 316 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups() 324 group = pad_group_new(pad, i, nmodes, syspath); in pad_init_led_groups()
|
/third_party/libinput/udev/ |
D | libinput-fuzz-to-zero.c | 86 const char *syspath; in main() local 91 syspath = argv[1]; in main() 97 device = udev_device_new_from_syspath(udev, syspath); in main()
|
D | libinput-fuzz-extract.c | 119 const char *syspath; in main() local 124 syspath = argv[1]; in main() 130 device = udev_device_new_from_syspath(udev, syspath); in main()
|
D | libinput-device-group.c | 157 const char *syspath, in main() local 167 syspath = argv[1]; in main() 173 device = udev_device_new_from_syspath(udev, syspath); in main()
|
/third_party/eudev/ |
D | README_zh.md | 34 void test_device(struct udev *udev, const char *syspath) 37 printf("looking at device: %s\n", syspath); 38 device = udev_device_new_from_syspath(udev, syspath);
|
/third_party/weston/libweston/backend-drm/ |
D | libbacklight.c | 156 const char *syspath = NULL; in backlight_init() local 170 syspath = udev_device_get_syspath(drm_device); in backlight_init() 171 if (!syspath) in backlight_init() 174 if (asprintf(&path, "%s/%s", syspath, "device") < 0) in backlight_init()
|
/third_party/weston/libweston/ |
D | touch-calibration.c | 448 const char *syspath) in weston_compositor_find_touch_device_by_syspath() argument 454 if (!syspath) in weston_compositor_find_touch_device_by_syspath() 463 if (strcmp(device->syspath, syspath) == 0) in weston_compositor_find_touch_device_by_syspath() 476 const char *syspath, in touch_calibration_create_calibrator() argument 532 syspath); in touch_calibration_create_calibrator() 543 syspath ?: ""); in touch_calibration_create_calibrator() 672 device->syspath, name); in bind_touch_calibration()
|
/third_party/libevdev/libevdev/ |
D | libevdev-uinput.c | 203 uinput_dev->syspath = NULL; in fetch_syspath_and_devnode() 257 uinput_dev->syspath = strdup(buf); in fetch_syspath_and_devnode() 297 if (uinput_dev->syspath) { in fetch_syspath_and_devnode() 312 uinput_dev->syspath = strdup(buf); in fetch_syspath_and_devnode() 464 free(uinput_dev->syspath); in libevdev_uinput_destroy() 473 return uinput_dev->syspath; in libevdev_uinput_get_syspath()
|
D | libevdev-uinput-int.h | 27 char *syspath; /**< /sys path */ member
|
/third_party/musl/tools/api_cmp_tool/ |
D | compare.py | 177 syspath = ccsyspath.system_include_paths('clang') 178 incargs = [b'-I' + inc for inc in syspath] 185 syspath = ccsyspath.system_include_paths('clang++') 186 incargs = [b'-I' + inc for inc in syspath]
|
/third_party/python/Python/ |
D | traceback.c | 302 PyObject *syspath; in _Py_FindSourceFile() local 325 syspath = _PySys_GetObjectId(&PyId_path); in _Py_FindSourceFile() 326 if (syspath == NULL || !PyList_Check(syspath)) in _Py_FindSourceFile() 328 npath = PyList_Size(syspath); in _Py_FindSourceFile() 331 v = PyList_GetItem(syspath, i); in _Py_FindSourceFile()
|
/third_party/libinput/tools/ |
D | libinput-measure-fuzz.py | 279 syspath = device.path.replace('/dev/input/', '/sys/class/input/') 281 print('Running udevadm trigger {}'.format(syspath)) 282 subprocess.run(['udevadm', 'trigger', syspath], check=True)
|
/third_party/eudev/export_include/ |
D | libudev.h | 81 struct udev_device *udev_device_new_from_syspath(struct udev *udev, const char *syspath); 157 int udev_enumerate_add_syspath(struct udev_enumerate *udev_enumerate, const char *syspath);
|
/third_party/python/Lib/test/ |
D | test_pkg.py | 51 self.syspath = list(sys.path) 55 sys.path[:] = self.syspath
|
/third_party/gstreamer/gstplugins_good/sys/v4l2/ |
D | gstv4l2deviceprovider.h | 89 gchar *syspath; member
|