Lines Matching refs:iopl

146     uint32_t fIOMDOffset;	    // The offset of this iopl in descriptor
147 ppnum_t fMappedPage; // Page number of first page in this iopl
148 unsigned int fPageOffset; // Offset within first page of iopl
754 ioPLBlock iopl;
755 iopl.fIOPL = (upl_t) buffers;
756 upl_set_referenced(iopl.fIOPL, true);
757 upl_page_info_t *pageList = UPL_GET_INTERNAL_PAGE_LIST(iopl.fIOPL);
759 if (upl_get_size(iopl.fIOPL) < (count + offset))
762 _highestPage = upl_get_highest_page(iopl.fIOPL);
765 iopl.fFlags = pageList->device | kIOPLExternUPL;
771 iopl.fIOMDOffset = 0;
772 iopl.fMappedPage = 0;
773 iopl.fPageInfo = (vm_address_t) pageList;
774 iopl.fPageOffset = offset;
775 _memoryEntries->appendBytes(&iopl, sizeof(iopl));
1433 // Scan through iopl info blocks looking for block containing offset
1445 length -= offset; // Remainder within iopl
1447 // Subtract offset till this iopl in total list
1458 // The offset is rebased into the current iopl.
1459 // Now add the iopl 1st page offset.
1487 // length is currently set to the length of the remainider of the iopl.
1488 // We need to check that the remainder of the iopl is contiguous.
2123 ioPLBlock iopl;
2130 iopl.fPageOffset = startPage & PAGE_MASK;
2131 numBytes += iopl.fPageOffset;
2135 iopl.fMappedPage = mapBase + pageIndex;
2137 iopl.fMappedPage = 0;
2164 &iopl.fIOPL,
2173 &iopl.fIOPL,
2183 &iopl.fIOPL,
2193 if (iopl.fIOPL)
2194 highPage = upl_get_highest_page(iopl.fIOPL);
2202 iopl.fFlags = kIOPLOnDevice;
2205 iopl.fFlags = 0;
2208 iopl.fIOMDOffset = mdOffset;
2209 iopl.fPageInfo = pageIndex;
2214 if ((_flags & kIOMemoryAutoPrepare) && iopl.fIOPL)
2216 upl_commit(iopl.fIOPL, 0, 0);
2217 upl_deallocate(iopl.fIOPL);
2218 iopl.fIOPL = 0;
2222 if (!_memoryEntries->appendBytes(&iopl, sizeof(iopl))) {
2223 // Clean up partial created and unsaved iopl
2224 if (iopl.fIOPL) {
2225 upl_abort(iopl.fIOPL, 0);
2226 upl_deallocate(iopl.fIOPL);
2232 // Check for a multiple iopl's in one virtual range
2234 mdOffset -= iopl.fPageOffset;
2239 iopl.fPageOffset = 0;
2240 if (mapper) iopl.fMappedPage = mapBase + pageIndex;