Home
last modified time | relevance | path

Searched refs:dev_type (Results 1 – 11 of 11) sorted by relevance

/openbsd-src/sys/dev/usb/
H A Duthum.c101 enum uthum_sensor_type dev_type; member
230 if (sc->sc_sensor[i].dev_type == UTHUM_SENSOR_UNKNOWN) in uthum_attach()
359 uint16_t dev_type; in uthum_check_device_info() member
364 int val, dev_type; in uthum_check_device_info() local
385 dev_type = betoh16(dinfo.dev_type); in uthum_check_device_info()
387 if (dev_type == UTHUM_TYPE_TEMPERHUM_2 || in uthum_check_device_info()
388 dev_type == UTHUM_TYPE_TEMPERHUM_3) in uthum_check_device_info()
389 dev_type = UTHUM_TYPE_TEMPERHUM; in uthum_check_device_info()
392 switch (dev_type) { in uthum_check_device_info()
404 sc->sc_device_type = dev_type; in uthum_check_device_info()
[all …]
H A Dubcmtp.c317 const struct ubcmtp_dev *dev_type; member
433 sc->dev_type = &ubcmtp_devices[i]; in ubcmtp_attach()
436 sc->dev_type->type); in ubcmtp_attach()
441 if (sc->dev_type == NULL) { in ubcmtp_attach()
448 switch (sc->dev_type->type) { in ubcmtp_attach()
525 hw->hw_type = (IS_CLICKPAD(sc->dev_type->type) in ubcmtp_configure()
527 hw->x_min = sc->dev_type->l_x.min; in ubcmtp_configure()
528 hw->x_max = sc->dev_type->l_x.max; in ubcmtp_configure()
529 hw->y_min = sc->dev_type->l_y.min; in ubcmtp_configure()
530 hw->y_max = sc->dev_type->l_y.max; in ubcmtp_configure()
[all …]
/openbsd-src/sys/arch/hppa/stand/libsa/
H A Ddev_hppa.c49 int dev_type; member
85 if (dp >= &pdc_devs[nitems(pdc_devs)] || dp->dev_type < 0)
102 if ((rc = (*devsw[dp->dev_type].dv_open)(f, file)) == 0) {
103 f->f_dev = &devsw[dp->dev_type];
111 f->f_dev = &devsw[dp->dev_type];
/openbsd-src/usr.bin/rsync/
H A Dmktemp.c76 int flags, const char *link, mode_t dev_type, dev_t dev) in mktemp_internalat() argument
152 if (!(dev_type == S_IFCHR || dev_type == S_IFBLK)) { in mktemp_internalat()
156 if (mknodat(pfd, path, S_IRUSR|S_IWUSR|dev_type, dev) in mktemp_internalat()
/openbsd-src/sys/arch/sparc64/sparc64/
H A Dofw_machdep.c813 char dev_type[16]; in find_pci_host_node() local
819 &dev_type, sizeof(dev_type)); in find_pci_host_node()
822 if (strcmp(dev_type, "pci") == 0 || in find_pci_host_node()
823 strcmp(dev_type, "pciex") == 0) in find_pci_host_node()
845 char dev_type[32]; in OF_mapintr() local
892 if (((len = OF_getprop(node, "device_type", &dev_type, in OF_mapintr()
893 sizeof(dev_type))) > 0) && in OF_mapintr()
894 (strcmp(dev_type, "pci") == 0 || in OF_mapintr()
895 strcmp(dev_type, "pciex") == 0) && in OF_mapintr()
/openbsd-src/usr.sbin/vmd/
H A Dvirtio.c577 dev->dev_type = VMD_DEVTYPE_NET; in virtio_init()
658 dev->dev_type = VMD_DEVTYPE_DISK; in virtio_init()
825 if (dev->dev_type == VMD_DEVTYPE_NET in virtio_shutdown()
971 if (dev->dev_type != VMD_DEVTYPE_NET) { in vioblk_restore()
1022 if (dev->dev_type != VMD_DEVTYPE_DISK) { in vioscsi_restore()
1164 if (dev->dev_type != VMD_DEVTYPE_NET)
1222 if (dev->dev_type != VMD_DEVTYPE_DISK)
1355 switch (dev->dev_type) { in virtio_dev_launch()
1404 dev->dev_type); in virtio_dev_launch()
1442 "'%c' type device", __func__, dev->dev_type); in virtio_dev_launch()
[all...]
H A Dvmd.c665 char dev_type = '\0'; in main()
723 dev_type = *optarg; in main()
724 switch (dev_type) { in main()
789 if (dev_type == VMD_DEVTYPE_NET) { in main()
793 } else if (dev_type == VMD_DEVTYPE_DISK) { in main()
798 fatalx("unsupported device type '%c'", dev_type); in main()
667 char dev_type = '\0'; main() local
H A Dvirtio.h290 char dev_type; member
H A Ddhcp.c58 if (dev->dev_type != VMD_DEVTYPE_NET) in dhcp_request()
H A Dvioblk.c94 if (dev.dev_type != VMD_DEVTYPE_DISK) { in vioblk_main()
H A Dvionet.c123 if (dev.dev_type != VMD_DEVTYPE_NET) { in vionet_main()