Lines Matching refs:memoryAllocated
163 smMemoryRequirement_t *memoryAllocated,
187 SM_ASSERT((agNULL != memoryAllocated), "");
189 SM_ASSERT((SM_ROOT_MEM_INDEX < memoryAllocated->count), "");
190 SM_ASSERT((SM_DEVICE_MEM_INDEX < memoryAllocated->count), "");
191 SM_ASSERT((SM_IO_MEM_INDEX < memoryAllocated->count), "");
194 for ( i = 0; i < memoryAllocated->count; i ++ )
197 if (memoryAllocated->smMemory[i].singleElementLength &&
198 memoryAllocated->smMemory[i].numElements)
200 if ( (0 != memoryAllocated->smMemory[i].numElements)
201 && (0 == memoryAllocated->smMemory[i].totalLength) )
206 memoryAllocated->smMemory[i].singleElementLength,
207 memoryAllocated->smMemory[i].numElements));
214 for ( i = 0; i < memoryAllocated->count; i ++ )
216 SM_DBG3(("smInitialize: index %d virtPtr %p osHandle%p\n",i, memoryAllocated->smMemory[i].virtPtr, memoryAllocated->smMemory[i].osHandle));
218 memoryAllocated->smMemory[i].physAddrUpper,
219 memoryAllocated->smMemory[i].physAddrLower,
220 memoryAllocated->smMemory[i].totalLength,
221 memoryAllocated->smMemory[i].numElements));
223 memoryAllocated->smMemory[i].singleElementLength,
224 memoryAllocated->smMemory[i].alignment,
225 memoryAllocated->smMemory[i].type,
226 memoryAllocated->smMemory[i].reserved));
230 smIntRoot = (smIntRoot_t *) (memoryAllocated->smMemory[SM_ROOT_MEM_INDEX].virtPtr);
241 smDevice = (smDeviceData_t *) (memoryAllocated->smMemory[SM_DEVICE_MEM_INDEX].virtPtr);
245 smIORequest = (smIORequestBody_t *) (memoryAllocated->smMemory[SM_IO_MEM_INDEX].virtPtr);