| /freebsd-12.1/sys/dev/drm2/ttm/ |
| H A D | ttm_bo.c | 113 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release_list() local 161 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_to_lru() local 372 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_ttm() local 417 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_handle_move_mem() local 552 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_cleanup_refs_or_queue() local 612 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_cleanup_refs_and_unlock() local 760 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release() local 808 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_evict() local 926 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_mem_force_space() local 1263 bo->bdev = bdev; in ttm_bo_init() [all …]
|
| H A D | ttm_bo_util.c | 125 return bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve() 130 ret = bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve() 150 bdev->driver->io_mem_free) in ttm_mem_io_free() 151 bdev->driver->io_mem_free(bdev, mem); in ttm_mem_io_free() 209 ttm_mem_io_free(bdev, mem); in ttm_mem_reg_ioremap() 229 ttm_mem_io_free(bdev, mem); in ttm_mem_reg_iounmap() 297 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_move_memcpy() local 406 struct ttm_bo_device *bdev = bo->bdev; in ttm_buffer_object_transfer() local 424 mtx_lock(&bdev->fence_lock); in ttm_buffer_object_transfer() 602 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_move_accel_cleanup() local [all …]
|
| H A D | ttm_bo_api.h | 193 struct ttm_bo_device *bdev; member 406 extern int ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev); 413 extern void ttm_bo_unlock_delayed_workqueue(struct ttm_bo_device *bdev, 451 size_t ttm_bo_acc_size(struct ttm_bo_device *bdev, 454 size_t ttm_bo_dma_acc_size(struct ttm_bo_device *bdev, 492 extern int ttm_bo_init(struct ttm_bo_device *bdev, 530 extern int ttm_bo_create(struct ttm_bo_device *bdev, 569 extern int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type, 598 extern int ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type); 720 extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp, [all …]
|
| H A D | ttm_bo_vm.c | 107 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_vm_fault() local 113 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault() 155 mtx_lock(&bdev->fence_lock); in ttm_bo_vm_fault() 174 mtx_unlock(&bdev->fence_lock); in ttm_bo_vm_fault() 180 mtx_unlock(&bdev->fence_lock); in ttm_bo_vm_fault() 331 rw_wlock(&bdev->vm_lock); in ttm_bo_mmap_single() 335 rw_wunlock(&bdev->vm_lock); in ttm_bo_mmap_single() 342 driver = bo->bdev->driver; in ttm_bo_mmap_single() 424 read_lock(&bdev->vm_lock); 428 read_unlock(&bdev->vm_lock); [all …]
|
| H A D | ttm_bo_driver.h | 113 struct ttm_bo_device *bdev; member 266 struct ttm_bo_device *bdev; member 331 struct ttm_tt *(*ttm_tt_create)(struct ttm_bo_device *bdev, 368 int (*invalidate_caches) (struct ttm_bo_device *bdev, uint32_t flags); 369 int (*init_mem_type) (struct ttm_bo_device *bdev, uint32_t type, 453 void (*io_mem_free)(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem); 600 extern int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev, 696 extern bool ttm_mem_reg_is_pci(struct ttm_bo_device *bdev, 732 extern int ttm_bo_device_release(struct ttm_bo_device *bdev); 748 extern int ttm_bo_device_init(struct ttm_bo_device *bdev, [all …]
|
| H A D | ttm_execbuf_util.c | 133 val_seq = entry->bo->bdev->val_seq++; in ttm_eu_reserve_buffers() 167 val_seq = entry->bo->bdev->val_seq++; in ttm_eu_reserve_buffers() 210 struct ttm_bo_device *bdev; in ttm_eu_fence_buffer_objects() local 217 bdev = bo->bdev; in ttm_eu_fence_buffer_objects() 218 driver = bdev->driver; in ttm_eu_fence_buffer_objects() 222 mtx_lock(&bdev->fence_lock); in ttm_eu_fence_buffer_objects() 231 mtx_unlock(&bdev->fence_lock); in ttm_eu_fence_buffer_objects()
|
| H A D | ttm_tt.c | 172 ttm->bdev->driver->ttm_tt_unpopulate(ttm); in ttm_tt_destroy() 183 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev, in ttm_tt_init() argument 187 ttm->bdev = bdev; in ttm_tt_init() 188 ttm->glob = bdev->glob; in ttm_tt_init() 211 int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev, in ttm_dma_tt_init() argument 217 ttm->bdev = bdev; in ttm_dma_tt_init() 218 ttm->glob = bdev->glob; in ttm_dma_tt_init() 267 ret = ttm->bdev->driver->ttm_tt_populate(ttm); in ttm_tt_bind() 364 ttm->bdev->driver->ttm_tt_unpopulate(ttm); in ttm_tt_swapout()
|
| /freebsd-12.1/sys/dev/usb/controller/ |
| H A D | ehci_msm.c | 130 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in ehci_msm_attach() 131 if (!sc->sc_bus.bdev) { in ehci_msm_attach() 135 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_msm_attach() 136 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in ehci_msm_attach() 153 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_msm_attach() 171 device_t bdev; in ehci_msm_detach() local 176 if (sc->sc_bus.bdev) { in ehci_msm_detach() 177 bdev = sc->sc_bus.bdev; in ehci_msm_detach() 178 device_detach(bdev); in ehci_msm_detach() 179 device_delete_child(dev, bdev); in ehci_msm_detach()
|
| H A D | usb_controller.c | 354 device_get_nameunit(bus->bdev)); in usb_shutdown() 435 dev = bus->bdev; in usb_bus_detach() 452 bus->bdev = NULL; in usb_bus_detach() 473 if (udev == NULL || bus->bdev == NULL) in usb_bus_suspend() 487 bus_generic_shutdown(bus->bdev); in usb_bus_suspend() 530 if (udev == NULL || bus->bdev == NULL) in usb_bus_resume() 565 device_printf(bus->bdev, "Could not probe and " in usb_bus_resume() 589 if (bus->bdev == NULL || bus->no_explore != 0) in usb_bus_reset() 613 if (udev == NULL || bus->bdev == NULL) in usb_bus_shutdown() 618 bus_generic_shutdown(bus->bdev); in usb_bus_shutdown() [all …]
|
| H A D | ehci_fsl.c | 314 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in fsl_ehci_attach() 315 if (!sc->sc_bus.bdev) { in fsl_ehci_attach() 325 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in fsl_ehci_attach() 360 err = device_probe_and_attach(sc->sc_bus.bdev); in fsl_ehci_attach() 407 if (sc->sc_bus.bdev) { in fsl_ehci_detach() 408 device_delete_child(self, sc->sc_bus.bdev); in fsl_ehci_detach() 409 sc->sc_bus.bdev = NULL; in fsl_ehci_detach()
|
| H A D | saf1761_otg_boot.c | 99 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in saf1761_otg_fdt_attach() 100 if (sc->sc_bus.bdev == NULL) in saf1761_otg_fdt_attach() 103 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in saf1761_otg_fdt_attach() 111 err = device_probe_and_attach(sc->sc_bus.bdev); in saf1761_otg_fdt_attach()
|
| H A D | generic_xhci.c | 143 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in xhci_attach() 144 if (sc->sc_bus.bdev == NULL) { in xhci_attach() 150 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in xhci_attach() 153 device_set_desc(sc->sc_bus.bdev, XHCI_HC_DEVSTR); in xhci_attach() 178 err = device_probe_and_attach(sc->sc_bus.bdev); in xhci_attach()
|
| H A D | ehci_pci.c | 345 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in ehci_pci_attach() 346 if (!sc->sc_bus.bdev) { in ehci_pci_attach() 350 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_pci_attach() 356 device_set_desc(sc->sc_bus.bdev, ehci_pci_match(self)); in ehci_pci_attach() 469 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_pci_attach() 544 device_printf(sc->sc_bus.bdev, "waiting for BIOS " in ehci_pci_take_controller() 556 device_printf(sc->sc_bus.bdev, in ehci_pci_take_controller()
|
| /freebsd-12.1/lib/libusb/ |
| H A D | libusb10_hotplug.c | 57 struct libusb20_device *bdev = _bdev->os_priv; in libusb_hotplug_equal() local 59 if (adev->bus_number != bdev->bus_number) in libusb_hotplug_equal() 61 if (adev->device_address != bdev->device_address) in libusb_hotplug_equal() 63 if (memcmp(&adev->ddesc, &bdev->ddesc, sizeof(adev->ddesc))) in libusb_hotplug_equal() 115 libusb_device *bdev; in libusb_hotplug_scan() local 134 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) { in libusb_hotplug_scan() 135 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan() 138 if (bdev == NULL) { in libusb_hotplug_scan() 153 TAILQ_FOREACH(bdev, &ctx->hotplug_devs, hotplug_entry) { in libusb_hotplug_scan() 154 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan() [all …]
|
| /freebsd-12.1/sys/dev/drm2/radeon/ |
| H A D | radeon_ttm.c | 55 mman = container_of(bdev, struct radeon_mman, bdev); in radeon_get_rdev() 129 rdev = radeon_get_rdev(bdev); in radeon_init_mem_type() 230 rdev = radeon_get_rdev(bo->bdev); in radeon_move_blit() 288 rdev = radeon_get_rdev(bo->bdev); in radeon_move_vram_ram() 335 rdev = radeon_get_rdev(bo->bdev); in radeon_move_ram_vram() 372 rdev = radeon_get_rdev(bo->bdev); in radeon_bo_move() 561 rdev = radeon_get_rdev(bdev); in radeon_ttm_tt_create() 605 rdev = radeon_get_rdev(ttm->bdev); in radeon_ttm_tt_populate() 653 rdev = radeon_get_rdev(ttm->bdev); in radeon_ttm_tt_unpopulate() 710 r = ttm_bo_device_init(&rdev->mman.bdev, in radeon_ttm_init() [all …]
|
| /freebsd-12.1/sys/mips/ingenic/ |
| H A D | jz4780_ehci.c | 233 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in jz4780_ehci_attach() 234 if (!sc->sc_bus.bdev) { in jz4780_ehci_attach() 238 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in jz4780_ehci_attach() 239 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in jz4780_ehci_attach() 258 err = device_probe_and_attach(sc->sc_bus.bdev); in jz4780_ehci_attach() 276 device_t bdev; in jz4780_ehci_detach() local 282 if (sc->sc_bus.bdev) { in jz4780_ehci_detach() 283 bdev = sc->sc_bus.bdev; in jz4780_ehci_detach() 284 device_detach(bdev); in jz4780_ehci_detach() 285 device_delete_child(dev, bdev); in jz4780_ehci_detach()
|
| H A D | jz4780_ohci.c | 209 sc->sc_ohci.sc_bus.bdev = device_add_child(dev, "usbus", -1); in jz4780_ohci_attach() 210 if (sc->sc_ohci.sc_bus.bdev == NULL) { in jz4780_ohci_attach() 214 device_set_ivars(sc->sc_ohci.sc_bus.bdev, &sc->sc_ohci.sc_bus); in jz4780_ohci_attach() 229 err = device_probe_and_attach(sc->sc_ohci.sc_bus.bdev); in jz4780_ohci_attach() 245 device_t bdev; in jz4780_ohci_detach() local 247 if (sc->sc_ohci.sc_bus.bdev) { in jz4780_ohci_detach() 248 bdev = sc->sc_ohci.sc_bus.bdev; in jz4780_ohci_detach() 249 device_detach(bdev); in jz4780_ohci_detach() 250 device_delete_child(dev, bdev); in jz4780_ohci_detach()
|
| /freebsd-12.1/sys/arm/samsung/exynos/ |
| H A D | exynos5_ehci.c | 313 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in exynos_ehci_attach() 314 if (!sc->sc_bus.bdev) { in exynos_ehci_attach() 323 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in exynos_ehci_attach() 330 err = device_probe_and_attach(sc->sc_bus.bdev); in exynos_ehci_attach() 334 device_delete_child(dev, sc->sc_bus.bdev); in exynos_ehci_attach() 335 sc->sc_bus.bdev = NULL; in exynos_ehci_attach() 387 if (sc->sc_bus.bdev) { in exynos_ehci_detach() 388 device_delete_child(dev, sc->sc_bus.bdev); in exynos_ehci_detach() 389 sc->sc_bus.bdev = NULL; in exynos_ehci_detach()
|
| /freebsd-12.1/sys/arm/nvidia/ |
| H A D | tegra_ehci.c | 93 device_printf(ehci_softc->sc_bus.bdev, "set host controller mode\n"); in tegra_ehci_post_reset() 122 if (esc->sc_bus.bdev != NULL) in tegra_ehci_detach() 123 device_delete_child(dev, esc->sc_bus.bdev); in tegra_ehci_detach() 264 esc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in tegra_ehci_attach() 265 if (esc->sc_bus.bdev == NULL) { in tegra_ehci_attach() 269 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus); in tegra_ehci_attach() 286 rv = device_probe_and_attach(esc->sc_bus.bdev); in tegra_ehci_attach()
|
| /freebsd-12.1/sys/dev/agp/ |
| H A D | agp_i810.c | 206 device_t bdev; /* bridge device */ member 761 device_t bdev; in agp_i810_probe() local 771 bdev = agp_i810_find_bridge(dev); in agp_i810_probe() 772 if (bdev == NULL) { in agp_i810_probe() 781 err = match->driver->check_active(bdev); in agp_i810_probe() 811 pci_read_config(sc->bdev, AGP_I830_GCC1, 1)); in agp_i830_dump_regs() 822 pci_read_config(sc->bdev, AGP_I855_GCC1, 1)); in agp_i855_dump_regs() 1267 sc->bdev = agp_i810_find_bridge(dev); in agp_i810_attach() 1268 if (sc->bdev == NULL) in agp_i810_attach() 2157 pci_write_config(sc->bdev, AGP_I965_IFPADDR, in agp_i965_chipset_flush_setup() [all …]
|
| /freebsd-12.1/sys/mips/mediatek/ |
| H A D | mtk_ehci.c | 128 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in ehci_fdt_attach() 129 if (!(sc->sc_bus.bdev)) { in ehci_fdt_attach() 133 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_fdt_attach() 134 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in ehci_fdt_attach() 148 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_fdt_attach()
|
| H A D | mtk_ohci.c | 128 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in ohci_fdt_attach() 129 if (!(sc->sc_bus.bdev)) { in ohci_fdt_attach() 133 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ohci_fdt_attach() 134 device_set_desc(sc->sc_bus.bdev, OHCI_HC_DEVSTR); in ohci_fdt_attach() 148 err = device_probe_and_attach(sc->sc_bus.bdev); in ohci_fdt_attach()
|
| /freebsd-12.1/sys/dev/bhnd/cores/usb/ |
| H A D | bhnd_ehci.c | 156 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in bhnd_ehci_attach() 157 if (!sc->sc_bus.bdev) { in bhnd_ehci_attach() 161 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in bhnd_ehci_attach() 162 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in bhnd_ehci_attach() 179 err = device_probe_and_attach(sc->sc_bus.bdev); in bhnd_ehci_attach()
|
| /freebsd-12.1/sys/powerpc/ps3/ |
| H A D | ohci_ps3.c | 119 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in ohci_ps3_attach() 120 if (!sc->sc_bus.bdev) { in ohci_ps3_attach() 125 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ohci_ps3_attach() 145 err = device_probe_and_attach(sc->sc_bus.bdev); in ohci_ps3_attach()
|
| /freebsd-12.1/sys/mips/atheros/ |
| H A D | ar71xx_ehci.c | 156 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in ar71xx_ehci_attach() 157 if (!sc->sc_bus.bdev) { in ar71xx_ehci_attach() 161 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ar71xx_ehci_attach() 162 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in ar71xx_ehci_attach() 218 err = device_probe_and_attach(sc->sc_bus.bdev); in ar71xx_ehci_attach()
|