Lines Matching refs:dvm_track

459 	hermon_devmap_track_t	*dvm_track;  in hermon_devmap_umem_map()  local
491 dvm_track = (hermon_devmap_track_t *)kmem_zalloc( in hermon_devmap_umem_map()
493 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_umem_map()
494 dvm_track->hdt_offset = off; in hermon_devmap_umem_map()
495 dvm_track->hdt_state = state; in hermon_devmap_umem_map()
496 dvm_track->hdt_refcnt = 1; in hermon_devmap_umem_map()
497 mutex_init(&dvm_track->hdt_lock, NULL, MUTEX_DRIVER, in hermon_devmap_umem_map()
521 dvm_track->hdt_size = cq->cq_cqinfo.qa_size; in hermon_devmap_umem_map()
526 dvm_track->hdt_size = in hermon_devmap_umem_map()
547 dvm_track->hdt_size = qp->qp_wqinfo.qa_size; in hermon_devmap_umem_map()
567 dvm_track->hdt_size = srq->srq_wqinfo.qa_size; in hermon_devmap_umem_map()
579 *pvtp = dvm_track; in hermon_devmap_umem_map()
584 mutex_destroy(&dvm_track->hdt_lock); in hermon_devmap_umem_map()
585 kmem_free(dvm_track, sizeof (hermon_devmap_track_t)); in hermon_devmap_umem_map()
600 hermon_devmap_track_t *dvm_track, *new_dvm_track; in hermon_devmap_umem_dup() local
608 dvm_track = (hermon_devmap_track_t *)pvtp; in hermon_devmap_umem_dup()
609 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_umem_dup()
610 state = dvm_track->hdt_state; in hermon_devmap_umem_dup()
622 dvm_track->hdt_size, maxprot, DEVMAP_MAPPING_INVALID, NULL); in hermon_devmap_umem_dup()
663 hermon_devmap_track_t *dvm_track; in hermon_devmap_umem_unmap() local
676 dvm_track = (hermon_devmap_track_t *)pvtp; in hermon_devmap_umem_unmap()
677 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_umem_unmap()
678 state = dvm_track->hdt_state; in hermon_devmap_umem_unmap()
687 key = dvm_track->hdt_offset >> PAGESHIFT; in hermon_devmap_umem_unmap()
696 size = dvm_track->hdt_size; in hermon_devmap_umem_unmap()
715 mutex_enter(&dvm_track->hdt_lock); in hermon_devmap_umem_unmap()
717 dvm_track->hdt_refcnt--; in hermon_devmap_umem_unmap()
719 dvm_track->hdt_refcnt++; in hermon_devmap_umem_unmap()
721 mutex_exit(&dvm_track->hdt_lock); in hermon_devmap_umem_unmap()
740 if (dvm_track->hdt_refcnt == 0) { in hermon_devmap_umem_unmap()
741 mutex_destroy(&dvm_track->hdt_lock); in hermon_devmap_umem_unmap()
742 kmem_free(dvm_track, sizeof (hermon_devmap_track_t)); in hermon_devmap_umem_unmap()
864 hermon_devmap_track_t *dvm_track; in hermon_devmap_dbrecmem_map() local
896 dvm_track = (hermon_devmap_track_t *)kmem_zalloc( in hermon_devmap_dbrecmem_map()
898 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_dbrecmem_map()
899 dvm_track->hdt_offset = off; in hermon_devmap_dbrecmem_map()
900 dvm_track->hdt_state = state; in hermon_devmap_dbrecmem_map()
901 dvm_track->hdt_refcnt = 1; in hermon_devmap_dbrecmem_map()
902 mutex_init(&dvm_track->hdt_lock, NULL, MUTEX_DRIVER, in hermon_devmap_dbrecmem_map()
926 dvm_track->hdt_size = cq->cq_cqinfo.qa_size; in hermon_devmap_dbrecmem_map()
946 dvm_track->hdt_size = qp->qp_wqinfo.qa_size; in hermon_devmap_dbrecmem_map()
966 dvm_track->hdt_size = srq->srq_wqinfo.qa_size; in hermon_devmap_dbrecmem_map()
978 *pvtp = dvm_track; in hermon_devmap_dbrecmem_map()
983 mutex_destroy(&dvm_track->hdt_lock); in hermon_devmap_dbrecmem_map()
984 kmem_free(dvm_track, sizeof (hermon_devmap_track_t)); in hermon_devmap_dbrecmem_map()
999 hermon_devmap_track_t *dvm_track, *new_dvm_track; in hermon_devmap_dbrecmem_dup() local
1007 dvm_track = (hermon_devmap_track_t *)pvtp; in hermon_devmap_dbrecmem_dup()
1008 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_dbrecmem_dup()
1009 state = dvm_track->hdt_state; in hermon_devmap_dbrecmem_dup()
1021 dvm_track->hdt_size, maxprot, DEVMAP_MAPPING_INVALID, NULL); in hermon_devmap_dbrecmem_dup()
1062 hermon_devmap_track_t *dvm_track; in hermon_devmap_dbrecmem_unmap() local
1075 dvm_track = (hermon_devmap_track_t *)pvtp; in hermon_devmap_dbrecmem_unmap()
1076 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_dbrecmem_unmap()
1077 state = dvm_track->hdt_state; in hermon_devmap_dbrecmem_unmap()
1086 key = dvm_track->hdt_offset >> PAGESHIFT; in hermon_devmap_dbrecmem_unmap()
1095 size = dvm_track->hdt_size; in hermon_devmap_dbrecmem_unmap()
1114 mutex_enter(&dvm_track->hdt_lock); in hermon_devmap_dbrecmem_unmap()
1116 dvm_track->hdt_refcnt--; in hermon_devmap_dbrecmem_unmap()
1118 dvm_track->hdt_refcnt++; in hermon_devmap_dbrecmem_unmap()
1120 mutex_exit(&dvm_track->hdt_lock); in hermon_devmap_dbrecmem_unmap()
1139 if (dvm_track->hdt_refcnt == 0) { in hermon_devmap_dbrecmem_unmap()
1140 mutex_destroy(&dvm_track->hdt_lock); in hermon_devmap_dbrecmem_unmap()
1141 kmem_free(dvm_track, sizeof (hermon_devmap_track_t)); in hermon_devmap_dbrecmem_unmap()
1249 hermon_devmap_track_t *dvm_track; in hermon_devmap_devmem_map() local
1267 dvm_track = (hermon_devmap_track_t *)kmem_zalloc( in hermon_devmap_devmem_map()
1269 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_devmem_map()
1270 dvm_track->hdt_state = state; in hermon_devmap_devmem_map()
1271 dvm_track->hdt_size = (uint_t)PAGESIZE; in hermon_devmap_devmem_map()
1277 *pvtp = dvm_track; in hermon_devmap_devmem_map()
1293 hermon_devmap_track_t *dvm_track; in hermon_devmap_devmem_dup() local
1303 dvm_track = (hermon_devmap_track_t *)pvtp; in hermon_devmap_devmem_dup()
1304 if (dvm_track == NULL) { in hermon_devmap_devmem_dup()
1309 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_devmem_dup()
1310 state = dvm_track->hdt_state; in hermon_devmap_devmem_dup()
1322 dvm_track->hdt_size, maxprot, DEVMAP_MAPPING_INVALID, NULL); in hermon_devmap_devmem_dup()
1351 hermon_devmap_track_t *dvm_track; in hermon_devmap_devmem_unmap() local
1360 dvm_track = (hermon_devmap_track_t *)pvtp; in hermon_devmap_devmem_unmap()
1361 _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dvm_track)) in hermon_devmap_devmem_unmap()
1362 if (dvm_track == NULL) { in hermon_devmap_devmem_unmap()
1366 kmem_free(dvm_track, sizeof (hermon_devmap_track_t)); in hermon_devmap_devmem_unmap()