Searched refs:bdev (Results 1 - 25 of 88) sorted by relevance

1234

/freebsd-11-stable/sys/dev/drm2/ttm/
H A Dttm_bo.c62 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type) argument
64 struct ttm_mem_type_manager *man = &bdev->man[mem_type];
92 ttm_mem_type_debug(bo->bdev, mem_type);
113 struct ttm_bo_device *bdev = bo->bdev; local
132 ttm_mem_global_free(bdev->glob->mem_glob, acc_size);
161 struct ttm_bo_device *bdev = bo->bdev; local
170 man = &bdev->man[bo->mem.mem_type];
372 struct ttm_bo_device *bdev local
417 struct ttm_bo_device *bdev = bo->bdev; local
552 struct ttm_bo_device *bdev = bo->bdev; local
612 struct ttm_bo_device *bdev = bo->bdev; local
693 ttm_bo_delayed_delete(struct ttm_bo_device *bdev, bool remove_all) argument
750 struct ttm_bo_device *bdev = arg; local
760 struct ttm_bo_device *bdev = bo->bdev; local
788 ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev) argument
797 ttm_bo_unlock_delayed_workqueue(struct ttm_bo_device *bdev, int resched) argument
808 struct ttm_bo_device *bdev = bo->bdev; local
860 ttm_mem_evict_first(struct ttm_bo_device *bdev, uint32_t mem_type, bool interruptible, bool no_wait_gpu) argument
926 struct ttm_bo_device *bdev = bo->bdev; local
1005 struct ttm_bo_device *bdev = bo->bdev; local
1113 struct ttm_bo_device *bdev = bo->bdev; local
1217 ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo, unsigned long size, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t page_alignment, bool interruptible, struct vm_object *persistent_swap_storage, size_t acc_size, struct sg_table *sg, void (*destroy) (struct ttm_buffer_object *)) argument
1311 ttm_bo_acc_size(struct ttm_bo_device *bdev, unsigned long bo_size, unsigned struct_size) argument
1324 ttm_bo_dma_acc_size(struct ttm_bo_device *bdev, unsigned long bo_size, unsigned struct_size) argument
1338 ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size, enum ttm_bo_type type, struct ttm_placement *placement, uint32_t page_alignment, bool interruptible, struct vm_object *persistent_swap_storage, struct ttm_buffer_object **p_bo) argument
1362 ttm_bo_force_list_clean(struct ttm_bo_device *bdev, unsigned mem_type, bool allow_errors) argument
1390 ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type) argument
1420 ttm_bo_evict_mm(struct ttm_bo_device *bdev, unsigned mem_type) argument
1437 ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type, unsigned long p_size) argument
1535 ttm_bo_device_release(struct ttm_bo_device *bdev) argument
1581 ttm_bo_device_init(struct ttm_bo_device *bdev, struct ttm_bo_global *glob, struct ttm_bo_driver *driver, uint64_t file_page_offset, bool need_dma32) argument
1630 ttm_mem_reg_is_pci(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) argument
1656 struct ttm_bo_device *bdev = bo->bdev; local
1666 struct ttm_bo_device *bdev = bo->bdev; local
1685 struct ttm_bo_device *bdev = bo->bdev; local
1724 struct ttm_bo_device *bdev = bo->bdev; local
1776 struct ttm_bo_device *bdev = bo->bdev; local
1891 ttm_bo_swapout_all(struct ttm_bo_device *bdev) argument
[all...]
H A Dttm_bo_util.c116 static int ttm_mem_io_reserve(struct ttm_bo_device *bdev, argument
119 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type];
122 if (!bdev->driver->io_mem_reserve)
125 return bdev->driver->io_mem_reserve(bdev, mem);
127 if (bdev->driver->io_mem_reserve &&
130 ret = bdev->driver->io_mem_reserve(bdev, mem);
140 static void ttm_mem_io_free(struct ttm_bo_device *bdev, argument
143 struct ttm_mem_type_manager *man = &bdev
187 ttm_mem_reg_ioremap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, void **virtual) argument
219 ttm_mem_reg_iounmap(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem, void *virtual) argument
297 struct ttm_bo_device *bdev = bo->bdev; local
406 struct ttm_bo_device *bdev = bo->bdev; local
602 struct ttm_bo_device *bdev = bo->bdev; local
[all...]
H A Dttm_bo_api.h137 * @bdev: Pointer to the buffer object device structure.
193 struct ttm_bo_device *bdev; member in struct:ttm_buffer_object
224 * Members protected by the bdev::lru_lock.
235 * Members protected by the bdev::lru_lock
252 * Members protected by the bdev::vm_lock
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,
445 * @bdev: Pointer to a ttm_bo_device struct.
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,
[all...]
H A Dttm_bo_driver.h94 * @bdev: Pointer to a struct ttm_bo_device.
101 * @bdev: Pointer to the current struct ttm_bo_device.
113 struct ttm_bo_device *bdev; member in struct:ttm_tt
255 * @io_reserve_fastpath: Only use bdev::driver::io_mem_reserve to obtain
256 * static information. bdev::driver::io_mem_free is never used.
266 struct ttm_bo_device *bdev; member in struct:ttm_mem_type_manager
321 * @bdev: pointer to a struct ttm_bo_device:
331 struct ttm_tt *(*ttm_tt_create)(struct ttm_bo_device *bdev,
359 * @bdev: the buffer object device.
368 int (*invalidate_caches) (struct ttm_bo_device *bdev, uint32_
[all...]
H A Dttm_execbuf_util.c133 val_seq = entry->bo->bdev->val_seq++;
167 val_seq = entry->bo->bdev->val_seq++;
210 struct ttm_bo_device *bdev; local
217 bdev = bo->bdev;
218 driver = bdev->driver;
222 mtx_lock(&bdev->fence_lock);
231 mtx_unlock(&bdev->fence_lock);
H A Dttm_bo_vm.c71 static struct ttm_buffer_object *ttm_bo_vm_lookup_rb(struct ttm_bo_device *bdev, argument
79 bo = RB_ROOT(&bdev->addr_space_rb);
107 struct ttm_bo_device *bdev = bo->bdev; local
113 &bdev->man[bo->mem.mem_type];
134 if (bdev->driver->fault_reserve_notify) {
135 ret = bdev->driver->fault_reserve_notify(bo);
155 mtx_lock(&bdev->fence_lock);
174 mtx_unlock(&bdev->fence_lock);
180 mtx_unlock(&bdev
323 ttm_bo_mmap_single(struct ttm_bo_device *bdev, vm_ooffset_t *offset, vm_size_t size, struct vm_object **obj_res, int nprot) argument
[all...]
H A Dttm_tt.c172 ttm->bdev->driver->ttm_tt_unpopulate(ttm);
183 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev, argument
187 ttm->bdev = bdev;
188 ttm->glob = bdev->glob;
211 int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev, argument
217 ttm->bdev = bdev;
218 ttm->glob = bdev->glob;
267 ret = ttm->bdev
[all...]
/freebsd-11-stable/sys/dev/usb/controller/
H A Dsaf1761_otg_boot.c99 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
100 if (sc->sc_bus.bdev == NULL)
103 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
111 err = device_probe_and_attach(sc->sc_bus.bdev);
H A Duss820dci_atmelarm.c134 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
135 if (!(sc->sc_bus.bdev)) {
138 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
151 err = device_probe_and_attach(sc->sc_bus.bdev);
H A Dusb_controller.c340 DPRINTF("%s: Controller shutdown\n", device_get_nameunit(bus->bdev));
353 device_get_nameunit(bus->bdev));
434 dev = bus->bdev;
450 /* clear bdev variable last */
451 bus->bdev = NULL;
472 if (udev == NULL || bus->bdev == NULL)
486 bus_generic_shutdown(bus->bdev);
492 device_printf(bus->bdev, "Could not unconfigure root HUB\n");
529 if (udev == NULL || bus->bdev == NULL)
538 USB_TAKE_CONTROLLER(device_get_parent(bus->bdev));
[all...]
H A Dehci_fsl.c312 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
313 if (!sc->sc_bus.bdev) {
323 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
358 err = device_probe_and_attach(sc->sc_bus.bdev);
405 if (sc->sc_bus.bdev) {
406 device_delete_child(self, sc->sc_bus.bdev);
407 sc->sc_bus.bdev = NULL;
H A Dxhci_mv.c125 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
126 if (sc->sc_bus.bdev == NULL) {
132 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
135 device_set_desc(sc->sc_bus.bdev, XHCI_HC_DEVSTR);
160 err = device_probe_and_attach(sc->sc_bus.bdev);
/freebsd-11-stable/lib/libusb/
H A Dlibusb10_hotplug.c57 struct libusb20_device *bdev = _bdev->os_priv; local
59 if (adev->bus_number != bdev->bus_number)
61 if (adev->device_address != bdev->device_address)
63 if (memcmp(&adev->ddesc, &bdev->ddesc, sizeof(adev->ddesc)))
65 if (memcmp(&adev->session_data, &bdev->session_data, sizeof(adev->session_data)))
115 libusb_device *bdev; local
136 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) {
137 if (libusb_hotplug_equal(adev, bdev))
140 if (bdev == NULL) {
155 TAILQ_FOREACH(bdev,
[all...]
/freebsd-11-stable/sys/dev/drm2/radeon/
H A Dradeon_ttm.c50 static struct radeon_device *radeon_get_rdev(struct ttm_bo_device *bdev) argument
55 mman = container_of(bdev, struct radeon_mman, bdev);
119 static int radeon_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags) argument
124 static int radeon_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, argument
129 rdev = radeon_get_rdev(bdev);
230 rdev = radeon_get_rdev(bo->bdev);
288 rdev = radeon_get_rdev(bo->bdev);
335 rdev = radeon_get_rdev(bo->bdev);
372 rdev = radeon_get_rdev(bo->bdev);
410 radeon_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) argument
473 radeon_ttm_io_mem_free(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) argument
554 radeon_ttm_tt_create(struct ttm_bo_device *bdev, unsigned long size, uint32_t page_flags, vm_page_t dummy_read_page) argument
[all...]
/freebsd-11-stable/sys/arm/samsung/exynos/
H A Dexynos5_ehci.c313 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
314 if (!sc->sc_bus.bdev) {
323 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
330 err = device_probe_and_attach(sc->sc_bus.bdev);
334 device_delete_child(dev, sc->sc_bus.bdev);
335 sc->sc_bus.bdev = NULL;
387 if (sc->sc_bus.bdev) {
388 device_delete_child(dev, sc->sc_bus.bdev);
389 sc->sc_bus.bdev = NULL;
/freebsd-11-stable/sys/powerpc/ps3/
H A Dehci_ps3.c132 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
133 if (!sc->sc_bus.bdev) {
138 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
156 err = device_probe_and_attach(sc->sc_bus.bdev);
H A Dohci_ps3.c117 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
118 if (!sc->sc_bus.bdev) {
123 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
143 err = device_probe_and_attach(sc->sc_bus.bdev);
/freebsd-11-stable/sys/arm/nvidia/
H A Dtegra_ehci.c93 device_printf(ehci_softc->sc_bus.bdev, "set host controller mode\n");
122 if (esc->sc_bus.bdev != NULL)
123 device_delete_child(dev, esc->sc_bus.bdev);
264 esc->sc_bus.bdev = device_add_child(dev, "usbus", -1);
265 if (esc->sc_bus.bdev == NULL) {
269 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus);
286 rv = device_probe_and_attach(esc->sc_bus.bdev);
/freebsd-11-stable/sys/mips/atheros/
H A Dar71xx_ehci.c154 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
155 if (!sc->sc_bus.bdev) {
159 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
160 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR);
216 err = device_probe_and_attach(sc->sc_bus.bdev);
/freebsd-11-stable/sys/mips/mediatek/
H A Dmtk_ehci.c128 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
129 if (!(sc->sc_bus.bdev)) {
133 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
134 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR);
148 err = device_probe_and_attach(sc->sc_bus.bdev);
H A Dmtk_ohci.c128 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
129 if (!(sc->sc_bus.bdev)) {
133 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
134 device_set_desc(sc->sc_bus.bdev, OHCI_HC_DEVSTR);
148 err = device_probe_and_attach(sc->sc_bus.bdev);
/freebsd-11-stable/sys/mips/rmi/
H A Dxls_ehci.c125 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
126 if (!sc->sc_bus.bdev) {
130 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
131 device_set_desc(sc->sc_bus.bdev, xlr_usb_dev_desc);
150 err = device_probe_and_attach(sc->sc_bus.bdev);
/freebsd-11-stable/sys/mips/rt305x/
H A Drt305x_ehci.c141 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
142 if (!(sc->sc_bus.bdev)) {
146 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
147 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR);
161 err = device_probe_and_attach(sc->sc_bus.bdev);
H A Drt305x_ohci.c141 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
142 if (!(sc->sc_bus.bdev)) {
146 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
147 device_set_desc(sc->sc_bus.bdev, OHCI_HC_DEVSTR);
161 err = device_probe_and_attach(sc->sc_bus.bdev);
/freebsd-11-stable/sys/arm/cavium/cns11xx/
H A Dehci_ebus.c148 sc->sc_bus.bdev = device_add_child(self, "usbus", -1);
149 if (!sc->sc_bus.bdev) {
153 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus);
154 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR);
170 err = device_probe_and_attach(sc->sc_bus.bdev);

Completed in 317 milliseconds

1234