Home
last modified time | relevance | path

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

1234

/freebsd-13.1/sys/dev/drm2/ttm/
H A Dttm_bo.c113 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 Dttm_bo_util.c125 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 Dttm_bo_api.h193 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 Dttm_bo_vm.c107 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()
153 mtx_lock(&bdev->fence_lock); in ttm_bo_vm_fault()
172 mtx_unlock(&bdev->fence_lock); in ttm_bo_vm_fault()
178 mtx_unlock(&bdev->fence_lock); in ttm_bo_vm_fault()
325 rw_wlock(&bdev->vm_lock); in ttm_bo_mmap_single()
329 rw_wunlock(&bdev->vm_lock); in ttm_bo_mmap_single()
336 driver = bo->bdev->driver; in ttm_bo_mmap_single()
418 read_lock(&bdev->vm_lock);
422 read_unlock(&bdev->vm_lock);
[all …]
H A Dttm_bo_driver.h113 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 Dttm_execbuf_util.c133 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 Dttm_tt.c172 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()
353 ttm->bdev->driver->ttm_tt_unpopulate(ttm); in ttm_tt_swapout()
/freebsd-13.1/sys/contrib/openzfs/module/os/linux/zfs/
H A Dvdev_disk.c132 if (wholedisk && bdev != bdev_whole(bdev)) { in bdev_max_capacity()
202 bdev = vd->vd_bdev; in vdev_disk_open()
205 if (bdev) { in vdev_disk_open()
206 if (v->vdev_expanding && bdev != bdev_whole(bdev)) { in vdev_disk_open()
233 if (!IS_ERR(bdev)) { in vdev_disk_open()
278 bdev = ERR_PTR(-ENXIO); in vdev_disk_open()
292 if (IS_ERR(bdev)) { in vdev_disk_open()
302 vd->vd_bdev = bdev; in vdev_disk_open()
535 bio->bi_bdev = bdev; in vdev_bio_set_dev()
553 bio->bi_bdev = bdev; in bio_set_dev()
[all …]
/freebsd-13.1/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dblkdev_compat.h272 #define zfs_check_media_change(bdev) check_disk_change(bdev) argument
274 #define vdev_bdev_reread_part(bdev) blkdev_reread_part(bdev) argument
276 #define vdev_bdev_reread_part(bdev) check_disk_change(bdev) argument
302 #define vdev_bdev_reread_part(bdev) zfs_check_media_change(bdev) argument
332 if (IS_ERR(bdev)) in vdev_lookup_bdev()
333 return (PTR_ERR(bdev)); in vdev_lookup_bdev()
335 *dev = bdev->bd_dev; in vdev_lookup_bdev()
336 bdput(bdev); in vdev_lookup_bdev()
341 if (IS_ERR(bdev)) in vdev_lookup_bdev()
344 *dev = bdev->bd_dev; in vdev_lookup_bdev()
[all …]
/freebsd-13.1/sys/contrib/openzfs/config/
H A Dkernel-blkdev.m437 struct block_device *bdev = NULL;
40 blkdev_put(bdev, mode);
62 struct block_device *bdev = NULL;
65 error = blkdev_reread_part(bdev);
88 struct block_device *bdev = NULL;
91 error = check_disk_change(bdev);
143 invalidate_bdev(bdev);
179 bdev = lookup_bdev(path);
239 bdev_physical_block_size(bdev);
261 bdev_logical_block_size(bdev);
[all …]
/freebsd-13.1/stand/i386/zfsboot/
H A Dzfsboot.c109 static struct i386_devdesc *bdev; variable
227 if (bdev != NULL && bdev->dd.d_dev->dv_type == DEVT_ZFS) { in main()
245 if (zfs_get_bootenv(bdev, &benv) == 0) { in main()
248 zfs_set_bootenv(bdev, benv); in main()
256 free(bdev); in main()
528 free(bdev); in mount_root()
529 bdev = ddesc; in mount_root()
536 bdev->d_kind.biosdisk.slice + 1, in mount_root()
537 bdev->dd.d_unit, part); in mount_root()
714 if (pool_guid != 0 && bdev == NULL) { in i386_zfs_probe()
[all …]
/freebsd-13.1/sys/dev/usb/controller/
H A Dehci_msm.c130 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 Dusb_controller.c355 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 Dgeneric_xhci.c98 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in generic_xhci_attach()
99 if (sc->sc_bus.bdev == NULL) { in generic_xhci_attach()
105 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in generic_xhci_attach()
108 device_set_desc(sc->sc_bus.bdev, XHCI_HC_DEVSTR); in generic_xhci_attach()
133 err = device_probe_and_attach(sc->sc_bus.bdev); in generic_xhci_attach()
H A Dsaf1761_otg_boot.c99 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 Dehci_fsl.c313 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in fsl_ehci_attach()
314 if (!sc->sc_bus.bdev) { in fsl_ehci_attach()
324 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in fsl_ehci_attach()
359 err = device_probe_and_attach(sc->sc_bus.bdev); in fsl_ehci_attach()
406 if (sc->sc_bus.bdev) { in fsl_ehci_detach()
407 device_delete_child(self, sc->sc_bus.bdev); in fsl_ehci_detach()
408 sc->sc_bus.bdev = NULL; in fsl_ehci_detach()
/freebsd-13.1/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()
115 libusb_device *bdev; in libusb_hotplug_scan() local
136 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) { in libusb_hotplug_scan()
137 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan()
140 if (bdev == NULL) { in libusb_hotplug_scan()
155 TAILQ_FOREACH(bdev, &ctx->hotplug_devs, hotplug_entry) { in libusb_hotplug_scan()
156 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan()
[all …]
/freebsd-13.1/sys/mips/ingenic/
H A Djz4780_ehci.c233 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 Djz4780_ohci.c209 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-13.1/sys/arm/nvidia/
H A Dtegra_ehci.c95 device_printf(ehci_softc->sc_bus.bdev, "set host controller mode\n"); in tegra_ehci_post_reset()
124 if (esc->sc_bus.bdev != NULL) in tegra_ehci_detach()
125 device_delete_child(dev, esc->sc_bus.bdev); in tegra_ehci_detach()
266 esc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in tegra_ehci_attach()
267 if (esc->sc_bus.bdev == NULL) { in tegra_ehci_attach()
271 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus); in tegra_ehci_attach()
288 rv = device_probe_and_attach(esc->sc_bus.bdev); in tegra_ehci_attach()
/freebsd-13.1/sys/mips/mediatek/
H A Dmtk_ohci.c128 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()
H A Dmtk_ehci.c128 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 Dmtk_dotg.c116 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in dotg_fdt_attach()
117 if (!(sc->sc_bus.bdev)) { in dotg_fdt_attach()
121 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in dotg_fdt_attach()
126 err = device_probe_and_attach(sc->sc_bus.bdev); in dotg_fdt_attach()
/freebsd-13.1/sys/dev/agp/
H A Dagp_i810.c206 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()
2154 pci_write_config(sc->bdev, AGP_I965_IFPADDR, in agp_i965_chipset_flush_setup()
[all …]
/freebsd-13.1/sys/dev/bhnd/cores/usb/
H A Dbhnd_ehci.c156 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()

1234