| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
| H A D | s_remStepMBy32.c | 55 unsigned int index, lastIndex; in softfloat_remStepMBy32() local 61 index = indexWordLo( size_words ); in softfloat_remStepMBy32() 63 dwordProd = (uint64_t) bPtr[index] * q; in softfloat_remStepMBy32() 64 wordRem = remPtr[index]; in softfloat_remStepMBy32() 67 zPtr[index] = wordShiftedRem - wordProd; in softfloat_remStepMBy32() 68 if ( index != lastIndex ) { in softfloat_remStepMBy32() 72 index += wordIncr; in softfloat_remStepMBy32() 73 dwordProd = (uint64_t) bPtr[index] * q + (dwordProd>>32); in softfloat_remStepMBy32() 74 wordRem = remPtr[index]; in softfloat_remStepMBy32() 77 zPtr[index] = wordShiftedRem - wordProd - borrow; in softfloat_remStepMBy32() [all …]
|
| H A D | s_shortShiftRightM.c | 53 unsigned int index, lastIndex; in softfloat_shortShiftRightM() local 57 index = indexWordLo( size_words ); in softfloat_shortShiftRightM() 59 partWordZ = aPtr[index]>>count; in softfloat_shortShiftRightM() 60 while ( index != lastIndex ) { in softfloat_shortShiftRightM() 61 wordA = aPtr[index + wordIncr]; in softfloat_shortShiftRightM() 62 zPtr[index] = wordA<<(negCount & 31) | partWordZ; in softfloat_shortShiftRightM() 63 index += wordIncr; in softfloat_shortShiftRightM() 66 zPtr[index] = partWordZ; in softfloat_shortShiftRightM()
|
| H A D | s_shortShiftLeftM.c | 53 unsigned int index, lastIndex; in softfloat_shortShiftLeftM() local 57 index = indexWordHi( size_words ); in softfloat_shortShiftLeftM() 59 partWordZ = aPtr[index]<<count; in softfloat_shortShiftLeftM() 60 while ( index != lastIndex ) { in softfloat_shortShiftLeftM() 61 wordA = aPtr[index - wordIncr]; in softfloat_shortShiftLeftM() 62 zPtr[index] = partWordZ | wordA>>(negCount & 31); in softfloat_shortShiftLeftM() 63 index -= wordIncr; in softfloat_shortShiftLeftM() 66 zPtr[index] = partWordZ; in softfloat_shortShiftLeftM()
|
| H A D | s_shortShiftRightJamM.c | 53 unsigned int index, lastIndex; in softfloat_shortShiftRightJamM() local 57 index = indexWordLo( size_words ); in softfloat_shortShiftRightJamM() 59 wordA = aPtr[index]; in softfloat_shortShiftRightJamM() 62 while ( index != lastIndex ) { in softfloat_shortShiftRightJamM() 63 wordA = aPtr[index + wordIncr]; in softfloat_shortShiftRightJamM() 64 zPtr[index] = wordA<<(negCount & 31) | partWordZ; in softfloat_shortShiftRightJamM() 65 index += wordIncr; in softfloat_shortShiftRightJamM() 68 zPtr[index] = partWordZ; in softfloat_shortShiftRightJamM()
|
| H A D | s_sub256M.c | 48 unsigned int index; in softfloat_sub256M() local 52 index = indexWordLo( 4 ); in softfloat_sub256M() 55 wordA = aPtr[index]; in softfloat_sub256M() 56 wordB = bPtr[index]; in softfloat_sub256M() 57 zPtr[index] = wordA - wordB - borrow; in softfloat_sub256M() 58 if ( index == indexWordHi( 4 ) ) break; in softfloat_sub256M() 60 index += wordIncr; in softfloat_sub256M()
|
| H A D | s_add256M.c | 48 unsigned int index; in softfloat_add256M() local 52 index = indexWordLo( 4 ); in softfloat_add256M() 55 wordA = aPtr[index]; in softfloat_add256M() 56 wordZ = wordA + bPtr[index] + carry; in softfloat_add256M() 57 zPtr[index] = wordZ; in softfloat_add256M() 58 if ( index == indexWordHi( 4 ) ) break; in softfloat_add256M() 60 index += wordIncr; in softfloat_add256M()
|
| H A D | s_addM.c | 52 unsigned int index, lastIndex; in softfloat_addM() local 56 index = indexWordLo( size_words ); in softfloat_addM() 60 wordA = aPtr[index]; in softfloat_addM() 61 wordZ = wordA + bPtr[index] + carry; in softfloat_addM() 62 zPtr[index] = wordZ; in softfloat_addM() 63 if ( index == lastIndex ) break; in softfloat_addM() 65 index += wordIncr; in softfloat_addM()
|
| H A D | s_subM.c | 52 unsigned int index, lastIndex; in softfloat_subM() local 56 index = indexWordLo( size_words ); in softfloat_subM() 60 wordA = aPtr[index]; in softfloat_subM() 61 wordB = bPtr[index]; in softfloat_subM() 62 zPtr[index] = wordA - wordB - borrow; in softfloat_subM() 63 if ( index == lastIndex ) break; in softfloat_subM() 65 index += wordIncr; in softfloat_subM()
|
| H A D | s_addComplCarryM.c | 53 unsigned int index, lastIndex; in softfloat_addComplCarryM() local 56 index = indexWordLo( size_words ); in softfloat_addComplCarryM() 59 wordA = aPtr[index]; in softfloat_addComplCarryM() 60 wordZ = wordA + ~bPtr[index] + carry; in softfloat_addComplCarryM() 61 zPtr[index] = wordZ; in softfloat_addComplCarryM() 63 if ( index == lastIndex ) break; in softfloat_addComplCarryM() 64 index += wordIncr; in softfloat_addComplCarryM()
|
| H A D | s_addCarryM.c | 53 unsigned int index, lastIndex; in softfloat_addCarryM() local 56 index = indexWordLo( size_words ); in softfloat_addCarryM() 59 wordA = aPtr[index]; in softfloat_addCarryM() 60 wordZ = wordA + bPtr[index] + carry; in softfloat_addCarryM() 61 zPtr[index] = wordZ; in softfloat_addCarryM() 63 if ( index == lastIndex ) break; in softfloat_addCarryM() 64 index += wordIncr; in softfloat_addCarryM()
|
| H A D | f128M_roundToInt.c | 78 unsigned int index, lastIndex; in f128M_roundToInt() local 148 index = indexWordLo( 4 ); in f128M_roundToInt() 152 wordA = aWPtr[index]; in f128M_roundToInt() 155 zWPtr[index] = 0; in f128M_roundToInt() 156 index += wordIncr; in f128M_roundToInt() 170 zWPtr[index] = wordZ; in f128M_roundToInt() 171 index += wordIncr; in f128M_roundToInt() 172 wordZ = aWPtr[index] + carry; in f128M_roundToInt() 174 zWPtr[index] = wordZ & ~1; in f128M_roundToInt() 194 zWPtr[index] = wordZ; in f128M_roundToInt() [all …]
|
| H A D | s_sub1XM.c | 46 unsigned int index, lastIndex; in softfloat_sub1XM() local 49 index = indexWordLo( size_words ); in softfloat_sub1XM() 52 wordA = zPtr[index]; in softfloat_sub1XM() 53 zPtr[index] = wordA - 1; in softfloat_sub1XM() 54 if ( wordA || (index == lastIndex) ) break; in softfloat_sub1XM() 55 index += wordIncr; in softfloat_sub1XM()
|
| H A D | s_compare128M.c | 46 unsigned int index, lastIndex; in softfloat_compare128M() local 49 index = indexWordHi( 4 ); in softfloat_compare128M() 52 wordA = aPtr[index]; in softfloat_compare128M() 53 wordB = bPtr[index]; in softfloat_compare128M() 55 if ( index == lastIndex ) break; in softfloat_compare128M() 56 index -= wordIncr; in softfloat_compare128M()
|
| H A D | s_compare96M.c | 46 unsigned int index, lastIndex; in softfloat_compare96M() local 49 index = indexWordHi( 3 ); in softfloat_compare96M() 52 wordA = aPtr[index]; in softfloat_compare96M() 53 wordB = bPtr[index]; in softfloat_compare96M() 55 if ( index == lastIndex ) break; in softfloat_compare96M() 56 index -= wordIncr; in softfloat_compare96M()
|
| H A D | s_negXM.c | 46 unsigned int index, lastIndex; in softfloat_negXM() local 50 index = indexWordLo( size_words ); in softfloat_negXM() 54 word = ~zPtr[index] + carry; in softfloat_negXM() 55 zPtr[index] = word; in softfloat_negXM() 56 if ( index == lastIndex ) break; in softfloat_negXM() 57 index += wordIncr; in softfloat_negXM()
|
| H A D | s_shiftRightJam256M.c | 54 unsigned int index, lastIndex; in softfloat_shortShiftRightJamM() local 58 index = indexWordLo( size_words ); in softfloat_shortShiftRightJamM() 60 wordA = aPtr[index]; in softfloat_shortShiftRightJamM() 63 while ( index != lastIndex ) { in softfloat_shortShiftRightJamM() 64 wordA = aPtr[index + wordIncr]; in softfloat_shortShiftRightJamM() 65 zPtr[index] = wordA<<(negCount & 63) | partWordZ; in softfloat_shortShiftRightJamM() 66 index += wordIncr; in softfloat_shortShiftRightJamM() 69 zPtr[index] = partWordZ; in softfloat_shortShiftRightJamM()
|
| H A D | s_approxRecip32_1.c | 45 int index; in softfloat_approxRecip32_1() local 60 index = a>>27 & 0xF; in softfloat_approxRecip32_1() 62 r0 = k0s[index] - ((k1s[index] * (uint_fast32_t) eps)>>20); in softfloat_approxRecip32_1()
|
| H A D | s_approxRecipSqrt32_1.c | 45 int index; in softfloat_approxRecipSqrt32_1() local 61 index = (a>>27 & 0xE) + oddExpA; in softfloat_approxRecipSqrt32_1() 63 r0 = k0s[index] - ((k1s[index] * (uint_fast32_t) eps)>>20); in softfloat_approxRecipSqrt32_1()
|
| /optee_os/lib/libutils/ext/include/ |
| H A D | confine_array_index.h | 70 static inline size_t confine_array_index(size_t index, size_t size) { in confine_array_index() argument 81 : "r"(index), "r"(size) in confine_array_index() 87 static inline size_t confine_array_index(size_t index, size_t size) in confine_array_index() argument 89 size_t ret_val = index; in confine_array_index() 128 static inline size_t confine_array_index(size_t index, size_t size) { in confine_array_index() argument 140 : "r"(index), "r"(size) in confine_array_index() 147 static inline size_t confine_array_index(size_t index, size_t size) { in confine_array_index() argument 152 if (index < size) in confine_array_index() 153 return index; in confine_array_index()
|
| /optee_os/core/arch/arm/plat-rcar/ |
| H A D | romapi.c | 19 static int index __nex_data = -1; in get_api_table_index() 21 if (index != -1) in get_api_table_index() 22 return index; in get_api_table_index() 29 index = 0; in get_api_table_index() 32 index = 1; in get_api_table_index() 35 index = 3; in get_api_table_index() 42 index = 2; in get_api_table_index() 45 index = 3; in get_api_table_index() 50 index = 3; in get_api_table_index() 54 return index; in get_api_table_index()
|
| /optee_os/core/drivers/imx/mu/ |
| H A D | imx_mu_8q.c | 62 TEE_Result imx_mu_plat_send(vaddr_t base, unsigned int index, uint32_t msg) in imx_mu_plat_send() argument 64 assert(index < MU_MAX_CHANNEL); in imx_mu_plat_send() 67 if (mu_wait_for(base + MU_ASR_OFFSET, MU_SR_TE(index))) in imx_mu_plat_send() 71 io_write32(base + MU_ATR(index), msg); in imx_mu_plat_send() 76 TEE_Result imx_mu_plat_receive(vaddr_t base, unsigned int index, uint32_t *msg) in imx_mu_plat_receive() argument 78 assert(index < MU_MAX_CHANNEL); in imx_mu_plat_receive() 81 if (mu_wait_for(base + MU_ASR_OFFSET, MU_SR_RF(index))) in imx_mu_plat_receive() 85 *msg = io_read32(base + MU_ARR(index)); in imx_mu_plat_receive()
|
| H A D | imx_mu_8ulp_9x.c | 53 TEE_Result imx_mu_plat_send(vaddr_t base, unsigned int index, uint32_t msg) in imx_mu_plat_send() argument 55 assert(index < imx_mu_plat_get_tx_channel(base)); in imx_mu_plat_send() 58 if (mu_wait_for(base + MU_TSR, MU_TSR_TE(index))) in imx_mu_plat_send() 61 io_write32(base + MU_TR(index), msg); in imx_mu_plat_send() 66 TEE_Result imx_mu_plat_receive(vaddr_t base, unsigned int index, uint32_t *msg) in imx_mu_plat_receive() argument 68 assert(index < imx_mu_plat_get_rx_channel(base)); in imx_mu_plat_receive() 71 if (mu_wait_for(base + MU_RSR, MU_RSR_RF(index))) in imx_mu_plat_receive() 74 *msg = io_read32(base + MU_RR(index)); in imx_mu_plat_receive()
|
| /optee_os/core/drivers/nvmem/ |
| H A D | nvmem.c | 22 int index = 0; in nvmem_get_cell_by_name() local 24 index = fdt_stringlist_search(fdt, nodeoffset, "nvmem-cell-names", in nvmem_get_cell_by_name() 26 if (index < 0) in nvmem_get_cell_by_name() 29 return nvmem_get_cell_by_index(fdt, nodeoffset, index, cell); in nvmem_get_cell_by_name() 34 unsigned int index, in nvmem_get_cell_by_index() argument 41 nodeoffset, index, in nvmem_get_cell_by_index()
|
| /optee_os/core/drivers/rstctrl/ |
| H A D | rstctrl.c | 43 int index = 0; in rstctrl_dt_get_by_name() local 45 index = fdt_stringlist_search(fdt, nodeoffset, "reset-names", name); in rstctrl_dt_get_by_name() 46 if (index < 0) in rstctrl_dt_get_by_name() 49 return rstctrl_dt_get_by_index(fdt, nodeoffset, index, rstctrl); in rstctrl_dt_get_by_name()
|
| /optee_os/core/drivers/ |
| H A D | ls_sfp.c | 278 TEE_Result ls_sfp_get_ouid(uint32_t index, uint32_t *ouid) in ls_sfp_get_ouid() argument 288 if (index >= ARRAY_SIZE(sfp_regs->ouidr)) { in ls_sfp_get_ouid() 290 index, ARRAY_SIZE(sfp_regs->ouidr)); in ls_sfp_get_ouid() 294 *ouid = io_read32((vaddr_t)&sfp_regs->ouidr[index]); in ls_sfp_get_ouid() 315 TEE_Result ls_sfp_get_srkh(uint32_t index, uint32_t *srkh) in ls_sfp_get_srkh() argument 325 if (index >= ARRAY_SIZE(sfp_regs->srkhr)) { in ls_sfp_get_srkh() 327 index, ARRAY_SIZE(sfp_regs->srkhr)); in ls_sfp_get_srkh() 331 *srkh = io_read32((vaddr_t)&sfp_regs->srkhr[index]); in ls_sfp_get_srkh() 380 TEE_Result ls_sfp_set_ouid(uint32_t index, uint32_t ouid) in ls_sfp_set_ouid() argument 387 if (index >= ARRAY_SIZE(sfp_regs->ouidr)) { in ls_sfp_set_ouid() [all …]
|