• Home
  • Raw
  • Download

Lines Matching refs:pResult

39     clState *pResult = (clState *)malloc(sizeof(clState));  in newClState()  local
41 log_info("malloc clState * %x\n", pResult); in newClState()
44 pResult->m_device = device; in newClState()
45 pResult->m_context = context; in newClState()
46 pResult->m_queue = queue; in newClState()
48 pResult->m_kernel = NULL; in newClState()
49 pResult->m_program = NULL; in newClState()
50 return pResult; in newClState()
113 bufferStruct *pResult = (bufferStruct *)malloc(sizeof(bufferStruct)); in newBufferStruct() local
115 log_info("malloc bufferStruct * %x\n", pResult); in newBufferStruct()
118 pResult->m_bufSizeIn = inSize; in newBufferStruct()
119 pResult->m_bufSizeOut = outSize; in newBufferStruct()
121 pResult->m_pIn = malloc(inSize); in newBufferStruct()
122 pResult->m_pOut = malloc(outSize); in newBufferStruct()
124 log_info("malloc m_pIn %x\n", pResult->m_pIn); in newBufferStruct()
125 log_info("malloc m_pOut %x\n", pResult->m_pOut); in newBufferStruct()
128 pResult->m_inBuffer = clCreateBuffer(pClState->m_context, CL_MEM_READ_ONLY, in newBufferStruct()
130 if (pResult->m_inBuffer == NULL) in newBufferStruct()
133 return destroyBufferStruct(pResult, pClState); in newBufferStruct()
136 log_info("clCreateBuffer %x\n", pResult->m_inBuffer); in newBufferStruct()
139 pResult->m_outBuffer = clCreateBuffer( in newBufferStruct()
141 if (pResult->m_outBuffer == NULL) in newBufferStruct()
144 return destroyBufferStruct(pResult, pClState); in newBufferStruct()
147 log_info("clCreateBuffer %x\n", pResult->m_outBuffer); in newBufferStruct()
150 pResult->m_bufferUploaded = false; in newBufferStruct()
152 return pResult; in newBufferStruct()