← back to dselaser__RF407_Boot

Function bodies 1,964 total

All specs Real LLM only Function bodies
__TZ_get_PSP_NS function · c · L875-L881 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_PSP_NS(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, psp_ns"  : "=r" (result) );
  return(result);
}
__set_PSP function · c · L890-L893 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_PSP(uint32_t topOfProcStack)
{
  __ASM volatile ("MSR psp, %0" : : "r" (topOfProcStack) : );
}
__TZ_set_PSP_NS function · c · L902-L905 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_PSP_NS(uint32_t topOfProcStack)
{
  __ASM volatile ("MSR psp_ns, %0" : : "r" (topOfProcStack) : );
}
__get_MSP function · c · L914-L920 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __get_MSP(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, msp" : "=r" (result) );
  return(result);
}
__TZ_get_MSP_NS function · c · L929-L935 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_MSP_NS(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, msp_ns" : "=r" (result) );
  return(result);
}
__set_MSP function · c · L944-L947 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_MSP(uint32_t topOfMainStack)
{
  __ASM volatile ("MSR msp, %0" : : "r" (topOfMainStack) : );
}
__TZ_set_MSP_NS function · c · L956-L959 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_MSP_NS(uint32_t topOfMainStack)
{
  __ASM volatile ("MSR msp_ns, %0" : : "r" (topOfMainStack) : );
}
Powered by Repobility — scan your code at https://repobility.com
__TZ_get_SP_NS function · c · L969-L975 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_SP_NS(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, sp_ns" : "=r" (result) );
  return(result);
}
__TZ_set_SP_NS function · c · L983-L986 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_SP_NS(uint32_t topOfStack)
{
  __ASM volatile ("MSR sp_ns, %0" : : "r" (topOfStack) : );
}
__get_PRIMASK function · c · L995-L1001 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __get_PRIMASK(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, primask" : "=r" (result) );
  return(result);
}
__TZ_get_PRIMASK_NS function · c · L1010-L1016 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_PRIMASK_NS(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, primask_ns" : "=r" (result) );
  return(result);
}
__set_PRIMASK function · c · L1025-L1028 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_PRIMASK(uint32_t priMask)
{
  __ASM volatile ("MSR primask, %0" : : "r" (priMask) : "memory");
}
__TZ_set_PRIMASK_NS function · c · L1037-L1040 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_PRIMASK_NS(uint32_t priMask)
{
  __ASM volatile ("MSR primask_ns, %0" : : "r" (priMask) : "memory");
}
__enable_fault_irq function · c · L1053-L1056 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __enable_fault_irq(void)
{
  __ASM volatile ("cpsie f" : : : "memory");
}
__disable_fault_irq function · c · L1064-L1067 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __disable_fault_irq(void)
{
  __ASM volatile ("cpsid f" : : : "memory");
}
Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com)
__get_BASEPRI function · c · L1075-L1081 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __get_BASEPRI(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, basepri" : "=r" (result) );
  return(result);
}
__TZ_get_BASEPRI_NS function · c · L1090-L1096 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_BASEPRI_NS(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, basepri_ns" : "=r" (result) );
  return(result);
}
__set_BASEPRI function · c · L1105-L1108 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_BASEPRI(uint32_t basePri)
{
  __ASM volatile ("MSR basepri, %0" : : "r" (basePri) : "memory");
}
__TZ_set_BASEPRI_NS function · c · L1117-L1120 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_BASEPRI_NS(uint32_t basePri)
{
  __ASM volatile ("MSR basepri_ns, %0" : : "r" (basePri) : "memory");
}
__set_BASEPRI_MAX function · c · L1130-L1133 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_BASEPRI_MAX(uint32_t basePri)
{
  __ASM volatile ("MSR basepri_max, %0" : : "r" (basePri) : "memory");
}
__get_FAULTMASK function · c · L1141-L1147 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __get_FAULTMASK(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, faultmask" : "=r" (result) );
  return(result);
}
__TZ_get_FAULTMASK_NS function · c · L1156-L1162 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_FAULTMASK_NS(void)
{
  uint32_t result;

  __ASM volatile ("MRS %0, faultmask_ns" : "=r" (result) );
  return(result);
}
__set_FAULTMASK function · c · L1171-L1174 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_FAULTMASK(uint32_t faultMask)
{
  __ASM volatile ("MSR faultmask, %0" : : "r" (faultMask) : "memory");
}
Repobility · code-quality intelligence platform · https://repobility.com
__TZ_set_FAULTMASK_NS function · c · L1183-L1186 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask)
{
  __ASM volatile ("MSR faultmask_ns, %0" : : "r" (faultMask) : "memory");
}
__get_PSPLIM function · c · L1208-L1220 (13 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __get_PSPLIM(void)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) && \
    (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
    // without main extensions, the non-secure PSPLIM is RAZ/WI
  return 0U;
#else
  uint32_t result;
  __ASM volatile ("MRS %0, psplim"  : "=r" (result) );
  return result;
#endif
}
__TZ_get_PSPLIM_NS function · c · L1232-L1243 (12 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) )
  // without main extensions, the non-secure PSPLIM is RAZ/WI
  return 0U;
