Home
last modified time | relevance | path

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

123

/netbsd/src/sys/external/bsd/drm2/dist/drm/ttm/
Dttm_bo.c104 static void ttm_mem_type_debug(struct ttm_bo_device *bdev, struct drm_printer *p, in ttm_mem_type_debug() argument
107 struct ttm_mem_type_manager *man = &bdev->man[mem_type]; in ttm_mem_type_debug()
136 ttm_mem_type_debug(bo->bdev, &p, mem_type); in ttm_bo_mem_space_debug()
197 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_add_mem_to_lru() local
208 man = &bdev->man[mem->mem_type]; in ttm_bo_add_mem_to_lru()
227 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_del_from_lru() local
241 if (notify && bdev->driver->del_from_lru_notify) in ttm_bo_del_from_lru()
242 bdev->driver->del_from_lru_notify(bo); in ttm_bo_del_from_lru()
292 man = &pos->first->bdev->man[TTM_PL_TT]; in ttm_bo_bulk_move_lru_tail()
307 man = &pos->first->bdev->man[TTM_PL_VRAM]; in ttm_bo_bulk_move_lru_tail()
[all …]
Dttm_bo_util.c141 int ttm_mem_io_reserve(struct ttm_bo_device *bdev, in ttm_mem_io_reserve() argument
144 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_reserve()
147 if (!bdev->driver->io_mem_reserve) in ttm_mem_io_reserve()
150 return bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve()
152 if (bdev->driver->io_mem_reserve && in ttm_mem_io_reserve()
155 ret = bdev->driver->io_mem_reserve(bdev, mem); in ttm_mem_io_reserve()
165 void ttm_mem_io_free(struct ttm_bo_device *bdev, in ttm_mem_io_free() argument
168 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in ttm_mem_io_free()
173 if (bdev->driver->io_mem_reserve && in ttm_mem_io_free()
175 bdev->driver->io_mem_free) in ttm_mem_io_free()
[all …]
Dttm_bo_vm.c103 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_io_mem_pfn() local
105 if (bdev->driver->io_mem_pfn) in ttm_bo_io_mem_pfn()
106 return bdev->driver->io_mem_pfn(bo, page_offset); in ttm_bo_io_mem_pfn()
188 struct ttm_bo_device *bdev = bo->bdev; in ttm_bo_vm_fault_reserved() local
199 &bdev->man[bo->mem.mem_type]; in ttm_bo_vm_fault_reserved()
208 if (bdev->driver->fault_reserve_notify) { in ttm_bo_vm_fault_reserved()
211 err = bdev->driver->fault_reserve_notify(bo); in ttm_bo_vm_fault_reserved()
356 WARN_ON(bo->bdev->dev_mapping != vma->vm_file->f_mapping); in ttm_bo_vm_open()
436 if (bo->bdev->driver->access_memory) in ttm_bo_vm_access()
437 ret = bo->bdev->driver->access_memory( in ttm_bo_vm_access()
[all …]
Dttm_tt.c55 struct ttm_bo_device *bdev = bo->bdev; in ttm_tt_create() local
60 if (bdev->need_dma32) in ttm_tt_create()
63 if (bdev->no_retry) in ttm_tt_create()
82 bo->ttm = bdev->driver->ttm_tt_create(bo, page_flags); in ttm_tt_create()
140 return -bus_dmamap_create(ttm->ttm.bdev->dmat, in ttm_sg_tt_alloc_page_directory()
273 ttm->bdev = bo->bdev; in ttm_tt_init_fields()
283 uao_set_pgfl(ttm->swap_storage, bus_dmamem_pgfl(ttm->bdev->dmat)); in ttm_tt_init_fields()
360 bus_dmamap_destroy(ttm->bdev->dmat, ttm_dma->dma_address); in ttm_dma_tt_fini()
534 ttm->bdev->driver->ttm_tt_swapout(ttm); in ttm_tt_swapout()
605 ttm->pages[i]->mapping = ttm->bdev->dev_mapping; in ttm_tt_add_mapping()
[all …]
/netbsd/src/sys/arch/luna68k/stand/boot/
Dinit_main.c180 int bdev, ctlr, id; in main() local
241 bdev = bi1->bi_device; in main()
242 switch (bdev) { in main()
246 id = 6 - bi1->bi_devinfo[bdev].bd_drv; in main()
260 bi1->bi_devinfo[bdev].bd_boot); in main()
262 bi1->bi_devinfo[bdev].bd_name[0], in main()
263 bi1->bi_devinfo[bdev].bd_name[1]); in main()
265 bi1->bi_devinfo[bdev].bd_drv); in main()
267 bi1->bi_devinfo[bdev].bd_part); in main()
272 bdev = bi2->bi_device; in main()
[all …]
/netbsd/src/sys/kern/
Dsubr_devsw.c131 SDT_PROBE_DEFINE6(sdt, bdev, open, acquire,
138 SDT_PROBE_DEFINE4(sdt, bdev, open, entry,
143 SDT_PROBE_DEFINE5(sdt, bdev, open, return,
149 SDT_PROBE_DEFINE6(sdt, bdev, open, release,
157 SDT_PROBE_DEFINE4(sdt, bdev, cancel, entry,
162 SDT_PROBE_DEFINE5(sdt, bdev, cancel, return,
169 SDT_PROBE_DEFINE4(sdt, bdev, close, entry,
174 SDT_PROBE_DEFINE5(sdt, bdev, close, return,
181 SDT_PROBE_DEFINE3(sdt, bdev, strategy, entry,
185 SDT_PROBE_DEFINE3(sdt, bdev, strategy, return,
[all …]
/netbsd/src/sys/external/bsd/drm2/dist/include/drm/ttm/
Dttm_bo_api.h192 struct ttm_bo_device *bdev; member
423 int ttm_bo_lock_delayed_workqueue(struct ttm_bo_device *bdev);
430 void ttm_bo_unlock_delayed_workqueue(struct ttm_bo_device *bdev, int resched);
452 size_t ttm_bo_acc_size(struct ttm_bo_device *bdev,
455 size_t ttm_bo_dma_acc_size(struct ttm_bo_device *bdev,
494 int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
543 int ttm_bo_init(struct ttm_bo_device *bdev, struct ttm_buffer_object *bo,
569 int ttm_bo_create(struct ttm_bo_device *bdev, unsigned long size,
589 int ttm_bo_init_mm(struct ttm_bo_device *bdev, unsigned type,
618 int ttm_bo_clean_mm(struct ttm_bo_device *bdev, unsigned mem_type);
[all …]
Dttm_bo_driver.h173 struct ttm_bo_device *bdev; member
282 int (*invalidate_caches)(struct ttm_bo_device *bdev, uint32_t flags);
283 int (*init_mem_type)(struct ttm_bo_device *bdev, uint32_t type,
365 int (*io_mem_reserve)(struct ttm_bo_device *bdev,
367 void (*io_mem_free)(struct ttm_bo_device *bdev,
579 bool ttm_mem_reg_is_pci(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem);
609 int ttm_bo_device_release(struct ttm_bo_device *bdev);
627 int ttm_bo_device_init(struct ttm_bo_device *bdev,
806 int ttm_mem_io_reserve(struct ttm_bo_device *bdev,
808 void ttm_mem_io_free(struct ttm_bo_device *bdev,
/netbsd/src/sys/arch/arm/arm32/
Dstubs.c131 const struct bdevsw *bdev; in cpu_dump() local
134 bdev = bdevsw_lookup(dumpdev); in cpu_dump()
135 if (bdev == NULL) in cpu_dump()
137 dump = bdev->d_dump; in cpu_dump()
218 const struct bdevsw *bdev; in dodumpsys() local
245 bdev = bdevsw_lookup(dumpdev); in dodumpsys()
246 if (bdev == NULL || bdev->d_psize == NULL) in dodumpsys()
273 error = (*bdev->d_dump)(dumpdev, in dodumpsys()
/netbsd/src/sys/arch/i386/i386/
Ddumpsys.c154 const struct bdevsw *bdev; in dodumpsys() local
161 bdev = bdevsw_lookup(dumpdev); in dodumpsys()
162 if (bdev == NULL || bdev->d_psize == NULL) in dodumpsys()
516 const struct bdevsw *bdev; in dump_header_flush() local
520 bdev = bdevsw_lookup(dumpdev); in dump_header_flush()
522 error = bdev->d_dump(dumpdev, dump_header_blkno, in dump_header_flush()
606 const struct bdevsw *bdev; in cpu_dump() local
608 bdev = bdevsw_lookup(dumpdev); in cpu_dump()
609 if (bdev == NULL) in cpu_dump()
639 const struct bdevsw *bdev; in dumpsys_seg() local
[all …]
/netbsd/src/sys/arch/bebox/bebox/
Dautoconf.c173 device_t bdev, cdev; in device_register() local
215 bdev = device_parent(dev); in device_register()
216 if (!device_is_a(bdev, "scsibus")) in device_register()
218 cdev = device_parent(bdev); in device_register()
228 bdev = device_parent(dev); in device_register()
229 if (!device_is_a(bdev, "atabus")) in device_register()
231 cdev = device_parent(bdev); in device_register()
/netbsd/src/sys/arch/x68k/x68k/
Dautoconf.c168 scsi_find(dev_t bdev) in scsi_find() argument
178 ifid = B_X68K_SCSI_IF(bdev); in scsi_find()
199 name_scsiif[ifid], B_X68K_SCSI_IF_UN(bdev)); in scsi_find()
214 B_X68K_SCSI_ID(bdev), B_X68K_SCSI_LUN(bdev)); in scsi_find()
/netbsd/src/sys/arch/atari/stand/tostools/aptck/
Ddiskio.c96 int bdev; local
107 bdev = BIOSDEV(dd->major, dd->minor);
108 if (bdev && !bios_read(buffer, start, count, bdev))
123 int bdev; local
130 bdev = BIOSDEV(dd->major, dd->minor);
131 if (bdev)
132 e = bios_write(buffer, start, count, bdev);
/netbsd/src/sys/arch/atari/stand/tostools/libtos/
Ddiskio.c96 int bdev; local
107 bdev = BIOSDEV(dd->major, dd->minor);
108 if (bdev && !bios_read(buffer, start, count, bdev))
123 int bdev; local
130 bdev = BIOSDEV(dd->major, dd->minor);
131 if (bdev)
132 e = bios_write(buffer, start, count, bdev);
/netbsd/src/sys/arch/atari/atari/
Dautoconf.c242 const struct bdevsw *bdev; in findroot() local
268 bdev = bdevsw_lookup(makedev(maj, 0)); in findroot()
270 if (bdev == NULL) in findroot()
273 if (bdev == NULL || in findroot()
274 bdev->d_strategy != dkp->dk_driver->d_strategy) in findroot()
278 if ((*bdev->d_open)(MAKEDISKDEV(maj, in findroot()
281 (void)(*bdev->d_close)(MAKEDISKDEV(maj, in findroot()
/netbsd/src/sys/arch/mmeye/mmeye/
Dautoconf.c88 device_t bdev, cdev; in device_register() local
90 bdev = device_parent(dev); in device_register()
91 if (!device_is_a(bdev, "atabus")) in device_register()
93 cdev = device_parent(bdev); in device_register()
/netbsd/src/sys/external/bsd/drm2/dist/drm/vmwgfx/
Dvmwgfx_drv.c477 (void) ttm_bo_evict_mm(&dev_priv->bdev, VMW_PL_MOB); in vmw_request_device()
510 ttm_bo_evict_mm(&dev_priv->bdev, VMW_PL_MOB); in vmw_release_device_early()
887 ret = ttm_bo_device_init(&dev_priv->bdev, in vmw_driver_load()
906 ret = ttm_bo_init_mm(&dev_priv->bdev, TTM_PL_VRAM, in vmw_driver_load()
912 dev_priv->bdev.man[TTM_PL_VRAM].use_type = false; in vmw_driver_load()
916 refuse_dma || ttm_bo_init_mm(&dev_priv->bdev, VMW_PL_GMR, in vmw_driver_load()
925 if (ttm_bo_init_mm(&dev_priv->bdev, VMW_PL_MOB, in vmw_driver_load()
994 (void) ttm_bo_clean_mm(&dev_priv->bdev, VMW_PL_MOB); in vmw_driver_load()
996 (void) ttm_bo_clean_mm(&dev_priv->bdev, VMW_PL_GMR); in vmw_driver_load()
997 (void)ttm_bo_clean_mm(&dev_priv->bdev, TTM_PL_VRAM); in vmw_driver_load()
[all …]
Dvmwgfx_ttm_buffer.c728 vmw_be->dev_priv = container_of(bo->bdev, struct vmw_private, bdev); in vmw_ttm_tt_create()
744 static int vmw_invalidate_caches(struct ttm_bo_device *bdev, uint32_t flags) in vmw_invalidate_caches() argument
749 static int vmw_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, in vmw_init_mem_type() argument
802 static int vmw_ttm_io_mem_reserve(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) in vmw_ttm_io_mem_reserve() argument
804 struct ttm_mem_type_manager *man = &bdev->man[mem->mem_type]; in vmw_ttm_io_mem_reserve()
805 struct vmw_private *dev_priv = container_of(bdev, struct vmw_private, bdev); in vmw_ttm_io_mem_reserve()
830 static void vmw_ttm_io_mem_free(struct ttm_bo_device *bdev, struct ttm_mem_reg *mem) in vmw_ttm_io_mem_free() argument
Dvmwgfx_page_dirty.c92 struct address_space *mapping = vbo->base.bdev->dev_mapping; in vmw_bo_dirty_scan_pagetable()
130 struct address_space *mapping = vbo->base.bdev->dev_mapping; in vmw_bo_dirty_scan_mkwrite()
136 num_marked = wp_shared_mapping_range(vbo->base.bdev->dev_mapping, in vmw_bo_dirty_scan_mkwrite()
196 struct address_space *mapping = vbo->base.bdev->dev_mapping; in vmw_bo_dirty_pre_unmap()
220 struct address_space *mapping = vbo->base.bdev->dev_mapping; in vmw_bo_dirty_unmap()
275 struct address_space *mapping = vbo->base.bdev->dev_mapping; in vmw_bo_dirty_add()
Dvmwgfx_bo.c516 struct ttm_bo_device *bdev = &dev_priv->bdev; in vmw_bo_init() local
533 ret = ttm_bo_init(bdev, &vmw_bo->base, size, in vmw_bo_init()
1027 struct ttm_bo_device *bdev = bo->bdev; in vmw_bo_fence_single() local
1030 container_of(bdev, struct vmw_private, bdev); in vmw_bo_fence_single()
/netbsd/src/sys/dev/ieee1394/
Dfirewire.c204 fc->bdev = sc->dev = self; in firewireattach()
239 fc, &fc->probe_thread, "fw%dprobe", device_unit(fc->bdev))) { in firewireattach()
390 aprint_error_dev(fc->bdev, "hand == NULL\n"); in fw_asyreq()
398 aprint_error_dev(fc->bdev, "invalid tcode=%x\n", tcode); in fw_asyreq()
418 aprint_error_dev(fc->bdev, "send.pay_len > maxrec\n"); in fw_asyreq()
428 aprint_error_dev(fc->bdev, in fw_asyreq()
435 aprint_error_dev(fc->bdev, "xferq->start == NULL\n"); in fw_asyreq()
439 aprint_error_dev(fc->bdev, "Discard a packet (queued=%d)\n", in fw_asyreq()
525 struct firewire_softc *sc = device_private(fc->bdev); in fw_busreset()
722 aprint_error_dev(fc->bdev, "invalid range\n"); in fw_bindadd()
[all …]
/netbsd/src/sys/arch/hp300/stand/common/
Dautoconf.c147 u_long bdev = 0; in msustobdev() local
161 bdev = MAKEBOOTDEV(type, ctlr, slave, punit, 0); in msustobdev()
164 printf("msus %x -> bdev %x\n", rp->msus, bdev); in msustobdev()
166 return bdev; in msustobdev()
/netbsd/src/sys/arch/hp300/stand/uboot/
Duboot.c63 static int bdev, badapt, bctlr, bunit, bpart; variable
79 bdev = B_TYPE(bootdev); in main()
106 devsw[bdev].dv_name, bctlr + (8 * badapt), 'a' + bpart, name); in getbootdev()
/netbsd/src/sys/arch/cesfic/cesfic/
Dmachdep.c403 const struct bdevsw *bdev; in dumpsys() local
417 bdev = bdevsw_lookup(dumpdev); in dumpsys()
418 if (bdev == NULL) in dumpsys()
427 dump = bdev->d_dump; in dumpsys()
/netbsd/src/sys/arch/amd64/amd64/
Dmachdep.c986 const struct bdevsw *bdev; in dump_header_flush() local
990 bdev = bdevsw_lookup(dumpdev); in dump_header_flush()
992 error = bdev->d_dump(dumpdev, dump_header_blkno, in dump_header_flush()
1094 const struct bdevsw *bdev; in cpu_dump() local
1097 bdev = bdevsw_lookup(dumpdev); in cpu_dump()
1098 if (bdev == NULL) { in cpu_dump()
1154 const struct bdevsw *bdev; in dumpsys_seg() local
1160 bdev = bdevsw_lookup(dumpdev); in dumpsys_seg()
1161 if (bdev == NULL || bdev->d_psize == NULL) in dumpsys_seg()
1164 dump = bdev->d_dump; in dumpsys_seg()
[all …]

123