Lines Matching defs:options

308 					IOOptionBits   options,
312 return (IOMemoryDescriptor::withAddressRanges(&range, 1, options, task));
318 IOOptionBits options,
325 options |= kIOMemoryTypeVirtual64;
327 options |= kIOMemoryTypePhysical64;
329 if (that->initWithOptions(ranges, rangeCount, 0, task, options, /* mapper */ 0))
371 IOOptionBits options,
588 IOOptionBits options,
591 IOOptionBits type = options & kIOMemoryTypeMask;
618 options = orig->_flags & ~kIOMemoryAsReference;
619 type = options & kIOMemoryTypeMask;
684 options |= (kIOMemoryRedirected & _flags);
685 if (!(kIOMemoryRedirected & options))
703 if (kIOMemoryHostOnly & options) options |= kIOMemoryMapperNone;
704 if (kIOMemoryMapperNone & options)
712 if (kIOMemoryReserved6156215 & options)
714 options &= ~kIOMemoryReserved6156215;
715 options |= kIOMemoryThreadSafe;
718 options &= ~(kIOMemoryPreparedReadOnly);
719 _flags = options;
730 if (kIOMemoryThreadSafe & options)
783 if (options & kIOMemoryAsReference) {
1523 IOGeneralMemoryDescriptor::getPhysicalSegment(IOByteCount offset, IOByteCount *lengthOfSegment, IOOptionBits options)
1542 if ((options & _kIOMemorySourceSegment) && (kIOMemoryTypeUPL != type))
1581 state->fMapped = (0 == (options & kIOMemoryMapperNone)) && !(_flags & kIOMemoryHostOnly);
1600 if ((options & kIOMemoryMapperNone) && !(_flags & kIOMemoryMapperNone))
1627 IOMemoryDescriptor::getPhysicalSegment(IOByteCount offset, IOByteCount *lengthOfSegment, IOOptionBits options)
1631 if (options & _kIOMemorySourceSegment)
1635 else if (options & kIOMemoryMapperNone)
2002 IOReturn IOMemoryDescriptor::performOperation( IOOptionBits options,
2009 switch (options)
2615 IOOptionBits options,
2621 if (!(kIOMap64Bit & options)) panic("IOGeneralMemoryDescriptor::doMap !64bit");
2645 && (mapping->fAddressMap == get_task_map(_task)) && (options & kIOMapAnywhere)
2663 if (!(kIOMapReadOnly & options))
2665 else if (kIOMapDefaultCache != (options & kIOMapCacheMask))
2708 if ((options & kIOMapAnywhere) || ((mapping->fAddress - address) == pageOffset))
2712 options,
2736 || (!(kIOMapReadOnly & options) && !(VM_PROT_WRITE & cur_prot)))
2792 switch(options & kIOMapCacheMask ) {
2861 options, __offset, __length );
2954 IOOptionBits options;
2966 | ((ref->options & kIOMapReadOnly) ? 0 : VM_PROT_WRITE);
2969 if (kIOMapDefaultCache != (ref->options & kIOMapCacheMask))
2974 switch (ref->options & kIOMapCacheMask)
3012 (( ref->options & kIOMapAnywhere ) ? VM_FLAGS_ANYWHERE : VM_FLAGS_FIXED)
3029 ((ref->options & kIOMapAnywhere) ? VM_FLAGS_ANYWHERE : VM_FLAGS_FIXED)
3047 IOMemoryDescriptorMapMemEntry(vm_map_t * map, ipc_port_t entry, IOOptionBits options, bool pageable,
3057 ref.options = options;
3060 if (options & kIOMapAnywhere)
3079 IOOptionBits options,
3089 ref.options = options;
3092 if (options & kIOMapAnywhere)
3112 IOOptionBits options,
3117 if (!(kIOMap64Bit & options)) panic("IOMemoryDescriptor::doMap !64bit");
3140 if ((kIOMapReference|kIOMapUnique) == ((kIOMapReference|kIOMapUnique) & options))
3192 err = handleFault( pager, mapping->fAddressMap, mapping->fAddress, offset, length, options );
3198 if (!(options & kIOMapAnywhere))
3210 options, (kIOMemoryBufferPageable & _flags),
3217 err = handleFault( pager, mapping->fAddressMap, address, offset, length, options );
3245 IOOptionBits options )
3683 uint32_t options,
3691 if (kIODirectionOutIn & options)
3693 kr = vm_map_wire(fAddressMap, start, end, (kIODirectionOutIn & options), FALSE);
3750 IOOptionBits options )
3753 options | kIOMapStatic,
3758 IOOptionBits options )
3761 options | kIOMapAnywhere,
3769 IOOptionBits options,
3773 if ((!(kIOMapAnywhere & options)) && vm_map_is_64bit(get_task_map(intoTask)))
3780 options, offset, length));
3787 IOOptionBits options,
3801 options, offset, length )) {
3807 result = makeMapping(this, intoTask, (IOVirtualAddress) mapping, options | kIOMap64Bit, 0, 0);
3813 IOLog("createMappingInTask failed desc %p, addr %qx, options %x, offset %qx, length %llx\n",
3814 this, atAddress, (uint32_t) options, offset, length);
3822 IOOptionBits options,
3825 return (redirect(newBackingMemory, options, (mach_vm_size_t)offset));
3830 IOOptionBits options,
3871 options | kIOMapUnique | kIOMapReference | kIOMap64Bit,
3899 IOOptionBits options,
3904 if (!(kIOMap64Bit & options)) panic("IOMemoryDescriptor::makeMapping !64bit");
3921 if (kIOMapStatic & options)
3929 if (kIOMapUnique & options)
3968 if (result || (options & kIOMapReference))
3985 kr = mapDesc->doMap( 0, (IOVirtualAddress *) &mapping, options, 0, 0 );