Lines Matching refs:pxNewQueue
218 …temSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue ) PRIVILEGED_FUN…
226 static void prvInitialiseMutex( Queue_t *pxNewQueue ) PRIVILEGED_FUNCTION;
322 Queue_t *pxNewQueue; in xQueueGenericCreateStatic() local
349 …pxNewQueue = ( Queue_t * ) pxStaticQueue; /*lint !e740 !e9087 Unusual cast is ok as the structures… in xQueueGenericCreateStatic()
351 if( pxNewQueue != NULL ) in xQueueGenericCreateStatic()
358 pxNewQueue->ucStaticallyAllocated = pdTRUE; in xQueueGenericCreateStatic()
362 prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); in xQueueGenericCreateStatic()
370 return pxNewQueue; in xQueueGenericCreateStatic()
380 Queue_t *pxNewQueue; in xQueueGenericCreate() local
413 …pxNewQueue = ( Queue_t * ) pvPortMalloc( sizeof( Queue_t ) + xQueueSizeInBytes ); /*lint !e9087 !e… in xQueueGenericCreate()
415 if( pxNewQueue != NULL ) in xQueueGenericCreate()
419 pucQueueStorage = ( uint8_t * ) pxNewQueue; in xQueueGenericCreate()
427 pxNewQueue->ucStaticallyAllocated = pdFALSE; in xQueueGenericCreate()
431 prvInitialiseNewQueue( uxQueueLength, uxItemSize, pucQueueStorage, ucQueueType, pxNewQueue ); in xQueueGenericCreate()
439 return pxNewQueue; in xQueueGenericCreate()
445 … UBaseType_t uxItemSize, uint8_t *pucQueueStorage, const uint8_t ucQueueType, Queue_t *pxNewQueue ) in prvInitialiseNewQueue() argument
457 pxNewQueue->pcHead = ( int8_t * ) pxNewQueue; in prvInitialiseNewQueue()
462 pxNewQueue->pcHead = ( int8_t * ) pucQueueStorage; in prvInitialiseNewQueue()
467 pxNewQueue->uxLength = uxQueueLength; in prvInitialiseNewQueue()
468 pxNewQueue->uxItemSize = uxItemSize; in prvInitialiseNewQueue()
469 ( void ) xQueueGenericReset( pxNewQueue, pdTRUE ); in prvInitialiseNewQueue()
473 pxNewQueue->ucQueueType = ucQueueType; in prvInitialiseNewQueue()
479 pxNewQueue->pxQueueSetContainer = NULL; in prvInitialiseNewQueue()
483 traceQUEUE_CREATE( pxNewQueue ); in prvInitialiseNewQueue()
489 static void prvInitialiseMutex( Queue_t *pxNewQueue ) in prvInitialiseMutex() argument
491 if( pxNewQueue != NULL ) in prvInitialiseMutex()
497 pxNewQueue->u.xSemaphore.xMutexHolder = NULL; in prvInitialiseMutex()
498 pxNewQueue->uxQueueType = queueQUEUE_IS_MUTEX; in prvInitialiseMutex()
501 pxNewQueue->u.xSemaphore.uxRecursiveCallCount = 0; in prvInitialiseMutex()
502 vPortCPUInitializeMutex(&pxNewQueue->mux); in prvInitialiseMutex()
504 traceCREATE_MUTEX( pxNewQueue ); in prvInitialiseMutex()
507 ( void ) xQueueGenericSend( pxNewQueue, NULL, ( TickType_t ) 0U, queueSEND_TO_BACK ); in prvInitialiseMutex()