Lines Matching refs:newElement
209 static int signalEvent( struct StackElement * newElement ) in signalEvent() argument
218 if ( newElement != NULL ) in signalEvent()
222 head = newElement; in signalEvent()
225 tail->next = newElement; in signalEvent()
227 newElement->next = NULL; in signalEvent()
228 tail = newElement; in signalEvent()
253 if ( element == newElement ) in signalEvent()
278 struct StackElement * newElement = NULL; in newStackElement() local
282 if ( newElement == NULL ) in newStackElement()
287 newElement = avail; in newStackElement()
293 if ( newElement == NULL ) in newStackElement()
294 newElement = kmalloc(sizeof(struct StackElement),GFP_ATOMIC); in newStackElement()
296 if ( newElement == NULL ) in newStackElement()
302 memset( newElement, 0, sizeof(struct StackElement) ); in newStackElement()
303 newElement->event.xHvLpEvent.xFlags.xValid = 1; in newStackElement()
304 newElement->event.xHvLpEvent.xFlags.xAckType = HvLpEvent_AckType_ImmediateAck; in newStackElement()
305 newElement->event.xHvLpEvent.xFlags.xAckInd = HvLpEvent_AckInd_DoAck; in newStackElement()
306 newElement->event.xHvLpEvent.xFlags.xFunction = HvLpEvent_Function_Int; in newStackElement()
307 newElement->event.xHvLpEvent.xType = HvLpEvent_Type_MachineFac; in newStackElement()
308 newElement->event.xHvLpEvent.xSourceLp = HvLpConfig_getLpIndex(); in newStackElement()
309 newElement->event.xHvLpEvent.xTargetLp = primaryLp; in newStackElement()
310 newElement->event.xHvLpEvent.xSizeMinus1 = sizeof(newElement->event)-1; in newStackElement()
311 newElement->event.xHvLpEvent.xRc = HvLpEvent_Rc_Good; in newStackElement()
312 …newElement->event.xHvLpEvent.xSourceInstanceId = HvCallEvent_getSourceLpInstanceId(primaryLp,HvLpE… in newStackElement()
313 …newElement->event.xHvLpEvent.xTargetInstanceId = HvCallEvent_getTargetLpInstanceId(primaryLp,HvLpE… in newStackElement()
315 return newElement; in newStackElement()
320 struct StackElement * newElement = newStackElement(); in signalVspInstruction() local
327 if ( newElement == NULL ) in signalVspInstruction()
330 newElement->event.xHvLpEvent.xSubtype = 6; in signalVspInstruction()
331 newElement->event.xHvLpEvent.x.xSubtypeData = ('M'<<24)+('F'<<16)+('V'<<8)+('I'<<0); in signalVspInstruction()
332 newElement->event.xUnion.xVspCmd.xTokenUnion.ptr = &response; in signalVspInstruction()
333 newElement->event.xUnion.xVspCmd.xCmd = vspCmd->xCmd; in signalVspInstruction()
334 newElement->event.xUnion.xVspCmd.xLpIndex = HvLpConfig_getLpIndex(); in signalVspInstruction()
335 newElement->event.xUnion.xVspCmd.xRc = 0xFF; in signalVspInstruction()
336 newElement->event.xUnion.xVspCmd.xReserved1 = 0; in signalVspInstruction()
337 …memcpy(&(newElement->event.xUnion.xVspCmd.xSubData),&(vspCmd->xSubData), sizeof(vspCmd->xSubData)); in signalVspInstruction()
340 rc = signalEvent(newElement); in signalVspInstruction()
357 struct StackElement * newElement = newStackElement(); in signalCEMsg() local
360 if ( newElement == NULL ) in signalCEMsg()
363 newElement->event.xHvLpEvent.xSubtype = 0; in signalCEMsg()
364 newElement->event.xHvLpEvent.x.xSubtypeData = ('M'<<24)+('F'<<16)+('C'<<8)+('E'<<0); in signalCEMsg()
365 memcpy( newElement->event.xUnion.xCEMsgData.xCEMsg, ceMsg, 12 ); in signalCEMsg()
366 newElement->event.xUnion.xCEMsgData.xToken = token; in signalCEMsg()
367 rc = signalEvent(newElement); in signalCEMsg()
378 struct StackElement * newElement = newStackElement(); in dmaAndSignalCEMsg() local
381 if ( newElement == NULL ) in dmaAndSignalCEMsg()
384 newElement->event.xHvLpEvent.xSubtype = 0; in dmaAndSignalCEMsg()
385 newElement->event.xHvLpEvent.x.xSubtypeData = ('M'<<24)+('F'<<16)+('C'<<8)+('E'<<0); in dmaAndSignalCEMsg()
386 memcpy( newElement->event.xUnion.xCEMsgData.xCEMsg, ceMsg, 12 ); in dmaAndSignalCEMsg()
387 newElement->event.xUnion.xCEMsgData.xToken = token; in dmaAndSignalCEMsg()
388 memcpy( newElement->dmaData, dmaData, dmaDataLength ); in dmaAndSignalCEMsg()
389 newElement->dmaDataLength = dmaDataLength; in dmaAndSignalCEMsg()
390 newElement->remoteAddress = remoteAddress; in dmaAndSignalCEMsg()
391 rc = signalEvent(newElement); in dmaAndSignalCEMsg()
609 struct StackElement * newElement = newStackElement(); in mf_allocateLpEvents() local
612 if ( newElement == NULL ) in mf_allocateLpEvents()
617 newElement->event.xHvLpEvent.xSubtype = 4; in mf_allocateLpEvents()
618 newElement->event.xHvLpEvent.xCorrelationToken = mine.ptrAsU64; in mf_allocateLpEvents()
619 newElement->event.xHvLpEvent.x.xSubtypeData = ('M'<<24)+('F'<<16)+('M'<<8)+('A'<<0); in mf_allocateLpEvents()
620 newElement->event.xUnion.xAllocData.xTargetLp = targetLp; in mf_allocateLpEvents()
621 newElement->event.xUnion.xAllocData.xType = type; in mf_allocateLpEvents()
622 newElement->event.xUnion.xAllocData.xSize = size; in mf_allocateLpEvents()
623 newElement->event.xUnion.xAllocData.xCount = count; in mf_allocateLpEvents()
624 newElement->hdlr = hdlr; in mf_allocateLpEvents()
625 rc = signalEvent(newElement); in mf_allocateLpEvents()
642 struct StackElement * newElement = newStackElement(); in mf_deallocateLpEvents() local
645 if ( newElement == NULL ) in mf_deallocateLpEvents()
650 newElement->event.xHvLpEvent.xSubtype = 5; in mf_deallocateLpEvents()
651 newElement->event.xHvLpEvent.xCorrelationToken = mine.ptrAsU64; in mf_deallocateLpEvents()
652 newElement->event.xHvLpEvent.x.xSubtypeData = ('M'<<24)+('F'<<16)+('M'<<8)+('D'<<0); in mf_deallocateLpEvents()
653 newElement->event.xUnion.xAllocData.xTargetLp = targetLp; in mf_deallocateLpEvents()
654 newElement->event.xUnion.xAllocData.xType = type; in mf_deallocateLpEvents()
655 newElement->event.xUnion.xAllocData.xCount = count; in mf_deallocateLpEvents()
656 newElement->hdlr = hdlr; in mf_deallocateLpEvents()
657 rc = signalEvent(newElement); in mf_deallocateLpEvents()