Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 28) sorted by relevance

12

/optee_os/core/arch/arm/plat-stm32mp1/pm/
A Dpsci.c58 DMSG("core %zu, state %u", pos, core_state[pos]); in psci_affinity_info()
65 switch (core_state[pos]) { in psci_affinity_info()
104 size_t pos = get_core_pos(); in stm32mp_register_online_cpu() local
107 if (pos == 0) { in stm32mp_register_online_cpu()
119 core_state[pos] = CORE_ON; in stm32mp_register_online_cpu()
153 if (!pos || pos >= CFG_TEE_CORE_NB_CORE) in psci_cpu_on()
157 pos, entry, core_state[pos]); in psci_cpu_on()
161 switch (core_state[pos]) { in psci_cpu_on()
195 if (pos == 0) { in psci_cpu_off()
200 DMSG("core %u", pos); in psci_cpu_off()
[all …]
/optee_os/core/arch/arm/plat-stm/
A Drng_support.c88 static int pos = -1; in hw_get_random_byte() local
99 if (pos >= 0) { in hw_get_random_byte()
100 pos++; in hw_get_random_byte()
101 value = lfifo[pos]; in hw_get_random_byte()
103 pos = -1; in hw_get_random_byte()
115 pos = 0; in hw_get_random_byte()
117 lfifo[pos] = tmpval[i] & 0xFF; in hw_get_random_byte()
118 pos++; in hw_get_random_byte()
120 pos++; in hw_get_random_byte()
123 pos = 0; in hw_get_random_byte()
[all …]
/optee_os/core/lib/libtomcrypt/src/misc/base16/
A Dbase16_decode.c33 unsigned long pos, out_len; in base16_decode() local
53 for (pos = 0; ((pos + 1 < out_len) && (pos + 1 < inlen)); pos += 2) { in base16_decode()
54 in0 = in[pos + 0]; in base16_decode()
55 in1 = in[pos + 1]; in base16_decode()
66 out[pos / 2] = (unsigned char) (hashmap[idx0] << 4) | hashmap[idx1]; in base16_decode()
68 *outlen = pos / 2; in base16_decode()
/optee_os/core/pta/
A Ddevice.c24 uint32_t blen, uint32_t *pos, uint32_t rflags) in add_ta() argument
33 if (*pos + sizeof(*uuid) <= blen) in add_ta()
34 tee_uuid_to_octets(buf + *pos, uuid); in add_ta()
36 *pos += sizeof(*uuid); in add_ta()
48 uint32_t pos = 0; in get_devices() local
63 add_ta(ta->flags, &ta->uuid, buf, blen, &pos, rflags); in get_devices()
67 add_ta(eta->flags, &eta->uuid, buf, blen, &pos, in get_devices()
70 params[0].memref.size = pos; in get_devices()
71 if (pos > blen) in get_devices()
/optee_os/core/lib/libtomcrypt/src/ciphers/
A Danubis.c891 int N, R, i, pos, r; in _anubis_setup() local
923 for (i = 0, pos = 0; i < N; i++, pos += 4) { in _anubis_setup()
925 (((ulong32)key[pos ]) << 24) ^ in _anubis_setup()
926 (((ulong32)key[pos + 1]) << 16) ^ in _anubis_setup()
927 (((ulong32)key[pos + 2]) << 8) ^ in _anubis_setup()
928 (((ulong32)key[pos + 3]) ); in _anubis_setup()
1032 int i, pos, r; in anubis_crypt() local
1040 for (i = 0, pos = 0; i < 4; i++, pos += 4) { in anubis_crypt()
1042 (((ulong32)plaintext[pos ]) << 24) ^ in anubis_crypt()
1043 (((ulong32)plaintext[pos + 1]) << 16) ^ in anubis_crypt()
[all …]
/optee_os/core/arch/arm/plat-vexpress/
A Dmain.c203 static void release_secondary_early_hpen(size_t pos) in release_secondary_early_hpen() argument
221 mailbox->hpen[pos] = 1; in release_secondary_early_hpen()
228 size_t pos = get_core_pos_mpidr(core_id); in psci_cpu_on() local
231 if (!pos || pos >= CFG_TEE_CORE_NB_CORE) in psci_cpu_on()
234 DMSG("core pos: %zu: ns_entry %#" PRIx32, pos, entry); in psci_cpu_on()
236 if (core_is_released[pos]) { in psci_cpu_on()
237 EMSG("core %zu already released", pos); in psci_cpu_on()
240 core_is_released[pos] = true; in psci_cpu_on()
242 boot_set_core_ns_entry(pos, entry, context_id); in psci_cpu_on()
243 release_secondary_early_hpen(pos); in psci_cpu_on()
/optee_os/core/tee/
A Dtee_ree_fs.c88 size_t offset = pos % BLOCK_SIZE; in out_of_place_write()
118 pos += size_to_write; in out_of_place_write()
121 if (pos > meta->length) { in out_of_place_write()
122 meta->length = pos; in out_of_place_write()
311 if ((pos + remain_bytes) < remain_bytes || pos > meta->length) in ree_fs_read_primitive()
347 pos += size_to_read; in ree_fs_read_primitive()
382 if ((pos + len) < len) in ree_fs_write_primitive()
385 if (file_size < pos) { in ree_fs_write_primitive()
715 size_t pos = 0; in ree_fs_create() local
736 pos += head_size; in ree_fs_create()
[all …]
A Dtee_fs_rpc.c32 size_t pos = 0; in create_filename() local
35 if (pos >= blen) in create_filename()
38 file[pos] = '/'; in create_filename()
39 pos++; in create_filename()
40 if (pos >= blen) in create_filename()
43 l = blen - pos; in create_filename()
44 return tee_fs_dirfile_fileh_to_fname(dfh, file + pos, &l); in create_filename()
A Dtee_rpmb_fs.c1929 uint32_t pos = 0; in create_filename() local
1941 file[pos++] = '/'; in create_filename()
1942 pos += tee_b2hs((uint8_t *)&po->uuid, &file[pos], in create_filename()
1944 file[pos++] = '/'; in create_filename()
1947 file[pos++] = '.'; in create_filename()
1949 tee_b2hs(po->obj_id, file + pos, po->obj_id_len, hslen - pos); in create_filename()
2468 if (blk_offset < pos) { in update_write_helper()
2469 offset = pos - blk_offset; in update_write_helper()
2980 size_t pos = 0; in rpmb_fs_create() local
2995 pos += head_size; in rpmb_fs_create()
[all …]
A Dtadb.c62 size_t pos; member
70 size_t pos; member
459 ta->pos, wl, &wb); in tee_tadb_ta_write()
474 ta->pos += wl; in tee_tadb_ta_write()
726 size_t l = MIN(*len, sz - ta->pos); in tee_tadb_ta_read()
734 ta->ta_buf + ta->pos, l, buf); in tee_tadb_ta_read()
749 ta->ta_buf + ta->pos + in tee_tadb_ta_read()
761 ta->pos += l; in tee_tadb_ta_read()
762 if (ta->pos == sz) { in tee_tadb_ta_read()
/optee_os/core/drivers/
A Dhi16xx_rng.c68 static int pos; in hw_get_random_byte() local
82 if (!pos) in hw_get_random_byte()
85 ret = random.byte[pos++]; in hw_get_random_byte()
87 if (pos == 4) in hw_get_random_byte()
88 pos = 0; in hw_get_random_byte()
A Ddra7_rng.c77 static int pos; in hw_get_random_byte() local
89 if (!pos) { in hw_get_random_byte()
117 ret = random.byte[pos]; in hw_get_random_byte()
119 pos = (pos + 1) % 8; in hw_get_random_byte()
/optee_os/ta/pkcs11/src/
A Dsanitize_object.c58 if (ADD_OVERFLOW(*pos, sizeof(*attr), &data_pos) || data_pos > blen) in read_attr_advance()
60 TEE_MemMove(attr, b + *pos, sizeof(*attr)); in read_attr_advance()
66 *pos = next_pos; in read_attr_advance()
78 size_t pos = sizeof(struct pkcs11_object_head); in sanitize_class_and_type() local
84 while (pos != src_size) { in sanitize_class_and_type()
85 rc = read_attr_advance(src, src_size, &pos, &cli_ref, &data); in sanitize_class_and_type()
173 size_t pos = sizeof(struct pkcs11_object_head); in sanitize_boolprops() local
186 while (pos != src_size) { in sanitize_boolprops()
187 rc = read_attr_advance(src, src_size, &pos, &cli_ref, &data); in sanitize_boolprops()
256 size_t pos = sizeof(head); in sanitize_client_object() local
[all …]
A Dpkcs11_helpers.c535 size_t pos = 0; in pkcs11_attr2boolprop_shift() local
537 for (pos = 0; pos < ARRAY_SIZE(bpa); pos++) in pkcs11_attr2boolprop_shift()
538 if (bpa[pos] == attr) in pkcs11_attr2boolprop_shift()
539 return (int)pos; in pkcs11_attr2boolprop_shift()
/optee_os/core/arch/arm/plat-hisilicon/
A Dpsci.c66 size_t pos = get_core_pos_mpidr(core_idx); in psci_cpu_on() local
77 if ((pos == 0) || (pos >= CFG_TEE_CORE_NB_CORE)) in psci_cpu_on()
81 boot_set_core_ns_entry(pos, entry, context_id); in psci_cpu_on()
/optee_os/core/arch/arm/kernel/
A Dthread.c318 get_core_local(unsigned int pos) in get_core_local() argument
327 assert(pos < CFG_TEE_CORE_NB_CORE); in get_core_local()
328 return &thread_core_local[pos]; in get_core_local()
333 unsigned int pos = get_core_pos(); in thread_get_core_local() local
335 return get_core_local(pos); in thread_get_core_local()
381 unsigned int pos = get_core_pos(); in get_stackcheck_recursion_flag() local
768 unsigned int pos = get_core_pos(); in get_stack_limits() local
778 *end = GET_STACK_BOTTOM(stack_tmp, pos); in get_stack_limits()
785 *end = GET_STACK_BOTTOM(stack_abt, pos); in get_stack_limits()
1199 size_t pos = get_core_pos(); in thread_init_per_cpu() local
[all …]
/optee_os/lib/libutils/isoc/
A Dbget.c583 bufsize pos = 0; in buf_get_pos() local
597 if (pos == 0) /* exact match */ in buf_get_pos()
598 return pos; in buf_get_pos()
600 return pos; in buf_get_pos()
615 bufsize pos; local
672 pos = buf_get_pos(b, align, hdr_size, size);
673 if (pos >= 0) {
686 if (pos >= 0) {
701 if (pos == 0) {
717 b_alloc->prevfree = pos;
[all …]
/optee_os/core/include/tee/
A Dtadb.h38 size_t pos, uint8_t **data, size_t bytes);
43 size_t pos, uint8_t **data, size_t len);
A Dfs_dirfile.h41 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos,
43 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos,
A Dtee_fs.h40 TEE_Result (*read)(struct tee_file_handle *fh, size_t pos,
42 TEE_Result (*write)(struct tee_file_handle *fh, size_t pos,
/optee_os/core/arch/arm/mm/
A Dcore_mmu.c800 size_t pos = 0; in add_pager_vaspace() local
812 pos = n + 1; in add_pager_vaspace()
816 end = mmap[pos - 1].pa + mmap[pos - 1].size; in add_pager_vaspace()
821 assert(pos <= *last); in add_pager_vaspace()
822 memmove(mmap + pos + 1, mmap + pos, in add_pager_vaspace()
823 sizeof(struct tee_mmap_region) * (*last - pos)); in add_pager_vaspace()
825 memset(mmap + pos, 0, sizeof(mmap[0])); in add_pager_vaspace()
826 mmap[pos].type = MEM_AREA_PAGER_VASPACE; in add_pager_vaspace()
827 mmap[pos].va = 0; in add_pager_vaspace()
828 mmap[pos].size = size; in add_pager_vaspace()
[all …]
/optee_os/out/arm/export-ta_arm32/host_include/mbedtls/
A Dbignum.h343 int mbedtls_mpi_get_bit( const mbedtls_mpi *X, size_t pos );
360 int mbedtls_mpi_set_bit( mbedtls_mpi *X, size_t pos, unsigned char val );
/optee_os/out/arm/export-ta_arm32/include/mbedtls/
A Dbignum.h343 int mbedtls_mpi_get_bit( const mbedtls_mpi *X, size_t pos );
360 int mbedtls_mpi_set_bit( mbedtls_mpi *X, size_t pos, unsigned char val );
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
A Dbignum.h343 int mbedtls_mpi_get_bit( const mbedtls_mpi *X, size_t pos );
360 int mbedtls_mpi_set_bit( mbedtls_mpi *X, size_t pos, unsigned char val );
/optee_os/out/arm/export-ta_arm64/include/mbedtls/
A Dbignum.h343 int mbedtls_mpi_get_bit( const mbedtls_mpi *X, size_t pos );
360 int mbedtls_mpi_set_bit( mbedtls_mpi *X, size_t pos, unsigned char val );

Completed in 43 milliseconds

12