#else
  uint32_t result;
  __ASM volatile ("MRS %0, psplim_ns"  : "=r" (result) );
  return result;
#endif
}
__set_PSPLIM function · c · L1256-L1266 (11 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_PSPLIM(uint32_t ProcStackPtrLimit)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) && \
    (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  // without main extensions, the non-secure PSPLIM is RAZ/WI
  (void)ProcStackPtrLimit;
#else
  __ASM volatile ("MSR psplim, %0" : : "r" (ProcStackPtrLimit));
#endif
}
__TZ_set_PSPLIM_NS function · c · L1279-L1288 (10 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_PSPLIM_NS(uint32_t ProcStackPtrLimit)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) )
  // without main extensions, the non-secure PSPLIM is RAZ/WI
  (void)ProcStackPtrLimit;
#else
  __ASM volatile ("MSR psplim_ns, %0\n" : : "r" (ProcStackPtrLimit));
#endif
}
__get_MSPLIM function · c · L1300-L1312 (13 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __get_MSPLIM(void)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) && \
    (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  // without main extensions, the non-secure MSPLIM is RAZ/WI
  return 0U;
#else
  uint32_t result;
  __ASM volatile ("MRS %0, msplim" : "=r" (result) );
  return result;
#endif
}
__TZ_get_MSPLIM_NS function · c · L1324-L1335 (12 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE uint32_t __TZ_get_MSPLIM_NS(void)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) )
  // without main extensions, the non-secure MSPLIM is RAZ/WI
  return 0U;
#else
  uint32_t result;
  __ASM volatile ("MRS %0, msplim_ns" : "=r" (result) );
  return result;
#endif
}
__set_MSPLIM function · c · L1347-L1357 (11 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __set_MSPLIM(uint32_t MainStackPtrLimit)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) && \
    (!defined (__ARM_FEATURE_CMSE) || (__ARM_FEATURE_CMSE < 3)))
  // without main extensions, the non-secure MSPLIM is RAZ/WI
  (void)MainStackPtrLimit;
#else
  __ASM volatile ("MSR msplim, %0" : : "r" (MainStackPtrLimit));
#endif
}
About: code-quality intelligence by Repobility · https://repobility.com
__TZ_set_MSPLIM_NS function · c · L1369-L1378 (10 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE void __TZ_set_MSPLIM_NS(uint32_t MainStackPtrLimit)
{
#if (!((defined (__ARM_ARCH_8M_MAIN__   ) && (__ARM_ARCH_8M_MAIN__   == 1)) || \
       (defined (__ARM_ARCH_8_1M_MAIN__ ) && (__ARM_ARCH_8_1M_MAIN__ == 1))   ) )
  // without main extensions, the non-secure MSPLIM is RAZ/WI
  (void)MainStackPtrLimit;
#else
  __ASM volatile ("MSR msplim_ns, %0" : : "r" (MainStackPtrLimit));
