Lines Matching refs:AssertReturn

280     AssertReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, NIL_RTHCPHYS);
281 AssertReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, NIL_RTHCPHYS);
290 AssertReturn(iPage < (pMem->cb >> PAGE_SHIFT), NIL_RTHCPHYS);
329 AssertReturn(pMem->u32Magic == RTR0MEMOBJ_MAGIC, VERR_INVALID_HANDLE);
330 AssertReturn(pMem->enmType > RTR0MEMOBJTYPE_INVALID && pMem->enmType < RTR0MEMOBJTYPE_END, VERR_INVALID_HANDLE);
426 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
427 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
442 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
443 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
458 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
459 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
476 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
477 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
480 AssertReturn(!(fAccess & ~(RTMEM_PROT_READ | RTMEM_PROT_WRITE)), VERR_INVALID_PARAMETER);
481 AssertReturn(fAccess, VERR_INVALID_PARAMETER);
497 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
498 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
500 AssertReturn(!(fAccess & ~(RTMEM_PROT_READ | RTMEM_PROT_WRITE)), VERR_INVALID_PARAMETER);
501 AssertReturn(fAccess, VERR_INVALID_PARAMETER);
516 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
517 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
518 AssertReturn(PhysHighest >= cb, VERR_INVALID_PARAMETER);
533 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
534 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
535 AssertReturn(PhysHighest >= cb, VERR_INVALID_PARAMETER);
538 AssertReturn( uAlignment == PAGE_SIZE
563 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
564 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
565 AssertReturn(PhysHighest >= cb, VERR_INVALID_PARAMETER);
581 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
582 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
583 AssertReturn(Phys != NIL_RTHCPHYS, VERR_INVALID_PARAMETER);
584 AssertReturn( uCachePolicy == RTMEM_CACHE_POLICY_DONT_CARE
603 AssertReturn(uAlignment == PAGE_SIZE || uAlignment == _2M || uAlignment == _4M, VERR_INVALID_PARAMETER);
604 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
605 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
607 AssertReturn(!((uintptr_t)pvFixed & (uAlignment - 1)), VERR_INVALID_PARAMETER);
625 AssertReturn(uAlignment == PAGE_SIZE || uAlignment == _2M || uAlignment == _4M, VERR_INVALID_PARAMETER);
626 AssertReturn(cb > 0, VERR_INVALID_PARAMETER);
627 AssertReturn(cb <= cbAligned, VERR_INVALID_PARAMETER);
629 AssertReturn(!(R3PtrFixed & (uAlignment - 1)), VERR_INVALID_PARAMETER);
660 AssertReturn(pMemToMap->u32Magic == RTR0MEMOBJ_MAGIC, VERR_INVALID_HANDLE);
661 AssertReturn(pMemToMap->enmType > RTR0MEMOBJTYPE_INVALID && pMemToMap->enmType < RTR0MEMOBJTYPE_END, VERR_INVALID_HANDLE);
662 AssertReturn(!rtR0MemObjIsMapping(pMemToMap), VERR_INVALID_PARAMETER);
663 AssertReturn(pMemToMap->enmType != RTR0MEMOBJTYPE_RES_VIRT, VERR_INVALID_PARAMETER);
666 AssertReturn(uAlignment == PAGE_SIZE || uAlignment == _2M || uAlignment == _4M, VERR_INVALID_PARAMETER);
668 AssertReturn(!((uintptr_t)pvFixed & (uAlignment - 1)), VERR_INVALID_PARAMETER);
669 AssertReturn(fProt != RTMEM_PROT_NONE, VERR_INVALID_PARAMETER);
670 AssertReturn(!(fProt & ~(RTMEM_PROT_READ | RTMEM_PROT_WRITE | RTMEM_PROT_EXEC)), VERR_INVALID_PARAMETER);
671 AssertReturn(!(offSub & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER);
672 AssertReturn(offSub < pMemToMap->cb, VERR_INVALID_PARAMETER);
673 AssertReturn(!(cbSub & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER);
674 AssertReturn(cbSub <= pMemToMap->cb, VERR_INVALID_PARAMETER);
675 AssertReturn((!offSub && !cbSub) || (offSub + cbSub) <= pMemToMap->cb, VERR_INVALID_PARAMETER);
717 AssertReturn(pMemToMap->u32Magic == RTR0MEMOBJ_MAGIC, VERR_INVALID_HANDLE);
718 AssertReturn(pMemToMap->enmType > RTR0MEMOBJTYPE_INVALID && pMemToMap->enmType < RTR0MEMOBJTYPE_END, VERR_INVALID_HANDLE);
719 AssertReturn(!rtR0MemObjIsMapping(pMemToMap), VERR_INVALID_PARAMETER);
720 AssertReturn(pMemToMap->enmType != RTR0MEMOBJTYPE_RES_VIRT, VERR_INVALID_PARAMETER);
723 AssertReturn(uAlignment == PAGE_SIZE || uAlignment == _2M || uAlignment == _4M, VERR_INVALID_PARAMETER);
725 AssertReturn(!(R3PtrFixed & (uAlignment - 1)), VERR_INVALID_PARAMETER);
726 AssertReturn(fProt != RTMEM_PROT_NONE, VERR_INVALID_PARAMETER);
727 AssertReturn(!(fProt & ~(RTMEM_PROT_READ | RTMEM_PROT_WRITE | RTMEM_PROT_EXEC)), VERR_INVALID_PARAMETER);
764 AssertReturn(pMemObj->u32Magic == RTR0MEMOBJ_MAGIC, VERR_INVALID_HANDLE);
765 AssertReturn(pMemObj->enmType > RTR0MEMOBJTYPE_INVALID && pMemObj->enmType < RTR0MEMOBJTYPE_END, VERR_INVALID_HANDLE);
766 AssertReturn(rtR0MemObjIsProtectable(pMemObj), VERR_INVALID_PARAMETER);
767 AssertReturn(!(offSub & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER);
768 AssertReturn(offSub < pMemObj->cb, VERR_INVALID_PARAMETER);
769 AssertReturn(!(cbSub & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER);
770 AssertReturn(cbSub <= pMemObj->cb, VERR_INVALID_PARAMETER);
771 AssertReturn(offSub + cbSub <= pMemObj->cb, VERR_INVALID_PARAMETER);
772 AssertReturn(!(fProt & ~(RTMEM_PROT_NONE | RTMEM_PROT_READ | RTMEM_PROT_WRITE | RTMEM_PROT_EXEC)), VERR_INVALID_PARAMETER);