Home
last modified time | relevance | path

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

/third_party/eudev/
DREADME_zh.md48 dev_t devnum = udev_device_get_devnum(device);
49 if (major(devnum) > 0) {
50 printf("devnum: %u:%u\n", major(devnum), minor(devnum));
/third_party/toybox/toys/other/
Dlsusb.c22 int busnum = 0, devnum = 0, pid = 0, vid = 0; in list_device() local
34 || sscanf(toybuf, "DEVNUM=%u\n", &devnum) in list_device()
38 printf("Bus %03d Device %03d: ID %04x:%04x\n", busnum, devnum, pid, vid); in list_device()
/third_party/eudev/test/
Dtest-libudev.c40 dev_t devnum; in print_device() local
78 devnum = udev_device_get_devnum(device); in print_device()
79 if (major(devnum) > 0) in print_device()
80 printf("devnum: %u:%u\n", major(devnum), minor(devnum)); in print_device()
152 dev_t devnum = makedev(1, 3); in test_device_devnum() local
155 printf("looking up device: %u:%u\n", major(devnum), minor(devnum)); in test_device_devnum()
156 device = udev_device_new_from_devnum(udev, 'c', devnum); in test_device_devnum()
/third_party/ffmpeg/libavdevice/
Dvfwcap.c251 int devnum; in vfw_read_header() local
261 for (devnum = 0; devnum <= 9; devnum++) { in vfw_read_header()
264 ret = capGetDriverDescription(devnum, in vfw_read_header()
268 av_log(s, AV_LOG_INFO, "Driver %d\n", devnum); in vfw_read_header()
283 devnum = atoi(s->url); in vfw_read_header()
285 ret = SendMessage(ctx->hwnd, WM_CAP_DRIVER_CONNECT, devnum, 0); in vfw_read_header()
/third_party/gstreamer/gstplugins_bad/sys/uvch264/
Duvc_h264.c133 guint64 devnum; in xu_get_id() local
151 devnum = g_udev_device_get_sysfs_attr_as_uint64 (parent, "devnum"); in xu_get_id()
156 devnum == libusb_get_device_address (device_list[i])) { in xu_get_id()
/third_party/eudev/src/libudev/
Dlibudev-device.c88 dev_t devnum; member
164 return udev_device->devnum; in udev_device_get_devnum()
167 static int udev_device_set_devnum(struct udev_device *udev_device, dev_t devnum) in udev_device_set_devnum() argument
171 udev_device->devnum = devnum; in udev_device_set_devnum()
173 snprintf(num, sizeof(num), "%u", major(devnum)); in udev_device_set_devnum()
175 snprintf(num, sizeof(num), "%u", minor(devnum)); in udev_device_set_devnum()
709 udev_device->devnum = makedev(maj, min); in udev_device_read_uevent_file()
840 _public_ struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, dev_t devnum) in udev_device_new_from_devnum() argument
856 type_str, major(devnum), minor(devnum)); in udev_device_new_from_devnum()
Dlibudev.h82 struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, dev_t devnum);
/third_party/eudev/src/udev/
Dudevd.c98 dev_t devnum; member
490 event->devnum = udev_device_get_devnum(dev); in event_queue_insert()
537 …if (major(event->devnum) != 0 && event->devnum == loop_event->devnum && event->is_block == loop_ev… in is_devpath_busy()
560 …if (major(event->devnum) != 0 && (event->devnum != loop_event->devnum || event->is_block != loop_e… in is_devpath_busy()
Dudev-node.c256 dev_t devnum = udev_device_get_devnum(dev); in node_permissions_apply() local
272 if (((stats.st_mode & S_IFMT) != (mode & S_IFMT)) || (stats.st_rdev != devnum)) { in node_permissions_apply()
/third_party/lwip/src/include/lwip/
Dsio.h61 sio_fd_t sio_open(u8_t devnum);
/third_party/flutter/skia/third_party/externals/sdl/src/core/linux/
DSDL_udev.h101 struct udev_device * (*udev_device_new_from_devnum)(struct udev *udev, char type, dev_t devnum);
/third_party/libusb/libusb/os/
Dlinux_usbfs.h98 unsigned int devnum; member
Dlinux_usbfs.c221 int busnum, devnum; in is_usbdev_entry() local
223 if (sscanf(name, "usbdev%d.%d", &busnum, &devnum) != 2) in is_usbdev_entry()
225 if (busnum < 0 || busnum > UINT8_MAX || devnum < 0 || devnum > UINT8_MAX) { in is_usbdev_entry()
234 *dev_p = (uint8_t)devnum; in is_usbdev_entry()
1346 devaddr = ci.devnum; in op_wrap_sys_device()
/third_party/gstreamer/gstplugins_base/ext/alsa/
Dgstalsa.c638 gint devnum; in gst_alsa_find_device_name() local
646 devnum = atoi (comma + 1); in gst_alsa_find_device_name()
647 ret = gst_alsa_find_device_name_no_handle (obj, dev, devnum, stream); in gst_alsa_find_device_name()
/third_party/flutter/skia/third_party/externals/sdl/src/joystick/linux/
DSDL_sysjoystick.c66 dev_t devnum; member
185 if (sb.st_rdev == item->devnum) { in MaybeAddDevice()
211 item->devnum = sb.st_rdev; in MaybeAddDevice()
/third_party/eudev/export_include/
Dlibudev.h82 struct udev_device *udev_device_new_from_devnum(struct udev *udev, char type, dev_t devnum);
/third_party/FreeBSD/sys/dev/usb/
Dusb_device.h278 uint16_t devnum; member
/third_party/weston/libweston/backend-drm/
Ddrm-internal.h261 dev_t devnum; member
Ddrm.c2554 if (b->drm.fd < 0 || b->drm.devnum != device || in drm_device_changed()
2571 dev_t devnum = udev_device_get_devnum(device); in drm_device_is_kms() local
2606 b->drm.devnum = devnum; in drm_device_is_kms()
/third_party/libdrm/include/drm/
Ddrm.h468 int devnum; /**< device number */ member
/third_party/mesa3d/include/drm-uapi/
Ddrm.h467 int devnum; /**< device number */ member
/third_party/libdrm/
Dxf86drm.h615 extern int drmGetInterruptFromBusID(int fd, int busnum, int devnum,
Dxf86drm.c2300 drm_public int drmGetInterruptFromBusID(int fd, int busnum, int devnum, in drmGetInterruptFromBusID() argument
2307 p.devnum = devnum; in drmGetInterruptFromBusID()
/third_party/FreeBSD/sys/compat/linuxkpi/common/src/
Dlinux_usb.c991 udev->devnum = device_get_unit(dev); in usb_linux_create_usb_device()