Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 21 of 21) sorted by relevance

/optee_os-3.20.0/core/lib/libfdt/
A Dfdt_addresses.c61 uint8_t data[sizeof(fdt64_t) * 2], *prop; in fdt_appendprop_addrrange() local
74 prop = data; in fdt_appendprop_addrrange()
79 fdt32_st(prop, (uint32_t)addr); in fdt_appendprop_addrrange()
81 fdt64_st(prop, addr); in fdt_appendprop_addrrange()
87 prop += addr_cells * sizeof(fdt32_t); in fdt_appendprop_addrrange()
92 fdt32_st(prop, (uint32_t)size); in fdt_appendprop_addrrange()
94 fdt64_st(prop, size); in fdt_appendprop_addrrange()
A Dfdt_rw.c177 if (!*prop) in fdt_resize_property_()
184 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_()
216 (*prop)->len = cpu_to_fdt32(len); in fdt_add_property_()
246 struct fdt_property *prop; in fdt_setprop_placeholder() local
257 *prop_data = prop->data; in fdt_setprop_placeholder()
279 struct fdt_property *prop; in fdt_appendprop() local
285 if (prop) { in fdt_appendprop()
292 prop->len = cpu_to_fdt32(newlen); in fdt_appendprop()
298 memcpy(prop->data, val, len); in fdt_appendprop()
305 struct fdt_property *prop; in fdt_delprop() local
[all …]
A Dfdt_ro.c360 return prop; in fdt_get_property_by_offset_()
399 return prop; in fdt_get_property_namelen_()
443 if (!prop) in fdt_getprop_namelen()
449 return prop->data + 4; in fdt_getprop_namelen()
450 return prop->data; in fdt_getprop_namelen()
459 if (!prop) in fdt_getprop_by_offset()
478 return prop->data; in fdt_getprop_by_offset()
802 const void *prop; in fdt_node_check_compatible() local
806 if (!prop) in fdt_node_check_compatible()
844 const void *prop; in fdt_check_full() local
[all …]
A Dfdt_wip.c61 struct fdt_property *prop; in fdt_nop_property() local
64 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); in fdt_nop_property()
65 if (!prop) in fdt_nop_property()
68 fdt_nop_region_(prop, len + sizeof(*prop)); in fdt_nop_property()
A Dfdt_sw.c287 struct fdt_property *prop; in fdt_property_placeholder() local
303 prop = fdt_grab_space_(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property_placeholder()
304 if (! prop) { in fdt_property_placeholder()
310 prop->tag = cpu_to_fdt32(FDT_PROP); in fdt_property_placeholder()
311 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property_placeholder()
312 prop->len = cpu_to_fdt32(len); in fdt_property_placeholder()
313 *valp = prop->data; in fdt_property_placeholder()
355 struct fdt_property *prop = in fdt_finish() local
359 nameoff = fdt32_to_cpu(prop->nameoff); in fdt_finish()
361 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_finish()
A Dfdt_overlay.c564 const void *prop; in overlay_apply_node() local
568 prop = fdt_getprop_by_offset(fdto, property, &name, in overlay_apply_node()
575 ret = fdt_setprop(fdt, target, name, prop, prop_len); in overlay_apply_node()
696 int root_sym, ov_sym, prop, path_len, fragment, target; in overlay_symbol_update() local
724 fdt_for_each_property_offset(prop, fdto, ov_sym) { in overlay_symbol_update()
725 path = fdt_getprop_by_offset(fdto, prop, &name, &path_len); in overlay_symbol_update()
/optee_os-3.20.0/core/kernel/
A Dsecstor_ta.c17 const struct tee_tadb_property *prop; in secstor_ta_open() local
22 prop = tee_tadb_ta_get_property(ta); in secstor_ta_open()
24 l = prop->custom_size; in secstor_ta_open()
28 if (l != prop->custom_size) { in secstor_ta_open()
45 const struct tee_tadb_property *prop = tee_tadb_ta_get_property(ta); in secstor_ta_get_size() local
47 *size = prop->bin_size; in secstor_ta_get_size()
A Ddt.c38 const void *prop; in dt_have_prop() local
40 prop = fdt_getprop(fdt, offs, propname, NULL); in dt_have_prop()
42 return prop; in dt_have_prop()
47 const char *prop = NULL; in dt_disable_status() local
50 prop = fdt_getprop(fdt, node, "status", &len); in dt_disable_status()
51 if (!prop) { in dt_disable_status()
236 const char *prop; in _fdt_get_status() local
240 prop = fdt_getprop(fdt, offs, "status", &len); in _fdt_get_status()
241 if (!prop || is_okay(prop, len)) { in _fdt_get_status()
247 if (!prop) { in _fdt_get_status()
[all …]
A Dconsole.c61 const struct fdt_property *prop; in get_console_node_from_dt() local
76 prop = fdt_get_property(fdt, offs, "stdout-path", NULL); in get_console_node_from_dt()
77 if (!prop) { in get_console_node_from_dt()
87 stdout_data = nex_strdup(prop->data); in get_console_node_from_dt()
A Dinterrupt.c35 const uint32_t *prop = NULL; in dt_get_irq_type_prio() local
42 prop = fdt_getprop(fdt, node, "interrupts", &count); in dt_get_irq_type_prio()
43 if (!prop) in dt_get_irq_type_prio()
46 return itr_chip->dt_get_irq(prop, count, type, prio); in dt_get_irq_type_prio()
A Ddt_driver.c222 const uint32_t *prop, in device_from_provider_prop() argument
238 pargs->args[n] = fdt32_to_cpu(prop[n + 1]); in device_from_provider_prop()
258 const uint32_t *prop = NULL; in dt_driver_device_from_node_idx_prop() local
261 prop = fdt_getprop(fdt, nodeoffset, prop_name, &len); in dt_driver_device_from_node_idx_prop()
262 if (!prop) { in dt_driver_device_from_node_idx_prop()
271 phandle = fdt32_to_cpu(prop[idx32]); in dt_driver_device_from_node_idx_prop()
294 return device_from_provider_prop(prv, prop + idx32, res); in dt_driver_device_from_node_idx_prop()
/optee_os-3.20.0/core/drivers/
A Datmel_shdwc.c89 const uint32_t *prop = NULL; in at91_shdwc_get_wakeup_input() local
97 prop = fdt_getprop(fdt, child, "reg", &len); in at91_shdwc_get_wakeup_input()
98 if (!prop || len != sizeof(uint32_t)) { in at91_shdwc_get_wakeup_input()
103 wk_input = fdt32_to_cpu(*prop); in at91_shdwc_get_wakeup_input()
121 const uint32_t *prop = NULL; in at91_shdwc_dt_configure() local
127 prop = fdt_getprop(fdt, np, "debounce-delay-us", &len); in at91_shdwc_dt_configure()
128 if (prop && len == sizeof(uint32_t)) { in at91_shdwc_dt_configure()
129 tmp = fdt32_to_cpu(*prop); in at91_shdwc_dt_configure()
A Datmel_piobu.c293 const uint32_t *prop = NULL; in secumod_hw_init() local
310 prop = fdt_getprop(fdt, node, "gpios", &len); in secumod_hw_init()
311 if (!prop) in secumod_hw_init()
316 gpio_pin = fdt32_to_cpu(prop[i]); in secumod_hw_init()
317 config = fdt32_to_cpu(prop[i + 1]); in secumod_hw_init()
/optee_os-3.20.0/core/drivers/tpm2/
A Dtpm2_chip.c60 uint8_t *prop = NULL; in tpm2_get_tpm_property() local
68 prop = malloc(prop_len); in tpm2_get_tpm_property()
69 if (!prop) in tpm2_get_tpm_property()
72 ret = tpm2_get_capability(TPM2_CAP_TPM_PROPERTIES, property, 1, prop, in tpm2_get_tpm_property()
77 *val = get_be32(prop + properties_offset); in tpm2_get_tpm_property()
79 free(prop); in tpm2_get_tpm_property()
A Dtpm2_cmd.c152 uint32_t prop_cnt, void *prop, in tpm2_get_capability() argument
162 if (!prop || !prop_len || !*prop_len) in tpm2_get_capability()
193 memcpy(prop, &resp_buf[prop_offset], resp_len - prop_offset); in tpm2_get_capability()
/optee_os-3.20.0/core/drivers/clk/
A Dclk_dt.c59 const uint32_t *prop = NULL; in parse_clock_property() local
62 prop = fdt_getprop(fdt, node, "clocks", &len); in parse_clock_property()
63 if (!prop) in parse_clock_property()
68 phandle = fdt32_to_cpu(prop[idx]); in parse_clock_property()
/optee_os-3.20.0/core/tee/
A Dtadb.c46 struct tee_tadb_property prop; member
284 const size_t enc_size = entry->prop.custom_size + entry->prop.bin_size; in tadb_authenc_init()
346 if (is_null_uuid(&entry.prop.uuid)) in populate_files()
413 ta->entry.prop = *property; in tee_tadb_ta_create()
518 if (!memcmp(&entry.prop.uuid, uuid, sizeof(*uuid))) { in find_ent()
567 res = find_ent(ta->db, &ta->entry.prop.uuid, &idx, &old_ent); in tee_tadb_ta_close_and_commit()
678 return &ta->entry.prop; in tee_tadb_ta_get_property()
699 const size_t sz = ta->entry.prop.custom_size + ta->entry.prop.bin_size; in ta_load()
725 const size_t sz = ta->entry.prop.custom_size + ta->entry.prop.bin_size; in tee_tadb_ta_read()
A Dtee_svc.c454 const struct tee_props *prop = NULL; in syscall_get_property() local
459 prop = get_prop_struct(prop_set, index); in syscall_get_property()
460 if (!prop) in syscall_get_property()
465 res = copy_to_user(prop_type, &prop->prop_type, in syscall_get_property()
477 if (prop->get_prop_func) { in syscall_get_property()
479 res = prop->get_prop_func(sess, buf, &klen_size); in syscall_get_property()
483 if (klen < prop->len) in syscall_get_property()
486 res = copy_to_user(buf, prop->data, prop->len); in syscall_get_property()
487 res2 = copy_to_user(blen, &prop->len, sizeof(*blen)); in syscall_get_property()
501 elen = strlen(prop->name) + 1; in syscall_get_property()
[all …]
/optee_os-3.20.0/core/pta/
A Dsecstor_ta_mgmt.c23 const struct tee_tadb_property *prop; in check_install_conflict() local
32 prop = tee_tadb_ta_get_property(ta); in check_install_conflict()
33 if (prop->version > bs_ta->ta_version) in check_install_conflict()
/optee_os-3.20.0/core/arch/arm/kernel/
A Dboot.c871 const char *prop; in check_node_compat_prefix() local
873 prop = fdt_getprop(dt->blob, offs, "compatible", &plen); in check_node_compat_prefix()
874 if (!prop) in check_node_compat_prefix()
878 if (memcmp(prop, prefix, prefix_len) == 0) in check_node_compat_prefix()
881 l = strlen(prop) + 1; in check_node_compat_prefix()
882 prop += l; in check_node_compat_prefix()
1033 const uint8_t *prop = NULL; in get_nsec_memory_helper() local
1064 prop = fdt_getprop(fdt, offs, "reg", &len); in get_nsec_memory_helper()
1065 if (!prop) in get_nsec_memory_helper()
1070 a = get_dt_val_and_advance(prop, &prop_offs, addr_size); in get_nsec_memory_helper()
[all …]
/optee_os-3.20.0/ldelf/
A Dta_elf.c967 Elf_Prop *prop = (void *)(desc + prop_offset); in parse_property_segment() local
968 size_t data_offset = prop_offset + sizeof(*prop); in parse_property_segment()
975 if (prop->pr_type == GNU_PROPERTY_AARCH64_FEATURE_1_AND) { in parse_property_segment()
979 prop->pr_datasz != sizeof(*pr_data)) in parse_property_segment()
988 prop_offset += ROUNDUP(sizeof(*prop) + prop->pr_datasz, align); in parse_property_segment()

Completed in 47 milliseconds