Lines Matching refs:_flags

484     IOOptionBits         type = (_flags & kIOMemoryTypeMask);
501 if (kIODefaultCache == ((_flags & kIOMemoryBufferCacheMask) >> kIOMemoryBufferCacheShift))
516 _flags |= (mode << kIOMemoryBufferCacheShift);
522 cacheMode = ((_flags & kIOMemoryBufferCacheMask) >> kIOMemoryBufferCacheShift);
526 if (kIODirectionOut != (kIODirectionOutIn & _flags)) prot |= VM_PROT_WRITE;
539 if (kIOMemoryBufferPageable & _flags)
543 if (kIOMemoryBufferPurgeable & _flags) prot |= MAP_MEM_PURGABLE;
738 type = _flags & kIOMemoryTypeMask;
805 if ((ref.map == kernel_map) && (kIOMemoryBufferPageable & _flags))
1360 if ( !(orig->_flags & kIOMemoryPersistent) || !dataP)
1364 options = orig->_flags & ~kIOMemoryAsReference;
1412 IOOptionBits type = _flags & kIOMemoryTypeMask;
1418 if (_ranges.v && !(kIOMemoryAsReference & _flags))
1430 options |= (kIOMemoryRedirected & _flags);
1465 _flags = options;
1469 _direction = (IODirection) (_flags & kIOMemoryDirectionMask);
1560 _flags = (_flags & ~kIOMemoryTypeMask) | type | kIOMemoryAsReference;
1576 _flags |= kIOMemoryAsReference;
1629 if ( (kIOMemoryPersistent & _flags) && !_memRef)
1636 if ((_flags & kIOMemoryAutoPrepare)
1652 IOOptionBits type = _flags & kIOMemoryTypeMask;
1676 if (_ranges.v && !(kIOMemoryAsReference & _flags))
1732 return (IODirection) (_flags & kIOMemoryDirectionMask);
1784 if (kIOMemoryThreadSafe & _flags)
1808 if (kIOMemoryThreadSafe & _flags)
1827 assert( !(kIOMemoryPreparedReadOnly & _flags) );
1829 if ( (kIOMemoryPreparedReadOnly & _flags) || offset >= _length) {
1833 if (kIOMemoryThreadSafe & _flags)
1860 if (kIOMemoryThreadSafe & _flags)
1887 if (((kIOMemoryTypeMask & _flags) == kIOMemoryTypePhysical)
1888 || ((kIOMemoryTypeMask & _flags) == kIOMemoryTypePhysical64))
2068 && (!(kIOMemoryHostOnly & _flags))
2103 if ( (_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical) {
2140 else if ( (_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical64) {
2279 IOOptionBits type = _flags & kIOMemoryTypeMask;
2331 state->fMapped = (0 == (options & kIOMemoryMapperNone)) && !(_flags & kIOMemoryHostOnly);
2350 if ((options & kIOMemoryMapperNone) && !(_flags & kIOMemoryMapperNone))
2550 if (kIOMemoryThreadSafe & _flags)
2556 if (_task == kernel_task && (kIOMemoryBufferPageable & _flags))
2571 IOOptionBits type = _flags & kIOMemoryTypeMask;
2590 if (kIOMemoryThreadSafe & _flags)
2602 if (kIOMemoryThreadSafe & _flags) LOCK;
2604 if (kIOMemoryThreadSafe & _flags) UNLOCK;
2614 if (kIOMemoryThreadSafe & _flags) LOCK;
2616 if (kIOMemoryThreadSafe & _flags) UNLOCK;
2676 if (kIOMemoryThreadSafe & _flags)
2701 if (kIOMemoryThreadSafe & _flags)
2756 IOOptionBits type = _flags & kIOMemoryTypeMask;
2783 if ((kIOMemoryPreparedReadOnly & _flags) && !(UPL_COPYOUT_FROM & uplFlags))
2818 if (_task == kernel_task && (kIOMemoryBufferPageable & _flags)) curMap = 0;
2934 if ((_flags & kIOMemoryAutoPrepare) && iopl.fIOPL)
2971 if (UPL_COPYOUT_FROM & uplFlags) _flags |= kIOMemoryPreparedReadOnly;
3049 if (!(kIOMemoryPreparedReadOnly & _flags)) mapOptions |= kIODMAMapWriteAccess;
3117 IOOptionBits type = _flags & kIOMemoryTypeMask;
3120 if (kIOMemoryHostOnly & _flags) return (kIOReturnSuccess);
3149 if (!(kIOMemoryPreparedReadOnly & _flags)) mapOptions |= kIODMAMapWriteAccess;
3176 IOOptionBits type = _flags & kIOMemoryTypeMask;
3193 if (kIOMemoryClearEncrypt & _flags)
3217 IOOptionBits type = _flags & kIOMemoryTypeMask;
3234 if ((kIOMemoryClearEncrypt & _flags) && (1 == _wireCount))
3242 IOOptionBits type = _flags & kIOMemoryTypeMask;
3313 IOOptionBits type = _flags & kIOMemoryTypeMask;
3348 if (kIODirectionOut == (kIODirectionOutIn & _flags))
3435 mapping->fOptions |= ((_flags & kIOMemoryBufferCacheMask) >> kIOMemoryBufferCacheShift);
3539 if( kIOMemoryRedirected & _flags)
3546 } while( kIOMemoryRedirected & _flags );
3614 if ((addressMap == kernel_map) && !(kIOMemoryRedirected & _flags))
3657 if ((addressMap == kernel_map) && (kIOMemoryBufferPageable & _flags))
3680 _flags |= kIOMemoryRedirected;
3682 _flags &= ~kIOMemoryRedirected;
3763 if ((((fMemory->_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical)
3764 || ((fMemory->_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical64))
3766 && (doRedirect != (0 != (fMemory->_flags & kIOMemoryRedirected))))
4113 if (((fMemory->_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical)
4114 || ((fMemory->_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical64))
4209 if (((_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical)
4210 || ((_flags & kIOMemoryTypeMask) == kIOMemoryTypePhysical64))
4371 IOOptionBits type = _flags & kIOMemoryTypeMask;