Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 2160) sorted by relevance

12345678910>>...87

/dflybsd-src/contrib/lvm2/dist/lib/device/
H A Ddev-io.c71 int fd = dev_fd(where->dev); in _io()
77 dev_name(where->dev)); in _io()
94 dev_name(where->dev), (uint64_t) where->start, in _io()
108 " at %" PRIu64 ": %s", dev_name(where->dev), in _io()
134 static int _get_block_size(struct device *dev, unsigned int *size) in _get_block_size() argument
136 const char *name = dev_name(dev); in _get_block_size()
143 if ((dev->block_size == -1)) { in _get_block_size()
145 if (ioctl(dev_fd(dev), DIOCGDINFO, &lab) < 0) { in _get_block_size()
146 dev->block_size = DEV_BSIZE; in _get_block_size()
148 dev->block_size = lab.d_secsize; in _get_block_size()
[all …]
/dflybsd-src/sys/gnu/dev/sound/pci/hda/
H A Dhda_acer_c720_patch.c45 device_t dev = devinfo->dev; in hdaa_patch_direct_acer_c720() local
51 hda_write_coef_idx(dev, 0x20, 0x03, 0x0002); in hdaa_patch_direct_acer_c720()
53 hda_write_coef_idx(dev, 0x20, 0x05, 0x0700); in hdaa_patch_direct_acer_c720()
55 hda_write_coef_idx(dev, 0x20, 0x07, 0x0200); in hdaa_patch_direct_acer_c720()
57 val = hda_read_coef_idx(dev, 0x20, 0x06); in hdaa_patch_direct_acer_c720()
58 hda_write_coef_idx(dev, 0x20, 0x06, (val & ~0x00f0) | 0x0); in hdaa_patch_direct_acer_c720()
61 val = hda_read_coef_idx(dev, 0x20, 0x08); in hdaa_patch_direct_acer_c720()
62 hda_write_coef_idx(dev, 0x20, 0x08, (val & ~0xfffc) | 0x0c2c); in hdaa_patch_direct_acer_c720()
64 hda_write_coef_idx(dev, 0x20, 0x0a, 0xcccc); in hdaa_patch_direct_acer_c720()
66 hda_write_coef_idx(dev, 0x20, 0x0b, 0xcccc); in hdaa_patch_direct_acer_c720()
[all …]
/dflybsd-src/sys/dev/drm/
H A Ddrm_drv.c123 void drm_dev_printk(const struct device *dev, const char *level, in drm_dev_printk() argument
137 if (dev) in drm_dev_printk()
139 dev_printk(level, dev, DRM_PRINTK_FMT, function_name, prefix, in drm_dev_printk()
146 dev_printk(level, dev, DRM_PRINTK_FMT_DFLY, function_name, prefix); in drm_dev_printk()
200 static struct drm_minor **drm_minor_get_slot(struct drm_device *dev, in drm_minor_get_slot() argument
205 return &dev->primary; in drm_minor_get_slot()
207 return &dev->render; in drm_minor_get_slot()
209 return &dev->control; in drm_minor_get_slot()
215 static int drm_minor_alloc(struct drm_device *dev, unsigned int type) in drm_minor_alloc() argument
226 minor->dev = dev; in drm_minor_alloc()
[all …]
H A Ddrm_file.c110 static int drm_setup(struct drm_device * dev) in drm_setup() argument
114 if (dev->driver->firstopen && in drm_setup()
115 drm_core_check_feature(dev, DRIVER_LEGACY)) { in drm_setup()
116 ret = dev->driver->firstopen(dev); in drm_setup()
121 ret = drm_legacy_dma_setup(dev); in drm_setup()
153 struct drm_device *dev; in drm_open() local
162 dev = minor->dev; in drm_open()
163 if (!dev->open_count++) in drm_open()
168 filp->f_mapping = dev->anon_inode->i_mapping; in drm_open()
179 retcode = drm_setup(dev); in drm_open()
[all …]
H A Ddrm_vblank.c80 drm_get_last_vbltimestamp(struct drm_device *dev, unsigned int pipe,
92 static void store_vblank(struct drm_device *dev, unsigned int pipe, in store_vblank() argument
96 struct drm_vblank_crtc *vblank = &dev->vblank[pipe]; in store_vblank()
98 assert_spin_locked(&dev->vblank_time_lock); in store_vblank()
112 static u32 drm_vblank_no_hw_counter(struct drm_device *dev, unsigned int pipe) in drm_vblank_no_hw_counter() argument
114 WARN_ON_ONCE(dev->max_vblank_count != 0); in drm_vblank_no_hw_counter()
118 static u32 __get_vblank_counter(struct drm_device *dev, unsigned int pipe) in __get_vblank_counter() argument
120 if (drm_core_check_feature(dev, DRIVER_MODESET)) { in __get_vblank_counter()
121 struct drm_crtc *crtc = drm_crtc_from_index(dev, pipe); in __get_vblank_counter()
127 if (dev->driver->get_vblank_counter) in __get_vblank_counter()
[all …]
H A Ddrm_mode_config.c30 int drm_modeset_register_all(struct drm_device *dev) in drm_modeset_register_all() argument
34 ret = drm_plane_register_all(dev); in drm_modeset_register_all()
38 ret = drm_crtc_register_all(dev); in drm_modeset_register_all()
42 ret = drm_encoder_register_all(dev); in drm_modeset_register_all()
46 ret = drm_connector_register_all(dev); in drm_modeset_register_all()
53 drm_encoder_unregister_all(dev); in drm_modeset_register_all()
55 drm_crtc_unregister_all(dev); in drm_modeset_register_all()
57 drm_plane_unregister_all(dev); in drm_modeset_register_all()
62 void drm_modeset_unregister_all(struct drm_device *dev) in drm_modeset_unregister_all() argument
64 drm_connector_unregister_all(dev); in drm_modeset_unregister_all()
[all …]
H A Ddrm_context.c54 void drm_legacy_ctxbitmap_free(struct drm_device * dev, int ctx_handle) in drm_legacy_ctxbitmap_free() argument
56 if (!drm_core_check_feature(dev, DRIVER_KMS_LEGACY_CONTEXT) && in drm_legacy_ctxbitmap_free()
57 !drm_core_check_feature(dev, DRIVER_LEGACY)) in drm_legacy_ctxbitmap_free()
60 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
61 idr_remove(&dev->ctx_idr, ctx_handle); in drm_legacy_ctxbitmap_free()
62 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_free()
74 static int drm_legacy_ctxbitmap_next(struct drm_device * dev) in drm_legacy_ctxbitmap_next() argument
78 mutex_lock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
79 ret = idr_alloc(&dev->ctx_idr, NULL, DRM_RESERVED_CONTEXTS, 0, in drm_legacy_ctxbitmap_next()
81 mutex_unlock(&dev->struct_mutex); in drm_legacy_ctxbitmap_next()
[all …]
H A Ddrm_irq.c101 int drm_irq_install(struct drm_device *dev, int irq) in drm_irq_install() argument
106 if (!drm_core_check_feature(dev, DRIVER_HAVE_IRQ)) in drm_irq_install()
113 if (!dev->dev_private) in drm_irq_install()
116 if (dev->irq_enabled) in drm_irq_install()
118 dev->irq_enabled = true; in drm_irq_install()
123 if (dev->driver->irq_preinstall) in drm_irq_install()
124 dev->driver->irq_preinstall(dev); in drm_irq_install()
127 if (drm_core_check_feature(dev, DRIVER_IRQ_SHARED)) in drm_irq_install()
130 ret = request_irq(irq, dev->driver->irq_handler, in drm_irq_install()
131 sh_flags, dev->driver->name, dev); in drm_irq_install()
[all …]
H A Ddrm_dragonfly.c106 static void drm_fill_pdev(device_t dev, struct pci_dev *pdev) in drm_fill_pdev() argument
112 pdev->dev.bsddev = dev; in drm_fill_pdev()
113 pdev->devfn = PCI_DEVFN(pci_get_slot(dev), pci_get_function(dev)); in drm_fill_pdev()
114 pdev->vendor = pci_get_vendor(dev); in drm_fill_pdev()
115 pdev->device = pci_get_device(dev); in drm_fill_pdev()
116 pdev->subsystem_vendor = pci_get_subvendor(dev); in drm_fill_pdev()
117 pdev->subsystem_device = pci_get_subdevice(dev); in drm_fill_pdev()
119 pdev->revision = pci_get_revid(dev) & 0xff; in drm_fill_pdev()
121 pdev->_irq_type = pci_alloc_1intr(dev, msi_enable, in drm_fill_pdev()
124 pdev->_irqr = bus_alloc_resource_any(dev, SYS_RES_IRQ, in drm_fill_pdev()
[all …]
H A Ddrm_auth.c58 int drm_getmagic(struct drm_device *dev, void *data, struct drm_file *file_priv) in drm_getmagic() argument
63 mutex_lock(&dev->master_mutex); in drm_getmagic()
71 mutex_unlock(&dev->master_mutex); in drm_getmagic()
78 int drm_authmagic(struct drm_device *dev, void *data, in drm_authmagic() argument
86 mutex_lock(&dev->master_mutex); in drm_authmagic()
92 mutex_unlock(&dev->master_mutex); in drm_authmagic()
97 struct drm_master *drm_master_create(struct drm_device *dev) in drm_master_create() argument
109 master->dev = dev; in drm_master_create()
122 static int drm_set_master(struct drm_device *dev, struct drm_file *fpriv, in drm_set_master() argument
127 dev->master = drm_master_get(fpriv->master); in drm_set_master()
[all …]
H A Ddrm_connector.c149 struct drm_device *dev = connector->dev; in drm_connector_free() local
151 drm_mode_object_unregister(dev, &connector->base); in drm_connector_free()
158 struct drm_device *dev = in drm_connector_free_work_fn() local
160 struct drm_mode_config *config = &dev->mode_config; in drm_connector_free_work_fn()
169 drm_mode_object_unregister(dev, &connector->base); in drm_connector_free_work_fn()
187 int drm_connector_init(struct drm_device *dev, in drm_connector_init() argument
192 struct drm_mode_config *config = &dev->mode_config; in drm_connector_init()
197 ret = __drm_mode_object_add(dev, &connector->base, in drm_connector_init()
204 connector->dev = dev; in drm_connector_init()
260 if (drm_core_check_feature(dev, DRIVER_ATOMIC)) { in drm_connector_init()
[all …]
H A Ddrm_pci.c46 drm_dma_handle_t *drm_pci_alloc(struct drm_device * dev, size_t size, size_t align) in drm_pci_alloc() argument
64 dmah->vaddr = dma_alloc_coherent(&dev->pdev->dev, size, &dmah->busaddr, GFP_KERNEL); in drm_pci_alloc()
92 void __drm_legacy_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) in __drm_legacy_pci_free() argument
106 dma_free_coherent(&dev->pdev->dev, dmah->size, dmah->vaddr, in __drm_legacy_pci_free()
119 void drm_pci_free(struct drm_device * dev, drm_dma_handle_t * dmah) in drm_pci_free() argument
121 __drm_legacy_pci_free(dev, dmah); in drm_pci_free()
129 static int drm_get_pci_domain(struct drm_device *dev) in drm_get_pci_domain() argument
136 if (dev->if_version < 0x10004) in drm_get_pci_domain()
141 return pci_domain_nr(dev->pdev->bus); in drm_get_pci_domain()
143 return dev->pci_domain; in drm_get_pci_domain()
[all …]
H A Ddrm_agpsupport.c53 int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info) in drm_agp_info() argument
57 if (!dev->agp || !dev->agp->acquired) in drm_agp_info()
60 kern = &dev->agp->agp_info; in drm_agp_info()
61 agp_get_info(dev->agp->agpdev, kern); in drm_agp_info()
76 int drm_agp_info_ioctl(struct drm_device *dev, void *data, in drm_agp_info_ioctl() argument
82 err = drm_agp_info(dev, &info); in drm_agp_info_ioctl()
99 int drm_agp_acquire(struct drm_device *dev) in drm_agp_acquire() argument
103 if (!dev->agp || dev->agp->acquired) in drm_agp_acquire()
106 retcode = -agp_acquire(dev->agp->agpdev); in drm_agp_acquire()
110 dev->agp->acquired = 1; in drm_agp_acquire()
[all …]
/dflybsd-src/contrib/wpa_supplicant/src/wps/
H A Dwps_dev_attr.c16 int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_manufacturer() argument
21 len = dev->manufacturer ? os_strlen(dev->manufacturer) : 0; in wps_build_manufacturer()
35 wpabuf_put_data(msg, dev->manufacturer, len); in wps_build_manufacturer()
40 int wps_build_model_name(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_name() argument
45 len = dev->model_name ? os_strlen(dev->model_name) : 0; in wps_build_model_name()
59 wpabuf_put_data(msg, dev->model_name, len); in wps_build_model_name()
64 int wps_build_model_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_model_number() argument
69 len = dev->model_number ? os_strlen(dev->model_number) : 0; in wps_build_model_number()
83 wpabuf_put_data(msg, dev->model_number, len); in wps_build_model_number()
88 int wps_build_serial_number(struct wps_device_data *dev, struct wpabuf *msg) in wps_build_serial_number() argument
[all …]
/dflybsd-src/sys/bus/iicbus/
H A Diicbb.c77 static int iicbb_transfer(device_t dev, struct iic_msg *msgs, uint32_t nmsgs);
111 iicbb_probe(device_t dev) in iicbb_probe() argument
113 device_set_desc(dev, "I2C bit-banging driver"); in iicbb_probe()
119 iicbb_attach(device_t dev) in iicbb_attach() argument
121 struct iicbb_softc *sc = (struct iicbb_softc *)device_get_softc(dev); in iicbb_attach()
123 sc->iicbus = device_add_child(dev, "iicbus", -1); in iicbb_attach()
127 bus_generic_attach(dev); in iicbb_attach()
133 iicbb_detach(device_t dev) in iicbb_detach() argument
135 struct iicbb_softc *sc = (struct iicbb_softc *)device_get_softc(dev); in iicbb_detach()
148 bus_generic_detach(dev); in iicbb_detach()
[all …]
/dflybsd-src/sys/dev/disk/nata/
H A Data-pci.c66 ata_pci_probe(device_t dev) in ata_pci_probe() argument
68 if (resource_disabled("atapci", device_get_unit(dev))) in ata_pci_probe()
71 if (pci_get_class(dev) != PCIC_STORAGE) in ata_pci_probe()
75 if (pci_get_subclass(dev) == PCIS_STORAGE_SATA) { in ata_pci_probe()
76 if (!ata_ahci_ident(dev)) in ata_pci_probe()
81 switch (pci_get_vendor(dev)) { in ata_pci_probe()
83 if (!ata_acard_ident(dev)) in ata_pci_probe()
87 if (!ata_ali_ident(dev)) in ata_pci_probe()
91 if (!ata_adaptec_ident(dev)) in ata_pci_probe()
95 if (!ata_amd_ident(dev)) in ata_pci_probe()
[all …]
/dflybsd-src/sys/kern/
H A Dsubr_bus.c57 SYSCTL_NODE(, OID_AUTO, dev, CTLFLAG_RW, NULL, NULL);
72 static void print_device_short(device_t dev, int indent);
73 static void print_device(device_t dev, int indent);
74 void print_device_tree_short(device_t dev, int indent);
75 void print_device_tree(device_t dev, int indent);
155 device_t dev = (device_t)arg1; in device_sysctl_handler() local
163 value = dev->desc ? dev->desc : ""; in device_sysctl_handler()
166 value = dev->driver ? dev->driver->name : ""; in device_sysctl_handler()
170 bus_child_location_str(dev, buf, 1024); in device_sysctl_handler()
174 bus_child_pnpinfo_str(dev, buf, 1024); in device_sysctl_handler()
[all …]
/dflybsd-src/usr.sbin/ppp/
H A Dether.c110 struct device dev; /* What struct physical knows about */ member
130 struct etherdevice *dev = device2ether(p->handler); in ether_Write() local
132 return NgSendData(p->fd, dev->hook, v, n) == -1 ? -1 : (ssize_t)n; in ether_Write()
146 struct etherdevice *dev = device2ether(p->handler); in ether_RemoveFromSet() local
149 if (r && dev->cs >= 0 && FD_ISSET(dev->cs, r)) { in ether_RemoveFromSet()
150 FD_CLR(dev->cs, r); in ether_RemoveFromSet()
151 log_Printf(LogTIMER, "%s: fdunset(ctrl) %d\n", p->link.name, dev->cs); in ether_RemoveFromSet()
168 struct etherdevice *dev = device2ether(p->handler); in ether_Free() local
171 if (dev->cs != -1) in ether_Free()
172 close(dev->cs); in ether_Free()
[all …]
H A Dtty.c93 #define Online(dev) ((dev)->mbits & TIOCM_CD) argument
96 struct device dev; /* What struct physical knows about */ member
128 struct ttydevice *dev = device2tty(p->handler); in tty_Timeout() local
131 timer_Stop(&dev->Timer); in tty_Timeout()
132 dev->Timer.load = SECTICKS; /* Once a second please */ in tty_Timeout()
133 timer_Start(&dev->Timer); in tty_Timeout()
134 ombits = dev->mbits; in tty_Timeout()
137 if (ioctl(p->fd, TIOCMGET, &dev->mbits) < 0) { in tty_Timeout()
142 timer_Stop(&dev->Timer); in tty_Timeout()
143 dev->mbits = TIOCM_CD; in tty_Timeout()
[all …]
/dflybsd-src/sys/bus/pci/
H A Dvga_pci.c67 static struct resource *vga_pci_alloc_resource(device_t dev, device_t child,
70 static int vga_pci_release_resource(device_t dev, device_t child, int type,
79 vga_pci_is_boot_display(device_t dev) in vga_pci_is_boot_display() argument
86 if ((pci_get_class(dev) != PCIC_DISPLAY && in vga_pci_is_boot_display()
87 (pci_get_class(dev) != PCIC_OLD || in vga_pci_is_boot_display()
88 pci_get_subclass(dev) != PCIS_OLD_VGA))) in vga_pci_is_boot_display()
91 unit = device_get_unit(dev); in vga_pci_is_boot_display()
112 pcib = device_get_parent(device_get_parent(dev)); in vga_pci_is_boot_display()
124 config = pci_read_config(dev, PCIR_COMMAND, 2); in vga_pci_is_boot_display()
130 device_set_flags(dev, 1); in vga_pci_is_boot_display()
[all …]
H A Dhostb_pci.c48 pci_hostb_probe(device_t dev) in pci_hostb_probe() argument
51 id = pci_get_devid(dev); in pci_hostb_probe()
63 if (pci_get_class(dev) == PCIC_BRIDGE && in pci_hostb_probe()
64 pci_get_subclass(dev) == PCIS_BRIDGE_HOST) { in pci_hostb_probe()
65 device_set_desc(dev, "Host to PCI bridge"); in pci_hostb_probe()
66 device_quiet(dev); in pci_hostb_probe()
73 pci_hostb_attach(device_t dev) in pci_hostb_attach() argument
76 bus_generic_probe(dev); in pci_hostb_attach()
82 if (pci_find_extcap(dev, PCIY_AGP, NULL) == 0) in pci_hostb_attach()
83 device_add_child(dev, "agp", -1); in pci_hostb_attach()
[all …]
/dflybsd-src/sys/bus/ppbus/
H A Dppbio.h38 #define ppb_outsb_epp(dev,buf,cnt) \ argument
39 (PPBUS_IO(device_get_parent(dev), PPB_OUTSB_EPP, buf, cnt, 0))
40 #define ppb_outsw_epp(dev,buf,cnt) \ argument
41 (PPBUS_IO(device_get_parent(dev), PPB_OUTSW_EPP, buf, cnt, 0))
42 #define ppb_outsl_epp(dev,buf,cnt) \ argument
43 (PPBUS_IO(device_get_parent(dev), PPB_OUTSL_EPP, buf, cnt, 0))
45 #define ppb_insb_epp(dev,buf,cnt) \ argument
46 (PPBUS_IO(device_get_parent(dev), PPB_INSB_EPP, buf, cnt, 0))
47 #define ppb_insw_epp(dev,buf,cnt) \ argument
48 (PPBUS_IO(device_get_parent(dev), PPB_INSW_EPP, buf, cnt, 0))
[all …]
/dflybsd-src/sys/dev/agp/
H A Dagp.c87 agp_find_caps(device_t dev) in agp_find_caps() argument
91 if (pci_find_extcap(dev, PCIY_AGP, &capreg) != 0) in agp_find_caps()
103 device_t bus, dev = 0; in agp_find_display() local
113 dev = kids[i]; in agp_find_display()
114 if (pci_get_class(dev) == PCIC_DISPLAY) in agp_find_display()
115 if (agp_find_caps(dev)) { in agp_find_display()
117 return dev; in agp_find_display()
128 agp_alloc_gatt(device_t dev) in agp_alloc_gatt() argument
130 u_int32_t apsize = AGP_GET_APERTURE(dev); in agp_alloc_gatt()
135 device_printf(dev, in agp_alloc_gatt()
[all …]
H A Dagp_via.c62 agp_via_match(device_t dev) in agp_via_match() argument
64 if (pci_get_class(dev) != PCIC_BRIDGE in agp_via_match()
65 || pci_get_subclass(dev) != PCIS_BRIDGE_HOST) in agp_via_match()
68 if (agp_find_caps(dev) == 0) in agp_via_match()
71 switch (pci_get_devid(dev)) { in agp_via_match()
140 agp_via_probe(device_t dev) in agp_via_probe() argument
144 if (resource_disabled("agp", device_get_unit(dev))) in agp_via_probe()
146 desc = agp_via_match(dev); in agp_via_probe()
148 device_verbose(dev); in agp_via_probe()
149 device_set_desc(dev, desc); in agp_via_probe()
[all …]
/dflybsd-src/sys/dev/disk/nata/chipsets/
H A Data-jmicron.c28 static int ata_jmicron_chipinit(device_t dev);
29 static int ata_jmicron_allocate(device_t dev);
30 static void ata_jmicron_reset(device_t dev);
31 static void ata_jmicron_dmainit(device_t dev);
32 static void ata_jmicron_setmode(device_t dev, int mode);
38 ata_jmicron_ident(device_t dev) in ata_jmicron_ident() argument
40 struct ata_pci_controller *ctlr = device_get_softc(dev); in ata_jmicron_ident()
52 if (pci_get_vendor(dev) != ATA_JMICRON_ID) in ata_jmicron_ident()
55 if (!(idx = ata_match_chip(dev, ids))) in ata_jmicron_ident()
58 if ((pci_read_config(dev, 0xdf, 1) & 0x40) && in ata_jmicron_ident()
[all …]

12345678910>>...87