Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 25 of 45) sorted by relevance

12

/device/google/contexthub/firmware/os/platform/stm32/
Dexti.c127 for (i = 0; i < ARRAY_SIZE(mInterrupts); ++i, ++exti) { in extiCalcMaxLatency()
140 return &mInterrupts[ARRAY_SIZE(mInterrupts) - 2]; in extiForIrq()
142 return &mInterrupts[ARRAY_SIZE(mInterrupts) - 1]; in extiForIrq()
218 for (i = 0; i < ARRAY_SIZE(mInterrupts); ++i, ++exti) in extiUnchainAll()
Di2c.c215 static struct StmI2cDev mStmI2cDevs[ARRAY_SIZE(mStmI2cCfgs)];
797 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterReset()
836 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterRequest()
883 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterRelease()
916 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cMasterTxRx()
982 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cSlaveRequest()
1010 if (busId >= ARRAY_SIZE(mStmI2cDevs)) in i2cSlaveRelease()
Dspi.c588 static struct StmSpiDev mStmSpiDevs[ARRAY_SIZE(mStmSpiCfgs)];
609 if (busId >= ARRAY_SIZE(mStmSpiDevs)) in spiRequest()
629 if (busId >= ARRAY_SIZE(mStmSpiDevs)) in spiRxIrq()
639 if (busId >= ARRAY_SIZE(mStmSpiDevs)) in spiTxIrq()
/device/google/contexthub/firmware/os/algos/util/
Darray.h4 #define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0])) macro
/device/google/contexthub/firmware/variant/argonkey/src/os/
Dled.c28 .num = ARRAY_SIZE(local_leds_array),
Di2c.c58 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg()
Dspi.c57 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg()
/device/google/contexthub/firmware/variant/neonkey/src/os/
Dled.c25 .num = ARRAY_SIZE(leds),
Dspi.c41 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg()
Di2c.c47 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg()
/device/google/contexthub/firmware/variant/lunchbox/src/os/
Di2c.c36 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg()
Dspi.c57 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg()
/device/google/contexthub/firmware/variant/nucleo/src/os/
Di2c.c36 if (busId >= ARRAY_SIZE(mStmI2cBoardCfgs)) in boardStmI2cCfg()
Dspi.c57 if (busId >= ARRAY_SIZE(mStmSpiBoardCfgs)) in boardStmSpiCfg()
/device/google/contexthub/firmware/os/inc/
Dutil.h25 #define ARRAY_SIZE(a) (sizeof((a)) / sizeof((a)[0])) macro
/device/google/bonito/gpt-utils/
Dgpt-utils.h94 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
/device/google/crosshatch/gpt-utils/
Dgpt-utils.h93 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
/device/google/coral/gpt-utils/
Dgpt-utils.h94 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
/device/linaro/hikey/hifi/xaf/hifi-dpf/core/util/gdbstub/
Dgdbstub.c528 #define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) macro
551 for (i = 0; i < ARRAY_SIZE(cause); ++i) { in handle_exception()
731 for (i = 0; i < ARRAY_SIZE(cause); ++i) { in handle_exception()
/device/linaro/hikey/hifi/xaf/host-apf/playback/tinyalsa/
Dpcm.c55 #ifndef ARRAY_SIZE
56 #define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) macro
742 if (element >= ARRAY_SIZE(m->bits)) in pcm_mask_test()
780 "Access", access_lookup, ARRAY_SIZE(access_lookup)); in pcm_params_to_string()
784 "Format", format_lookup, ARRAY_SIZE(format_lookup)); in pcm_params_to_string()
788 "Subformat", subformat_lookup, ARRAY_SIZE(subformat_lookup)); in pcm_params_to_string()
/device/google/contexthub/firmware/os/drivers/st_acc44/
Dst_acc44.c345 for (i = 0; i < (ARRAY_SIZE(st_acc44_Rates) - 1); i++) { in st_acc44_computeOdr()
349 if (i == (ARRAY_SIZE(st_acc44_Rates) -1 )) { in st_acc44_computeOdr()
559 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
/device/google/coral/vibrator/
DVibrator.cpp32 #ifndef ARRAY_SIZE
33 #define ARRAY_SIZE(x) (sizeof((x)) / sizeof((x)[0])) macro
/device/google/contexthub/firmware/os/drivers/synaptics_s3708/
Dsynaptics_s3708.c216 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
310 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in setGesturePower()
/device/google/contexthub/firmware/os/drivers/st_mag40/
Dst_mag40.c310 for (i = 0; i < ARRAY_SIZE(mTask.transfers); i++) { in allocXfer()
436 for (i = 0; i < (ARRAY_SIZE(st_mag40_Rates) - 1); i++) { in st_mag40_computeOdr()
440 if (i == (ARRAY_SIZE(st_mag40_Rates) -1 )) { in st_mag40_computeOdr()
/device/google/contexthub/firmware/os/cpu/cortexm4/
Dcpu.c138 trigName = trigNames[tid_trig.trig < ARRAY_SIZE(trigNames) ? tid_trig.trig : 0]; in cpuDbxDump()

12