Lines Matching defs:options
311 IOOptionBits options,
315 return (IOMemoryDescriptor::withAddressRanges(&range, 1, options, task));
321 IOOptionBits options,
328 options |= kIOMemoryTypeVirtual64;
330 options |= kIOMemoryTypePhysical64;
332 if (that->initWithOptions(ranges, rangeCount, 0, task, options, /* mapper */ 0))
374 IOOptionBits options,
591 IOOptionBits options,
594 IOOptionBits type = options & kIOMemoryTypeMask;
621 options = orig->_flags & ~kIOMemoryAsReference;
622 type = options & kIOMemoryTypeMask;
702 if (kIOMemoryHostOnly & options) options |= kIOMemoryMapperNone;
703 if (kIOMemoryMapperNone & options)
711 if (kIOMemoryReserved6156215 & options)
713 options &= ~kIOMemoryReserved6156215;
714 options |= kIOMemoryThreadSafe;
717 options &= ~(kIOMemoryPreparedReadOnly);
718 _flags = options;
729 if (kIOMemoryThreadSafe & options)
782 if (options & kIOMemoryAsReference) {
1517 IOGeneralMemoryDescriptor::getPhysicalSegment(IOByteCount offset, IOByteCount *lengthOfSegment, IOOptionBits options)
1536 if ((options & _kIOMemorySourceSegment) && (kIOMemoryTypeUPL != type))
1575 state->fMapped = (0 == (options & kIOMemoryMapperNone)) && !(_flags & kIOMemoryHostOnly);
1594 if ((options & kIOMemoryMapperNone) && !(_flags & kIOMemoryMapperNone))
1621 IOMemoryDescriptor::getPhysicalSegment(IOByteCount offset, IOByteCount *lengthOfSegment, IOOptionBits options)
1625 if (options & _kIOMemorySourceSegment)
1629 else if (options & kIOMemoryMapperNone)
1950 IOReturn IOMemoryDescriptor::performOperation( IOOptionBits options,
1957 switch (options)
2550 IOOptionBits options,
2556 if (!(kIOMap64Bit & options)) panic("IOGeneralMemoryDescriptor::doMap !64bit");
2580 && (mapping->fAddressMap == get_task_map(_task)) && (options & kIOMapAnywhere)
2598 if (!(kIOMapReadOnly & options))
2600 else if (kIOMapDefaultCache != (options & kIOMapCacheMask))
2643 if ((options & kIOMapAnywhere) || ((mapping->fAddress - address) == pageOffset))
2647 options,
2671 || (!(kIOMapReadOnly & options) && !(VM_PROT_WRITE & cur_prot)))
2727 switch(options & kIOMapCacheMask ) {
2796 options, __offset, __length );
2889 IOOptionBits options;
2901 | ((ref->options & kIOMapReadOnly) ? 0 : VM_PROT_WRITE);
2904 if (kIOMapDefaultCache != (ref->options & kIOMapCacheMask))
2909 switch (ref->options & kIOMapCacheMask)
2947 (( ref->options & kIOMapAnywhere ) ? VM_FLAGS_ANYWHERE : VM_FLAGS_FIXED)
2964 ((ref->options & kIOMapAnywhere) ? VM_FLAGS_ANYWHERE : VM_FLAGS_FIXED)
2982 IOMemoryDescriptorMapMemEntry(vm_map_t * map, ipc_port_t entry, IOOptionBits options, bool pageable,
2992 ref.options = options;
2995 if (options & kIOMapAnywhere)
3014 IOOptionBits options,
3024 ref.options = options;
3027 if (options & kIOMapAnywhere)
3047 IOOptionBits options,
3052 if (!(kIOMap64Bit & options)) panic("IOMemoryDescriptor::doMap !64bit");
3075 if ((kIOMapReference|kIOMapUnique) == ((kIOMapReference|kIOMapUnique) & options))
3127 err = handleFault( pager, mapping->fAddressMap, mapping->fAddress, offset, length, options );
3133 if (!(options & kIOMapAnywhere))
3145 options, (kIOMemoryBufferPageable & _flags),
3152 err = handleFault( pager, mapping->fAddressMap, address, offset, length, options );
3180 IOOptionBits options )
3602 uint32_t options,
3610 if (kIODirectionOutIn & options)
3612 kr = vm_map_wire(fAddressMap, start, end, (kIODirectionOutIn & options), FALSE);
3674 IOOptionBits options )
3677 options | kIOMapStatic,
3682 IOOptionBits options )
3685 options | kIOMapAnywhere,
3693 IOOptionBits options,
3697 if ((!(kIOMapAnywhere & options)) && vm_map_is_64bit(get_task_map(intoTask)))
3704 options, offset, length));
3711 IOOptionBits options,
3725 options, offset, length )) {
3731 result = makeMapping(this, intoTask, (IOVirtualAddress) mapping, options | kIOMap64Bit, 0, 0);
3737 IOLog("createMappingInTask failed desc %p, addr %qx, options %x, offset %qx, length %llx\n",
3738 this, atAddress, (uint32_t) options, offset, length);
3746 IOOptionBits options,
3749 return (redirect(newBackingMemory, options, (mach_vm_size_t)offset));
3754 IOOptionBits options,
3795 options | kIOMapUnique | kIOMapReference | kIOMap64Bit,
3823 IOOptionBits options,
3828 if (!(kIOMap64Bit & options)) panic("IOMemoryDescriptor::makeMapping !64bit");
3845 if (kIOMapStatic & options)
3853 if (kIOMapUnique & options)
3892 if (result || (options & kIOMapReference))
3909 kr = mapDesc->doMap( 0, (IOVirtualAddress *) &mapping, options, 0, 0 );