Lines Matching refs:dh_len
691 mlen = MIN(slen, (dhpp->dh_len - soff)); in segdev_unmap()
693 dhpp->dh_len, HAT_UNLOAD_UNMAP); in segdev_unmap()
866 (void *)dhp->dh_uvaddr, dhp->dh_len)); in segdev_unmap()
868 if (addr == (dhp->dh_uvaddr + dhp->dh_len)) { in segdev_unmap()
872 } else if (addr > (dhp->dh_uvaddr + dhp->dh_len)) { in segdev_unmap()
875 (addr + len) < (dhp->dh_uvaddr + dhp->dh_len)) { in segdev_unmap()
906 dhp->dh_len = addr - dhp->dh_uvaddr; in segdev_unmap()
911 ((addr + len) >= (dhp->dh_uvaddr + dhp->dh_len))) { in segdev_unmap()
912 mlen = dhp->dh_len + dhp->dh_uvaddr - addr; in segdev_unmap()
921 dhp->dh_len = addr - dhp->dh_uvaddr; in segdev_unmap()
926 } else if ((addr + len) >= (dhp->dh_uvaddr + dhp->dh_len)) { in segdev_unmap()
935 ((addr + len) < (dhp->dh_uvaddr + dhp->dh_len))) { in segdev_unmap()
967 ASSERT(len < dhp->dh_len); in devmap_handle_reduce_len()
972 dhp->dh_len -= len; in devmap_handle_reduce_len()
1019 dhp->dh_len, NULL, NULL, NULL, NULL); in devmap_handle_unmap()
1058 while (len >= dhp->dh_len) { in devmap_handle_unmap_head()
1059 len -= dhp->dh_len; in devmap_handle_unmap_head()
1101 len = dhph->dh_len - maplen; in devmap_handle_unmap_tail()
1113 dhph->dh_len = maplen; in devmap_handle_unmap_tail()
1353 mlen = MIN(tlen, (dhp->dh_len - off)); in segdev_softunlock()
1728 mlen = MIN(slen, (dhpp->dh_len - off)); in segdev_fault()
1792 mlen = MIN(len, (dhp->dh_len - off)); in segdev_fault()
2107 if (mlen > (dhp->dh_len - off)) { in segdev_setprot()
2108 mlen -= dhp->dh_len - off; in segdev_setprot()
2168 mlen = MIN(slen, (dhp->dh_len - soff)); in segdev_setprot()
2170 dhp->dh_len, HAT_UNLOAD); in segdev_setprot()
2523 maxdhp = (maxdhp->dh_len > rdhp->dh_len) ? in devmap_device()
2738 ((poff + pg) <= (base + dhp->dh_len)) && in devmap_roundup()
2783 addr < (dhp->dh_uvaddr + dhp->dh_len)) in devmap_find_handle()
2813 if (soff < 0 || soff >= dhp->dh_len) in devmap_unload()
2829 size = dhp->dh_len - soff; in devmap_unload()
2832 if ((soff + size) > dhp->dh_len) in devmap_unload()
2848 dhp->dh_len, HAT_UNLOAD|HAT_UNLOAD_OTHER); in devmap_unload()
3092 if (soff < 0 || soff >= dhp->dh_len) in devmap_load()
3108 size = dhp->dh_len - soff; in devmap_load()
3111 if ((soff + size) > dhp->dh_len) in devmap_load()
3285 dhp->dh_len, &dhp->dh_pvtp); in devmap_setup()
3300 map_off, dhp->dh_len, in devmap_setup()
3303 map_off += dhp->dh_len; in devmap_setup()
3312 map_off += dhp->dh_len; in devmap_setup()
3313 addr += dhp->dh_len; in devmap_setup()
3359 if ((dhp->dh_len < pgsize) || in devmap_devmem_large_page_setup()
3456 dhp->dh_len = ptob(btopr(len)); in devmap_devmem_setup()
3533 dhp->dh_len, HAT_UNLOAD|HAT_UNLOAD_OTHER); in devmap_devmem_remap()
3674 dhp->dh_len = ptob(btopr(len)); in devmap_umem_setup()
3739 dhp->dh_len, HAT_UNLOAD|HAT_UNLOAD_OTHER); in devmap_umem_remap()