| /dflybsd-src/sys/dev/drm/ttm/ |
| H A D | ttm_bo.c | 75 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type) in ttm_mem_type_debug() argument 77 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; in ttm_mem_type_debug() 106 ttm_mem_type_debug(bo->bdev, mem_type); in ttm_bo_mem_space_debug() 146 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release_list() local 156 atomic_dec(&bo->bdev->glob->bo_count); in ttm_bo_release_list() 161 ttm_mem_global_free(bdev->glob->mem_glob, acc_size); in ttm_bo_release_list() 166 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_to_lru() local 178 man = &bdev->man[bo->mem.mem_type]; in ttm_bo_add_to_lru() 185 &bdev->glob->swap_lru[bo->priority]); in ttm_bo_add_to_lru() 216 struct ttm_bo_global *glob = bo->bdev->glob; in ttm_bo_del_sub_from_lru() [all …]
|
| H A D | ttm_bo_util.c | 132 int ttm_mem_io_reserve(struct ttm_bo_device *bdev, in ttm_mem_io_reserve() argument 135 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_reserve() 138 if (!bdev->driver->io_mem_reserve) in ttm_mem_io_reserve() 141 return bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve() 143 if (bdev->driver->io_mem_reserve && in ttm_mem_io_reserve() 146 ret = bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve() 157 void ttm_mem_io_free(struct ttm_bo_device *bdev, in ttm_mem_io_free() argument 160 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_free() 165 if (bdev->driver->io_mem_reserve && in ttm_mem_io_free() 167 bdev->driver->io_mem_free) in ttm_mem_io_free() [all …]
|
| H A D | ttm_bo_vm.c | 118 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_vm_fault() 129 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault() 171 if (bdev->driver->fault_reserve_notify) { in ttm_bo_vm_fault() 172 ret = bdev->driver->fault_reserve_notify(bo); in ttm_bo_vm_fault() 314 WARN_ON(bo->bdev->dev_mapping != vma->vm_file->f_mapping); in ttm_bo_vm_open() 394 if (bo->bdev->driver->access_memory) in ttm_bo_vm_access() 395 ret = bo->bdev->driver->access_memory( in ttm_bo_vm_access() 413 static struct ttm_buffer_object *ttm_bo_vm_lookup(struct ttm_bo_device *bdev, in ttm_bo_vm_lookup() argument 420 drm_vma_offset_lock_lookup(&bdev->vma_manager); in ttm_bo_vm_lookup() 422 node = drm_vma_offset_lookup_locked(&bdev->vma_manager, offset, pages); in ttm_bo_vm_lookup() [all …]
|
| H A D | ttm_tt.c | 53 struct ttm_bo_device *bdev = bo->bdev; in ttm_tt_create() local 58 if (bdev->need_dma32) in ttm_tt_create() 61 if (bdev->no_retry) in ttm_tt_create() 80 bo->ttm = bdev->driver->ttm_tt_create(bo, page_flags); in ttm_tt_create() 237 ttm->bdev = bo->bdev; in ttm_tt_init_fields() 461 ttm->pages[i]->mapping = ttm->bdev->dev_mapping; in ttm_tt_add_mapping() 472 if (ttm->bdev->driver->ttm_tt_populate) in ttm_tt_populate() 473 ret = ttm->bdev->driver->ttm_tt_populate(ttm, ctx); in ttm_tt_populate() 503 if (ttm->bdev->driver->ttm_tt_unpopulate) in ttm_tt_unpopulate() 504 ttm->bdev->driver->ttm_tt_unpopulate(ttm); in ttm_tt_unpopulate()
|
| H A D | ttm_execbuf_util.c | 65 glob = entry->bo->bdev->glob; in ttm_eu_backoff_reservation() 105 glob = entry->bo->bdev->glob; in ttm_eu_reserve_buffers() 186 struct ttm_bo_device *bdev; in ttm_eu_fence_buffer_objects() local 193 bdev = bo->bdev; in ttm_eu_fence_buffer_objects() 194 driver = bdev->driver; in ttm_eu_fence_buffer_objects() 195 glob = bo->bdev->glob; in ttm_eu_fence_buffer_objects()
|
| /dflybsd-src/sys/dev/drm/include/drm/ttm/ |
| H A D | ttm_bo_api.h | 175 struct ttm_bo_device *bdev; member 424 int ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev); 431 void ttm_bo_unlock_delayed_workqueue(struct ttm_bo_device *bdev, int resched); 478 size_t ttm_bo_acc_size(struct ttm_bo_device *bdev, 481 size_t ttm_bo_dma_acc_size(struct ttm_bo_device *bdev, 520 int ttm_bo_init_reserved(struct ttm_bo_device *bdev, 565 int ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo, 591 int ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size, 611 int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type, 640 int ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type); [all …]
|
| H A D | ttm_bo_driver.h | 172 struct ttm_bo_device *bdev; member 272 int (*invalidate_caches)(struct ttm_bo_device *bdev, uint32_t flags); 273 int (*init_mem_type)(struct ttm_bo_device *bdev, uint32_t type, 355 int (*io_mem_reserve)(struct ttm_bo_device *bdev, 357 void (*io_mem_free)(struct ttm_bo_device *bdev, 523 bool ttm_mem_reg_is_pci(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem); 556 int ttm_bo_device_release(struct ttm_bo_device *bdev); 573 int ttm_bo_device_init(struct ttm_bo_device *bdev, struct ttm_bo_global *glob, 759 lockmgr(&bo->bdev->glob->lru_lock, LK_EXCLUSIVE); in ttm_bo_unreserve() 761 lockmgr(&bo->bdev->glob->lru_lock, LK_RELEASE); in ttm_bo_unreserve() [all …]
|
| /dflybsd-src/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() 65 if (memcmp(&adev->session_data, &bdev->session_data, sizeof(adev->session_data))) in libusb_hotplug_equal() 98 libusb_device *bdev; in libusb_hotplug_scan() local 125 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) { in libusb_hotplug_scan() 126 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan() 129 if (bdev == NULL) { in libusb_hotplug_scan() 144 TAILQ_FOREACH(bdev, &ctx->hotplug_devs, hotplug_entry) { in libusb_hotplug_scan() [all …]
|
| /dflybsd-src/sys/bus/u4b/controller/ |
| H A D | uhci_pci.c | 290 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in uhci_pci_attach() 291 if (!sc->sc_bus.bdev) { in uhci_pci_attach() 295 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in uhci_pci_attach() 301 device_set_desc(sc->sc_bus.bdev, uhci_pci_match(self)); in uhci_pci_attach() 355 err = device_probe_and_attach(sc->sc_bus.bdev); in uhci_pci_attach() 372 device_t bdev; in uhci_pci_detach() local 374 if (sc->sc_bus.bdev) { in uhci_pci_detach() 375 bdev = sc->sc_bus.bdev; in uhci_pci_detach() 376 device_detach(bdev); in uhci_pci_detach() 377 device_delete_child(self, bdev); in uhci_pci_detach()
|
| H A D | usb_controller.c | 333 device_printf(bus->bdev, "Controller shutdown\n"); in usb_shutdown() 345 device_printf(bus->bdev, "Controller shutdown complete\n"); in usb_shutdown() 428 dev = bus->bdev; in usb_bus_detach() 450 bus->bdev = NULL; in usb_bus_detach() 471 if (udev == NULL || bus->bdev == NULL) in usb_bus_suspend() 485 bus_generic_shutdown(bus->bdev); in usb_bus_suspend() 491 device_printf(bus->bdev, "Could not unconfigure root HUB\n"); in usb_bus_suspend() 528 if (udev == NULL || bus->bdev == NULL) in usb_bus_resume() 537 USB_TAKE_CONTROLLER(device_get_parent(bus->bdev)); in usb_bus_resume() 558 device_printf(bus->bdev, "Could not configure root HUB\n"); in usb_bus_resume() [all …]
|
| H A D | ohci_pci.c | 246 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in ohci_pci_attach() 247 if (!sc->sc_bus.bdev) { in ohci_pci_attach() 251 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ohci_pci_attach() 257 device_set_desc(sc->sc_bus.bdev, ohci_pci_match(self)); in ohci_pci_attach() 309 err = device_probe_and_attach(sc->sc_bus.bdev); in ohci_pci_attach() 326 device_t bdev; in ohci_pci_detach() local 328 if (sc->sc_bus.bdev) { in ohci_pci_detach() 329 bdev = sc->sc_bus.bdev; in ohci_pci_detach() 330 device_detach(bdev); in ohci_pci_detach() 331 device_delete_child(self, bdev); in ohci_pci_detach()
|
| H A D | ehci_pci.c | 333 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in ehci_pci_attach() 334 if (!sc->sc_bus.bdev) { in ehci_pci_attach() 338 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_pci_attach() 344 device_set_desc(sc->sc_bus.bdev, ehci_pci_match(self)); in ehci_pci_attach() 453 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_pci_attach() 470 device_t bdev; in ehci_pci_detach() local 472 if (sc->sc_bus.bdev) { in ehci_pci_detach() 473 bdev = sc->sc_bus.bdev; in ehci_pci_detach() 474 device_detach(bdev); in ehci_pci_detach() 475 device_delete_child(self, bdev); in ehci_pci_detach() [all …]
|
| H A D | xhci_pci.c | 271 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in xhci_pci_attach() 272 if (sc->sc_bus.bdev == NULL) { in xhci_pci_attach() 276 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in xhci_pci_attach() 330 err = device_probe_and_attach(sc->sc_bus.bdev); in xhci_pci_attach() 351 device_t bdev; in xhci_pci_detach() local 353 if (sc->sc_bus.bdev != NULL) { in xhci_pci_detach() 354 bdev = sc->sc_bus.bdev; in xhci_pci_detach() 355 device_detach(bdev); in xhci_pci_detach() 356 device_delete_child(self, bdev); in xhci_pci_detach() 412 device_printf(sc->sc_bus.bdev, "waiting for BIOS " in xhci_pci_take_controller() [all …]
|
| /dflybsd-src/sys/dev/drm/radeon/ |
| H A D | radeon_ttm.c | 53 static struct radeon_device *radeon_get_rdev(struct ttm_bo_device *bdev) in radeon_get_rdev() argument 58 mman = container_of(bdev, struct radeon_mman, bdev); in radeon_get_rdev() 122 static int radeon_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags) in radeon_invalidate_caches() argument 127 static int radeon_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, in radeon_init_mem_type() argument 132 rdev = radeon_get_rdev(bdev); in radeon_init_mem_type() 267 rdev = radeon_get_rdev(bo->bdev); in radeon_move_blit() 324 rdev = radeon_get_rdev(bo->bdev); in radeon_move_vram_ram() 371 rdev = radeon_get_rdev(bo->bdev); in radeon_move_ram_vram() 416 rdev = radeon_get_rdev(bo->bdev); in radeon_bo_move() 461 static int radeon_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) in radeon_ttm_io_mem_reserve() argument [all …]
|
| /dflybsd-src/sys/dev/drm/amd/amdgpu/ |
| H A D | amdgpu_ttm.c | 161 static int amdgpu_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags) in amdgpu_invalidate_caches() argument 177 static int amdgpu_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, in amdgpu_init_mem_type() argument 182 adev = amdgpu_ttm_adev(bdev); in amdgpu_init_mem_type() 236 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_evict_flags() 353 addr += bo->bdev->man[mem->mem_type].gpu_offset; in amdgpu_mm_node_addr() 514 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_move_blit() 559 adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_move_vram_ram() 617 adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_move_ram_vram() 669 adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_bo_move() 725 static int amdgpu_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) in amdgpu_ttm_io_mem_reserve() argument [all …]
|
| H A D | amdgpu_object.c | 81 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_bo_subtract_pin_size() 94 struct amdgpu_device *adev = amdgpu_ttm_adev(tbo->bdev); in amdgpu_bo_destroy() 145 struct amdgpu_device *adev = amdgpu_ttm_adev(abo->tbo.bdev); in amdgpu_bo_placement_from_domain() 401 man = &adev->mman.bdev.man[TTM_PL_TT]; in amdgpu_bo_validate_size() 410 man = &adev->mman.bdev.man[TTM_PL_VRAM]; in amdgpu_bo_validate_size() 452 acc_size = ttm_bo_dma_acc_size(&adev->mman.bdev, size, in amdgpu_bo_do_create() 498 bo->tbo.bdev = &adev->mman.bdev; in amdgpu_bo_do_create() 503 r = ttm_bo_init_reserved(&adev->mman.bdev, &bo->tbo, size, bp->type, in amdgpu_bo_do_create() 881 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_bo_pin_restricted() 913 u64 domain_start = bo->tbo.bdev->man[mem_type].gpu_offset; in amdgpu_bo_pin_restricted() [all …]
|
| H A D | amdgpu_prime.c | 113 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_gem_prime_mmap() 138 ret = ttm_bo_mmap(vma->vm_file, vma, &adev->mman.bdev); in amdgpu_gem_prime_mmap() 256 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); 312 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); 360 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev);
|
| H A D | amdgpu_vram_mgr.c | 109 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_vram_mgr_bo_visible_size() 142 struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); in amdgpu_vram_mgr_new() 239 struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); in amdgpu_vram_mgr_del()
|
| H A D | amdgpu_kms.c | 461 ui64 = amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl() 464 ui64 = amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl() 467 ui64 = amdgpu_gtt_mgr_usage(&adev->mman.bdev.man[TTM_PL_TT]); in amdgpu_info_ioctl() 490 vram_gtt.gtt_size = adev->mman.bdev.man[TTM_PL_TT].size; in amdgpu_info_ioctl() 504 amdgpu_vram_mgr_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl() 512 amdgpu_vram_mgr_vis_usage(&adev->mman.bdev.man[TTM_PL_VRAM]); in amdgpu_info_ioctl() 516 mem.gtt.total_heap_size = adev->mman.bdev.man[TTM_PL_TT].size; in amdgpu_info_ioctl() 521 amdgpu_gtt_mgr_usage(&adev->mman.bdev.man[TTM_PL_TT]); in amdgpu_info_ioctl()
|
| H A D | amdgpu_gtt_mgr.c | 50 struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); in amdgpu_gtt_mgr_init() 115 struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev); in amdgpu_gtt_mgr_alloc()
|
| /dflybsd-src/sys/dev/agp/ |
| H A D | intel-gtt.c | 160 device_t bdev; /* bridge device */ member 503 device_t bdev; in agp_i810_probe() local 513 bdev = agp_i810_find_bridge(dev); in agp_i810_probe() 514 if (bdev == NULL) { in agp_i810_probe() 524 err = match->driver->check_active(bdev); in agp_i810_probe() 544 pci_read_config(sc->bdev, AGP_I855_GCC1, 1)); in agp_i915_dump_regs() 546 pci_read_config(sc->bdev, AGP_I915_MSAC, 1)); in agp_i915_dump_regs() 609 gcc1 = pci_read_config(sc->bdev, AGP_I855_GCC1, 2); in agp_i915_get_stolen_size() 632 gcc1 = pci_read_config(sc->bdev, AGP_I855_GCC1, 1); in agp_i915_get_stolen_size() 790 gcc1 = pci_read_config(sc->bdev, AGP_I830_GCC1, 2); in agp_gen5_get_gtt_total_entries() [all …]
|
| /dflybsd-src/sys/gnu/dev/misc/apple_gmux/ |
| H A D | apple-gmux.c | 810 bdev = backlight_device_register("gmux_backlight", &pnp->dev, in apple_gmux_attach() 812 if (IS_ERR(bdev)) { in apple_gmux_attach() 813 ret = PTR_ERR(bdev); in apple_gmux_attach() 817 gmux_data->bdev = bdev; in apple_gmux_attach() 818 bdev->props.brightness = gmux_get_brightness(bdev); in apple_gmux_attach() 819 backlight_update_status(bdev); in apple_gmux_attach()
|
| /dflybsd-src/sys/dev/drm/ |
| H A D | linux_irq.c | 70 device_t bdev = ddev->dev->bsddev; in request_irq() local 84 error = bus_setup_intr(bdev, irq_entry->resource, INTR_MPSAFE, in request_irq() 89 bus_release_resource(bdev, SYS_RES_IRQ, in request_irq()
|
| /dflybsd-src/sys/bus/firewire/ |
| H A D | fwohci_pci.c | 351 if (sc->fc.bdev) { in fwohci_pci_detach() 352 device_delete_child(self, sc->fc.bdev); in fwohci_pci_detach() 353 sc->fc.bdev = NULL; in fwohci_pci_detach() 439 sc->fc.bdev = child; in fwohci_pci_add_child()
|
| H A D | firewire.c | 231 device_printf(fc->bdev, "Discard a packet (queued=%d)\n", in fw_asyreq() 286 device_printf(fc->bdev, "max_asyretry exceeded\n"); in fw_asystart() 344 device_printf(fc->bdev, in firewire_xfer_timeout() 652 if (device_get_children(fc->bdev, &devlistp, &devcnt) == 0) { in fw_busreset() 1184 device_printf(fc->bdev, "%d nodes", fc->max_node + 1); in fw_sidrcv() 1333 device_printf(fc->bdev, "New %s device ID:%08x%08x\n", in fw_bus_explore() 1615 err = device_get_children(fc->bdev, &devlistp, &devcnt); in fw_attach_dev() 1877 device_printf(rb->fc->bdev, in fw_rcv() 1932 sc = device_get_softc(rb->fc->bdev); in fw_rcv() 1982 device_printf(fc->bdev, "bus manager election failed\n"); in fw_try_bmr_callback() [all …]
|