#endif
}
__SMMLA function · c · L1490-L1497 (8 LOC)
Drivers/CMSIS/Include/cmsis_armclang.h
__STATIC_FORCEINLINE int32_t __SMMLA (int32_t op1, int32_t op2, int32_t op3)
{
  int32_t result;

  __ASM volatile ("smmla %0, %1, %2, %3" : "=r" (result): "r"  (op1), "r" (op2), "r" (op3) );
  return(result);
}
__TZ_set_STACKSEAL_S function · c · L147-L151 (5 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h

__STATIC_FORCEINLINE void __TZ_set_STACKSEAL_S (uint32_t* stackTop) {
  *((uint64_t *)stackTop) = __TZ_STACK_SEAL_VALUE;
}
__ROR function · c · L258-L266 (9 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint32_t __ROR(uint32_t op1, uint32_t op2)
{
  op2 %= 32U;
  if (op2 == 0U)
  {
    return op1;
  }
  return (op1 >> op2) | (op1 << (32U - op2));
}
__CLZ function · c · L293-L309 (17 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint8_t __CLZ(uint32_t value)
{
  /* Even though __builtin_clz produces a CLZ instruction on ARM, formally
     __builtin_clz(0) is undefined behaviour, so handle this case specially.
     This guarantees ARM-compatible results if happening to compile on a non-ARM
     target, and ensures the compiler doesn't decide to activate any
     optimisations using the logic "value was passed to __builtin_clz, so it
     is non-zero".
     ARM Compiler 6.10 and possibly earlier will optimise this test away, leaving a
     single CLZ instruction.
   */
  if (value == 0U)
  {
    return 32U;
  }
  return __builtin_clz(value);
}
__RRX function · c · L419-L425 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint32_t __RRX(uint32_t value)
{
  uint32_t result;

  __ASM volatile ("rrx %0, %1" : __CMSIS_GCC_OUT_REG (result) : __CMSIS_GCC_USE_REG (value) );
  return(result);
}
__LDRBT function · c · L434-L440 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint8_t __LDRBT(volatile uint8_t *ptr)
{
  uint32_t result;

  __ASM volatile ("ldrbt %0, %1" : "=r" (result) : "Q" (*ptr) );
  return ((uint8_t) result);    /* Add explicit type cast here */
}
__LDRHT function · c · L449-L455 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint16_t __LDRHT(volatile uint16_t *ptr)
{
  uint32_t result;

  __ASM volatile ("ldrht %0, %1" : "=r" (result) : "Q" (*ptr) );
  return ((uint16_t) result);    /* Add explicit type cast here */
}
Powered by Repobility — scan your code at https://repobility.com
__LDRT function · c · L464-L470 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint32_t __LDRT(volatile uint32_t *ptr)
{
  uint32_t result;

  __ASM volatile ("ldrt %0, %1" : "=r" (result) : "Q" (*ptr) );
  return(result);
}
__STRBT function · c · L479-L482 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE void __STRBT(uint8_t value, volatile uint8_t *ptr)
{
  __ASM volatile ("strbt %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) );
}
__STRHT function · c · L491-L494 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE void __STRHT(uint16_t value, volatile uint16_t *ptr)
{
  __ASM volatile ("strht %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) );
}
__STRT function · c · L503-L506 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE void __STRT(uint32_t value, volatile uint32_t *ptr)
{
  __ASM volatile ("strt %1, %0" : "=Q" (*ptr) : "r" (value) );
}
__SSAT function · c · L519-L535 (17 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE int32_t __SSAT(int32_t val, uint32_t sat)
{
  if ((sat >= 1U) && (sat <= 32U))
  {
    const int32_t max = (int32_t)((1U << (sat - 1U)) - 1U);
    const int32_t min = -1 - max ;
    if (val > max)
    {
      return max;
    }
    else if (val < min)
    {
      return min;
    }
  }
  return val;
}
__USAT function · c · L544-L559 (16 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint32_t __USAT(int32_t val, uint32_t sat)
{
  if (sat <= 31U)
  {
    const uint32_t max = ((1U << sat) - 1U);
    if (val > (int32_t)max)
    {
      return max;
    }
    else if (val < 0)
    {
      return 0U;
    }
  }
  return (uint32_t)val;
}
__LDAB function · c · L574-L580 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint8_t __LDAB(volatile uint8_t *ptr)
{
  uint32_t result;

  __ASM volatile ("ldab %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
  return ((uint8_t) result);
}
__LDAH function · c · L589-L595 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint16_t __LDAH(volatile uint16_t *ptr)
{
  uint32_t result;

  __ASM volatile ("ldah %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
  return ((uint16_t) result);
}
Generated by Repobility's multi-pass static-analysis pipeline (https://repobility.com)
__LDA function · c · L604-L610 (7 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE uint32_t __LDA(volatile uint32_t *ptr)
{
  uint32_t result;

  __ASM volatile ("lda %0, %1" : "=r" (result) : "Q" (*ptr) : "memory" );
  return(result);
}
__STLB function · c · L619-L622 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE void __STLB(uint8_t value, volatile uint8_t *ptr)
{
  __ASM volatile ("stlb %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" );
}
__STLH function · c · L631-L634 (4 LOC)
Drivers/CMSIS/Include/cmsis_armclang_ltm.h
__STATIC_FORCEINLINE void __STLH(uint16_t value, volatile uint16_t *ptr)
{
  __ASM volatile ("stlh %1, %0" : "=Q" (*ptr) : "r" ((uint32_t)value) : "memory" );
}
‹ prevpage 4 / 40next ›