Home
last modified time | relevance | path

Searched refs:index (Results 1 – 25 of 58) sorted by relevance

123

/optee_os-3.20.0/lib/libutils/isoc/arch/arm/softfloat/source/
A Ds_remStepMBy32.c55 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 …]
A Ds_shortShiftLeftM.c53 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()
A Ds_shortShiftRightM.c53 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()
A Ds_shortShiftRightJamM.c53 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()
A Ds_add256M.c48 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()
A Ds_sub256M.c48 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()
A Ds_addM.c52 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()
A Ds_subM.c52 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()
A Ds_addCarryM.c53 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()
A Ds_addComplCarryM.c53 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()
A Ds_sub1XM.c46 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()
A Ds_compare128M.c46 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()
A Ds_compare96M.c46 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()
A Ds_negXM.c46 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()
A Df128M_roundToInt.c78 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()
194 zWPtr[index] = wordZ; in f128M_roundToInt()
196 while ( index != lastIndex ) { in f128M_roundToInt()
197 index += wordIncr; in f128M_roundToInt()
[all …]
A Ds_shiftRightJam256M.c54 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()
A Ds_approxRecip32_1.c45 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()
A Ds_approxRecipSqrt32_1.c45 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-3.20.0/lib/libutils/ext/include/
A Dconfine_array_index.h70 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-3.20.0/core/drivers/imx/mu/
A Dimx_mu_8ulp.c50 TEE_Result imx_mu_plat_send(vaddr_t base, unsigned int index, uint32_t msg) in imx_mu_plat_send() argument
52 assert(index < MU_MAX_TX_CHANNEL); in imx_mu_plat_send()
55 if (mu_wait_for(base + MU_TSR, MU_TSR_TE(index))) in imx_mu_plat_send()
58 io_write32(base + MU_TR(index), msg); in imx_mu_plat_send()
63 TEE_Result imx_mu_plat_receive(vaddr_t base, unsigned int index, uint32_t *msg) in imx_mu_plat_receive() argument
65 assert(index < MU_MAX_RX_CHANNEL); in imx_mu_plat_receive()
68 if (mu_wait_for(base + MU_RSR, MU_RSR_RF(index))) in imx_mu_plat_receive()
71 *msg = io_read32(base + MU_RR(index)); in imx_mu_plat_receive()
A Dimx_mu_8q.c62 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()
A Dimx_mu_platform.h26 TEE_Result imx_mu_plat_send(vaddr_t base, unsigned int index, uint32_t msg);
35 TEE_Result imx_mu_plat_receive(vaddr_t base, unsigned int index, uint32_t *msg);
/optee_os-3.20.0/core/arch/arm/plat-rcar/
A Dromapi.c19 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-3.20.0/core/drivers/rstctrl/
A Drstctrl.c45 int index = 0; in rstctrl_dt_get_by_name() local
47 index = fdt_stringlist_search(fdt, nodeoffset, "reset-names", name); in rstctrl_dt_get_by_name()
48 if (index < 0) in rstctrl_dt_get_by_name()
51 return rstctrl_dt_get_by_index(fdt, nodeoffset, index, rstctrl); in rstctrl_dt_get_by_name()
/optee_os-3.20.0/core/drivers/
A Dls_sfp.c272 TEE_Result ls_sfp_get_ouid(uint32_t index, uint32_t *ouid) in ls_sfp_get_ouid() argument
282 if (index >= ARRAY_SIZE(sfp_regs->ouidr)) { in ls_sfp_get_ouid()
284 index, ARRAY_SIZE(sfp_regs->ouidr)); in ls_sfp_get_ouid()
288 *ouid = io_read32((vaddr_t)&sfp_regs->ouidr[index]); in ls_sfp_get_ouid()
318 if (index >= ARRAY_SIZE(sfp_regs->srkhr)) { in ls_sfp_get_srkh()
320 index, ARRAY_SIZE(sfp_regs->srkhr)); in ls_sfp_get_srkh()
324 *srkh = io_read32((vaddr_t)&sfp_regs->srkhr[index]); in ls_sfp_get_srkh()
373 TEE_Result ls_sfp_set_ouid(uint32_t index, uint32_t ouid) in ls_sfp_set_ouid() argument
380 if (index >= ARRAY_SIZE(sfp_regs->ouidr)) { in ls_sfp_set_ouid()
382 index, ARRAY_SIZE(sfp_regs->ouidr)); in ls_sfp_set_ouid()
[all …]

Completed in 33 milliseconds

123