Home
last modified time | relevance | path

Searched refs:bdev (Results 1 – 25 of 58) sorted by relevance

123

/dragonfly/sys/dev/drm/ttm/
H A Dttm_bo.c146 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release_list() local
166 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_to_lru() local
237 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_handle_move_mem() local
390 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_cleanup_refs_or_queue() local
586 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release() local
629 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_evict() local
829 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_mem_force_space() local
904 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_mem_space() local
1166 bo->bdev = bdev; in ttm_bo_init_reserved()
1431 man->bdev = bdev; in ttm_bo_init_mm()
[all …]
H A Dttm_bo_util.c141 return bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve()
146 ret = bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve()
167 bdev->driver->io_mem_free) in ttm_mem_io_free()
168 bdev->driver->io_mem_free(bdev, mem); in ttm_mem_io_free()
180 &bo->bdev->man[mem->mem_type]; in ttm_mem_io_reserve_vm()
200 ttm_mem_io_free(bo->bdev, mem); in ttm_mem_io_free_vm()
227 ttm_mem_io_free(bdev, mem); in ttm_mem_reg_ioremap()
246 ttm_mem_io_free(bdev, mem); in ttm_mem_reg_iounmap()
340 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_move_memcpy() local
669 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_move_accel_cleanup() local
[all …]
H A Dttm_bo_vm.c118 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()
394 if (bo->bdev->driver->access_memory) in ttm_bo_vm_access()
395 ret = bo->bdev->driver->access_memory( in ttm_bo_vm_access()
438 struct ttm_bo_device *bdev) in ttm_bo_mmap() argument
448 driver = bo->bdev->driver; in ttm_bo_mmap()
510 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_vm_fault_dfly() local
516 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault_dfly()
590 if (bdev->driver->fault_reserve_notify) { in ttm_bo_vm_fault_dfly()
[all …]
H A Dttm_tt.c53 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 Dttm_execbuf_util.c65 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()
/dragonfly/sys/dev/drm/include/drm/ttm/
H A Dttm_bo_api.h175 struct ttm_bo_device *bdev; member
424 int ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev);
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,
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);
731 struct ttm_bo_device *bdev);
757 ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
[all …]
H A Dttm_bo_driver.h172 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);
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()
770 int ttm_mem_io_reserve(struct ttm_bo_device *bdev,
[all …]
/dragonfly/lib/libusb/
H A Dlibusb10_hotplug.c57 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()
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()
145 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan()
[all …]
/dragonfly/sys/bus/u4b/controller/
H A Duhci_pci.c290 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 Dusb_controller.c333 device_printf(bus->bdev, "Controller shutdown\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()
528 if (udev == NULL || bus->bdev == NULL) in usb_bus_resume()
563 device_printf(bus->bdev, "Could not probe and " in usb_bus_resume()
587 if (bus->bdev == NULL || bus->no_explore != 0) in usb_bus_reset()
611 if (udev == NULL || bus->bdev == NULL) in usb_bus_shutdown()
616 bus_generic_shutdown(bus->bdev); in usb_bus_shutdown()
[all …]
H A Dohci_pci.c246 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 Dehci_pci.c333 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()
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()
534 device_printf(sc->sc_bus.bdev, "waiting for BIOS " in ehci_pci_take_controller()
[all …]
H A Dxhci_pci.c271 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 …]
/dragonfly/sys/dev/drm/radeon/
H A Dradeon_ttm.c58 mman = container_of(bdev, struct radeon_mman, bdev); in radeon_get_rdev()
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()
702 rdev = radeon_get_rdev(bo->bdev); in radeon_ttm_tt_create()
769 rdev = radeon_get_rdev(ttm->bdev); in radeon_ttm_tt_populate()
824 rdev = radeon_get_rdev(ttm->bdev); in radeon_ttm_tt_unpopulate()
909 r = ttm_bo_device_init(&rdev->mman.bdev, in radeon_ttm_init()
[all …]
/dragonfly/sys/dev/drm/amd/amdgpu/
H A Damdgpu_ttm.c182 adev = amdgpu_ttm_adev(bdev); in amdgpu_init_mem_type()
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()
1136 bo->bdev->man[bo->mem.mem_type].gpu_offset; in amdgpu_ttm_alloc_gart()
1219 adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_ttm_tt_create()
1301 adev = amdgpu_ttm_adev(ttm->bdev); in amdgpu_ttm_tt_unpopulate()
1741 r = ttm_bo_device_init(&adev->mman.bdev, in amdgpu_ttm_init()
1754 adev->ddev->drm_ttm_bdev = &adev->mman.bdev; in amdgpu_ttm_init()
1758 adev->mman.bdev.no_retry = true; in amdgpu_ttm_init()
[all …]
H A Damdgpu_object.c81 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()
881 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->tbo.bdev); in amdgpu_bo_pin_restricted()
1032 return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM); in amdgpu_bo_evict_vram()
1252 struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev); in amdgpu_bo_move_notify()
[all …]
H A Damdgpu_prime.c113 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 Damdgpu_vram_mgr.c109 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 Damdgpu_kms.c461 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 Damdgpu_gtt_mgr.c50 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()
/dragonfly/sys/dev/agp/
H A Dintel-gtt.c160 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()
838 sc->bdev = agp_i810_find_bridge(dev); in agp_i810_attach()
839 if (sc->bdev == NULL) in agp_i810_attach()
1583 pci_write_config(sc->bdev, AGP_I965_IFPADDR + 4, in agp_i965_chipset_flush_setup()
[all …]
/dragonfly/sys/gnu/dev/misc/apple_gmux/
H A Dapple-gmux.c810 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()
/dragonfly/sys/dev/drm/
H A Dlinux_irq.c70 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()
/dragonfly/sys/bus/firewire/
H A Dfwohci_pci.c351 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 Dfirewire.c231 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 …]

123