Home
last modified time | relevance | path

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

123

/freebsd-14.2/sys/dev/drm2/ttm/
H A Dttm_bo.c111 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release_list() local
159 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_to_lru() local
370 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_ttm() local
415 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_handle_move_mem() local
550 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_cleanup_refs_or_queue() local
610 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_cleanup_refs_and_unlock() local
758 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release() local
806 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_evict() local
924 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_mem_force_space() local
1261 bo->bdev = bdev; in ttm_bo_init()
[all …]
H A Dttm_bo_util.c123 return bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve()
128 ret = bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve()
148 bdev->driver->io_mem_free) in ttm_mem_io_free()
149 bdev->driver->io_mem_free(bdev, mem); in ttm_mem_io_free()
207 ttm_mem_io_free(bdev, mem); in ttm_mem_reg_ioremap()
227 ttm_mem_io_free(bdev, mem); in ttm_mem_reg_iounmap()
295 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_move_memcpy() local
404 struct ttm_bo_device *bdev = bo->bdev; in ttm_buffer_object_transfer() local
422 mtx_lock(&bdev->fence_lock); in ttm_buffer_object_transfer()
600 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_move_accel_cleanup() local
[all …]
H A Dttm_bo_api.h192 struct ttm_bo_device *bdev; member
405 extern int ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev);
412 extern void ttm_bo_unlock_delayed_workqueue(struct ttm_bo_device *bdev,
450 size_t ttm_bo_acc_size(struct ttm_bo_device *bdev,
453 size_t ttm_bo_dma_acc_size(struct ttm_bo_device *bdev,
491 extern int ttm_bo_init(struct ttm_bo_device *bdev,
529 extern int ttm_bo_create(struct ttm_bo_device *bdev,
568 extern int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type,
597 extern int ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type);
719 extern ssize_t ttm_bo_io(struct ttm_bo_device *bdev, struct file *filp,
[all …]
H A Dttm_bo_vm.c105 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_vm_fault() local
111 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault()
151 mtx_lock(&bdev->fence_lock); in ttm_bo_vm_fault()
170 mtx_unlock(&bdev->fence_lock); in ttm_bo_vm_fault()
176 mtx_unlock(&bdev->fence_lock); in ttm_bo_vm_fault()
323 rw_wlock(&bdev->vm_lock); in ttm_bo_mmap_single()
327 rw_wunlock(&bdev->vm_lock); in ttm_bo_mmap_single()
334 driver = bo->bdev->driver; in ttm_bo_mmap_single()
416 read_lock(&bdev->vm_lock);
420 read_unlock(&bdev->vm_lock);
[all …]
H A Dttm_bo_driver.h112 struct ttm_bo_device *bdev; member
265 struct ttm_bo_device *bdev; member
330 struct ttm_tt *(*ttm_tt_create)(struct ttm_bo_device *bdev,
367 int (*invalidate_caches) (struct ttm_bo_device *bdev, uint32_t flags);
368 int (*init_mem_type) (struct ttm_bo_device *bdev, uint32_t type,
452 void (*io_mem_free)(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem);
599 extern int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev,
695 extern bool ttm_mem_reg_is_pci(struct ttm_bo_device *bdev,
731 extern int ttm_bo_device_release(struct ttm_bo_device *bdev);
747 extern int ttm_bo_device_init(struct ttm_bo_device *bdev,
[all …]
H A Dttm_execbuf_util.c131 val_seq = entry->bo->bdev->val_seq++; in ttm_eu_reserve_buffers()
165 val_seq = entry->bo->bdev->val_seq++; in ttm_eu_reserve_buffers()
208 struct ttm_bo_device *bdev; in ttm_eu_fence_buffer_objects() local
215 bdev = bo->bdev; in ttm_eu_fence_buffer_objects()
216 driver = bdev->driver; in ttm_eu_fence_buffer_objects()
220 mtx_lock(&bdev->fence_lock); in ttm_eu_fence_buffer_objects()
229 mtx_unlock(&bdev->fence_lock); in ttm_eu_fence_buffer_objects()
H A Dttm_tt.c170 ttm->bdev->driver->ttm_tt_unpopulate(ttm); in ttm_tt_destroy()
181 int ttm_tt_init(struct ttm_tt *ttm, struct ttm_bo_device *bdev, in ttm_tt_init() argument
185 ttm->bdev = bdev; in ttm_tt_init()
186 ttm->glob = bdev->glob; in ttm_tt_init()
209 int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev, in ttm_dma_tt_init() argument
215 ttm->bdev = bdev; in ttm_dma_tt_init()
216 ttm->glob = bdev->glob; in ttm_dma_tt_init()
265 ret = ttm->bdev->driver->ttm_tt_populate(ttm); in ttm_tt_bind()
351 ttm->bdev->driver->ttm_tt_unpopulate(ttm); in ttm_tt_swapout()
/freebsd-14.2/sys/contrib/openzfs/include/os/linux/kernel/linux/
H A Dblkdev_compat.h326 #define zfs_check_media_change(bdev) check_disk_change(bdev) argument
328 #define vdev_bdev_reread_part(bdev) blkdev_reread_part(bdev) argument
330 #define vdev_bdev_reread_part(bdev) check_disk_change(bdev) argument
356 #define vdev_bdev_reread_part(bdev) zfs_check_media_change(bdev) argument
358 #define vdev_bdev_reread_part(bdev) disk_check_media_change(bdev->bd_disk) argument
389 if (IS_ERR(bdev)) in vdev_lookup_bdev()
392 *dev = bdev->bd_dev; in vdev_lookup_bdev()
393 bdput(bdev); in vdev_lookup_bdev()
398 if (IS_ERR(bdev)) in vdev_lookup_bdev()
401 *dev = bdev->bd_dev; in vdev_lookup_bdev()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/os/linux/zfs/
H A Dvdev_disk.c164 return (bdev->bd_contains); in bdev_whole()
169 #define vdev_bdevname(bdev, name) bdevname(bdev, name) argument
202 if (wholedisk && bdev != bdev_whole(bdev)) { in bdev_max_capacity()
319 if (v->vdev_expanding && bdev != bdev_whole(bdev)) { in vdev_disk_open()
581 if (bio->bi_bdev != bdev) in vdev_bio_set_dev()
583 bio->bi_bdev = bdev; in vdev_bio_set_dev()
601 bio->bi_bdev = bdev; in bio_set_dev()
626 bio_set_dev(bio, bdev); in vdev_bio_alloc()
697 vbio->vbio_bdev = bdev; in vbio_alloc()
1244 q = bdev_get_queue(bdev); in vdev_disk_io_flush()
[all …]
/freebsd-14.2/sys/contrib/openzfs/config/
H A Dkernel-blkdev.m4144 struct block_device *bdev = NULL;
147 blkdev_put(bdev, mode);
163 blkdev_put(bdev, holder);
253 error = check_disk_change(bdev);
306 disk_kobj = bdev_kobj(bdev);
383 invalidate_bdev(bdev);
419 bdev = lookup_bdev(path);
479 bdev_physical_block_size(bdev);
501 bdev_logical_block_size(bdev);
523 bdev = bdev_whole(bdev);
[all …]
H A Dkernel-generic_io_acct.m48 struct block_device *bdev = NULL;
13 start_time = bdev_start_io_acct(bdev, bio_op(bio),
15 bdev_end_io_acct(bdev, bio_op(bio), bio_sectors(bio), start_time);
21 struct block_device *bdev = NULL;
26 start_time = bdev_start_io_acct(bdev, bio_sectors(bio),
28 bdev_end_io_acct(bdev, bio_op(bio), start_time);
/freebsd-14.2/stand/i386/zfsboot/
H A Dzfsboot.c106 static struct i386_devdesc *bdev; variable
224 if (bdev != NULL && bdev->dd.d_dev->dv_type == DEVT_ZFS) { in main()
245 zfs_set_bootenv(bdev, benv); in main()
253 free(bdev); in main()
525 free(bdev); in mount_root()
526 bdev = ddesc; in mount_root()
528 if (bdev->disk.d_partition == -1) in mount_root()
531 part = bdev->disk.d_partition; in mount_root()
533 bdev->disk.d_slice + 1, bdev->dd.d_unit, part); in mount_root()
713 bdev->zfs.dd.d_dev = &zfs_dev; in i386_zfs_probe()
[all …]
/freebsd-14.2/sys/dev/usb/controller/
H A Dehci_msm.c128 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in ehci_msm_attach()
129 if (!sc->sc_bus.bdev) { in ehci_msm_attach()
133 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_msm_attach()
134 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in ehci_msm_attach()
151 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_msm_attach()
169 device_t bdev; in ehci_msm_detach() local
174 if (sc->sc_bus.bdev) { in ehci_msm_detach()
175 bdev = sc->sc_bus.bdev; in ehci_msm_detach()
176 device_detach(bdev); in ehci_msm_detach()
177 device_delete_child(dev, bdev); in ehci_msm_detach()
H A Dusb_controller.c351 device_get_nameunit(bus->bdev)); in usb_shutdown()
434 dev = bus->bdev; in usb_bus_detach()
451 bus->bdev = NULL; in usb_bus_detach()
472 if (udev == NULL || bus->bdev == NULL) in usb_bus_suspend()
486 bus_generic_shutdown(bus->bdev); in usb_bus_suspend()
529 if (udev == NULL || bus->bdev == NULL) in usb_bus_resume()
564 device_printf(bus->bdev, "Could not probe and " in usb_bus_resume()
588 if (bus->bdev == NULL || bus->no_explore != 0) in usb_bus_reset()
612 if (udev == NULL || bus->bdev == NULL) in usb_bus_shutdown()
617 bus_generic_shutdown(bus->bdev); in usb_bus_shutdown()
[all …]
H A Dgeneric_xhci.c102 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in generic_xhci_attach()
103 if (sc->sc_bus.bdev == NULL) { in generic_xhci_attach()
109 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in generic_xhci_attach()
112 device_set_desc(sc->sc_bus.bdev, XHCI_HC_DEVSTR); in generic_xhci_attach()
138 err = device_probe_and_attach(sc->sc_bus.bdev); in generic_xhci_attach()
H A Dehci_fsl.c309 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in fsl_ehci_attach()
310 if (!sc->sc_bus.bdev) { in fsl_ehci_attach()
320 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in fsl_ehci_attach()
355 err = device_probe_and_attach(sc->sc_bus.bdev); in fsl_ehci_attach()
402 if (sc->sc_bus.bdev) { in fsl_ehci_detach()
403 device_delete_child(self, sc->sc_bus.bdev); in fsl_ehci_detach()
404 sc->sc_bus.bdev = NULL; in fsl_ehci_detach()
H A Dehci_pci.c359 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in ehci_pci_attach()
360 if (!sc->sc_bus.bdev) { in ehci_pci_attach()
364 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_pci_attach()
370 device_set_desc(sc->sc_bus.bdev, ehci_pci_match(self)); in ehci_pci_attach()
487 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_pci_attach()
562 device_printf(sc->sc_bus.bdev, "waiting for BIOS " in ehci_pci_take_controller()
574 device_printf(sc->sc_bus.bdev, in ehci_pci_take_controller()
H A Dgeneric_ehci.c103 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in generic_ehci_attach()
104 if (!sc->sc_bus.bdev) { in generic_ehci_attach()
108 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in generic_ehci_attach()
124 err = device_probe_and_attach(sc->sc_bus.bdev); in generic_ehci_attach()
H A Dmusb_otg_allwinner.c498 sc->sc.sc_bus.bdev = device_add_child(dev, "usbus", -1); in awusbdrd_attach()
499 if (sc->sc.sc_bus.bdev == NULL) { in awusbdrd_attach()
503 device_set_ivars(sc->sc.sc_bus.bdev, &sc->sc.sc_bus); in awusbdrd_attach()
537 error = device_probe_and_attach(sc->sc.sc_bus.bdev); in awusbdrd_attach()
565 device_t bdev; in awusbdrd_detach() local
570 if (sc->sc.sc_bus.bdev != NULL) { in awusbdrd_detach()
571 bdev = sc->sc.sc_bus.bdev; in awusbdrd_detach()
572 device_detach(bdev); in awusbdrd_detach()
573 device_delete_child(dev, bdev); in awusbdrd_detach()
/freebsd-14.2/lib/libusb/
H A Dlibusb10_hotplug.c56 struct libusb20_device *bdev = _bdev->os_priv; in libusb_hotplug_equal() local
58 if (adev->bus_number != bdev->bus_number) in libusb_hotplug_equal()
60 if (adev->device_address != bdev->device_address) in libusb_hotplug_equal()
62 if (memcmp(&adev->ddesc, &bdev->ddesc, sizeof(adev->ddesc))) in libusb_hotplug_equal()
114 libusb_device *bdev; in libusb_hotplug_scan() local
135 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) { in libusb_hotplug_scan()
136 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan()
139 if (bdev == NULL) { in libusb_hotplug_scan()
154 TAILQ_FOREACH(bdev, &ctx->hotplug_devs, hotplug_entry) { in libusb_hotplug_scan()
155 if (libusb_hotplug_equal(adev, bdev)) in libusb_hotplug_scan()
[all …]
/freebsd-14.2/sys/arm/nvidia/
H A Dtegra_ehci.c93 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()
262 esc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in tegra_ehci_attach()
263 if (esc->sc_bus.bdev == NULL) { in tegra_ehci_attach()
267 device_set_ivars(esc->sc_bus.bdev, &esc->sc_bus); in tegra_ehci_attach()
284 rv = device_probe_and_attach(esc->sc_bus.bdev); in tegra_ehci_attach()
/freebsd-14.2/sys/powerpc/ps3/
H A Dohci_ps3.c115 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in ohci_ps3_attach()
116 if (!sc->sc_bus.bdev) { in ohci_ps3_attach()
121 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ohci_ps3_attach()
141 err = device_probe_and_attach(sc->sc_bus.bdev); in ohci_ps3_attach()
H A Dehci_ps3.c125 sc->sc_bus.bdev = device_add_child(dev, "usbus", -1); in ehci_ps3_attach()
126 if (!sc->sc_bus.bdev) { in ehci_ps3_attach()
131 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_ps3_attach()
149 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_ps3_attach()
/freebsd-14.2/sys/dev/agp/
H A Dagp_i810.c204 device_t bdev; /* bridge device */ member
759 device_t bdev; in agp_i810_probe() local
769 bdev = agp_i810_find_bridge(dev); in agp_i810_probe()
770 if (bdev == NULL) { in agp_i810_probe()
779 err = match->driver->check_active(bdev); in agp_i810_probe()
809 pci_read_config(sc->bdev, AGP_I830_GCC1, 1)); in agp_i830_dump_regs()
820 pci_read_config(sc->bdev, AGP_I855_GCC1, 1)); in agp_i855_dump_regs()
1265 sc->bdev = agp_i810_find_bridge(dev); in agp_i810_attach()
1266 if (sc->bdev == NULL) in agp_i810_attach()
2150 pci_write_config(sc->bdev, AGP_I965_IFPADDR, in agp_i965_chipset_flush_setup()
[all …]
/freebsd-14.2/sys/dev/bhnd/cores/usb/
H A Dbhnd_ehci.c154 sc->sc_bus.bdev = device_add_child(self, "usbus", -1); in bhnd_ehci_attach()
155 if (!sc->sc_bus.bdev) { in bhnd_ehci_attach()
159 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in bhnd_ehci_attach()
160 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in bhnd_ehci_attach()
177 err = device_probe_and_attach(sc->sc_bus.bdev); in bhnd_ehci_attach()

123