Lines Matching +full:master +full:- +full:dsi
40 return ((int64_t)tv->tv_sec * NSEC_PER_SEC) + in timeval_to_ns()
41 tv->tv_usec * NSEC_PER_USEC; in timeval_to_ns()
59 tv.tv_sec--; in ns_to_timeval()
81 drm_linux_timer_hz_mask--; in drm_linux_timer_init()
116 return (-ENXIO); in drm_probe_helper()
122 device_get_nameunit(kdev), id_entry->name); in drm_probe_helper()
123 device_set_desc(kdev, id_entry->name); in drm_probe_helper()
128 return (-BUS_PROBE_GENERIC); in drm_probe_helper()
131 return (-ENXIO); in drm_probe_helper()
150 dev->id_entry = drm_find_description(vendor, device, idlist); in drm_attach_helper()
166 if (dev->driver->suspend) { in drm_generic_suspend()
170 error = -dev->driver->suspend(dev, state); in drm_generic_suspend()
192 if (dev->driver->resume) { in drm_generic_resume()
193 error = -dev->driver->resume(dev); in drm_generic_resume()
222 if (dev->pcir[i] == NULL) in drm_generic_detach()
224 bus_release_resource(dev->dev, SYS_RES_MEMORY, in drm_generic_detach()
225 dev->pcirid[i], dev->pcir[i]); in drm_generic_detach()
226 dev->pcir[i] = NULL; in drm_generic_detach()
229 if (pci_disable_busmaster(dev->dev)) in drm_generic_detach()
230 DRM_ERROR("Request to disable bus-master failed.\n"); in drm_generic_detach()
241 snprintf(dev->busid_str, sizeof(dev->busid_str), in drm_add_busid_modesetting()
242 "pci:%04x:%02x:%02x.%d", dev->pci_domain, dev->pci_bus, in drm_add_busid_modesetting()
243 dev->pci_slot, dev->pci_func); in drm_add_busid_modesetting()
245 CTLFLAG_RD, dev->busid_str, 0, NULL); in drm_add_busid_modesetting()
247 return (-ENOMEM); in drm_add_busid_modesetting()
248 dev->modesetting = (dev->driver->driver_features & DRIVER_MODESET) != 0; in drm_add_busid_modesetting()
250 "modesetting", CTLFLAG_RD, &dev->modesetting, 0, NULL); in drm_add_busid_modesetting()
252 return (-ENOMEM); in drm_add_busid_modesetting()
261 return (pci_find_cap(dev->dev, cap, NULL) == 0); in drm_device_find_capability()
267 if (dev->driver->device_is_agp != NULL) { in drm_pci_device_is_agp()
273 ret = (*dev->driver->device_is_agp)(dev); in drm_pci_device_is_agp()
289 dmi_found(const struct dmi_system_id *dsi) in dmi_found() argument
298 for (i = 0; i < nitems(dsi->matches); i++) { in dmi_found()
299 slot = dsi->matches[i].slot; in dmi_found()
306 !strcmp(hw_vendor, dsi->matches[i].substr)) { in dmi_found()
315 !strcmp(hw_prod, dsi->matches[i].substr)) { in dmi_found()
336 const struct dmi_system_id *dsi; in dmi_check_system() local
339 for (res = false, dsi = sysid; dsi->matches[0].slot != 0 ; dsi++) { in dmi_check_system()
340 if (dmi_found(dsi)) { in dmi_check_system()
342 if (dsi->callback != NULL && dsi->callback(dsi)) in dmi_check_system()
361 return (-mem_range_attr_set(&mrdesc, &act)); in drm_mtrr_add()
376 return (-mem_range_attr_set(&mrdesc, &act)); in drm_mtrr_del()
426 if (j > linebuflen - 4) in hex_dump_to_buffer()
460 int cmd = args->cmd; in drm_linux_ioctl()
462 args->cmd &= ~(LINUX_IOC_IN | LINUX_IOC_OUT); in drm_linux_ioctl()
464 args->cmd |= IOC_IN; in drm_linux_ioctl()
466 args->cmd |= IOC_OUT; in drm_linux_ioctl()