| /optee_os/core/pta/tests/ |
| H A D | lockdep.c | 20 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/core/drivers/scmi-msg/ |
| H A D | base.c | 39 /* Null agent count since agent discovery is not supported */ in report_attributes() 124 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() [all …]
|
| /optee_os/core/drivers/imx/mu/ |
| H A D | imx_mu.c | 52 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 D | rockchip_otp.c | 44 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() 62 /* Setup read: index, count, command = READ */ 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/lib/libutils/isoc/arch/arm/softfloat/source/include/ |
| H A D | primitives.h | 47 | Shifts `a' right by the number of bits given in `count', which must be in 54 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 ); 63 | Shifts `a' right by the number of bits given in `count', which must not 67 | The value of `count' can be arbitrarily large. In particular, if `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 ); 85 | Shifts `a' right by the number of bits given in `count', which must not [all …]
|
| /optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
| H A D | s_shiftRightJam128Extra.c | 46 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 D | s_countLeadingZeros64.c | 48 uint_fast8_t count; in softfloat_countLeadingZeros64() local 51 count = 0; in softfloat_countLeadingZeros64() 54 count = 32; in softfloat_countLeadingZeros64() 58 | From here, result is current count + count leading zeros of `a32'. 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 D | s_shiftRightJam128.c | 45 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 D | s_shiftRightJam256M.c | 49 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 D | s_countLeadingZeros32.c | 48 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 D | s_shiftRightJam64Extra.c | 46 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 D | s_shortShiftRightJamM.c | 48 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()
|
| /optee_os/ta/pkcs11/src/ |
| H A D | processing_rsa.c | 516 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 …]
|
| H A D | persistent_token.c | 300 for (i = 0; i < token->db_objs->count; i++) in get_persistent_obj_idx() 342 *size = token->db_objs->count * sizeof(TEE_UUID); in get_persistent_objects_list() 359 int count = 0; in unregister_persistent_object() local 372 ((token->db_objs->count - 1) * sizeof(TEE_UUID)), in unregister_persistent_object() 392 ptr->count--; in unregister_persistent_object() 393 count = ptr->count - idx; in unregister_persistent_object() 397 count * sizeof(TEE_UUID)); in unregister_persistent_object() 401 ptr->count * sizeof(TEE_UUID)); in unregister_persistent_object() 422 int count = 0; in register_persistent_object() local 427 count = token->db_objs->count; in register_persistent_object() [all …]
|
| H A D | attributes.c | 104 void **attr, uint32_t *attr_size, size_t *count) in get_attribute_ptrs() argument 109 size_t max_found = *count; in get_attribute_ptrs() 127 continue; /* only count matching attributes */ in get_attribute_ptrs() 149 *count = found; in get_attribute_ptrs() 155 size_t count = 1; in get_attribute_ptr() local 157 get_attribute_ptrs(head, attribute, attr_ptr, attr_size, &count); in get_attribute_ptr() 159 if (!count) in get_attribute_ptr() 162 if (count != 1) in get_attribute_ptr() 250 size_t count = ref->attrs_count; in attributes_match_reference() local 259 for (count = 0; count < ref->attrs_count; count++) { in attributes_match_reference() [all …]
|
| H A D | processing_ec.c | 345 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 …]
|
| /optee_os/ta/avb/ |
| H A D | entry.c | 80 size_t count; in read_rb_idx() local 99 res = TEE_ReadObjectData(h, &idx, sizeof(idx), &count); in read_rb_idx() 102 if (count != sizeof(idx)) { in read_rb_idx() 105 if (count) { in read_rb_idx() 136 size_t count; in write_rb_idx() local 156 res = TEE_ReadObjectData(h, &idx, sizeof(idx), &count); in write_rb_idx() 159 if (count != sizeof(idx)) in write_rb_idx() 184 size_t count; in read_lock_state() local 195 res = TEE_ReadObjectData(h, &lock_state, sizeof(lock_state), &count); in read_lock_state() 198 if (count != sizeof(lock_state)) { in read_lock_state() [all …]
|
| /optee_os/lib/libutils/isoc/newlib/ |
| H A D | strncpy.c | 105 size_t count) 113 while (count > 0) 115 --count; 119 while (count-- > 0) 129 /* If SRC and DEST is aligned and count large enough, then copy words. */ 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; [all …]
|
| /optee_os/ldelf/ |
| H A D | ftrace.c | 28 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/include/drivers/ |
| H A D | rockchip_otp.h | 16 * @count number of 32 bit words to read 19 uint32_t count); 26 * @count number of 32 bit words to write 29 uint32_t count);
|
| H A D | stm32_gpio.h | 25 * @count: [in] Number of cells of @bank and @pin, [out] pin count in @pinctrl 29 unsigned int *count); 40 unsigned int *count __unused) in stm32_gpio_pinctrl_bank_pin()
|
| /optee_os/ta/pkcs11/scripts/ |
| H A D | verify-helpers.sh | 18 COUNT="$(grep ${symbol} ${basepath}/src/* | wc -l)" 19 details && echo -n -e "\t${COUNT}\t" 23 elif [ $COUNT -eq 0 ] ; then 41 COUNT="$(grep ${symbol} ${basepath}/src/* | wc -l)" 42 details && echo -n -e "\t${COUNT}\t" 46 elif [ $COUNT -eq 0 ] ; then
|
| /optee_os/core/kernel/ |
| H A D | pm.c | 39 size_t count = pm_cb_count; in register_pm_cb() local 55 ref = realloc(pm_cb_ref, sizeof(*ref) * (count + 1)); in register_pm_cb() 59 ref[count] = *pm_hdl; in register_pm_cb() 60 ref[count].flags = 0; in register_pm_cb() 61 ref[count].name = name; in register_pm_cb() 63 pm_cb_count = count + 1; in register_pm_cb()
|
| /optee_os/core/tests/ |
| H A D | notif_test_wd.c | 123 unsigned int count; member 135 d->count++; in periodic_callback() 136 DMSG("seconds %"PRIu32" millis %"PRIu32" count %u", in periodic_callback() 137 t.seconds, t.millis, d->count); in periodic_callback() 139 if (d->count > 20) { in periodic_callback()
|
| /optee_os/core/lib/zlib/ |
| H A D | inftrees.c | 59 unsigned short count[MAXBITS+1]; /* number of codes of each length */ local 94 The codes are sorted by computing a count of codes for each length, 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]; 166 counts are used for this, and so count[] is decremented as codes are 251 /* go to next symbol, update count, len */ [all …]
|