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()
3027 int32_t lIndex; in MPU_xQueueCreateSetStatic() local
3029 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xQueueCreateSetStatic()
3031 if( lIndex != -1 ) in MPU_xQueueCreateSetStatic()
3037 MPU_StoreQueueSetHandleAtIndex( lIndex, xInternalQueueSetHandle ); in MPU_xQueueCreateSetStatic()
3038 … xExternalQueueSetHandle = ( QueueSetHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xQueueCreateSetStatic()
3042 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xQueueCreateSetStatic()
3089 int32_t lIndex; in MPU_xQueueGenericGetStaticBuffers() local
3093 lIndex = ( int32_t ) xQueue; in MPU_xQueueGenericGetStaticBuffers()
3095 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericGetStaticBuffers()
3097 … xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGenericGetStaticBuffers()
3117 int32_t lIndex; in MPU_xQueueGenericSendFromISR() local
3120 lIndex = ( int32_t ) xQueue; in MPU_xQueueGenericSendFromISR()
3122 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGenericSendFromISR()
3124 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGenericSendFromISR()
3141 int32_t lIndex; in MPU_xQueueGiveFromISR() local
3144 lIndex = ( int32_t ) xQueue; in MPU_xQueueGiveFromISR()
3146 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGiveFromISR()
3148 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGiveFromISR()
3165 int32_t lIndex; in MPU_xQueuePeekFromISR() local
3168 lIndex = ( int32_t ) xQueue; in MPU_xQueuePeekFromISR()
3170 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueuePeekFromISR()
3172 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueuePeekFromISR()
3190 int32_t lIndex; in MPU_xQueueReceiveFromISR() local
3193 lIndex = ( int32_t ) xQueue; in MPU_xQueueReceiveFromISR()
3195 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueReceiveFromISR()
3197 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueReceiveFromISR()
3213 int32_t lIndex; in MPU_xQueueIsQueueEmptyFromISR() local
3216 lIndex = ( int32_t ) xQueue; in MPU_xQueueIsQueueEmptyFromISR()
3218 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueIsQueueEmptyFromISR()
3220 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueIsQueueEmptyFromISR()
3235 int32_t lIndex; in MPU_xQueueIsQueueFullFromISR() local
3238 lIndex = ( int32_t ) xQueue; in MPU_xQueueIsQueueFullFromISR()
3240 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueIsQueueFullFromISR()
3242 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueIsQueueFullFromISR()
3258 int32_t lIndex; in MPU_uxQueueMessagesWaitingFromISR() local
3261 lIndex = ( int32_t ) xQueue; in MPU_uxQueueMessagesWaitingFromISR()
3263 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxQueueMessagesWaitingFromISR()
3265 xInternalQueueHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxQueueMessagesWaitingFromISR()
3284 int32_t lIndex, lMutexHolderTaskIndex; in MPU_xQueueGetMutexHolderFromISR() local
3287 lIndex = ( int32_t ) xSemaphore; in MPU_xQueueGetMutexHolderFromISR()
3289 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xQueueGetMutexHolderFromISR()
3291 … xInternalSemaphoreHandle = MPU_GetQueueHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xQueueGetMutexHolderFromISR()
3364 int32_t lIndex; in MPU_pvTimerGetTimerIDImpl() local
3367 lIndex = ( int32_t ) xTimer; in MPU_pvTimerGetTimerIDImpl()
3369 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pvTimerGetTimerIDImpl()
3371 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pvTimerGetTimerIDImpl()
3375 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pvTimerGetTimerIDImpl()
3399 int32_t lIndex; in MPU_vTimerSetTimerIDImpl() local
3402 lIndex = ( int32_t ) xTimer; in MPU_vTimerSetTimerIDImpl()
3404 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTimerSetTimerIDImpl()
3406 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetTimerIDImpl()
3410 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetTimerIDImpl()
3431 int32_t lIndex; in MPU_xTimerIsTimerActiveImpl() local
3434 lIndex = ( int32_t ) xTimer; in MPU_xTimerIsTimerActiveImpl()
3436 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerIsTimerActiveImpl()
3438 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerIsTimerActiveImpl()
3442 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerIsTimerActiveImpl()
3501 int32_t lIndex; in MPU_xTimerGenericCommandFromTaskImpl() local
3527 lIndex = ( int32_t ) ( pxParams->xTimer ); in MPU_xTimerGenericCommandFromTaskImpl()
3529 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGenericCommandFromTaskImpl()
3531 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGenericCommandFromTaskImpl()
3535 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGenericCommandFromTaskImpl()
3565 int32_t lIndex; in MPU_pcTimerGetNameImpl() local
3568 lIndex = ( int32_t ) xTimer; in MPU_pcTimerGetNameImpl()
3570 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_pcTimerGetNameImpl()
3572 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pcTimerGetNameImpl()
3576 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_pcTimerGetNameImpl()
3600 int32_t lIndex; in MPU_vTimerSetReloadModeImpl() local
3603 lIndex = ( int32_t ) xTimer; in MPU_vTimerSetReloadModeImpl()
3605 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vTimerSetReloadModeImpl()
3607 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetReloadModeImpl()
3611 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vTimerSetReloadModeImpl()
3632 int32_t lIndex; in MPU_xTimerGetReloadModeImpl() local
3635 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetReloadModeImpl()
3637 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetReloadModeImpl()
3639 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetReloadModeImpl()
3643 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetReloadModeImpl()
3666 int32_t lIndex; in MPU_uxTimerGetReloadModeImpl() local
3669 lIndex = ( int32_t ) xTimer; in MPU_uxTimerGetReloadModeImpl()
3671 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxTimerGetReloadModeImpl()
3673 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTimerGetReloadModeImpl()
3677 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxTimerGetReloadModeImpl()
3700 int32_t lIndex; in MPU_xTimerGetPeriodImpl() local
3703 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetPeriodImpl()
3705 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetPeriodImpl()
3707 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetPeriodImpl()
3711 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetPeriodImpl()
3734 int32_t lIndex; in MPU_xTimerGetExpiryTimeImpl() local
3737 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetExpiryTimeImpl()
3739 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetExpiryTimeImpl()
3741 …orizedToAccessTimer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetExpiryTimeImpl()
3745 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetExpiryTimeImpl()
3775 int32_t lIndex; in MPU_xTimerCreate() local
3777 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTimerCreate()
3779 if( lIndex != -1 ) in MPU_xTimerCreate()
3785 MPU_StoreTimerHandleAtIndex( lIndex, xInternalTimerHandle, pxCallbackFunction ); in MPU_xTimerCreate()
3786 xExternalTimerHandle = ( TimerHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTimerCreate()
3790 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTimerCreate()
3811 int32_t lIndex; in MPU_xTimerCreateStatic() local
3813 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xTimerCreateStatic()
3815 if( lIndex != -1 ) in MPU_xTimerCreateStatic()
3821 MPU_StoreTimerHandleAtIndex( lIndex, xInternalTimerHandle, pxCallbackFunction ); in MPU_xTimerCreateStatic()
3822 xExternalTimerHandle = ( TimerHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xTimerCreateStatic()
3826 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xTimerCreateStatic()
3842 int32_t lIndex; in MPU_xTimerGetStaticBuffer() local
3845 lIndex = ( int32_t ) xTimer; in MPU_xTimerGetStaticBuffer()
3847 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGetStaticBuffer()
3849 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGetStaticBuffer()
3873 int32_t lIndex; in MPU_xTimerGenericCommandFromISR() local
3875 lIndex = ( int32_t ) xTimer; in MPU_xTimerGenericCommandFromISR()
3877 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xTimerGenericCommandFromISR()
3879 … xInternalTimerHandle = MPU_GetTimerHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xTimerGenericCommandFromISR()
3925 int32_t lIndex; in MPU_xEventGroupWaitBitsImpl() local
3945 lIndex = ( int32_t ) ( pxParams->xEventGroup ); in MPU_xEventGroupWaitBitsImpl()
3947 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupWaitBitsImpl()
3949 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupWaitBitsImpl()
3953 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupWaitBitsImpl()
3984 int32_t lIndex; in MPU_xEventGroupClearBitsImpl() local
3989 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupClearBitsImpl()
3991 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupClearBitsImpl()
3993 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupClearBitsImpl()
3997 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupClearBitsImpl()
4023 int32_t lIndex; in MPU_xEventGroupSetBitsImpl() local
4028 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupSetBitsImpl()
4030 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSetBitsImpl()
4032 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSetBitsImpl()
4036 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSetBitsImpl()
4066 int32_t lIndex; in MPU_xEventGroupSyncImpl() local
4076 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupSyncImpl()
4078 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSyncImpl()
4080 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSyncImpl()
4084 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSyncImpl()
4108 int32_t lIndex; in MPU_uxEventGroupGetNumberImpl() local
4111 lIndex = ( int32_t ) xEventGroup; in MPU_uxEventGroupGetNumberImpl()
4113 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_uxEventGroupGetNumberImpl()
4115 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxEventGroupGetNumberImpl()
4119 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_uxEventGroupGetNumberImpl()
4143 int32_t lIndex; in MPU_vEventGroupSetNumberImpl() local
4146 lIndex = ( int32_t ) xEventGroup; in MPU_vEventGroupSetNumberImpl()
4148 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vEventGroupSetNumberImpl()
4150 …dToAccessEventGroup = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupSetNumberImpl()
4154 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupSetNumberImpl()
4178 int32_t lIndex; in MPU_xEventGroupCreate() local
4180 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xEventGroupCreate()
4182 if( lIndex != -1 ) in MPU_xEventGroupCreate()
4188 MPU_StoreEventGroupHandleAtIndex( lIndex, xInternalEventGroupHandle ); in MPU_xEventGroupCreate()
4189 … xExternalEventGroupHandle = ( EventGroupHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xEventGroupCreate()
4193 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xEventGroupCreate()
4209 int32_t lIndex; in MPU_xEventGroupCreateStatic() local
4211 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xEventGroupCreateStatic()
4213 if( lIndex != -1 ) in MPU_xEventGroupCreateStatic()
4219 MPU_StoreEventGroupHandleAtIndex( lIndex, xInternalEventGroupHandle ); in MPU_xEventGroupCreateStatic()
4220 … xExternalEventGroupHandle = ( EventGroupHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xEventGroupCreateStatic()
4224 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xEventGroupCreateStatic()
4239 int32_t lIndex; in MPU_vEventGroupDelete() local
4241 lIndex = ( int32_t ) xEventGroup; in MPU_vEventGroupDelete()
4243 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vEventGroupDelete()
4245 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupDelete()
4250 MPU_SetIndexFreeInKernelObjectPool( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vEventGroupDelete()
4265 int32_t lIndex; in MPU_xEventGroupGetStaticBuffer() local
4267 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupGetStaticBuffer()
4269 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupGetStaticBuffer()
4271 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupGetStaticBuffer()
4292 int32_t lIndex; in MPU_xEventGroupClearBitsFromISR() local
4294 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupClearBitsFromISR()
4296 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupClearBitsFromISR()
4298 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupClearBitsFromISR()
4320 int32_t lIndex; in MPU_xEventGroupSetBitsFromISR() local
4322 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupSetBitsFromISR()
4324 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupSetBitsFromISR()
4326 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupSetBitsFromISR()
4346 int32_t lIndex; in MPU_xEventGroupGetBitsFromISR() local
4348 lIndex = ( int32_t ) xEventGroup; in MPU_xEventGroupGetBitsFromISR()
4350 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xEventGroupGetBitsFromISR()
4352 … xInternalEventGroupHandle = MPU_GetEventGroupHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xEventGroupGetBitsFromISR()
4384 int32_t lIndex; in MPU_xStreamBufferSendImpl() local
4396 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSendImpl()
4398 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendImpl()
4400 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendImpl()
4404 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendImpl()
4435 int32_t lIndex; in MPU_xStreamBufferReceiveImpl() local
4447 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReceiveImpl()
4449 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveImpl()
4451 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveImpl()
4455 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveImpl()
4480 int32_t lIndex; in MPU_xStreamBufferIsFullImpl() local
4483 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferIsFullImpl()
4485 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferIsFullImpl()
4487 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsFullImpl()
4491 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsFullImpl()
4514 int32_t lIndex; in MPU_xStreamBufferIsEmptyImpl() local
4517 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferIsEmptyImpl()
4519 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferIsEmptyImpl()
4521 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsEmptyImpl()
4525 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferIsEmptyImpl()
4548 int32_t lIndex; in MPU_xStreamBufferSpacesAvailableImpl() local
4551 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSpacesAvailableImpl()
4553 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSpacesAvailableImpl()
4555 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSpacesAvailableImpl()
4559 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSpacesAvailableImpl()
4582 int32_t lIndex; in MPU_xStreamBufferBytesAvailableImpl() local
4585 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferBytesAvailableImpl()
4587 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferBytesAvailableImpl()
4589 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferBytesAvailableImpl()
4593 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferBytesAvailableImpl()
4618 int32_t lIndex; in MPU_xStreamBufferSetTriggerLevelImpl() local
4621 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSetTriggerLevelImpl()
4623 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSetTriggerLevelImpl()
4625 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSetTriggerLevelImpl()
4629 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSetTriggerLevelImpl()
4652 int32_t lIndex; in MPU_xStreamBufferNextMessageLengthBytesImpl() local
4655 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferNextMessageLengthBytesImpl()
4657 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferNextMessageLengthBytesImpl()
4659 …oAccessStreamBuffer = xPortIsAuthorizedToAccessKernelObject( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferNextMessageLengthBytesImpl()
4663 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferNextMessageLengthBytesImpl()
4693 int32_t lIndex; in MPU_xStreamBufferGenericCreate() local
4705 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xStreamBufferGenericCreate()
4707 if( lIndex != -1 ) in MPU_xStreamBufferGenericCreate()
4717 MPU_StoreStreamBufferHandleAtIndex( lIndex, xInternalStreamBufferHandle ); in MPU_xStreamBufferGenericCreate()
4718 … xExternalStreamBufferHandle = ( StreamBufferHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xStreamBufferGenericCreate()
4722 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xStreamBufferGenericCreate()
4750 int32_t lIndex; in MPU_xStreamBufferGenericCreateStatic() local
4762 lIndex = MPU_GetFreeIndexInKernelObjectPool(); in MPU_xStreamBufferGenericCreateStatic()
4764 if( lIndex != -1 ) in MPU_xStreamBufferGenericCreateStatic()
4776 MPU_StoreStreamBufferHandleAtIndex( lIndex, xInternalStreamBufferHandle ); in MPU_xStreamBufferGenericCreateStatic()
4777 … xExternalStreamBufferHandle = ( StreamBufferHandle_t ) CONVERT_TO_EXTERNAL_INDEX( lIndex ); in MPU_xStreamBufferGenericCreateStatic()
4781 MPU_SetIndexFreeInKernelObjectPool( lIndex ); in MPU_xStreamBufferGenericCreateStatic()
4802 int32_t lIndex; in MPU_vStreamBufferDelete() local
4804 lIndex = ( int32_t ) xStreamBuffer; in MPU_vStreamBufferDelete()
4806 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_vStreamBufferDelete()
4808 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vStreamBufferDelete()
4815 MPU_SetIndexFreeInKernelObjectPool( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_vStreamBufferDelete()
4828 int32_t lIndex; in MPU_xStreamBufferReset() local
4830 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReset()
4832 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReset()
4834 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReset()
4856 int32_t lIndex; in MPU_xStreamBufferGetStaticBuffers() local
4858 lIndex = ( int32_t ) xStreamBuffers; in MPU_xStreamBufferGetStaticBuffers()
4860 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferGetStaticBuffers()
4862 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferGetStaticBuffers()
4885 int32_t lIndex; in MPU_xStreamBufferSendFromISR() local
4887 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSendFromISR()
4889 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendFromISR()
4891 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendFromISR()
4914 int32_t lIndex; in MPU_xStreamBufferReceiveFromISR() local
4916 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReceiveFromISR()
4918 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveFromISR()
4920 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveFromISR()
4941 int32_t lIndex; in MPU_xStreamBufferSendCompletedFromISR() local
4943 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferSendCompletedFromISR()
4945 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferSendCompletedFromISR()
4947 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferSendCompletedFromISR()
4968 int32_t lIndex; in MPU_xStreamBufferReceiveCompletedFromISR() local
4970 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferReceiveCompletedFromISR()
4972 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferReceiveCompletedFromISR()
4974 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferReceiveCompletedFromISR()
4995 int32_t lIndex; in MPU_xStreamBufferResetFromISR() local
4997 lIndex = ( int32_t ) xStreamBuffer; in MPU_xStreamBufferResetFromISR()
4999 if( IS_EXTERNAL_INDEX_VALID( lIndex ) != pdFALSE ) in MPU_xStreamBufferResetFromISR()
5001 …ternalStreamBufferHandle = MPU_GetStreamBufferHandleAtIndex( CONVERT_TO_INTERNAL_INDEX( lIndex ) ); in MPU_xStreamBufferResetFromISR()