Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 116) sorted by relevance

12345

/optee_os/core/pta/tests/
H A Dlockdep.c20 int count = 1; in self_test_lockdep1() local
30 return count; in self_test_lockdep1()
31 count++; in self_test_lockdep1()
35 return count; in self_test_lockdep1()
36 count++; in self_test_lockdep1()
40 return count; in self_test_lockdep1()
41 count++; in self_test_lockdep1()
45 return count; in self_test_lockdep1()
46 count++; in self_test_lockdep1()
50 return count; in self_test_lockdep1()
[all …]
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/
H A Dprimitives.h54 uint64_t softfloat_shortShiftRightJam64( uint64_t a, uint_fast8_t count ) in softfloat_shortShiftRightJam64() argument
55 { return a>>count | ((a & (((uint_fast64_t) 1<<count) - 1)) != 0); } in softfloat_shortShiftRightJam64()
57 uint64_t softfloat_shortShiftRightJam64( uint64_t a, uint_fast8_t count );
72 INLINE uint32_t softfloat_shiftRightJam32( uint32_t a, uint_fast16_t count ) in softfloat_shiftRightJam32() argument
75 (count < 31) ? a>>count | ((uint32_t) (a<<(-count & 31)) != 0) in softfloat_shiftRightJam32()
79 uint32_t softfloat_shiftRightJam32( uint32_t a, uint_fast16_t count );
94 INLINE uint64_t softfloat_shiftRightJam64( uint64_t a, uint_fast32_t count ) in softfloat_shiftRightJam64() argument
97 (count < 63) ? a>>count | ((uint64_t) (a<<(-count & 63)) != 0) in softfloat_shiftRightJam64()
101 uint64_t softfloat_shiftRightJam64( uint64_t a, uint_fast32_t count );
120 uint_fast8_t count = 0; in softfloat_countLeadingZeros32() local
[all …]
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/
H A Ds_shiftRightJam128.c45 softfloat_shiftRightJam128( uint64_t a64, uint64_t a0, uint_fast32_t count ) in softfloat_shiftRightJam128() argument
50 if ( count < 64 ) { in softfloat_shiftRightJam128()
51 negCount = -count; in softfloat_shiftRightJam128()
52 z.v64 = a64>>count; in softfloat_shiftRightJam128()
54 a64<<(negCount & 63) | a0>>count in softfloat_shiftRightJam128()
59 (count < 127) in softfloat_shiftRightJam128()
60 ? a64>>(count & 63) in softfloat_shiftRightJam128()
61 | (((a64 & (((uint_fast64_t) 1<<(count & 63)) - 1)) | a0) in softfloat_shiftRightJam128()
H A Ds_shiftRightJam128Extra.c46 uint64_t a64, uint64_t a0, uint64_t extra, uint_fast32_t count ) in softfloat_shiftRightJam128Extra() argument
51 negCount = -count; in softfloat_shiftRightJam128Extra()
52 if ( count < 64 ) { in softfloat_shiftRightJam128Extra()
53 z.v.v64 = a64>>count; in softfloat_shiftRightJam128Extra()
54 z.v.v0 = a64<<(negCount & 63) | a0>>count; in softfloat_shiftRightJam128Extra()
58 if ( count == 64 ) { in softfloat_shiftRightJam128Extra()
63 if ( count < 128 ) { in softfloat_shiftRightJam128Extra()
64 z.v.v0 = a64>>(count & 63); in softfloat_shiftRightJam128Extra()
68 z.extra = (count == 128) ? a64 : (a64 != 0); in softfloat_shiftRightJam128Extra()
H A Ds_countLeadingZeros64.c48 uint_fast8_t count; in softfloat_countLeadingZeros64() local
51 count = 0; in softfloat_countLeadingZeros64()
54 count = 32; in softfloat_countLeadingZeros64()
61 count += 16; in softfloat_countLeadingZeros64()
65 count += 8; in softfloat_countLeadingZeros64()
68 count += softfloat_countLeadingZeros8[a32>>24]; in softfloat_countLeadingZeros64()
69 return count; in softfloat_countLeadingZeros64()
H A Ds_countLeadingZeros32.c48 uint_fast8_t count; in softfloat_countLeadingZeros32() local
50 count = 0; in softfloat_countLeadingZeros32()
52 count = 16; in softfloat_countLeadingZeros32()
56 count += 8; in softfloat_countLeadingZeros32()
59 count += softfloat_countLeadingZeros8[a>>24]; in softfloat_countLeadingZeros32()
60 return count; in softfloat_countLeadingZeros32()
H A Ds_shiftRightJam64Extra.c46 uint64_t a, uint64_t extra, uint_fast32_t count ) in softfloat_shiftRightJam64Extra() argument
50 if ( count < 64 ) { in softfloat_shiftRightJam64Extra()
51 z.v = a>>count; in softfloat_shiftRightJam64Extra()
52 z.extra = a<<(-count & 63); in softfloat_shiftRightJam64Extra()
55 z.extra = (count == 64) ? a : (a != 0); in softfloat_shiftRightJam64Extra()
H A Ds_shiftRightJam256M.c49 uint_fast8_t count, in softfloat_shortShiftRightJamM() argument
57 negCount = -count; in softfloat_shortShiftRightJamM()
61 partWordZ = wordA>>count; in softfloat_shortShiftRightJamM()
62 if ( partWordZ<<count != wordA ) partWordZ |= 1; in softfloat_shortShiftRightJamM()
67 partWordZ = wordA>>count; in softfloat_shortShiftRightJamM()
75 const uint64_t *aPtr, uint_fast32_t count, uint64_t *zPtr ) in softfloat_shiftRightJam256M() argument
83 wordCount = count>>6; in softfloat_shiftRightJam256M()
97 innerCount = count & 63; in softfloat_shiftRightJam256M()
H A Ds_shiftRightJam32.c43 uint32_t softfloat_shiftRightJam32( uint32_t a, uint_fast16_t count ) in softfloat_shiftRightJam32() argument
47 (count < 31) ? a>>count | ((uint32_t) (a<<(-count & 31)) != 0) in softfloat_shiftRightJam32()
H A Ds_shiftRightJam64.c43 uint64_t softfloat_shiftRightJam64( uint64_t a, uint_fast32_t count ) in softfloat_shiftRightJam64() argument
47 (count < 63) ? a>>count | ((uint64_t) (a<<(-count & 63)) != 0) in softfloat_shiftRightJam64()
H A Ds_shortShiftRightJamM.c48 uint_fast8_t count, in softfloat_shortShiftRightJamM() argument
56 negCount = -count; in softfloat_shortShiftRightJamM()
60 partWordZ = wordA>>count; in softfloat_shortShiftRightJamM()
61 if ( partWordZ<<count != wordA ) partWordZ |= 1; in softfloat_shortShiftRightJamM()
66 partWordZ = wordA>>count; in softfloat_shortShiftRightJamM()
H A Ds_shortShiftLeft128.c45 softfloat_shortShiftLeft128( uint64_t a64, uint64_t a0, uint_fast8_t count ) in softfloat_shortShiftLeft128() argument
49 z.v64 = a64<<count | a0>>(-count & 63); in softfloat_shortShiftLeft128()
50 z.v0 = a0<<count; in softfloat_shortShiftLeft128()
H A Ds_shortShiftRight128.c45 softfloat_shortShiftRight128( uint64_t a64, uint64_t a0, uint_fast8_t count ) in softfloat_shortShiftRight128() argument
49 z.v64 = a64>>count; in softfloat_shortShiftRight128()
50 z.v0 = a64<<(-count & 63) | a0>>count; in softfloat_shortShiftRight128()
H A Ds_shortShiftRightJam128.c46 uint64_t a64, uint64_t a0, uint_fast8_t count ) in softfloat_shortShiftRightJam128() argument
51 negCount = -count; in softfloat_shortShiftRightJam128()
52 z.v64 = a64>>count; in softfloat_shortShiftRightJam128()
54 a64<<(negCount & 63) | a0>>count in softfloat_shortShiftRightJam128()
H A Ds_shortShiftRightJam128Extra.c46 uint64_t a64, uint64_t a0, uint64_t extra, uint_fast8_t count ) in softfloat_shortShiftRightJam128Extra() argument
51 negCount = -count; in softfloat_shortShiftRightJam128Extra()
52 z.v.v64 = a64>>count; in softfloat_shortShiftRightJam128Extra()
53 z.v.v0 = a64<<(negCount & 63) | a0>>count; in softfloat_shortShiftRightJam128Extra()
H A Ds_shortShiftRightM.c48 uint_fast8_t count, in softfloat_shortShiftRightM() argument
56 negCount = -count; in softfloat_shortShiftRightM()
59 partWordZ = aPtr[index]>>count; in softfloat_shortShiftRightM()
64 partWordZ = wordA>>count; in softfloat_shortShiftRightM()
H A Ds_shortShiftLeftM.c48 uint_fast8_t count, in softfloat_shortShiftLeftM() argument
56 negCount = -count; in softfloat_shortShiftLeftM()
59 partWordZ = aPtr[index]<<count; in softfloat_shortShiftLeftM()
64 partWordZ = wordA<<count; in softfloat_shortShiftLeftM()
/optee_os/lib/libutils/isoc/newlib/
H A Dstrncpy.c105 size_t count)
113 while (count > 0)
115 --count;
119 while (count-- > 0)
130 if (!UNALIGNED (src, dst) && !TOO_SMALL (count))
137 while (count >= sizeof (long int) && !DETECTNULL(*aligned_src))
139 count -= sizeof (long int);
147 while (count > 0)
149 --count;
154 while (count-- > 0)
/optee_os/core/drivers/scmi-msg/
H A Dbase.c124 unsigned int count = 0; in count_protocols_in_list() local
127 while (protocol_list[count]) in count_protocols_in_list()
128 count++; in count_protocols_in_list()
130 return count; in count_protocols_in_list()
140 unsigned int count = 0; in discover_list_protocols() local
150 count = count_protocols_in_list(list); in discover_list_protocols()
151 if (count > a2p->skip) in discover_list_protocols()
152 count = MIN(count - a2p->skip, msg->out_size - sizeof(p2a)); in discover_list_protocols()
154 count = 0; in discover_list_protocols()
156 p2a.num_protocols = count; in discover_list_protocols()
[all …]
/optee_os/core/drivers/imx/mu/
H A Dimx_mu.c52 unsigned int count = 0; in imx_mu_receive_msg() local
78 for (count = 1; count < msg->header.size; count++) { in imx_mu_receive_msg()
79 res = imx_mu_plat_receive(base, count % nb_channel, in imx_mu_receive_msg()
80 &msg->data.u32[count - 1]); in imx_mu_receive_msg()
97 unsigned int count = 0; in imx_mu_send_msg() local
150 for (count = start_index; count < end_index; count++) { in imx_mu_send_msg()
151 res = imx_mu_plat_send(base, count % nb_channel, in imx_mu_send_msg()
152 msg->data.u32[count - start_index]); in imx_mu_send_msg()
/optee_os/core/drivers/
H A Drockchip_otp.c44 uint32_t count) in rockchip_otp_read_secure() argument
58 if (!value || !count || count > BURST_SIZE || in rockchip_otp_read_secure()
59 (index + count > MAX_INDEX)) in rockchip_otp_read_secure()
64 SHIFT_U32(count, BURST_SHIFT) | in rockchip_otp_read_secure()
97 for (i = 0; i < count; i++) { in rockchip_otp_read_secure()
107 uint32_t count) in rockchip_otp_write_secure() argument
118 if (!value || !count || count > BURST_SIZE || in rockchip_otp_write_secure()
119 (index + count > MAX_INDEX)) in rockchip_otp_write_secure()
123 for (i = 0; i < count; i++) { in rockchip_otp_write_secure()
/optee_os/ta/pkcs11/src/
H A Dprocessing_ec.c345 size_t count = 0; in load_tee_ec_key_attrs() local
357 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_ECC_CURVE, in load_tee_ec_key_attrs()
359 count++; in load_tee_ec_key_attrs()
361 if (pkcs2tee_load_attr(&attrs[count], in load_tee_ec_key_attrs()
364 count++; in load_tee_ec_key_attrs()
366 if (pkcs2tee_load_attr(&attrs[count], in load_tee_ec_key_attrs()
369 count++; in load_tee_ec_key_attrs()
371 if (count == 3) in load_tee_ec_key_attrs()
382 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_ECC_CURVE, in load_tee_ec_key_attrs()
384 count++; in load_tee_ec_key_attrs()
[all …]
H A Dprocessing_rsa.c516 size_t count = 0; in contains_all_rsa_crt_parameters() local
525 count++; in contains_all_rsa_crt_parameters()
528 if (count != ARRAY_SIZE(crt_attr)) in contains_all_rsa_crt_parameters()
539 size_t count = 0; in load_tee_rsa_key_attrs() local
551 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_RSA_MODULUS, in load_tee_rsa_key_attrs()
553 count++; in load_tee_rsa_key_attrs()
555 if (pkcs2tee_load_attr(&attrs[count], in load_tee_rsa_key_attrs()
558 count++; in load_tee_rsa_key_attrs()
560 if (count == 2) in load_tee_rsa_key_attrs()
571 if (pkcs2tee_load_attr(&attrs[count], TEE_ATTR_RSA_MODULUS, in load_tee_rsa_key_attrs()
[all …]
/optee_os/ldelf/
H A Dftrace.c28 int count = 0; in ftrace_init() local
54 count = snprintk(p, MAX_HEADER_STRLEN, in ftrace_init()
57 assert(count < MAX_HEADER_STRLEN); in ftrace_init()
58 p += count; in ftrace_init()
64 fbuf->buf_off = fbuf->head_off + count; in ftrace_init()
72 count++; in ftrace_init()
77 count += sizeof(magic); in ftrace_init()
79 fbuf->max_size = fbuf_size - sizeof(struct ftrace_buf) - count; in ftrace_init()
/optee_os/core/lib/zlib/
H A Dinftrees.c59 unsigned short count[MAXBITS+1]; /* number of codes of each length */ local
109 count[len] = 0;
111 count[lens[sym]]++;
116 if (count[max] != 0) break;
128 if (count[min] != 0) break;
135 left -= count[len];
144 offs[len + 1] = offs[len] + count[len];
253 if (--(count[len]) == 0) {
271 left -= count[curr + drop];

12345