Lines Matching refs:lIndex

95     #define IS_EXTERNAL_INDEX_VALID( lIndex )   \  argument
96 ( ( ( ( lIndex ) >= INDEX_OFFSET ) && \
97 … ( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE + INDEX_OFFSET ) ) ) ? pdTRUE : pdFALSE )
102 #define IS_INTERNAL_INDEX_VALID( lIndex ) \ argument
103 ( ( ( ( lIndex ) >= 0 ) && \
104 ( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE ) ) ) ? pdTRUE : pdFALSE )
109 #define CONVERT_TO_EXTERNAL_INDEX( lIndex ) ( ( lIndex ) + INDEX_OFFSET ) argument
114 #define CONVERT_TO_INTERNAL_INDEX( lIndex ) ( ( lIndex ) - INDEX_OFFSET ) argument
142 static void MPU_SetIndexFreeInKernelObjectPool( int32_t lIndex ) PRIVILEGED_FUNCTION;
166 static void MPU_StoreHandleAndDataAtIndex( int32_t lIndex,
180 static OpaqueObjectHandle_t MPU_GetHandleAtIndex( int32_t lIndex,
200 …#define MPU_StoreQueueHandleAtIndex( lIndex, xHandle ) MPU_StoreHandleAndDataAtInd… argument
201 …define MPU_GetQueueHandleAtIndex( lIndex ) ( QueueHandle_t ) MPU_GetHan… argument
204 …#define MPU_StoreQueueSetHandleAtIndex( lIndex, xHandle ) MPU_StoreHandleAndDataAtIndex( … argument
205 …efine MPU_GetQueueSetHandleAtIndex( lIndex ) ( QueueSetHandle_t ) MPU_GetHandl… argument
206 …#define MPU_StoreQueueSetMemberHandleAtIndex( lIndex, xHandle ) MPU_StoreHandleAndDataAtIndex( … argument
207 …MPU_GetQueueSetMemberHandleAtIndex( lIndex ) ( QueueSetMemberHandle_t ) MPU_GetHandl… argument
214 …#define MPU_StoreTaskHandleAtIndex( lIndex, xHandle ) MPU_StoreHandleAndDataAtIndex( ( argument
215 …#define MPU_GetTaskHandleAtIndex( lIndex ) ( TaskHandle_t ) MPU_GetHandleAtI… argument
222 …#define MPU_StoreEventGroupHandleAtIndex( lIndex, xHandle ) MPU_StoreHandleAndDataAtIndex( ( argument
223 …fine MPU_GetEventGroupHandleAtIndex( lIndex ) ( EventGroupHandle_t ) MPU_GetHandle… argument
232 …#define MPU_StoreStreamBufferHandleAtIndex( lIndex, xHandle ) MPU_StoreHandleAndDataAtIndex( ( argument
233 …ne MPU_GetStreamBufferHandleAtIndex( lIndex ) ( StreamBufferHandle_t ) MPU_GetHandle… argument
242 …efine MPU_StoreTimerHandleAtIndex( lIndex, xHandle, pxApplicationCallback ) MPU_StoreHandleAndD… argument
243 …e MPU_GetTimerHandleAtIndex( lIndex ) ( TimerHandle_t ) MPU_G… argument
283 static void MPU_SetIndexFreeInKernelObjectPool( int32_t lIndex ) /* PRIVILEGED_FUNCTION */ in MPU_SetIndexFreeInKernelObjectPool() argument
285 configASSERT( IS_INTERNAL_INDEX_VALID( lIndex ) != pdFALSE ); in MPU_SetIndexFreeInKernelObjectPool()
289 xKernelObjectPool[ lIndex ].xInternalObjectHandle = NULL; in MPU_SetIndexFreeInKernelObjectPool()
290 xKernelObjectPool[ lIndex ].ulKernelObjectType = KERNEL_OBJECT_TYPE_INVALID; in MPU_SetIndexFreeInKernelObjectPool()
291 xKernelObjectPool[ lIndex ].pvKernelObjectData = NULL; in MPU_SetIndexFreeInKernelObjectPool()
300 int32_t i, lIndex = -1; in MPU_GetIndexForHandle() local
309 lIndex = i; in MPU_GetIndexForHandle()
314 return lIndex; in MPU_GetIndexForHandle()
318 static void MPU_StoreHandleAndDataAtIndex( int32_t lIndex, in MPU_StoreHandleAndDataAtIndex() argument
323 configASSERT( IS_INTERNAL_INDEX_VALID( lIndex ) != pdFALSE ); in MPU_StoreHandleAndDataAtIndex()
324 xKernelObjectPool[ lIndex ].xInternalObjectHandle = xHandle; in MPU_StoreHandleAndDataAtIndex()
325 xKernelObjectPool[ lIndex ].ulKernelObjectType = ulKernelObjectType; in MPU_StoreHandleAndDataAtIndex()
326 xKernelObjectPool[ lIndex ].pvKernelObjectData = pvKernelObjectData; in MPU_StoreHandleAndDataAtIndex()
330 static OpaqueObjectHandle_t MPU_GetHandleAtIndex( int32_t lIndex, in MPU_GetHandleAtIndex() argument
335 configASSERT( IS_INTERNAL_INDEX_VALID( lIndex ) != pdFALSE ); in MPU_GetHandleAtIndex()
337 if( xKernelObjectPool[ lIndex ].ulKernelObjectType == ulKernelObjectType ) in MPU_GetHandleAtIndex()
339 xObjectHandle = xKernelObjectPool[ lIndex ].xInternalObjectHandle; in MPU_GetHandleAtIndex()
420 int32_t i, lIndex = -1; in MPU_TimerCallback() local
432 lIndex = i; in MPU_TimerCallback()
437 configASSERT( lIndex != -1 ); in MPU_TimerCallback()
438 xExternalHandle = ( TimerHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_TimerCallback()
440 …pxApplicationCallBack = ( TimerCallbackFunction_t ) xKernelObjectPool[ lIndex ].pvKernelObjectData; in MPU_TimerCallback()
489 int32_t lIndex; in MPU_xTaskAbortDelayImpl() local
491 lIndex = ( int32_t ) xTask; in MPU_xTaskAbortDelayImpl()
493 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskAbortDelayImpl()
495 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskAbortDelayImpl()
499 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskAbortDelayImpl()
534 int32_t lIndex; in MPU_uxTaskPriorityGetImpl() local
543 lIndex = ( int32_t ) pxTask; in MPU_uxTaskPriorityGetImpl()
545 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskPriorityGetImpl()
547 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskPriorityGetImpl()
551 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskPriorityGetImpl()
575 int32_t lIndex; in MPU_eTaskGetStateImpl() local
578 lIndex = ( int32_t ) pxTask; in MPU_eTaskGetStateImpl()
580 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_eTaskGetStateImpl()
582 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_eTaskGetStateImpl()
586 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_eTaskGetStateImpl()
613 int32_t lIndex; in MPU_vTaskGetInfoImpl() local
630 lIndex = ( int32_t ) xTask; in MPU_vTaskGetInfoImpl()
632 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskGetInfoImpl()
634 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskGetInfoImpl()
638 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskGetInfoImpl()
675 int32_t lIndex; in MPU_vTaskSuspendImpl() local
693 lIndex = ( int32_t ) pxTaskToSuspend; in MPU_vTaskSuspendImpl()
695 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskSuspendImpl()
697 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskSuspendImpl()
701 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskSuspendImpl()
722 int32_t lIndex; in MPU_vTaskResumeImpl() local
726 lIndex = ( int32_t ) pxTaskToResume; in MPU_vTaskResumeImpl()
728 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskResumeImpl()
730 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskResumeImpl()
734 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskResumeImpl()
778 int32_t lIndex; in MPU_ulTaskGetRunTimeCounterImpl() local
788 lIndex = ( int32_t ) xTask; in MPU_ulTaskGetRunTimeCounterImpl()
790 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_ulTaskGetRunTimeCounterImpl()
792 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_ulTaskGetRunTimeCounterImpl()
796 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_ulTaskGetRunTimeCounterImpl()
819 int32_t lIndex; in MPU_ulTaskGetRunTimePercentImpl() local
829 lIndex = ( int32_t ) xTask; in MPU_ulTaskGetRunTimePercentImpl()
831 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_ulTaskGetRunTimePercentImpl()
833 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_ulTaskGetRunTimePercentImpl()
837 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_ulTaskGetRunTimePercentImpl()
894 int32_t lIndex; in MPU_vTaskSetApplicationTaskTagImpl() local
903 lIndex = ( int32_t ) xTask; in MPU_vTaskSetApplicationTaskTagImpl()
905 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskSetApplicationTaskTagImpl()
907 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskSetApplicationTaskTagImpl()
911 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskSetApplicationTaskTagImpl()
932 int32_t lIndex; in MPU_xTaskGetApplicationTaskTagImpl() local
942 lIndex = ( int32_t ) xTask; in MPU_xTaskGetApplicationTaskTagImpl()
944 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGetApplicationTaskTagImpl()
946 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGetApplicationTaskTagImpl()
950 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGetApplicationTaskTagImpl()
976 int32_t lIndex; in MPU_vTaskSetThreadLocalStoragePointerImpl() local
986 lIndex = ( int32_t ) xTaskToSet; in MPU_vTaskSetThreadLocalStoragePointerImpl()
988 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskSetThreadLocalStoragePointerImpl()
990 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskSetThreadLocalStoragePointerImpl()
994 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskSetThreadLocalStoragePointerImpl()
1017 int32_t lIndex; in MPU_pvTaskGetThreadLocalStoragePointerImpl() local
1027 lIndex = ( int32_t ) xTaskToQuery; in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1029 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1031 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1035 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pvTaskGetThreadLocalStoragePointerImpl()
1100 int32_t lIndex; in MPU_uxTaskGetStackHighWaterMarkImpl() local
1110 lIndex = ( int32_t ) xTask; in MPU_uxTaskGetStackHighWaterMarkImpl()
1112 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskGetStackHighWaterMarkImpl()
1114 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskGetStackHighWaterMarkImpl()
1118 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskGetStackHighWaterMarkImpl()
1141 int32_t lIndex; in MPU_uxTaskGetStackHighWaterMark2Impl() local
1151 lIndex = ( int32_t ) xTask; in MPU_uxTaskGetStackHighWaterMark2Impl()
1153 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskGetStackHighWaterMark2Impl()
1155 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskGetStackHighWaterMark2Impl()
1159 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskGetStackHighWaterMark2Impl()
1183 int32_t lIndex; in MPU_xTaskGetCurrentTaskHandleImpl() local
1189 lIndex = MPU_GetIndexForTaskHandle( xInternalTaskHandle ); in MPU_xTaskGetCurrentTaskHandleImpl()
1191 if( lIndex != -1 ) in MPU_xTaskGetCurrentTaskHandleImpl()
1193 xExternalTaskHandle = ( TaskHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTaskGetCurrentTaskHandleImpl()
1295 int32_t lIndex; in MPU_xTaskGenericNotifyImpl() local
1327 lIndex = ( int32_t ) ( pxParams->xTaskToNotify ); in MPU_xTaskGenericNotifyImpl()
1329 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGenericNotifyImpl()
1331 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGenericNotifyImpl()
1335 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGenericNotifyImpl()
1455 int32_t lIndex; in MPU_xTaskGenericNotifyStateClearImpl() local
1467 lIndex = ( int32_t ) xTask; in MPU_xTaskGenericNotifyStateClearImpl()
1469 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGenericNotifyStateClearImpl()
1471 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGenericNotifyStateClearImpl()
1475 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGenericNotifyStateClearImpl()
1503 int32_t lIndex; in MPU_ulTaskGenericNotifyValueClearImpl() local
1515 lIndex = ( int32_t ) xTask; in MPU_ulTaskGenericNotifyValueClearImpl()
1517 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_ulTaskGenericNotifyValueClearImpl()
1519 …horizedToAccessTask = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_ulTaskGenericNotifyValueClearImpl()
1523 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_ulTaskGenericNotifyValueClearImpl()
1555 int32_t lIndex; in MPU_xTaskCreate() local
1558 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTaskCreate()
1560 if( lIndex != -1 ) in MPU_xTaskCreate()
1569 MPU_StoreTaskHandleAtIndex( lIndex, xInternalTaskHandle ); in MPU_xTaskCreate()
1573 *pxCreatedTask = ( TaskHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTaskCreate()
1578 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTaskCreate()
1601 int32_t lIndex; in MPU_xTaskCreateStatic() local
1603 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTaskCreateStatic()
1605 if( lIndex != -1 ) in MPU_xTaskCreateStatic()
1611 MPU_StoreTaskHandleAtIndex( lIndex, xInternalTaskHandle ); in MPU_xTaskCreateStatic()
1618 vPortGrantAccessToKernelObject( xInternalTaskHandle, lIndex ); in MPU_xTaskCreateStatic()
1623 xExternalTaskHandle = ( TaskHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTaskCreateStatic()
1627 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTaskCreateStatic()
1642 int32_t lIndex; in MPU_vTaskDelete() local
1647 lIndex = MPU_GetIndexForTaskHandle( xInternalTaskHandle ); in MPU_vTaskDelete()
1649 if( lIndex != -1 ) in MPU_vTaskDelete()
1651 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_vTaskDelete()
1658 lIndex = ( int32_t ) pxTaskToDelete; in MPU_vTaskDelete()
1660 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskDelete()
1662 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskDelete()
1666 MPU_SetIndexFreeInKernelObjectPool( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskDelete()
1683 int32_t lIndex; in MPU_vTaskPrioritySet() local
1691 lIndex = ( int32_t ) pxTask; in MPU_vTaskPrioritySet()
1693 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskPrioritySet()
1695 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskPrioritySet()
1714 int32_t lIndex; in MPU_xTaskGetHandle() local
1720 lIndex = MPU_GetIndexForTaskHandle( xInternalTaskHandle ); in MPU_xTaskGetHandle()
1722 if( lIndex != -1 ) in MPU_xTaskGetHandle()
1724 xExternalTaskHandle = ( TaskHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTaskGetHandle()
1741 int32_t lIndex; in MPU_xTaskCallApplicationTaskHook() local
1750 lIndex = ( int32_t ) xTask; in MPU_xTaskCallApplicationTaskHook()
1752 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskCallApplicationTaskHook()
1754 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskCallApplicationTaskHook()
1775 int32_t lIndex; in MPU_xTaskCreateRestricted() local
1778 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTaskCreateRestricted()
1780 if( lIndex != -1 ) in MPU_xTaskCreateRestricted()
1786 MPU_StoreTaskHandleAtIndex( lIndex, xInternalTaskHandle ); in MPU_xTaskCreateRestricted()
1793 vPortGrantAccessToKernelObject( xInternalTaskHandle, lIndex ); in MPU_xTaskCreateRestricted()
1800 *pxCreatedTask = ( TaskHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTaskCreateRestricted()
1805 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTaskCreateRestricted()
1821 int32_t lIndex; in MPU_xTaskCreateRestrictedStatic() local
1824 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTaskCreateRestrictedStatic()
1826 if( lIndex != -1 ) in MPU_xTaskCreateRestrictedStatic()
1832 MPU_StoreTaskHandleAtIndex( lIndex, xInternalTaskHandle ); in MPU_xTaskCreateRestrictedStatic()
1839 vPortGrantAccessToKernelObject( xInternalTaskHandle, lIndex ); in MPU_xTaskCreateRestrictedStatic()
1846 *pxCreatedTask = ( TaskHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTaskCreateRestrictedStatic()
1851 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTaskCreateRestrictedStatic()
1865 int32_t lIndex; in MPU_vTaskAllocateMPURegions() local
1873 lIndex = ( int32_t ) xTaskToModify; in MPU_vTaskAllocateMPURegions()
1875 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskAllocateMPURegions()
1877 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskAllocateMPURegions()
1895 int32_t lIndex; in MPU_xTaskGetStaticBuffers() local
1905 lIndex = ( int32_t ) xTask; in MPU_xTaskGetStaticBuffers()
1907 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGetStaticBuffers()
1909 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGetStaticBuffers()
1927 int32_t lIndex; in MPU_pcTaskGetName() local
1936 lIndex = ( int32_t ) xTaskToQuery; in MPU_pcTaskGetName()
1938 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pcTaskGetName()
1940 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pcTaskGetName()
1958 int32_t lIndex; in MPU_uxTaskPriorityGetFromISR() local
1967 lIndex = ( int32_t ) xTask; in MPU_uxTaskPriorityGetFromISR()
1969 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskPriorityGetFromISR()
1971 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskPriorityGetFromISR()
1991 int32_t lIndex; in MPU_uxTaskBasePriorityGet() local
2000 lIndex = ( int32_t ) xTask; in MPU_uxTaskBasePriorityGet()
2002 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskBasePriorityGet()
2004 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskBasePriorityGet()
2024 int32_t lIndex; in MPU_uxTaskBasePriorityGetFromISR() local
2033 lIndex = ( int32_t ) xTask; in MPU_uxTaskBasePriorityGetFromISR()
2035 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTaskBasePriorityGetFromISR()
2037 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTaskBasePriorityGetFromISR()
2057 int32_t lIndex; in MPU_xTaskResumeFromISR() local
2060 lIndex = ( int32_t ) xTaskToResume; in MPU_xTaskResumeFromISR()
2062 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskResumeFromISR()
2064 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskResumeFromISR()
2083 int32_t lIndex; in MPU_xTaskGetApplicationTaskTagFromISR() local
2092 lIndex = ( int32_t ) xTask; in MPU_xTaskGetApplicationTaskTagFromISR()
2094 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGetApplicationTaskTagFromISR()
2096 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGetApplicationTaskTagFromISR()
2121 int32_t lIndex; in MPU_xTaskGenericNotifyFromISR() local
2124 lIndex = ( int32_t ) xTaskToNotify; in MPU_xTaskGenericNotifyFromISR()
2126 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTaskGenericNotifyFromISR()
2128 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTaskGenericNotifyFromISR()
2148 int32_t lIndex; in MPU_vTaskGenericNotifyGiveFromISR() local
2151 lIndex = ( int32_t ) xTaskToNotify; in MPU_vTaskGenericNotifyGiveFromISR()
2153 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTaskGenericNotifyGiveFromISR()
2155 … xInternalTaskHandle = MPU_GetTaskHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTaskGenericNotifyGiveFromISR()
2180 int32_t lIndex; in MPU_xQueueGenericSendImpl() local
2187 lIndex = ( int32_t ) xQueue; in MPU_xQueueGenericSendImpl()
2189 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericSendImpl()
2191 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGenericSendImpl()
2195 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGenericSendImpl()
2233 int32_t lIndex; in MPU_uxQueueMessagesWaitingImpl() local
2238 lIndex = ( int32_t ) pxQueue; in MPU_uxQueueMessagesWaitingImpl()
2240 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxQueueMessagesWaitingImpl()
2242 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxQueueMessagesWaitingImpl()
2246 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxQueueMessagesWaitingImpl()
2263 int32_t lIndex; in MPU_uxQueueSpacesAvailableImpl() local
2268 lIndex = ( int32_t ) xQueue; in MPU_uxQueueSpacesAvailableImpl()
2270 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxQueueSpacesAvailableImpl()
2272 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxQueueSpacesAvailableImpl()
2276 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxQueueSpacesAvailableImpl()
2297 int32_t lIndex; in MPU_xQueueReceiveImpl() local
2304 lIndex = ( int32_t ) pxQueue; in MPU_xQueueReceiveImpl()
2306 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueReceiveImpl()
2308 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueReceiveImpl()
2312 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueReceiveImpl()
2349 int32_t lIndex; in MPU_xQueuePeekImpl() local
2356 lIndex = ( int32_t ) xQueue; in MPU_xQueuePeekImpl()
2358 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueuePeekImpl()
2360 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueuePeekImpl()
2364 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueuePeekImpl()
2399 int32_t lIndex; in MPU_xQueueSemaphoreTakeImpl() local
2405 lIndex = ( int32_t ) xQueue; in MPU_xQueueSemaphoreTakeImpl()
2407 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueSemaphoreTakeImpl()
2409 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueSemaphoreTakeImpl()
2413 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueSemaphoreTakeImpl()
2443 int32_t lIndex, lMutexHolderTaskIndex; in MPU_xQueueGetMutexHolderImpl() local
2448 lIndex = ( int32_t ) xSemaphore; in MPU_xQueueGetMutexHolderImpl()
2450 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGetMutexHolderImpl()
2452 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGetMutexHolderImpl()
2456 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGetMutexHolderImpl()
2491 int32_t lIndex; in MPU_xQueueTakeMutexRecursiveImpl() local
2495 lIndex = ( int32_t ) xMutex; in MPU_xQueueTakeMutexRecursiveImpl()
2497 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueTakeMutexRecursiveImpl()
2499 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueTakeMutexRecursiveImpl()
2503 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueTakeMutexRecursiveImpl()
2531 int32_t lIndex; in MPU_xQueueGiveMutexRecursiveImpl() local
2534 lIndex = ( int32_t ) xMutex; in MPU_xQueueGiveMutexRecursiveImpl()
2536 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGiveMutexRecursiveImpl()
2538 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGiveMutexRecursiveImpl()
2542 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGiveMutexRecursiveImpl()
2654 int32_t lIndex; in MPU_vQueueAddToRegistryImpl() local
2658 lIndex = ( int32_t ) xQueue; in MPU_vQueueAddToRegistryImpl()
2660 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vQueueAddToRegistryImpl()
2662 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vQueueAddToRegistryImpl()
2666 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vQueueAddToRegistryImpl()
2685 int32_t lIndex; in MPU_vQueueUnregisterQueueImpl() local
2689 lIndex = ( int32_t ) xQueue; in MPU_vQueueUnregisterQueueImpl()
2691 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vQueueUnregisterQueueImpl()
2693 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vQueueUnregisterQueueImpl()
2697 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vQueueUnregisterQueueImpl()
2718 int32_t lIndex; in MPU_pcQueueGetNameImpl() local
2721 lIndex = ( int32_t ) xQueue; in MPU_pcQueueGetNameImpl()
2723 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pcQueueGetNameImpl()
2725 …orizedToAccessQueue = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pcQueueGetNameImpl()
2729 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pcQueueGetNameImpl()
2752 int32_t lIndex; in MPU_vQueueDelete() local
2754 lIndex = ( int32_t ) xQueue; in MPU_vQueueDelete()
2756 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vQueueDelete()
2758 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vQueueDelete()
2763 MPU_SetIndexFreeInKernelObjectPool( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vQueueDelete()
2775 int32_t lIndex; in MPU_xQueueCreateMutex() local
2777 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueCreateMutex()
2779 if( lIndex != -1 ) in MPU_xQueueCreateMutex()
2785 MPU_StoreQueueHandleAtIndex( lIndex, xInternalQueueHandle ); in MPU_xQueueCreateMutex()
2786 xExternalQueueHandle = ( QueueHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueCreateMutex()
2790 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueCreateMutex()
2807 int32_t lIndex; in MPU_xQueueCreateMutexStatic() local
2809 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueCreateMutexStatic()
2811 if( lIndex != -1 ) in MPU_xQueueCreateMutexStatic()
2817 MPU_StoreQueueHandleAtIndex( lIndex, xInternalQueueHandle ); in MPU_xQueueCreateMutexStatic()
2818 xExternalQueueHandle = ( QueueHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueCreateMutexStatic()
2822 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueCreateMutexStatic()
2839 int32_t lIndex; in MPU_xQueueCreateCountingSemaphore() local
2841 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueCreateCountingSemaphore()
2843 if( lIndex != -1 ) in MPU_xQueueCreateCountingSemaphore()
2849 MPU_StoreQueueHandleAtIndex( lIndex, xInternalQueueHandle ); in MPU_xQueueCreateCountingSemaphore()
2850 xExternalQueueHandle = ( QueueHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueCreateCountingSemaphore()
2854 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueCreateCountingSemaphore()
2872 int32_t lIndex; in MPU_xQueueCreateCountingSemaphoreStatic() local
2874 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueCreateCountingSemaphoreStatic()
2876 if( lIndex != -1 ) in MPU_xQueueCreateCountingSemaphoreStatic()
2882 MPU_StoreQueueHandleAtIndex( lIndex, xInternalQueueHandle ); in MPU_xQueueCreateCountingSemaphoreStatic()
2883 xExternalQueueHandle = ( QueueHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueCreateCountingSemaphoreStatic()
2887 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueCreateCountingSemaphoreStatic()
2905 int32_t lIndex; in MPU_xQueueGenericCreate() local
2907 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueGenericCreate()
2909 if( lIndex != -1 ) in MPU_xQueueGenericCreate()
2915 MPU_StoreQueueHandleAtIndex( lIndex, xInternalQueueHandle ); in MPU_xQueueGenericCreate()
2916 xExternalQueueHandle = ( QueueHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueGenericCreate()
2920 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueGenericCreate()
2940 int32_t lIndex; in MPU_xQueueGenericCreateStatic() local
2942 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueGenericCreateStatic()
2944 if( lIndex != -1 ) in MPU_xQueueGenericCreateStatic()
2950 MPU_StoreQueueHandleAtIndex( lIndex, xInternalQueueHandle ); in MPU_xQueueGenericCreateStatic()
2951 xExternalQueueHandle = ( QueueHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueGenericCreateStatic()
2955 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueGenericCreateStatic()
2968 int32_t lIndex; in MPU_xQueueGenericReset() local
2972 lIndex = ( int32_t ) xQueue; in MPU_xQueueGenericReset()
2974 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericReset()
2976 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGenericReset()
2994 int32_t lIndex; in MPU_xQueueCreateSet() local
2996 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueCreateSet()
2998 if( lIndex != -1 ) in MPU_xQueueCreateSet()
3004 MPU_StoreQueueSetHandleAtIndex( lIndex, xInternalQueueSetHandle ); in MPU_xQueueCreateSet()
3005 … xExternalQueueSetHandle = ( QueueSetHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueCreateSet()
3009 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueCreateSet()
3056 int32_t lIndex; in MPU_xQueueGenericGetStaticBuffers() local
3060 lIndex = ( int32_t ) xQueue; in MPU_xQueueGenericGetStaticBuffers()
3062 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericGetStaticBuffers()
3064 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGenericGetStaticBuffers()
3084 int32_t lIndex; in MPU_xQueueGenericSendFromISR() local
3087 lIndex = ( int32_t ) xQueue; in MPU_xQueueGenericSendFromISR()
3089 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericSendFromISR()
3091 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGenericSendFromISR()
3108 int32_t lIndex; in MPU_xQueueGiveFromISR() local
3111 lIndex = ( int32_t ) xQueue; in MPU_xQueueGiveFromISR()
3113 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGiveFromISR()
3115 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGiveFromISR()
3132 int32_t lIndex; in MPU_xQueuePeekFromISR() local
3135 lIndex = ( int32_t ) xQueue; in MPU_xQueuePeekFromISR()
3137 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueuePeekFromISR()
3139 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueuePeekFromISR()
3157 int32_t lIndex; in MPU_xQueueReceiveFromISR() local
3160 lIndex = ( int32_t ) xQueue; in MPU_xQueueReceiveFromISR()
3162 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueReceiveFromISR()
3164 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueReceiveFromISR()
3180 int32_t lIndex; in MPU_xQueueIsQueueEmptyFromISR() local
3183 lIndex = ( int32_t ) xQueue; in MPU_xQueueIsQueueEmptyFromISR()
3185 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueIsQueueEmptyFromISR()
3187 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueIsQueueEmptyFromISR()
3202 int32_t lIndex; in MPU_xQueueIsQueueFullFromISR() local
3205 lIndex = ( int32_t ) xQueue; in MPU_xQueueIsQueueFullFromISR()
3207 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueIsQueueFullFromISR()
3209 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueIsQueueFullFromISR()
3225 int32_t lIndex; in MPU_uxQueueMessagesWaitingFromISR() local
3228 lIndex = ( int32_t ) xQueue; in MPU_uxQueueMessagesWaitingFromISR()
3230 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxQueueMessagesWaitingFromISR()
3232 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxQueueMessagesWaitingFromISR()
3251 int32_t lIndex, lMutexHolderTaskIndex; in MPU_xQueueGetMutexHolderFromISR() local
3254 lIndex = ( int32_t ) xSemaphore; in MPU_xQueueGetMutexHolderFromISR()
3256 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGetMutexHolderFromISR()
3258 … xInternalSemaphoreHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGetMutexHolderFromISR()
3331 int32_t lIndex; in MPU_pvTimerGetTimerIDImpl() local
3334 lIndex = ( int32_t ) xTimer; in MPU_pvTimerGetTimerIDImpl()
3336 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pvTimerGetTimerIDImpl()
3338 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pvTimerGetTimerIDImpl()
3342 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pvTimerGetTimerIDImpl()
3366 int32_t lIndex; in MPU_vTimerSetTimerIDImpl() local
3369 lIndex = ( int32_t ) xTimer; in MPU_vTimerSetTimerIDImpl()
3371 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTimerSetTimerIDImpl()
3373 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetTimerIDImpl()
3377 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetTimerIDImpl()
3398 int32_t lIndex; in MPU_xTimerIsTimerActiveImpl() local
3401 lIndex = ( int32_t ) xTimer; in MPU_xTimerIsTimerActiveImpl()
3403 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerIsTimerActiveImpl()
3405 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerIsTimerActiveImpl()
3409 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerIsTimerActiveImpl()
3468 int32_t lIndex; in MPU_xTimerGenericCommandFromTaskImpl() local
3494 lIndex = ( int32_t ) ( pxParams->xTimer ); in MPU_xTimerGenericCommandFromTaskImpl()
3496 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGenericCommandFromTaskImpl()
3498 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGenericCommandFromTaskImpl()
3502 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGenericCommandFromTaskImpl()
3532 int32_t lIndex; in MPU_pcTimerGetNameImpl() local
3535 lIndex = ( int32_t ) xTimer; in MPU_pcTimerGetNameImpl()
3537 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pcTimerGetNameImpl()
3539 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pcTimerGetNameImpl()
3543 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pcTimerGetNameImpl()
3567 int32_t lIndex; in MPU_vTimerSetReloadModeImpl() local
3570 lIndex = ( int32_t ) xTimer; in MPU_vTimerSetReloadModeImpl()
3572 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTimerSetReloadModeImpl()
3574 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetReloadModeImpl()
3578 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetReloadModeImpl()
3599 int32_t lIndex; in MPU_xTimerGetReloadModeImpl() local
3602 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetReloadModeImpl()
3604 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetReloadModeImpl()
3606 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetReloadModeImpl()
3610 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetReloadModeImpl()
3633 int32_t lIndex; in MPU_uxTimerGetReloadModeImpl() local
3636 lIndex = ( int32_t ) xTimer; in MPU_uxTimerGetReloadModeImpl()
3638 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTimerGetReloadModeImpl()
3640 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTimerGetReloadModeImpl()
3644 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTimerGetReloadModeImpl()
3667 int32_t lIndex; in MPU_xTimerGetPeriodImpl() local
3670 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetPeriodImpl()
3672 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetPeriodImpl()
3674 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetPeriodImpl()
3678 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetPeriodImpl()
3701 int32_t lIndex; in MPU_xTimerGetExpiryTimeImpl() local
3704 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetExpiryTimeImpl()
3706 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetExpiryTimeImpl()
3708 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetExpiryTimeImpl()
3712 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetExpiryTimeImpl()
3742 int32_t lIndex; in MPU_xTimerCreate() local
3744 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTimerCreate()
3746 if( lIndex != -1 ) in MPU_xTimerCreate()
3752 MPU_StoreTimerHandleAtIndex( lIndex, xInternalTimerHandle, pxCallbackFunction ); in MPU_xTimerCreate()
3753 xExternalTimerHandle = ( TimerHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTimerCreate()
3757 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTimerCreate()
3778 int32_t lIndex; in MPU_xTimerCreateStatic() local
3780 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTimerCreateStatic()
3782 if( lIndex != -1 ) in MPU_xTimerCreateStatic()
3788 MPU_StoreTimerHandleAtIndex( lIndex, xInternalTimerHandle, pxCallbackFunction ); in MPU_xTimerCreateStatic()
3789 xExternalTimerHandle = ( TimerHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTimerCreateStatic()
3793 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTimerCreateStatic()
3809 int32_t lIndex; in MPU_xTimerGetStaticBuffer() local
3812 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetStaticBuffer()
3814 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetStaticBuffer()
3816 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetStaticBuffer()
3840 int32_t lIndex; in MPU_xTimerGenericCommandFromISR() local
3852 lIndex = ( int32_t ) xTimer; in MPU_xTimerGenericCommandFromISR()
3854 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGenericCommandFromISR()
3856 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGenericCommandFromISR()
3903 int32_t lIndex; in MPU_xEventGroupWaitBitsImpl() local
3923 lIndex = ( int32_t ) ( pxParams->xEventGroup ); in MPU_xEventGroupWaitBitsImpl()
3925 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupWaitBitsImpl()
3927 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupWaitBitsImpl()
3931 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupWaitBitsImpl()
3962 int32_t lIndex; in MPU_xEventGroupClearBitsImpl() local
3967 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupClearBitsImpl()
3969 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupClearBitsImpl()
3971 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupClearBitsImpl()
3975 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupClearBitsImpl()
4001 int32_t lIndex; in MPU_xEventGroupSetBitsImpl() local
4006 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupSetBitsImpl()
4008 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSetBitsImpl()
4010 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSetBitsImpl()
4014 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSetBitsImpl()
4044 int32_t lIndex; in MPU_xEventGroupSyncImpl() local
4054 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupSyncImpl()
4056 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSyncImpl()
4058 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSyncImpl()
4062 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSyncImpl()
4086 int32_t lIndex; in MPU_uxEventGroupGetNumberImpl() local
4089 lIndex = ( int32_t ) xEventGroup; in MPU_uxEventGroupGetNumberImpl()
4091 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxEventGroupGetNumberImpl()
4093 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxEventGroupGetNumberImpl()
4097 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxEventGroupGetNumberImpl()
4121 int32_t lIndex; in MPU_vEventGroupSetNumberImpl() local
4124 lIndex = ( int32_t ) xEventGroup; in MPU_vEventGroupSetNumberImpl()
4126 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vEventGroupSetNumberImpl()
4128 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupSetNumberImpl()
4132 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupSetNumberImpl()
4156 int32_t lIndex; in MPU_xEventGroupCreate() local
4158 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xEventGroupCreate()
4160 if( lIndex != -1 ) in MPU_xEventGroupCreate()
4166 MPU_StoreEventGroupHandleAtIndex( lIndex, xInternalEventGroupHandle ); in MPU_xEventGroupCreate()
4167 … xExternalEventGroupHandle = ( EventGroupHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xEventGroupCreate()
4171 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xEventGroupCreate()
4187 int32_t lIndex; in MPU_xEventGroupCreateStatic() local
4189 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xEventGroupCreateStatic()
4191 if( lIndex != -1 ) in MPU_xEventGroupCreateStatic()
4197 MPU_StoreEventGroupHandleAtIndex( lIndex, xInternalEventGroupHandle ); in MPU_xEventGroupCreateStatic()
4198 … xExternalEventGroupHandle = ( EventGroupHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xEventGroupCreateStatic()
4202 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xEventGroupCreateStatic()
4217 int32_t lIndex; in MPU_vEventGroupDelete() local
4219 lIndex = ( int32_t ) xEventGroup; in MPU_vEventGroupDelete()
4221 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vEventGroupDelete()
4223 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupDelete()
4228 MPU_SetIndexFreeInKernelObjectPool( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupDelete()
4243 int32_t lIndex; in MPU_xEventGroupGetStaticBuffer() local
4245 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupGetStaticBuffer()
4247 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupGetStaticBuffer()
4249 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupGetStaticBuffer()
4270 int32_t lIndex; in MPU_xEventGroupClearBitsFromISR() local
4272 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupClearBitsFromISR()
4274 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupClearBitsFromISR()
4276 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupClearBitsFromISR()
4298 int32_t lIndex; in MPU_xEventGroupSetBitsFromISR() local
4300 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupSetBitsFromISR()
4302 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSetBitsFromISR()
4304 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSetBitsFromISR()
4324 int32_t lIndex; in MPU_xEventGroupGetBitsFromISR() local
4326 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupGetBitsFromISR()
4328 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupGetBitsFromISR()
4330 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupGetBitsFromISR()
4362 int32_t lIndex; in MPU_xStreamBufferSendImpl() local
4374 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSendImpl()
4376 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendImpl()
4378 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendImpl()
4382 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendImpl()
4413 int32_t lIndex; in MPU_xStreamBufferReceiveImpl() local
4425 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReceiveImpl()
4427 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveImpl()
4429 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveImpl()
4433 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveImpl()
4458 int32_t lIndex; in MPU_xStreamBufferIsFullImpl() local
4461 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferIsFullImpl()
4463 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferIsFullImpl()
4465 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsFullImpl()
4469 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsFullImpl()
4492 int32_t lIndex; in MPU_xStreamBufferIsEmptyImpl() local
4495 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferIsEmptyImpl()
4497 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferIsEmptyImpl()
4499 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsEmptyImpl()
4503 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsEmptyImpl()
4526 int32_t lIndex; in MPU_xStreamBufferSpacesAvailableImpl() local
4529 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSpacesAvailableImpl()
4531 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSpacesAvailableImpl()
4533 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSpacesAvailableImpl()
4537 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSpacesAvailableImpl()
4560 int32_t lIndex; in MPU_xStreamBufferBytesAvailableImpl() local
4563 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferBytesAvailableImpl()
4565 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferBytesAvailableImpl()
4567 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferBytesAvailableImpl()
4571 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferBytesAvailableImpl()
4596 int32_t lIndex; in MPU_xStreamBufferSetTriggerLevelImpl() local
4599 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSetTriggerLevelImpl()
4601 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSetTriggerLevelImpl()
4603 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSetTriggerLevelImpl()
4607 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSetTriggerLevelImpl()
4630 int32_t lIndex; in MPU_xStreamBufferNextMessageLengthBytesImpl() local
4633 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferNextMessageLengthBytesImpl()
4635 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferNextMessageLengthBytesImpl()
4637 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferNextMessageLengthBytesImpl()
4641 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferNextMessageLengthBytesImpl()
4671 int32_t lIndex; in MPU_xStreamBufferGenericCreate() local
4683 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xStreamBufferGenericCreate()
4685 if( lIndex != -1 ) in MPU_xStreamBufferGenericCreate()
4695 MPU_StoreStreamBufferHandleAtIndex( lIndex, xInternalStreamBufferHandle ); in MPU_xStreamBufferGenericCreate()
4696 … xExternalStreamBufferHandle = ( StreamBufferHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xStreamBufferGenericCreate()
4700 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xStreamBufferGenericCreate()
4728 int32_t lIndex; in MPU_xStreamBufferGenericCreateStatic() local
4740 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xStreamBufferGenericCreateStatic()
4742 if( lIndex != -1 ) in MPU_xStreamBufferGenericCreateStatic()
4754 MPU_StoreStreamBufferHandleAtIndex( lIndex, xInternalStreamBufferHandle ); in MPU_xStreamBufferGenericCreateStatic()
4755 … xExternalStreamBufferHandle = ( StreamBufferHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xStreamBufferGenericCreateStatic()
4759 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xStreamBufferGenericCreateStatic()
4780 int32_t lIndex; in MPU_vStreamBufferDelete() local
4782 lIndex = ( int32_t ) xStreamBuffer; in MPU_vStreamBufferDelete()
4784 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vStreamBufferDelete()
4786 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vStreamBufferDelete()
4793 MPU_SetIndexFreeInKernelObjectPool( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vStreamBufferDelete()
4806 int32_t lIndex; in MPU_xStreamBufferReset() local
4808 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReset()
4810 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReset()
4812 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReset()
4834 int32_t lIndex; in MPU_xStreamBufferGetStaticBuffers() local
4836 lIndex = ( int32_t ) xStreamBuffers; in MPU_xStreamBufferGetStaticBuffers()
4838 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferGetStaticBuffers()
4840 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferGetStaticBuffers()
4863 int32_t lIndex; in MPU_xStreamBufferSendFromISR() local
4865 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSendFromISR()
4867 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendFromISR()
4869 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendFromISR()
4892 int32_t lIndex; in MPU_xStreamBufferReceiveFromISR() local
4894 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReceiveFromISR()
4896 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveFromISR()
4898 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveFromISR()
4919 int32_t lIndex; in MPU_xStreamBufferSendCompletedFromISR() local
4921 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSendCompletedFromISR()
4923 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendCompletedFromISR()
4925 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendCompletedFromISR()
4946 int32_t lIndex; in MPU_xStreamBufferReceiveCompletedFromISR() local
4948 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReceiveCompletedFromISR()
4950 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveCompletedFromISR()
4952 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveCompletedFromISR()
4973 int32_t lIndex; in MPU_xStreamBufferResetFromISR() local
4975 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferResetFromISR()
4977 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferResetFromISR()
4979 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferResetFromISR()