/freebsd/sys/dev/drm2/ttm/ |
H A D | ttm_bo.c | 60 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type) in ttm_mem_type_debug() argument 62 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; in ttm_mem_type_debug() 90 ttm_mem_type_debug(bo->bdev, mem_type); in ttm_bo_mem_space_debug() 111 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_release_list() local 130 ttm_mem_global_free(bdev->glob->mem_glob, acc_size); in ttm_bo_release_list() 159 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_to_lru() local 168 man = &bdev->man[bo->mem.mem_type]; in ttm_bo_add_to_lru() 370 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_ttm() local 378 if (bdev->need_dma32) in ttm_bo_add_ttm() 386 bo->ttm = bdev->driver->ttm_tt_create(bdev, bo->num_pages << PAGE_SHIFT, in ttm_bo_add_ttm() [all …]
|
H A D | ttm_bo_util.c | 114 static int ttm_mem_io_reserve(struct ttm_bo_device *bdev, in ttm_mem_io_reserve() argument 117 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_reserve() 120 if (!bdev->driver->io_mem_reserve) in ttm_mem_io_reserve() 123 return bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve() 125 if (bdev->driver->io_mem_reserve && in ttm_mem_io_reserve() 128 ret = bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve() 138 static void ttm_mem_io_free(struct ttm_bo_device *bdev, in ttm_mem_io_free() argument 141 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_free() 146 if (bdev->driver->io_mem_reserve && in ttm_mem_io_free() 148 bdev->driver->io_mem_free) in ttm_mem_io_free() [all …]
|
H A D | ttm_bo_api.h | 192 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); 618 extern int ttm_bo_evict_mm(struct ttm_bo_device *bdev, unsigned mem_type); [all …]
|
H A D | ttm_bo_vm.c | 69 static struct ttm_buffer_object *ttm_bo_vm_lookup_rb(struct ttm_bo_device *bdev, in ttm_bo_vm_lookup_rb() argument 77 bo = RB_ROOT(&bdev->addr_space_rb); in ttm_bo_vm_lookup_rb() 105 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() 130 if (bdev->driver->fault_reserve_notify) { in ttm_bo_vm_fault() 131 ret = bdev->driver->fault_reserve_notify(bo); 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() 205 if (ttm->bdev->driver->ttm_tt_populate(ttm)) { in ttm_bo_vm_fault() [all …]
|
H A D | ttm_bo_driver.h | 112 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, 451 int (*io_mem_reserve)(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem); 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, 602 extern int ttm_dma_tt_init(struct ttm_dma_tt *ttm_dma, struct ttm_bo_device *bdev, 695 extern bool ttm_mem_reg_is_pci(struct ttm_bo_device *bdev, [all …]
|
H A D | ttm_execbuf_util.c | 131 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 D | ttm_tt.c | 170 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/sys/contrib/openzfs/include/os/linux/kernel/linux/ |
H A D | blkdev_compat.h | 77 zfs_bdev_has_write_cache(struct block_device *bdev) in zfs_bdev_has_write_cache() argument 80 return (test_bit(QUEUE_FLAG_HW_WC, &bdev_get_queue(bdev)->queue_flags)); in zfs_bdev_has_write_cache() 82 return (test_bit(QUEUE_FLAG_WC, &bdev_get_queue(bdev)->queue_flags)); in zfs_bdev_has_write_cache() 112 bio_set_flags_failfast(struct block_device *bdev, int *flags, bool dev, in bio_set_flags_failfast() argument 125 if ((MAJOR(bdev->bd_dev) == LOOP_MAJOR) || in bio_set_flags_failfast() 126 (MAJOR(bdev->bd_dev) == MD_MAJOR)) in bio_set_flags_failfast() 130 if (MAJOR(bdev->bd_dev) == BLOCK_EXT_MAJOR) in bio_set_flags_failfast() 235 zfs_check_disk_status(struct block_device *bdev) in zfs_check_disk_status() argument 238 return (!!(bdev->bd_disk->flags & GENHD_FL_UP)); in zfs_check_disk_status() 240 return (!test_bit(GD_DEAD, &bdev->bd_disk->state)); in zfs_check_disk_status() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | vdev_disk.c | 55 #define BDH_BDEV(bdh) ((bdh)->bdev) 149 bdev_capacity(struct block_device *bdev) in bdev_capacity() argument 152 return (bdev_nr_bytes(bdev)); in bdev_capacity() 154 return (i_size_read(bdev->bd_inode)); in bdev_capacity() 160 bdev_whole(struct block_device *bdev) in bdev_whole() argument 162 return (bdev->bd_contains); in bdev_whole() 167 #define vdev_bdevname(bdev, name) bdevname(bdev, name) argument 170 vdev_bdevname(struct block_device *bdev, char *name) in vdev_bdevname() argument 172 snprintf(name, BDEVNAME_SIZE, "%pg", bdev); in vdev_bdevname() 195 bdev_max_capacity(struct block_device *bdev, uint64_t wholedisk) in bdev_max_capacity() argument [all …]
|
/freebsd/sys/contrib/openzfs/config/ |
H A D | kernel-blkdev.m4 | 10 struct block_device *bdev __attribute__ ((unused)) = NULL; 15 bdev = blkdev_get_by_path(path, mode, holder); 28 struct block_device *bdev __attribute__ ((unused)) = NULL; 34 bdev = blkdev_get_by_path(path, mode, holder, &h); 144 struct block_device *bdev = NULL; 147 blkdev_put(bdev, mode); 160 struct block_device *bdev = NULL; 163 blkdev_put(bdev, holder); 224 struct block_device *bdev = NULL; 227 error = blkdev_reread_part(bdev); [all …]
|
H A D | kernel-generic_io_acct.m4 | 8 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);
|
H A D | kernel-bio.m4 | 44 struct block_device *bdev = NULL; 46 bio_set_dev(bio, bdev); 184 struct block_device_operations *bdev = NULL; 185 __attribute__((unused)) void(*f)(struct bio *) = bdev->submit_bio; 207 dnl # bio_alloc(struct block_device *bdev, unsigned short nr_vecs, unsigned int opf, gfp_t gfp_ma… 219 struct block_device *bdev = NULL; 222 struct bio *__attribute__((unused)) allocated = bio_alloc(bdev, nr_iovecs, opf, gfp_mask);
|
/freebsd/stand/i386/zfsboot/ |
H A D | zfsboot.c | 106 static struct i386_devdesc *bdev; variable 224 if (bdev != NULL && bdev->dd.d_dev->dv_type == DEVT_ZFS) { in main() 226 strncpy(boot_devname, devformat(&bdev->dd), sizeof (boot_devname)); in main() 227 if (zfs_get_bootonce(bdev, OS_BOOTONCE, cmd, in main() 242 if (zfs_get_bootenv(bdev, &benv) == 0) { in main() 245 zfs_set_bootenv(bdev, benv); in main() 253 free(bdev); in main() 254 i386_getdev((void **)&bdev, boot_devname, NULL); in main() 465 if (bdev->dd.d_dev->dv_type == DEVT_ZFS) { in load() 467 zfsargs.pool = bdev->zfs.pool_guid; in load() [all …]
|
/freebsd/lib/libusb/ |
H A D | libusb10_hotplug.c | 163 struct libusb20_device *bdev = _bdev->os_priv; in libusb_hotplug_scan() 165 if (adev->bus_number != bdev->bus_number) in libusb_hotplug_scan() 167 if (adev->device_address != bdev->device_address) in libusb_hotplug_scan() 169 if (memcmp(&adev->ddesc, &bdev->ddesc, sizeof(adev->ddesc))) in libusb_hotplug_scan() 171 if (memcmp(&adev->session_data, &bdev->session_data, sizeof(adev->session_data))) in libusb_hotplug_scan() 222 libusb_device *bdev; in libusb_hotplug_register_callback() 292 TAILQ_FOREACH(bdev, &hotplug_devs, hotplug_entry) { 293 if (libusb_hotplug_equal(adev, bdev)) 296 if (bdev == NULL) { 311 TAILQ_FOREACH(bdev, 56 struct libusb20_device *bdev = _bdev->os_priv; libusb_hotplug_equal() local 114 libusb_device *bdev; libusb_hotplug_scan() local [all...] |
/freebsd/sys/dev/usb/controller/ |
H A D | usb_controller.c | 338 DPRINTF("%s: Controller shutdown\n", device_get_nameunit(bus->bdev)); in usb_shutdown() 351 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() 492 device_printf(bus->bdev, "Could not unconfigure root HUB\n"); in usb_bus_suspend() 529 if (udev == NULL || bus->bdev == NULL) in usb_bus_resume() 538 USB_TAKE_CONTROLLER(device_get_parent(bus->bdev)); in usb_bus_resume() 559 device_printf(bus->bdev, "Could not configure root HUB\n"); in usb_bus_resume() [all …]
|
H A D | ehci_msm.c | 127 sc->sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY); in ehci_msm_attach() 128 if (!sc->sc_bus.bdev) { in ehci_msm_attach() 132 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_msm_attach() 133 device_set_desc(sc->sc_bus.bdev, EHCI_HC_DEVSTR); in ehci_msm_attach() 150 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_msm_attach() 168 device_t bdev; in ehci_msm_detach() local
|
H A D | generic_xhci.c | 101 sc->sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY); in generic_xhci_attach() 102 if (sc->sc_bus.bdev == NULL) { in generic_xhci_attach() 108 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in generic_xhci_attach() 111 device_set_desc(sc->sc_bus.bdev, XHCI_HC_DEVSTR); in generic_xhci_attach() 137 err = device_probe_and_attach(sc->sc_bus.bdev); in generic_xhci_attach()
|
H A D | ehci_pci.c | 362 sc->sc_bus.bdev = device_add_child(self, "usbus", DEVICE_UNIT_ANY); in ehci_pci_attach() 363 if (!sc->sc_bus.bdev) { in ehci_pci_attach() 367 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ehci_pci_attach() 373 device_set_desc(sc->sc_bus.bdev, ehci_pci_match(self)); in ehci_pci_attach() 490 err = device_probe_and_attach(sc->sc_bus.bdev); in ehci_pci_attach() 568 device_printf(sc->sc_bus.bdev, "waiting for BIOS " in ehci_pci_take_controller() 580 device_printf(sc->sc_bus.bdev, in ehci_pci_take_controller()
|
H A D | generic_ehci.c | 102 sc->sc_bus.bdev = device_add_child(self, "usbus", DEVICE_UNIT_ANY); in generic_ehci_attach() 103 if (!sc->sc_bus.bdev) { in generic_ehci_attach() 107 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in generic_ehci_attach() 123 err = device_probe_and_attach(sc->sc_bus.bdev); in generic_ehci_attach()
|
H A D | uhci_pci.c | 325 sc->sc_bus.bdev = device_add_child(self, "usbus", DEVICE_UNIT_ANY); in uhci_pci_attach() 326 if (!sc->sc_bus.bdev) { in uhci_pci_attach() 330 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in uhci_pci_attach() 336 device_set_desc(sc->sc_bus.bdev, uhci_pci_match(self)); in uhci_pci_attach() 399 err = device_probe_and_attach(sc->sc_bus.bdev); in uhci_pci_attach()
|
H A D | ohci_pci.c | 242 sc->sc_bus.bdev = device_add_child(self, "usbus", DEVICE_UNIT_ANY); in ohci_pci_attach() 243 if (!sc->sc_bus.bdev) { in ohci_pci_attach() 247 device_set_ivars(sc->sc_bus.bdev, &sc->sc_bus); in ohci_pci_attach() 253 device_set_desc(sc->sc_bus.bdev, ohci_pci_match(self)); in ohci_pci_attach() 305 err = device_probe_and_attach(sc->sc_bus.bdev); in ohci_pci_attach()
|
/freebsd/sys/dev/agp/ |
H A D | agp_i810.c | 204 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() 798 pci_read_config(sc->bdev, AGP_I810_MISCC, 2)); in agp_i810_dump_regs() 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() 831 pci_read_config(sc->bdev, AGP_I855_GCC1, 1)); in agp_i915_dump_regs() 833 pci_read_config(sc->bdev, AGP_I915_MSA in agp_i915_dump_regs() [all...] |
/freebsd/sys/powerpc/ps3/ |
H A D | ohci_ps3.c | 115 sc->sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY); 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 D | ehci_ps3.c | 125 sc->sc_bus.bdev = device_add_child(dev, "usbus", DEVICE_UNIT_ANY); 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/sys/dev/mlx5/mlx5_fpga_tools/ |
H A D | mlx5fpga_tools_char.c | 292 device_t bdev; in mlx5_fpga_tools_char_add_one() local 302 bdev = mlx5_fpga_dev(tdev->fdev)->bsddev; in mlx5_fpga_tools_char_add_one() 305 pci_get_domain(bdev), pci_get_bus(bdev), pci_get_slot(bdev), in mlx5_fpga_tools_char_add_one() 306 pci_get_function(bdev)); in mlx5_fpga_tools_char_add_one()
|