Home
last modified time | relevance | path

Searched refs:str (Results 1 – 23 of 23) sorted by relevance

/hafnium-2.8-rc0/src/
A Dstring.c14 void string_init_empty(struct string *str) in string_init_empty() argument
17 str->data[0] = '\0'; in string_init_empty()
25 enum string_return_code string_init(struct string *str, in string_init() argument
39 if (size > sizeof(str->data)) { in string_init()
43 memcpy_s(str->data, sizeof(str->data), base, size); in string_init()
47 bool string_is_empty(const struct string *str) in string_is_empty() argument
49 return str->data[0] == '\0'; in string_is_empty()
52 const char *string_data(const struct string *str) in string_data() argument
54 return str->data; in string_data()
66 return (len <= sizeof(str->data)) && in string_eq()
[all …]
A Dstring_test.cc19 struct string str; in TEST() local
23 string_init_empty(&str); in TEST()
24 ASSERT_TRUE(string_is_empty(&str)); in TEST()
25 ASSERT_STREQ(string_data(&str), ""); in TEST()
28 ASSERT_EQ(string_init(&str, &it), STRING_SUCCESS); in TEST()
29 ASSERT_FALSE(string_is_empty(&str)); in TEST()
30 ASSERT_STRNE(string_data(&str), ""); in TEST()
31 ASSERT_STREQ(string_data(&str), "test"); in TEST()
36 struct string str; in TEST() local
46 struct string str; in TEST() local
[all …]
A Ddlog.c82 static size_t print_raw_string(const char *str) in print_raw_string() argument
84 const char *c = str; in print_raw_string()
90 return c - str; in print_raw_string()
102 static void print_string(const char *str, const char *suffix, size_t width, in print_string() argument
105 size_t len = suffix - str; in print_string()
108 while (str != suffix) { in print_string()
109 dlog_putchar(*str++); in print_string()
287 char *str = va_arg(args, char *); in vdlog() local
289 print_string(str, str, w, flags, ' '); in vdlog()
A Dmemiter.c53 bool memiter_iseq(const struct memiter *it, const char *str) in memiter_iseq() argument
56 size_t len = strnlen_s(str, it_len + 1); in memiter_iseq()
62 return memcmp(it->next, str, len) == 0; in memiter_iseq()
69 bool memiter_parse_str(struct memiter *it, struct memiter *str) in memiter_parse_str() argument
77 str->next = it->next; in memiter_parse_str()
84 str->limit = it->next; in memiter_parse_str()
A Dstd.c128 size_t strnlen_s(const char *str, size_t strsz) in strnlen_s() argument
130 if (str == NULL) { in strnlen_s()
135 if (str[i] == '\0') { in strnlen_s()
A Dmanifest.c115 static void generate_vm_node_name(struct string *str, ffa_vm_id_t vm_id) in generate_vm_node_name() argument
119 char *base = str->data; in generate_vm_node_name()
A Dmanifest_test.cc138 exec(program, dtc_args, dts_.str(), &dtc_stdout); in Build()
144 std::cerr << dts_.str() << std::endl; in Dump()
/hafnium-2.8-rc0/inc/hf/
A Dstring.h43 #define STRING_INIT(str) ((struct string){.data = str}) argument
45 enum string_return_code string_init(struct string *str,
47 void string_init_empty(struct string *str);
48 bool string_is_empty(const struct string *str);
49 const char *string_data(const struct string *str);
50 bool string_eq(const struct string *str, const struct memiter *data);
A Dmemiter.h22 bool memiter_parse_str(struct memiter *it, struct memiter *str);
23 bool memiter_iseq(const struct memiter *it, const char *str);
A Dstd.h35 size_t strnlen_s(const char *str, size_t strsz);
/hafnium-2.8-rc0/test/hftest/
A Dctrl_uart.c20 static void write(const char *str) in write() argument
22 while (*str != '\0') { in write()
23 plat_console_putchar(*str); in write()
24 str++; in write()
28 static bool read(char *buf, size_t max_len, struct memiter *str) in read() argument
36 memiter_init(str, buf, len); in read()
A Dhftest.py69 def get_vm_node_from_manifest(dts : str): argument
77 def correct_vm_node(dts: str, node_index : int): argument
287 def create_dt(self, run_name : str): argument
300 def create_uart_log(self, run_name : str, file_name : str): argument
564 return str(0x04010000)
568 return str(os.path.join(FVP_PREBUILT_TFA_ROOT, "bl31_spmd.bin"))
737 xml_node.set("tests", str(tests_run + tests_skipped))
738 xml_node.set("failures", str(tests_failed))
739 xml_node.set("skipped", str(tests_skipped))
740 xml_node.set("time", str(elapsed_time))
[all …]
/hafnium-2.8-rc0/src/arch/aarch64/
A Dmsr.h22 #define str(s) str_(s) macro
31 __asm__ volatile("mrs %0, " str(name) : "=r"(__v)); \
40 __asm__ volatile("msr " str(name) ", %x0" \
A Dentry.S59 str x28, [x26, x25]
A Dexception_macros.S48 str x18, [sp, #8 * 18]
/hafnium-2.8-rc0/build/image/
A Dsptool.py26 def split_dtb_bin(i : str): argument
38 def __init__(self, pm_path : str, img_path : str, pm_offset: int, argument
101 def generate(self, f_out : str): argument
A Dgenerate_partitions_json.py43 def split_partition_arg(sp_arg : str): argument
/hafnium-2.8-rc0/src/arch/aarch64/boot_flow/
A Dlinux.S15 str x0, [x25]
/hafnium-2.8-rc0/build/
A Dlicense.py33 year = str(datetime.datetime.now().year)
/hafnium-2.8-rc0/src/arch/aarch64/hypervisor/
A Dhypervisor_entry.S48 str x30, [x28, CPU_ID]
100 str x0, [x2]
A Dexceptions.S25 str x18, [sp, #-16]!
42 str x0, [x18, #VCPU_REGS + 8 * 18]
579 sve_predicate_op str, x20
583 str p0, [x18]
587 sve_op_vectors str, x20
/hafnium-2.8-rc0/test/inc/test/
A Dhftest_impl.h30 #define HFTEST_STR(str) #str argument
/hafnium-2.8-rc0/src/arch/aarch64/hftest/
A Del0_entry.S89 str x28, [x26, x25]

Completed in 32 milliseconds