/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/cmsis/ |
D | core_cmSimd.h | 123 #define __PKHBT(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0x0000FFFFUL) | \ 124 ((((uint32_t)(ARG2)) << (ARG3)) & 0xFFFF0000UL) ) 126 #define __PKHTB(ARG1,ARG2,ARG3) ( ((((uint32_t)(ARG1)) ) & 0xFFFF0000UL) | \ 127 ((((uint32_t)(ARG2)) >> (ARG3)) & 0x0000FFFFUL) ) 135 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SADD8(uint32_t op1, uint32_t op2) 137 uint32_t result; 143 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __QADD8(uint32_t op1, uint32_t op2) 145 uint32_t result; 151 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __SHADD8(uint32_t op1, uint32_t op2) 153 uint32_t result; [all …]
|
D | core_cm3.h | 236 uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ 238 uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ 239 uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ 240 uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ 242 uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ 243 uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ 244 uint32_t C:1; /*!< bit: 29 Carry condition code flag */ 245 uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ 246 uint32_t N:1; /*!< bit: 31 Negative condition code flag */ 248 uint32_t w; /*!< Type used for word access */ [all …]
|
D | core_sc300.h | 236 uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ 238 uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ 239 uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ 240 uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ 242 uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ 243 uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ 244 uint32_t C:1; /*!< bit: 29 Carry condition code flag */ 245 uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ 246 uint32_t N:1; /*!< bit: 31 Negative condition code flag */ 248 uint32_t w; /*!< Type used for word access */ [all …]
|
D | core_cm4.h | 283 uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ 285 uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ 286 uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ 287 uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ 289 uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ 290 uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ 291 uint32_t C:1; /*!< bit: 29 Carry condition code flag */ 292 uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ 293 uint32_t N:1; /*!< bit: 31 Negative condition code flag */ 295 uint32_t w; /*!< Type used for word access */ [all …]
|
D | core_cm7.h | 298 uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ 300 uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ 301 uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ 302 uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ 304 uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ 305 uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ 306 uint32_t C:1; /*!< bit: 29 Carry condition code flag */ 307 uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ 308 uint32_t N:1; /*!< bit: 31 Negative condition code flag */ 310 uint32_t w; /*!< Type used for word access */ [all …]
|
D | core_cmFunc.h | 64 __STATIC_INLINE uint32_t __get_CONTROL(void) in __get_CONTROL() 66 register uint32_t __regControl __ASM("control"); in __get_CONTROL() 77 __STATIC_INLINE void __set_CONTROL(uint32_t control) in __set_CONTROL() 79 register uint32_t __regControl __ASM("control"); in __set_CONTROL() 90 __STATIC_INLINE uint32_t __get_IPSR(void) in __get_IPSR() 92 register uint32_t __regIPSR __ASM("ipsr"); in __get_IPSR() 103 __STATIC_INLINE uint32_t __get_APSR(void) in __get_APSR() 105 register uint32_t __regAPSR __ASM("apsr"); in __get_APSR() 116 __STATIC_INLINE uint32_t __get_xPSR(void) in __get_xPSR() 118 register uint32_t __regXPSR __ASM("xpsr"); in __get_xPSR() [all …]
|
D | core_cm0.h | 229 uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ 231 uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ 232 uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ 233 uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ 235 uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ 236 uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ 237 uint32_t C:1; /*!< bit: 29 Carry condition code flag */ 238 uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ 239 uint32_t N:1; /*!< bit: 31 Negative condition code flag */ 241 uint32_t w; /*!< Type used for word access */ [all …]
|
D | core_cm0plus.h | 240 uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ 242 uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ 243 uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ 244 uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ 246 uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ 247 uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ 248 uint32_t C:1; /*!< bit: 29 Carry condition code flag */ 249 uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ 250 uint32_t N:1; /*!< bit: 31 Negative condition code flag */ 252 uint32_t w; /*!< Type used for word access */ [all …]
|
D | core_sc000.h | 235 uint32_t _reserved0:27; /*!< bit: 0..26 Reserved */ 237 uint32_t _reserved0:16; /*!< bit: 0..15 Reserved */ 238 uint32_t GE:4; /*!< bit: 16..19 Greater than or Equal flags */ 239 uint32_t _reserved1:7; /*!< bit: 20..26 Reserved */ 241 uint32_t Q:1; /*!< bit: 27 Saturation condition flag */ 242 uint32_t V:1; /*!< bit: 28 Overflow condition code flag */ 243 uint32_t C:1; /*!< bit: 29 Carry condition code flag */ 244 uint32_t Z:1; /*!< bit: 30 Zero condition code flag */ 245 uint32_t N:1; /*!< bit: 31 Negative condition code flag */ 247 uint32_t w; /*!< Type used for word access */ [all …]
|
D | core_cmInstr.h | 129 __attribute__((section(".rev16_text"))) __STATIC_INLINE __ASM uint32_t __REV16(uint32_t value) in __REV16() 213 #define __LDREXW(ptr) ((uint32_t ) __ldrex(ptr)) 300 __attribute__((section(".rrx_text"))) __STATIC_INLINE __ASM uint32_t __RRX(uint32_t value) in __RRX() 335 #define __LDRT(ptr) ((uint32_t ) __ldrt(ptr)) 467 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV(uint32_t value) in __REV() 472 uint32_t result; in __REV() 487 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __REV16(uint32_t value) in __REV16() 489 uint32_t result; in __REV16() 508 uint32_t result; in __REVSH() 524 __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __ROR(uint32_t op1, uint32_t op2) in __ROR() [all …]
|
/device/google/contexthub/firmware/os/inc/ |
D | bl.h | 49 uint32_t (*blGetVersion)(void); 51 void (*blGetSnum)(uint32_t *snum, uint32_t length); 54 … (*blProgramShared)(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, uint32_t k… 55 bool (*blEraseShared)(uint32_t key1, uint32_t key2); 56 … (*blProgramEe)(uint8_t *dst, const uint8_t *src, uint32_t length, uint32_t key1, uint32_t k… 59 const uint32_t* (*blGetPubKeysInfo)(uint32_t *numKeys); 62 …const uint32_t* (*blRsaPubOpIterative)(struct RsaState* state, const uint32_t *a, const uint32_t *… 64 …void (*blSha2processBytes)(struct Sha2state *state, const void *bytes, uint32_t numByte… 65 const uint32_t* (*blSha2finish)(struct Sha2state *state); 66 void (*blAesInitForEncr)(struct AesContext *ctx, const uint32_t *k); [all …]
|
D | sensors.h | 57 uint32_t idata; 66 uint32_t deltaTime; //delta since last sample, for 0th sample this is firstSample 85 uint32_t deltaTime; //delta since last sample, for 0th sample this is firstSample 111 uint32_t deltaTime; //delta since last sample, for 0th sample this is firstSample 132 uint32_t sensorHandle; 133 uint32_t newRate; 144 uint32_t rate; 155 uint32_t tid; 160 uint32_t origEvtType; 171 bool (*sensorSetRate)(uint32_t rate, uint64_t latency, void *); [all …]
|
D | seos.h | 51 bool (*init)(uint32_t yourTid); //simple init only - no ints on at this time 54 void (*handle)(uint32_t evtType, const void* evtData); 125 uint32_t evtType; 131 uint32_t version; 162 bool osEventSubscribe(uint32_t tid, uint32_t evtType); /* async */ 163 bool osEventUnsubscribe(uint32_t tid, uint32_t evtType); /* async */ 164 bool osEventsSubscribe(uint32_t numEvts, ...); /* async */ 165 bool osEventsUnsubscribe(uint32_t numEvts, ...); /* async */ 167 bool osEnqueuePrivateEvt(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32_t toTid); 168 bool osEnqueuePrivateEvtAsApp(uint32_t evtType, void *evtData, uint32_t toTid); [all …]
|
D | syscallDo.h | 42 static inline bool eOsEventSubscribe(uint32_t tid, uint32_t evtType) in eOsEventSubscribe() 47 static inline bool eOsEventUnsubscribe(uint32_t tid, uint32_t evtType) in eOsEventUnsubscribe() 52 static inline bool eOsEnqueueEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeThisEven… in eOsEnqueueEvt() 57 static inline bool eOsEnqueueEvtOrFree(uint32_t evtType, void *evtData, EventFreeF evtFreeF, uint32… in eOsEnqueueEvtOrFree() 65 …atic inline bool eOsEnqueuePrivateEvt(uint32_t evtType, void *evtData, uint32_t tidOfWhoWillFreeTh… in eOsEnqueuePrivateEvt() 75 static inline bool eOsFreeRetainedEvent(uint32_t evtType, void *evtData, TaggedPtr *evtFreeingInfoP) in eOsFreeRetainedEvent() 99 static inline bool eOsSensorSignalInternalEvt(uint32_t handle, uint32_t intEvtNum, uint32_t value1,… in eOsSensorSignalInternalEvt() 101 uint32_t value2_lo = value2; in eOsSensorSignalInternalEvt() 102 uint32_t value2_hi = value2 >> 32; in eOsSensorSignalInternalEvt() 107 static inline uint32_t eOsSensorRegister(const struct SensorInfo *si, uint32_t tid, void *cookie, b… in eOsSensorRegister() [all …]
|
D | atomic.h | 28 uint32_t atomicXchgByte(volatile uint8_t *byte, uint32_t newVal); 29 uint32_t atomicXchg32bits(volatile uint32_t *word, uint32_t newVal); 30 bool atomicCmpXchgByte(volatile uint8_t *byte, uint32_t prevVal, uint32_t newVal); 31 bool atomicCmpXchg32bits(volatile uint32_t *word, uint32_t prevVal, uint32_t newVal); 34 uint32_t atomicAddByte(volatile uint8_t *byte, uint32_t addend); 35 uint32_t atomicAdd32bits(volatile uint32_t *word, uint32_t addend); 42 static inline uint32_t atomicReadByte(volatile uint8_t *byte) in atomicReadByte() 48 static inline uint32_t atomicRead32bits(volatile uint32_t *word) in atomicRead32bits() 54 static inline void atomicWriteByte(volatile uint8_t *byte, uint32_t val) in atomicWriteByte() 60 static inline void atomicWrite32bits(volatile uint32_t *word, uint32_t val) in atomicWrite32bits()
|
/device/google/contexthub/lib/nanohub/ |
D | aes.c | 64 static const uint32_t FwdTab0[] = { //other 3 tables are this same table, RORed 8, 16, and 24 bits … 99 static const uint32_t RevTab0[] = { //other 3 tables are this same table, RORed 8, 16, and 24 bits … 138 …#define ror(v, b) ({uint32_t ret; if (b) asm("ror %0, #" STRINGIFY(b) :"=r"(ret):"0"(v)); else ret… 142 inline static uint32_t ror(uint32_t val, uint32_t by) in ror() 155 void aesInitForEncr(struct AesContext *ctx, const uint32_t *k) in aesInitForEncr() 157 uint32_t i, *ks = ctx->K, roundConstant = 0x01000000; in aesInitForEncr() 160 memcpy(ctx->K, k, sizeof(uint32_t[AES_KEY_WORDS])); in aesInitForEncr() 165 ^ (((uint32_t)FwdSbox[(ks[ 7] >> 16) & 0xff]) << 24) in aesInitForEncr() 166 ^ (((uint32_t)FwdSbox[(ks[ 7] >> 8) & 0xff]) << 16) in aesInitForEncr() 167 ^ (((uint32_t)FwdSbox[(ks[ 7] >> 0) & 0xff]) << 8) in aesInitForEncr() [all …]
|
/device/google/contexthub/firmware/os/platform/stm32/ |
D | bl.c | 16 volatile uint32_t U_ID[3]; 20 volatile uint32_t CR1; 21 volatile uint32_t CR2; 22 volatile uint32_t SR; 23 volatile uint32_t DR; 24 volatile uint32_t CRCPR; 25 volatile uint32_t RXCRCR; 26 volatile uint32_t TXCRCR; 27 volatile uint32_t I2SCFGR; 28 volatile uint32_t I2SPR; [all …]
|
D | gpio.c | 23 volatile uint32_t MODER; 24 volatile uint32_t OTYPER; 25 volatile uint32_t OSPEEDR; 26 volatile uint32_t PUPDR; 27 volatile uint32_t IDR; 28 volatile uint32_t ODR; 29 volatile uint32_t BSRR; 30 volatile uint32_t LCKR; 31 volatile uint32_t AFR[2]; 34 static const uint32_t mGpioPeriphs[] = { [all …]
|
D | eeData.c | 24 extern uint32_t __eedata_start[], __eedata_end[]; 28 static void* eeFind(uint32_t nameToFind, uint32_t *offset, bool findFirst, uint32_t *szP) in eeFind() 30 uint32_t *p = __eedata_start + (offset ? *offset : 0); in eeFind() 35 uint32_t info = *p++; in eeFind() 36 uint32_t name = info & EE_DATA_NAME_MAX; in eeFind() 37 uint32_t sz = info / (EE_DATA_NAME_MAX + 1); in eeFind() 63 static bool eeIsValidName(uint32_t name) in eeIsValidName() 68 static void *eeDataGetEx(uint32_t name, uint32_t *offsetP, bool first, void *buf, uint32_t *szP) in eeDataGetEx() 70 uint32_t sz = 0; in eeDataGetEx() 90 return (uint32_t*)data - 1; in eeDataGetEx() [all …]
|
D | pwr.c | 25 volatile uint32_t CR; 26 volatile uint32_t PLLCFGR; 27 volatile uint32_t CFGR; 28 volatile uint32_t CIR; 29 volatile uint32_t AHB1RSTR; 30 volatile uint32_t AHB2RSTR; 31 volatile uint32_t AHB3RSTR; 33 volatile uint32_t APB1RSTR; 34 volatile uint32_t APB2RSTR; 36 volatile uint32_t AHB1ENR; [all …]
|
/device/google/contexthub/lib/include/nanohub/ |
D | nanohub.h | 38 #define NANOAPP_AOSP_MAGIC (((uint32_t)'N' << 0) | ((uint32_t)'A' << 8) | ((uint32_t)'N' << 16) |… 39 #define NANOAPP_FW_MAGIC (((uint32_t)'N' << 0) | ((uint32_t)'B' << 8) | ((uint32_t)'I' << 16) | (… 40 #define GOOGLE_LAYOUT_MAGIC (((uint32_t)'G' << 0) | ((uint32_t)'o' << 8) | ((uint32_t)'o' << 16) … 53 uint32_t header_version; // 0x1 for this version 54 uint32_t magic; // "NANO" 56 uint32_t app_version; // Version of the app 57 uint32_t flags; // Signed, encrypted 68 uint32_t eventId; 74 uint32_t eventId; 77 uint32_t appEventId; [all …]
|
D | rsa.h | 24 #define RSA_BYTES sizeof(uint32_t[RSA_LIMBS]) 25 #define RSA_WORDS (RSA_BYTES / sizeof(uint32_t)) //limbs may change in size, but words are always… 28 uint32_t tmpA[RSA_LIMBS * 2]; 29 uint32_t tmpB[RSA_LIMBS + 1]; 32 uint32_t tmpC[RSA_LIMBS + 1]; 34 uint32_t tmpC[RSA_LIMBS * 2]; 39 const uint32_t* rsaPubOpIterative(struct RsaState* state, const uint32_t *a, const uint32_t *c, uin… 43 const uint32_t* rsaPrivOp(struct RsaState* state, const uint32_t *a, const uint32_t *b, const uint3… 44 const uint32_t* rsaPubOp(struct RsaState* state, const uint32_t *a, const uint32_t *c);
|
/device/google/contexthub/firmware/os/cpu/cortexm4/inc/cpu/ |
D | syscallDo.h | 36 __swi uintptr_t cpuSyscallDo(uint32_t syscallNo, uint32_t vl); 42 register uint32_t _r0 asm("r0") = syscallNo; \ 43 register uint32_t _r1 asm("r1") = (uint32_t)vaListPtr; \ 57 register uint32_t _r0 asm("r0") = syscallNo; \ 70 register uint32_t _r0 asm("r0") = syscallNo; \ 71 register uint32_t _r1 asm("r1") = (uint32_t)p1;\ 85 register uint32_t _r0 asm("r0") = syscallNo; \ 86 register uint32_t _r1 asm("r1") = (uint32_t)p1;\ 87 register uint32_t _r2 asm("r2") = (uint32_t)p2;\ 99 register uint32_t _r0 asm("r0") = syscallNo; \ [all …]
|
/device/google/contexthub/firmware/os/core/ |
D | osApi.c | 38 (void)va_arg(args, uint32_t); // tid in osExpApiEvtqSubscribe() 39 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqSubscribe() 46 (void)va_arg(args, uint32_t); // tid in osExpApiEvtqUnsubscribe() 47 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqUnsubscribe() 54 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueue() 56 uint32_t tid = va_arg(args, uint32_t); in osExpApiEvtqEnqueue() 63 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqEnqueuePrivate() 65 (void)va_arg(args, uint32_t); // tid in osExpApiEvtqEnqueuePrivate() 66 uint32_t toTid = va_arg(args, uint32_t); in osExpApiEvtqEnqueuePrivate() 80 uint32_t evtType = va_arg(args, uint32_t); in osExpApiEvtqFreeRetained() [all …]
|
/device/google/cuttlefish/host/libs/screen_connector/ |
D | screen_connector_common.h | 38 std::function<void(std::uint32_t /*display_number*/, // 39 std::uint32_t /*frame_width*/, // 40 std::uint32_t /*frame_height*/, // 41 std::uint32_t /*frame_fourcc_format*/, // 42 std::uint32_t /*frame_stride_bytes*/, // 47 static constexpr std::uint32_t BytesPerPixel() { return 4; } in BytesPerPixel() 48 static std::uint32_t ScreenCount() { in ScreenCount() 52 return static_cast<std::uint32_t>(display_configs.size()); in ScreenCount() 54 static std::uint32_t ScreenHeight(std::uint32_t display_number) { in ScreenHeight() 61 static std::uint32_t ScreenWidth(std::uint32_t display_number) { in ScreenWidth() [all …]
|