Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 135) sorted by relevance

123456

/optee_os-3.20.0/lib/libmbedtls/mbedtls/library/
A Dcommon.h79 #define MBEDTLS_GET_UINT32_BE( data , offset ) \ argument
81 ( (uint32_t) ( data )[( offset ) ] << 24 ) \
82 | ( (uint32_t) ( data )[( offset ) + 1] << 16 ) \
83 | ( (uint32_t) ( data )[( offset ) + 2] << 8 ) \
84 | ( (uint32_t) ( data )[( offset ) + 3] ) \
98 #define MBEDTLS_PUT_UINT32_BE( n, data, offset ) \ argument
100 ( data )[( offset ) ] = MBEDTLS_BYTE_3( n ); \
101 ( data )[( offset ) + 1] = MBEDTLS_BYTE_2( n ); \
102 ( data )[( offset ) + 2] = MBEDTLS_BYTE_1( n ); \
103 ( data )[( offset ) + 3] = MBEDTLS_BYTE_0( n ); \
[all …]
A Dchacha20.c245 size_t offset = 0U; in mbedtls_chacha20_update() local
255 output[offset] = input[offset] in mbedtls_chacha20_update()
259 offset++; in mbedtls_chacha20_update()
272 output[offset + i ] = input[offset + i ] ^ ctx->keystream8[i ]; in mbedtls_chacha20_update()
273 output[offset + i+1] = input[offset + i+1] ^ ctx->keystream8[i+1]; in mbedtls_chacha20_update()
274 output[offset + i+2] = input[offset + i+2] ^ ctx->keystream8[i+2]; in mbedtls_chacha20_update()
275 output[offset + i+3] = input[offset + i+3] ^ ctx->keystream8[i+3]; in mbedtls_chacha20_update()
276 output[offset + i+4] = input[offset + i+4] ^ ctx->keystream8[i+4]; in mbedtls_chacha20_update()
277 output[offset + i+5] = input[offset + i+5] ^ ctx->keystream8[i+5]; in mbedtls_chacha20_update()
278 output[offset + i+6] = input[offset + i+6] ^ ctx->keystream8[i+6]; in mbedtls_chacha20_update()
[all …]
/optee_os-3.20.0/core/lib/libfdt/
A Dfdt.c124 if (((offset + len) < offset) in fdt_offset_ptr()
165 offset += 4; in fdt_next_tag()
186 if ((offset < 0) || (offset % FDT_TAGSIZE) in fdt_check_node_offset_()
190 return offset; in fdt_check_node_offset_()
195 if ((offset < 0) || (offset % FDT_TAGSIZE) in fdt_check_prop_offset_()
196 || (fdt_next_tag(fdt, offset, &offset) != FDT_PROP)) in fdt_check_prop_offset_()
199 return offset; in fdt_check_prop_offset_()
239 return offset; in fdt_next_node()
246 offset = fdt_next_node(fdt, offset, &depth); in fdt_first_subnode()
250 return offset; in fdt_first_subnode()
[all …]
A Dfdt_ro.c111 offset = fdt_next_node(fdt, offset, NULL); in fdt_find_max_phandle()
220 offset = fdt_next_node(fdt, offset, &depth)) in fdt_subnode_offset_namelen()
326 int offset; in fdt_first_property_offset() local
533 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
534 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
565 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_get_path()
585 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
586 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
647 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_prop_value()
674 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_phandle()
[all …]
A Dlibfdt_internal.h21 int fdt_check_node_offset_(const void *fdt, int offset);
22 int fdt_check_prop_offset_(const void *fdt, int offset);
26 static inline const void *fdt_offset_ptr_(const void *fdt, int offset) in fdt_offset_ptr_() argument
28 return (const char *)fdt + fdt_off_dt_struct(fdt) + offset; in fdt_offset_ptr_()
31 static inline void *fdt_offset_ptr_w_(void *fdt, int offset) in fdt_offset_ptr_w_() argument
33 return (void *)(uintptr_t)fdt_offset_ptr_(fdt, offset); in fdt_offset_ptr_w_()
A Dfdt_sw.c92 int offset = fdt_size_dt_struct(fdt); in fdt_grab_space_() local
98 if ((offset + len < offset) || (offset + len > spaceleft)) in fdt_grab_space_()
183 int offset; in fdt_add_reservemap_entry() local
187 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
247 int struct_top, offset; in fdt_add_string_() local
249 offset = -strtabsize - len; in fdt_add_string_()
254 memcpy(strtab + offset, s, len); in fdt_add_string_()
256 return offset; in fdt_add_string_()
335 int offset, nextoffset; in fdt_finish() local
352 offset = 0; in fdt_finish()
[all …]
A Dfdt_wip.c73 int fdt_node_end_offset_(void *fdt, int offset) in fdt_node_end_offset_() argument
77 while ((offset >= 0) && (depth >= 0)) in fdt_node_end_offset_()
78 offset = fdt_next_node(fdt, offset, &depth); in fdt_node_end_offset_()
80 return offset; in fdt_node_end_offset_()
/optee_os-3.20.0/core/drivers/
A Dpl061_gpio.c48 unsigned int offset; in pl061_get_direction() local
55 if (data & BIT(offset)) in pl061_get_direction()
64 unsigned int offset; in pl061_set_direction() local
88 unsigned int offset; in pl061_get_value() local
108 unsigned int offset; in pl061_set_value() local
115 io_write8(base_addr + BIT(offset + 2), BIT(offset)); in pl061_set_value()
125 unsigned int offset; in pl061_get_interrupt() local
132 if (data & BIT(offset)) in pl061_get_interrupt()
142 unsigned int offset; in pl061_set_interrupt() local
191 unsigned int offset; in pl061_get_mode_control() local
[all …]
A Datmel_rtc.c99 return io_read32(rtc_base + offset); in atmel_rtc_read()
104 return io_write32(rtc_base + offset, val); in atmel_rtc_write()
205 *offset = 0; in atmel_rtc_get_offset()
219 *offset = val; in atmel_rtc_get_offset()
229 if (offset > ATMEL_RTC_CORR_DIVIDEND / 2) in atmel_rtc_set_offset()
231 if (offset < -ATMEL_RTC_CORR_DIVIDEND / 2) in atmel_rtc_set_offset()
237 if (offset > 0) in atmel_rtc_set_offset()
240 offset = -offset; in atmel_rtc_set_offset()
243 if (offset < 764) { in atmel_rtc_set_offset()
253 if (offset < 29208) { in atmel_rtc_set_offset()
[all …]
A Dstm32_etzpc.c105 size_t offset = 4U * (decprot_id / IDS_PER_DECPROT_REGS); in etzpc_configure_decprot() local
112 io_clrsetbits32(base + ETZPC_DECPROT0 + offset, in etzpc_configure_decprot()
126 size_t offset = 4U * (decprot_id / IDS_PER_DECPROT_REGS); in etzpc_get_decprot() local
147 io_write32(base + offset + ETZPC_DECPROT_LOCK0, mask); in etzpc_lock_decprot()
166 size_t offset = sizeof(uint32_t) * tzma_id; in etzpc_configure_tzma() local
171 io_write32(base + ETZPC_TZMA0_SIZE + offset, tzma_value); in etzpc_configure_tzma()
181 size_t offset = sizeof(uint32_t) * tzma_id; in etzpc_get_tzma() local
186 return io_read32(base + ETZPC_TZMA0_SIZE + offset); in etzpc_get_tzma()
191 size_t offset = sizeof(uint32_t) * tzma_id; in etzpc_lock_tzma() local
204 size_t offset = sizeof(uint32_t) * tzma_id; in etzpc_get_lock_tzma() local
[all …]
A Dbcm_gpio.c59 unsigned int offset = IPROC_GPIO_REG(gpio, reg); in iproc_set_bit() local
64 io_setbits32(gc->base + offset, BIT(shift)); in iproc_set_bit()
69 unsigned int offset = IPROC_GPIO_REG(gpio, reg); in iproc_clr_bit() local
74 io_clrbits32(gc->base + offset, BIT(shift)); in iproc_clr_bit()
89 unsigned int offset = IPROC_GPIO_REG(gpio, IPROC_GPIO_DATA_IN_OFFSET); in iproc_gpio_get() local
95 if (io_read32(gc->base + offset) & BIT(shift)) in iproc_gpio_get()
113 unsigned int offset = IPROC_GPIO_REG(gpio, IPROC_GPIO_OUT_EN_OFFSET); in iproc_gpio_get_dir() local
119 if (io_read32(gc->base + offset) & BIT(shift)) in iproc_gpio_get_dir()
128 unsigned int offset = IPROC_GPIO_REG(gpio, IPROC_GPIO_INT_MSK_OFFSET); in iproc_gpio_get_itr() local
134 if (io_read32(gc->base + offset) & BIT(shift)) in iproc_gpio_get_itr()
/optee_os-3.20.0/core/arch/arm/plat-imx/drivers/
A Dimx_csu.c103 vaddr_t offset; in csu_init() local
127 for (offset = CSU_CSL_START; offset < CSU_CSL_END; offset += 4) in csu_init()
128 io_write32(csu_base + offset, CSU_ACCESS_ALL); in csu_init()
143 for (offset = CSU_CSL_START; offset < CSU_CSL_END; offset += 4) { in csu_init()
144 io_write32(csu_base + offset, in csu_init()
145 io_read32(csu_base + offset) | CSU_SETTING_LOCK); in csu_init()
/optee_os-3.20.0/core/arch/arm/plat-bcm/
A Dbcm_elog.c14 uint32_t offset = 0, len = 0; in bcm_elog_putchar() local
19 offset = io_read32(base + BCM_ELOG_OFF_OFFSET); in bcm_elog_putchar()
21 io_write8(base + offset, ch); in bcm_elog_putchar()
22 offset++; in bcm_elog_putchar()
25 if (offset >= elog->max_size) in bcm_elog_putchar()
26 offset = BCM_ELOG_HEADER_LEN; in bcm_elog_putchar()
32 io_write32(base + BCM_ELOG_OFF_OFFSET, offset); in bcm_elog_putchar()
/optee_os-3.20.0/core/drivers/crypto/caam/utils/
A Dutils_sgt_v1.c26 SGT_TRACE("SGT[%d]->offset = %" PRIx32, idx, sgt->sgt[idx].v1.offset); in sgt_entry_trace()
29 void sgt_entry_offset(union caamsgt *sgt, unsigned int offset) in sgt_entry_offset() argument
36 len_f_e = (ENTRY_LEN(len_f_e) - offset) | (len_f_e & BS_ENTRY_FINAL); in sgt_entry_offset()
39 caam_write_val32(&sgt->v1.offset, offset); in sgt_entry_offset()
43 unsigned int offset, bool final_e) in caam_sgt_set_entry() argument
59 caam_write_val32(&sgt->v1.offset, offset); in caam_sgt_set_entry()
A Dutils_sgt_v2.c23 void sgt_entry_offset(union caamsgt *sgt, unsigned int offset) in sgt_entry_offset() argument
36 off += offset; in sgt_entry_offset()
40 len = (offset > len) ? 0 : len - offset; in sgt_entry_offset()
46 w2 |= BV_SGT_V2_OFFSET(offset) | BV_SGT_V2_AVAIL_LENGTH(len); in sgt_entry_offset()
52 unsigned int offset, bool final_e) in caam_sgt_set_entry() argument
60 w2 = (final_e ? BM_SGT_V2_F : 0) | BV_SGT_V2_OFFSET(offset) | in caam_sgt_set_entry()
A Dutils_mem.c199 struct caambuf *src, size_t offset) in caam_cpy_block_src() argument
221 cpy_size = MIN(cpy_size, src->length - offset); in caam_cpy_block_src()
223 memcpy(&block->buf.data[block->filled], &src->data[offset], cpy_size); in caam_cpy_block_src()
335 size_t offset = 0; in caam_mem_cpy_ltrim_buf() local
339 while (!src->data[offset] && offset < src->length) in caam_mem_cpy_ltrim_buf()
340 offset++; in caam_mem_cpy_ltrim_buf()
342 if (offset >= src->length) in caam_mem_cpy_ltrim_buf()
343 offset = src->length - 1; in caam_mem_cpy_ltrim_buf()
345 cpy_size = MIN(dst->length, (src->length - offset)); in caam_mem_cpy_ltrim_buf()
347 src->length, offset); in caam_mem_cpy_ltrim_buf()
[all …]
/optee_os-3.20.0/core/drivers/rstctrl/
A Dstm32_rstctrl.c36 assert(offset < RESET_OFFSET_MAX); in reset_id2reg_offset()
37 return offset * sizeof(uint32_t); in reset_id2reg_offset()
60 size_t offset = 0; in reset_assert() local
79 offset = reset_id2reg_offset(id); in reset_assert()
82 io_write32(rcc_base + offset, bit_mask); in reset_assert()
87 while (!(io_read32(rcc_base + offset) & bit_mask)) in reset_assert()
91 if (!(io_read32(rcc_base + offset) & bit_mask)) in reset_assert()
103 size_t offset = 0; in reset_deassert() local
124 io_write32(rcc_base + offset, bit_mask); in reset_deassert()
129 while ((io_read32(rcc_base + offset) & bit_mask)) in reset_deassert()
[all …]
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/asn1/der/general/
A Dder_decode_asn1_length.c20 unsigned long real_len, decoded_len, offset, i; in der_decode_asn1_length() local
33 offset = 1; in der_decode_asn1_length()
46 offset = 1 + real_len; in der_decode_asn1_length()
53 if (decoded_len > (*inlen - offset)) return CRYPT_OVERFLOW; in der_decode_asn1_length()
54 *inlen = offset; in der_decode_asn1_length()
/optee_os-3.20.0/core/include/drivers/
A Drtc.h42 TEE_Result (*get_offset)(struct rtc *rtc, long *offset);
43 TEE_Result (*set_offset)(struct rtc *rtc, long offset);
83 static inline TEE_Result rtc_get_offset(long *offset) in rtc_get_offset() argument
88 return rtc_device->ops->get_offset(rtc_device, offset); in rtc_get_offset()
91 static inline TEE_Result rtc_set_offset(long offset) in rtc_set_offset() argument
96 return rtc_device->ops->set_offset(rtc_device, offset); in rtc_set_offset()
120 static inline TEE_Result rtc_get_offset(long *offset __unused) in rtc_get_offset()
125 static inline TEE_Result rtc_set_offset(long offset __unused) in rtc_set_offset()
/optee_os-3.20.0/core/mm/
A Dtee_mm.c63 pool->entry->offset = ((size - 1) >> shift) + 1; in tee_mm_init()
168 (entry->offset - entry->next->offset - in tee_mm_alloc()
173 (entry->next->offset - entry->size - entry->offset)) in tee_mm_alloc()
189 if ((entry->offset << pool->shift) < size) { in tee_mm_alloc()
211 nn->offset = entry->offset - psize; in tee_mm_alloc()
213 nn->offset = entry->offset + entry->size; in tee_mm_alloc()
231 if (offshi > e->offset || in fit_in_gap()
238 if (offslo < (e->offset + e->size) || in fit_in_gap()
290 mm->offset = offslo; in tee_mm_alloc2()
379 if ((offset >= entry->offset) && in tee_mm_find()
[all …]
/optee_os-3.20.0/core/pta/bcm/
A Delog.c63 uint32_t offset = 0; in pta_elog_load_nitro_fw() local
83 offset = params[1].value.a; in pta_elog_load_nitro_fw()
91 if (ADD_OVERFLOW(sz, offset, &end_offs) || in pta_elog_load_nitro_fw()
97 src_vaddr = (vaddr_t)phys_to_virt((uintptr_t)src_paddr + offset, in pta_elog_load_nitro_fw()
142 uint32_t offset = 0; in pta_elog_nitro_crash_dump() local
154 offset = params[1].value.a; in pta_elog_nitro_crash_dump()
160 if (offset > MAX_NITRO_CRASH_DUMP_MEM_SIZE - DEFAULT_ELOG_BUFFER_SIZE) { in pta_elog_nitro_crash_dump()
166 src_vaddr = (vaddr_t)phys_to_virt((uintptr_t)src_paddr + offset, in pta_elog_nitro_crash_dump()
/optee_os-3.20.0/core/arch/arm/plat-imx/pm/
A Dgpcv2.c19 void imx_gpcv2_set_core_pgc(bool enable, uint32_t offset) in imx_gpcv2_set_core_pgc() argument
21 uint32_t val = io_read32(gpc_base() + offset) & (~GPC_PGC_PCG_MASK); in imx_gpcv2_set_core_pgc()
26 io_write32(gpc_base() + offset, val); in imx_gpcv2_set_core_pgc()
/optee_os-3.20.0/core/kernel/
A Dconsole.c45 int offset = 0; in find_chosen_node() local
50 offset = fdt_path_offset(fdt, "/secure-chosen"); in find_chosen_node()
52 if (offset < 0) in find_chosen_node()
53 offset = fdt_path_offset(fdt, "/chosen"); in find_chosen_node()
55 return offset; in find_chosen_node()
/optee_os-3.20.0/core/arch/riscv/include/kernel/
A Dthread_arch.h118 static inline void thread_get_user_kcode(struct mobj **mobj, size_t *offset, in thread_get_user_kcode() argument
122 *offset = 0; in thread_get_user_kcode()
127 static inline void thread_get_user_kdata(struct mobj **mobj, size_t *offset, in thread_get_user_kdata() argument
131 *offset = 0; in thread_get_user_kdata()
/optee_os-3.20.0/core/drivers/crypto/caam/include/
A Dcaam_utils_sgt.h49 uint32_t offset; member
103 unsigned int offset, bool final_e);
130 const struct caamsgtbuf *from, size_t offset,
147 void sgt_entry_offset(union caamsgt *sgt, unsigned int offset);

Completed in 29 milliseconds

123456