Home
last modified time | relevance | path

Searched refs:end (Results 1 – 25 of 97) sorted by relevance

1234

/rk3399_ARM-atf/plat/mediatek/mt8183/drivers/emi_mpu/
H A Demi_mpu.c25 unsigned long start, unsigned long end, in emi_mpu_set_region_protection() argument
31 if (end <= start) { in emi_mpu_set_region_protection()
39 end = EMI_PHY_OFFSET & 0xffff; in emi_mpu_set_region_protection()
43 end = end - EMI_PHY_OFFSET; in emi_mpu_set_region_protection()
48 end = end >> 16; in emi_mpu_set_region_protection()
54 mmio_write_32(EMI_MPU_EA0, end); in emi_mpu_set_region_protection()
61 mmio_write_32(EMI_MPU_EA1, end); in emi_mpu_set_region_protection()
68 mmio_write_32(EMI_MPU_EA2, end); in emi_mpu_set_region_protection()
75 mmio_write_32(EMI_MPU_EA3, end); in emi_mpu_set_region_protection()
82 mmio_write_32(EMI_MPU_EA4, end); in emi_mpu_set_region_protection()
[all …]
/rk3399_ARM-atf/plat/mediatek/mt8186/drivers/emi_mpu/
H A Demi_mpu.c21 static int _emi_mpu_set_protection(unsigned int start, unsigned int end, in _emi_mpu_set_protection() argument
29 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
30 end &= EMI_MPU_END_MASK; in _emi_mpu_set_protection()
52 if ((start >= DRAM_OFFSET) && (end >= start)) { in _emi_mpu_set_protection()
54 end -= DRAM_OFFSET; in _emi_mpu_set_protection()
61 mmio_write_32(EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
66 mmio_write_32(SUB_EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
74 unsigned int start, end; in emi_mpu_set_protection() local
86 end = (unsigned int)(region_info->end >> EMI_MPU_ALIGN_BITS) | (i << 24); in emi_mpu_set_protection()
88 if (_emi_mpu_set_protection(start, end, region_info->apc[i]) < 0) { in emi_mpu_set_protection()
[all …]
/rk3399_ARM-atf/plat/mediatek/mt8192/drivers/emi_mpu/
H A Demi_mpu.c19 unsigned long start, unsigned long end, in _emi_mpu_set_protection() argument
27 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
28 end &= 0x00FFFFFF; in _emi_mpu_set_protection()
37 if ((start >= DRAM_OFFSET) && (end >= start)) { in _emi_mpu_set_protection()
39 end -= DRAM_OFFSET; in _emi_mpu_set_protection()
42 start, end); in _emi_mpu_set_protection()
47 mmio_write_32(EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
74 unsigned long start, end; in emi_mpu_set_protection() local
84 end = (unsigned long)(region_info->end >> EMI_MPU_ALIGN_BITS) | in emi_mpu_set_protection()
86 _emi_mpu_set_protection(start, end, region_info->apc[i]); in emi_mpu_set_protection()
[all …]
/rk3399_ARM-atf/drivers/auth/mbedtls/
H A Dmbedtls_x509_parser.c77 const unsigned char *end; in get_ext() local
82 end = v3_ext.p + v3_ext.len; in get_ext()
93 ret = mbedtls_asn1_get_tag(&p, end, &len, in get_ext()
175 } while (p < end); in get_ext()
194 unsigned char *p, *end, *crt_end, *pk_end; in cert_parse() local
215 end = crt_end; in cert_parse()
223 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
225 if ((ret != 0) || ((p + len) != end)) { in cert_parse()
233 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in cert_parse()
238 end = p + len; in cert_parse()
[all …]
H A Dmbedtls_crypto.c99 unsigned char *p, *end; in verify_signature() local
104 end = (unsigned char *)(p + sig_alg_len); in verify_signature()
105 rc = mbedtls_asn1_get_alg(&p, end, &sig_oid, &sig_params); in verify_signature()
119 end = (unsigned char *)(p + pk_len); in verify_signature()
120 rc = mbedtls_pk_parse_subpubkey(&p, end, &pk); in verify_signature()
128 end = (unsigned char *)(p + sig_len); in verify_signature()
130 rc = mbedtls_asn1_get_bitstring_null(&p, end, &signature.len); in verify_signature()
131 if ((rc != 0) || ((size_t)(end - p) != signature.len)) { in verify_signature()
181 unsigned char *p, *end, *hash; in verify_hash() local
192 end = p + digest_info_len; in verify_hash()
[all …]
H A Dmbedtls_psa_crypto.c179 unsigned char *end = (unsigned char *) sig_alg + sig_alg_len; in construct_psa_alg() local
181 rc = mbedtls_asn1_get_alg(&p, end, &sig_alg_oid, &params); in construct_psa_alg()
184 goto end; in construct_psa_alg()
190 goto end; in construct_psa_alg()
210 end: in construct_psa_alg()
243 unsigned char *p, *end; in verify_signature() local
263 end = p + pk_len; in verify_signature()
264 rc = mbedtls_pk_parse_subpubkey(&p, end, &pk); in verify_signature()
301 end = p + sig_len; in verify_signature()
302 rc = mbedtls_asn1_get_bitstring_null(&p, end, &local_sig_len); in verify_signature()
[all …]
/rk3399_ARM-atf/plat/mediatek/mt8195/drivers/emi_mpu/
H A Demi_mpu.c23 static int _emi_mpu_set_protection(unsigned int start, unsigned int end, in _emi_mpu_set_protection() argument
31 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
32 end &= EMI_MPU_END_MASK; in _emi_mpu_set_protection()
54 if ((start >= DRAM_OFFSET) && (end >= start)) { in _emi_mpu_set_protection()
56 end -= DRAM_OFFSET; in _emi_mpu_set_protection()
63 mmio_write_32(EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
68 mmio_write_32(SUB_EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
76 unsigned int start, end; in emi_mpu_set_protection() local
88 end = (unsigned int)(region_info->end >> EMI_MPU_ALIGN_BITS) | in emi_mpu_set_protection()
90 _emi_mpu_set_protection(start, end, region_info->apc[i]); in emi_mpu_set_protection()
[all …]
/rk3399_ARM-atf/plat/mediatek/drivers/emi_mpu/
H A Demi_mpu_common.c25 static int _emi_mpu_set_protection(unsigned int start, unsigned int end, in _emi_mpu_set_protection() argument
33 dgroup = (end >> 24) & 0xFF; in _emi_mpu_set_protection()
34 end &= EMI_MPU_END_MASK; in _emi_mpu_set_protection()
56 if ((start >= DRAM_OFFSET) && (end >= start)) { in _emi_mpu_set_protection()
58 end -= DRAM_OFFSET; in _emi_mpu_set_protection()
65 mmio_write_32(EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
70 mmio_write_32(SUB_EMI_MPU_EA(region), end); in _emi_mpu_set_protection()
138 unsigned int start, end; in emi_mpu_set_protection() local
150 end = (unsigned int)(region_info->end >> EMI_MPU_ALIGN_BITS) | (i << 24); in emi_mpu_set_protection()
152 if (_emi_mpu_set_protection(start, end, region_info->apc[i]) < 0) { in emi_mpu_set_protection()
[all …]
/rk3399_ARM-atf/docs/resources/diagrams/plantuml/
H A Dio_dev_init_and_check.puml15 end note
30 end note
31 end opt
40 end note
55 end note
57 end opt
59 end alt
61 end group
H A Dio_dev_registration.puml17 end note
24 end note
35 end note
36 end opt
47 end note
48 end opt
51 end group
H A Dfconf_bl1_load_config.puml6 end box
12 end box
18 end box
29 end note
40 end note
60 end note
73 end note
H A Dfconf_bl2_populate.puml6 end box
12 end box
18 end box
26 end note
/rk3399_ARM-atf/tools/memory/src/memory/
H A Dimage.py19 end: Optional[int] = None variable in Region
41 if self.end is None:
47 return self.end - self.start
56 if self.end is None:
59 return self.limit - self.end
/rk3399_ARM-atf/lib/cpus/
H A Derrata_common.c37 struct erratum_entry *entry, *end; in find_erratum_entry()
45 end = cpu_ops->errata_list_end; in find_erratum_entry()
46 assert(end != NULL); in find_erratum_entry()
48 end--; /* point to the last erratum entry of the queried cpu */ in find_erratum_entry()
50 while ((entry <= end)) { in find_erratum_entry()
35 struct erratum_entry *entry, *end; find_erratum_entry() local
/rk3399_ARM-atf/plat/mediatek/drivers/emi_mpu/mt8188/
H A Demi_mpu.c19 region_info.end = TZRAM_BASE + TZRAM_SIZE - 1; in set_emi_mpu_regions()
31 region_info.end = BL32_REGION_BASE + BL32_REGION_SIZE - 1; in set_emi_mpu_regions()
43 region_info.end = SCP_CORE0_REGION_BASE + SCP_CORE0_REGION_SIZE - 1; in set_emi_mpu_regions()
54 region_info.end = SCP_CORE1_REGION_BASE + SCP_CORE1_REGION_SIZE - 1; in set_emi_mpu_regions()
65 region_info.end = DSP_PROTECT_REGION_BASE + DSP_PROTECT_REGION_SIZE - 1; in set_emi_mpu_regions()
76 region_info.end = DRAM_START_ADDR + DRAM_MAX_SIZE - 1; in set_emi_mpu_regions()
91 region_info.end = (unsigned long long)(APUSYS_SEC_BUF_PA + APUSYS_SEC_BUF_SZ) - 1; in set_apu_emi_mpu_region()
137 region_info.end = phys_addr + zone_size - 1; in emi_mpu_optee_handler()
/rk3399_ARM-atf/plat/st/common/
H A Dstm32mp_crypto_lib.c87 unsigned char *p, *end; in get_plain_pk_from_asn1() local
97 end = (unsigned char *)(p + pk_len); in get_plain_pk_from_asn1()
99 ret = mbedtls_asn1_get_tag(&p, end, len, in get_plain_pk_from_asn1()
105 end = p + *len; in get_plain_pk_from_asn1()
106 ret = mbedtls_asn1_get_alg(&p, end, &alg_oid, &alg_params); in get_plain_pk_from_asn1()
125 ret = mbedtls_asn1_get_bitstring_null(&p, end, len); in get_plain_pk_from_asn1()
264 unsigned char *p, *end; in get_plain_digest_from_asn1() local
271 end = p + digest_len; in get_plain_digest_from_asn1()
272 ret = mbedtls_asn1_get_tag(&p, end, &len, MBEDTLS_ASN1_CONSTRUCTED | in get_plain_digest_from_asn1()
279 ret = mbedtls_asn1_get_alg(&p, end, &hash_oid, &params); in get_plain_digest_from_asn1()
[all …]
/rk3399_ARM-atf/lib/extensions/ras/
H A Dras_common.c129 int start, end, mid, ret __unused; in ras_interrupt_handler() local
142 end = (int)ras_interrupt_mappings.num_intrs - 1; in ras_interrupt_handler()
143 while (start <= end) { in ras_interrupt_handler()
144 mid = ((end + start) / 2); in ras_interrupt_handler()
150 end = mid - 1; in ras_interrupt_handler()
/rk3399_ARM-atf/lib/libfdt/
H A Dfdt_ro.c252 const char *end = path + namelen; in fdt_path_offset_namelen() local
263 const char *q = memchr(path, '/', end - p); in fdt_path_offset_namelen()
266 q = end; in fdt_path_offset_namelen()
276 while (p < end) { in fdt_path_offset_namelen()
281 if (p == end) in fdt_path_offset_namelen()
284 q = memchr(p, '/', end - p); in fdt_path_offset_namelen()
286 q = end; in fdt_path_offset_namelen()
754 const char *list, *end; in fdt_stringlist_count() local
761 end = list + length; in fdt_stringlist_count()
763 while (list < end) { in fdt_stringlist_count()
[all …]
/rk3399_ARM-atf/plat/socionext/uniphier/
H A Duniphier_console_setup.c51 uintptr_t base, end; in uniphier_console_get_base() local
56 end = base + UNIPHIER_UART_OFFSET * UNIPHIER_UART_NR_PORTS; in uniphier_console_get_base()
58 while (base < end) { in uniphier_console_get_base()
/rk3399_ARM-atf/include/services/
H A Drmm_el3_token_sign.h19 #define SET_MEMBER(member, start, end) \ argument
22 unsigned char reserved##end[((end) - (start))]; \
/rk3399_ARM-atf/plat/imx/imx8qx/
H A Dimx8qx_bl31_setup.c200 sc_faddr_t start, end; in imx8_partition_resources() local
249 err = sc_rm_get_memreg_info(ipc_handle, mr, &start, &end); in imx8_partition_resources()
253 NOTICE("Memreg %u 0x%" PRIx64 " -- 0x%" PRIx64 "\n", mr, start, end); in imx8_partition_resources()
254 if (BL31_BASE >= start && (BL31_LIMIT - 1) <= end) { in imx8_partition_resources()
260 err %d\n", start, end, err); in imx8_partition_resources()
266 err = sc_rm_get_memreg_info(ipc_handle, mr_record, &start, &end); in imx8_partition_resources()
269 if ((BL31_LIMIT - 1) < end) { in imx8_partition_resources()
270 err = sc_rm_memreg_alloc(ipc_handle, &mr, BL31_LIMIT, end); in imx8_partition_resources()
273 (sc_faddr_t)BL31_LIMIT, end); in imx8_partition_resources()
277 (sc_faddr_t)BL31_LIMIT, end); in imx8_partition_resources()
/rk3399_ARM-atf/lib/libc/
H A Dmemmove.c24 const char *end = dst; in memmove() local
27 while (d != end) { in memmove()
/rk3399_ARM-atf/plat/imx/imx8qm/
H A Dimx8qm_bl31_setup.c179 sc_faddr_t start, end; in mx8_partition_resources() local
263 err = sc_rm_get_memreg_info(ipc_handle, mr, &start, &end); in mx8_partition_resources()
266 NOTICE("Memreg %u 0x%" PRIx64 " -- 0x%" PRIx64 "\n", mr, start, end); in mx8_partition_resources()
267 if (BL31_BASE >= start && (BL31_LIMIT - 1) <= end) { in mx8_partition_resources()
273 err %d\n", start, end, err); in mx8_partition_resources()
279 err = sc_rm_get_memreg_info(ipc_handle, mr_record, &start, &end); in mx8_partition_resources()
282 if ((BL31_LIMIT - 1) < end) { in mx8_partition_resources()
283 err = sc_rm_memreg_alloc(ipc_handle, &mr, BL31_LIMIT, end); in mx8_partition_resources()
286 (sc_faddr_t)BL31_LIMIT, end); in mx8_partition_resources()
290 (sc_faddr_t)BL31_LIMIT, end); in mx8_partition_resources()
/rk3399_ARM-atf/plat/rockchip/common/
H A Dplat_pm_helpers.c24 #define RGN_LEN(_rgn) (((_rgn)->end - (_rgn)->start) / (_rgn)->stride + 1)
98 for (j = 0, addr = r->start; addr <= r->end; addr += r->stride, j++) in rockchip_reg_rgn_save()
118 for (j = 0, addr = r->start; addr <= r->end; addr += r->stride, j++) in rockchip_reg_rgn_restore()
141 for (addr = r->end; addr >= r->start; addr -= r->stride, j--) in rockchip_reg_rgn_restore_reverse()
211 rockchip_regs_dump(0x0, r->start, r->end, r->stride); in rockchip_dump_reg_rgns()
/rk3399_ARM-atf/plat/rockchip/common/include/
H A Dplat_pm_helpers.h23 .end = (_base) + (_end), \
32 uint32_t end; member

1234