Home
last modified time | relevance | path

Searched refs:id (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/SCP-firmware-master/framework/test/
A Dtest_fwk_id_build.c15 fwk_id_t id = FWK_ID_MODULE_INIT(42); in test_overlapping_fields() local
17 assert(id.common.type == id.element.type); in test_overlapping_fields()
18 assert(id.common.type == id.api.type); in test_overlapping_fields()
19 assert(id.common.type == id.event.type); in test_overlapping_fields()
20 assert(id.common.type == id.notification.type); in test_overlapping_fields()
21 assert(id.common.module_idx == id.element.module_idx); in test_overlapping_fields()
22 assert(id.common.module_idx == id.api.module_idx); in test_overlapping_fields()
23 assert(id.common.module_idx == id.event.module_idx); in test_overlapping_fields()
24 assert(id.common.module_idx == id.notification.module_idx); in test_overlapping_fields()
53 assert(id.api.module_idx == 42); in test_build_api()
[all …]
A Dtest_fwk_id_type.c15 fwk_id_t id = FWK_ID_MODULE(42); in test_is_module_id() local
22 fwk_id_t id = FWK_ID_ELEMENT(42, 58); in test_is_element_id() local
29 fwk_id_t id = FWK_ID_API(42, 14); in test_is_api_id() local
31 assert(fwk_id_is_type(id, FWK_ID_TYPE_API)); in test_is_api_id()
36 fwk_id_t id = FWK_ID_EVENT(42, 14); in test_is_event_id() local
43 fwk_id_t id = FWK_ID_NOTIFICATION(42, 14); in test_is_notification_id() local
50 fwk_id_t id = FWK_ID_MODULE(42); in test_type_of_module_id() local
57 fwk_id_t id = FWK_ID_ELEMENT(42, 58); in test_type_of_element_id() local
64 fwk_id_t id = FWK_ID_API(42, 14); in test_type_of_api_id() local
71 fwk_id_t id = FWK_ID_EVENT(42, 56); in test_type_of_event_id() local
[all …]
A Dtest_fwk_id_get_idx.c17 fwk_id_t id = FWK_ID_MODULE(42); in test_module_idx_of_module_id() local
19 assert(fwk_id_get_module_idx(id) == 42); in test_module_idx_of_module_id()
24 fwk_id_t id = FWK_ID_ELEMENT(42, 45); in test_element_idx_of_element_id() local
26 assert(fwk_id_get_element_idx(id) == 45); in test_element_idx_of_element_id()
31 fwk_id_t id = FWK_ID_API(42, 10); in test_api_idx_of_api_id() local
33 assert(fwk_id_get_api_idx(id) == 10); in test_api_idx_of_api_id()
38 fwk_id_t id = FWK_ID_EVENT(42, 58); in test_event_idx_of_event_id() local
40 assert(fwk_id_get_event_idx(id) == 58); in test_event_idx_of_event_id()
45 fwk_id_t id = FWK_ID_NOTIFICATION(42, 58); in test_notification_idx_of_notification_id() local
47 assert(fwk_id_get_notification_idx(id) == 58); in test_notification_idx_of_notification_id()
A Dtest_fwk_id_format.c18 fwk_id_t id = FWK_ID_MODULE(42); in test_format_module_id() local
21 snprintf(buffer, sizeof(buffer), "%s", FWK_ID_STR(id)); in test_format_module_id()
28 fwk_id_t id = FWK_ID_ELEMENT(42, 58); in test_format_element_id() local
31 snprintf(buffer, sizeof(buffer), "%s", FWK_ID_STR(id)); in test_format_element_id()
38 fwk_id_t id = FWK_ID_API(42, 14); in test_format_api_id() local
41 snprintf(buffer, sizeof(buffer), "%s", FWK_ID_STR(id)); in test_format_api_id()
48 fwk_id_t id = FWK_ID_EVENT(42, 56); in test_format_event_id() local
51 snprintf(buffer, sizeof(buffer), "%s", FWK_ID_STR(id)); in test_format_event_id()
58 fwk_id_t id = FWK_ID_NOTIFICATION(42, 56); in test_format_notification_id() local
61 snprintf(buffer, sizeof(buffer), "%s", FWK_ID_STR(id)); in test_format_notification_id()
[all …]
A Dtest_fwk_module.c126 (void) id; in bind()
132 static int start(fwk_id_t id) in start() argument
134 (void) id; in start()
300 fwk_id_t id; in test_fwk_module_is_valid_module_id() local
319 id = ELEM0_ID; in test_fwk_module_is_valid_module_id()
326 fwk_id_t id; in test_fwk_module_is_valid_event_id() local
330 id = EVENT0_ID; in test_fwk_module_is_valid_event_id()
335 id = EVENT2_ID; in test_fwk_module_is_valid_event_id()
362 fwk_id_t id; in test_fwk_module_is_valid_notification_id() local
366 id = NOTIFICATION0_ID; in test_fwk_module_is_valid_notification_id()
[all …]
/SCP-firmware-master/framework/src/
A Dfwk_id.c54 indices[0] = id.common.module_idx; in fwk_id_format()
63 indices[1] = id.element.element_idx; in fwk_id_format()
68 indices[1] = id.api.api_idx; in fwk_id_format()
73 indices[1] = id.event.event_idx; in fwk_id_format()
90 types[id.common.type], in fwk_id_format()
136 return id.common.type == type; in fwk_id_is_type()
139 bool fwk_id_type_is_valid(fwk_id_t id) in fwk_id_type_is_valid() argument
154 return (enum fwk_id_type)id.common.type; in fwk_id_get_type()
171 fwk_id_t fwk_id_build_module_id(fwk_id_t id) in fwk_id_build_module_id() argument
192 id.common.module_idx, id.element.element_idx, sub_element_idx); in fwk_id_build_sub_element_id()
[all …]
A Dfwk_delayed_resp.c27 static int check_api_call(fwk_id_t id, void *data) in check_api_call() argument
33 if ((!fwk_module_is_valid_entity_id(id)) || (data == NULL)) { in check_api_call()
43 struct fwk_slist *__fwk_get_delayed_response_list(fwk_id_t id) in __fwk_get_delayed_response_list() argument
45 if (fwk_id_is_type(id, FWK_ID_TYPE_MODULE)) { in __fwk_get_delayed_response_list()
46 return &fwk_module_get_ctx(id)->delayed_response_list; in __fwk_get_delayed_response_list()
49 return &fwk_module_get_element_ctx(id)->delayed_response_list; in __fwk_get_delayed_response_list()
57 delayed_response_list = __fwk_get_delayed_response_list(id); in __fwk_search_delayed_response()
80 fwk_id_t id, in fwk_get_delayed_response() argument
87 status = check_api_call(id, event); in fwk_get_delayed_response()
113 status = check_api_call(id, is_empty); in fwk_is_delayed_response_list_empty()
[all …]
A Dfwk_module.c141 fwk_id_t id = FWK_ID_MODULE(i); in fwk_module_init() local
147 .id = id, in fwk_module_init()
260 status = desc->post_init(ctx->id); in fwk_module_init_module()
592 module_idx = fwk_id_get_module_idx(id); in fwk_module_is_valid_element_id()
598 fwk_id_get_element_idx(id) < in fwk_module_is_valid_element_id()
624 fwk_id_get_sub_element_idx(id) < in fwk_module_is_valid_sub_element_id()
632 switch (fwk_id_get_type(id)) { in fwk_module_is_valid_entity_id()
666 fwk_id_get_api_idx(id) < in fwk_module_is_valid_api_id()
684 fwk_id_get_event_idx(id) < in fwk_module_is_valid_event_id()
703 fwk_id_get_notification_idx(id) < in fwk_module_is_valid_notification_id()
[all …]
/SCP-firmware-master/product/synquacer/src/
A Ddevice_nor_s25.c22 fwk_id_t id, in set_read_command() argument
34 fwk_id_t id, in set_write_command() argument
64 fwk_id_t id, in s25_read_status_reg() argument
79 fwk_id_t id, in s25_read_config_reg() argument
94 fwk_id_t id, in s25_write_config_reg() argument
117 fwk_id_t id, in s25_read_bank_reg() argument
132 fwk_id_t id, in s25_write_bank_reg() argument
150 fwk_id_t id, in s25_nor_set_io_protocol() argument
190 fwk_id_t id, in s25_nor_set_4byte_addr_mode() argument
224 fwk_id_t id, in s25_nor_get_program_result() argument
[all …]
A Ddevice_nor_mt25.c22 fwk_id_t id, in set_read_command() argument
30 return qspi_api->set_read_command(id, &command); in set_read_command()
34 fwk_id_t id, in set_write_command() argument
42 return qspi_api->set_write_command(id, &command); in set_write_command()
64 fwk_id_t id, in mt25_read_nv_config_reg() argument
79 fwk_id_t id, in mt25_write_nv_config_reg() argument
94 fwk_id_t id, in mt25_read_flag_status_reg() argument
112 fwk_id_t id, in mt25_nor_set_io_protocol() argument
136 if (!mt25_is_write_enable(id, qspi_api)) { in mt25_nor_set_io_protocol()
152 fwk_id_t id, in mt25_nor_get_program_result() argument
[all …]
A Ddevice_nor_w25.c22 fwk_id_t id, in set_read_command() argument
30 return qspi_api->set_read_command(id, &command); in set_read_command()
34 fwk_id_t id, in set_write_command() argument
42 return qspi_api->set_write_command(id, &command); in set_write_command()
55 status = qspi_api->read(id, 0, &buf, sizeof(buf)); in w25_is_write_enable()
64 fwk_id_t id, in w25_read_status_reg_2() argument
79 fwk_id_t id, in w25_write_status_reg_2() argument
90 return qspi_api->write(id, 0, &buf, sizeof(buf)); in w25_write_status_reg_2()
97 fwk_id_t id, in w25_nor_set_io_protocol() argument
121 if (!w25_is_write_enable(id, qspi_api)) { in w25_nor_set_io_protocol()
[all …]
A Ddevice_nor_mx25.c22 fwk_id_t id, in set_read_command() argument
30 return qspi_api->set_read_command(id, &command); in set_read_command()
34 fwk_id_t id, in set_write_command() argument
42 return qspi_api->set_write_command(id, &command); in set_write_command()
46 fwk_id_t id, in mx25_read_status_reg() argument
61 fwk_id_t id, in mx25_write_status_reg() argument
76 fwk_id_t id, in mx25_read_security_reg() argument
94 fwk_id_t id, in mx25_nor_set_io_protocol() argument
134 fwk_id_t id, in mx25_nor_set_4byte_addr_mode() argument
151 fwk_id_t id, in mx25_nor_get_program_result() argument
[all …]
/SCP-firmware-master/debugger/src/cli/
A Dcli_commands_checkpoint.c36 uint32_t id; in checkpoint_f() local
49 id = strtoul(argv[1], NULL, 0); in checkpoint_f()
51 if (id >= CHECKPOINT_NUM) { in checkpoint_f()
55 checkpoint_table[id].tag[0] = 0; in checkpoint_f()
56 checkpoint_table[id].bypass = run_cnt; in checkpoint_f()
61 id = strtoul(argv[1], NULL, 0); in checkpoint_f()
62 if (id >= CHECKPOINT_NUM) { in checkpoint_f()
72 id = strtoul(argv[1], NULL, 0); in checkpoint_f()
73 if (id >= CHECKPOINT_NUM) { in checkpoint_f()
82 id = strtoul(argv[1], NULL, 0); in checkpoint_f()
[all …]
/SCP-firmware-master/framework/include/
A Dfwk_module.h200 int (*bind)(fwk_id_t id, unsigned int round);
223 int (*start)(fwk_id_t id);
246 int (*stop)(fwk_id_t id);
448 bool fwk_module_is_valid_module_id(fwk_id_t id);
458 bool fwk_module_is_valid_element_id(fwk_id_t id);
468 bool fwk_module_is_valid_sub_element_id(fwk_id_t id);
481 bool fwk_module_is_valid_entity_id(fwk_id_t id);
491 bool fwk_module_is_valid_api_id(fwk_id_t id);
501 bool fwk_module_is_valid_event_id(fwk_id_t id);
541 const char *fwk_module_get_element_name(fwk_id_t id);
[all …]
/SCP-firmware-master/product/synquacer/module/nor/src/
A Dmod_nor.c100 fwk_id_t id, in set_read_command() argument
113 fwk_id_t id, in set_write_command() argument
180 fwk_id_t id, in set_4byte_address_mode() argument
236 fwk_id_t id, in check_program_result() argument
253 fwk_id_t id, in check_erase_result() argument
270 fwk_id_t id, in program_erase_sequence() argument
442 fwk_id_t id, in configure_read_command() argument
473 fwk_id_t id, in nor_read() argument
491 fwk_id_t id, in nor_program() argument
543 fwk_id_t id, in nor_erase() argument
[all …]
/SCP-firmware-master/module/debug/include/
A Dmod_debug.h96 int (*set_enabled)(fwk_id_t id, bool enable, enum scp_debug_user user_id);
116 int (*get_enabled)(fwk_id_t id, bool *enabled, enum scp_debug_user user_id);
126 int (*reset)(fwk_id_t id);
136 int (*end)(fwk_id_t id);
158 int (*set_enabled)(fwk_id_t id, bool enable, enum scp_debug_user user_id);
175 int (*get_enabled)(fwk_id_t id, bool *enabled, enum scp_debug_user user_id);
210 int (*enable)(fwk_id_t id, bool enable, enum scp_debug_user user_id);
219 void (*request_complete)(fwk_id_t id,
/SCP-firmware-master/product/n1sdp/module/n1sdp_pcie/include/
A Dmod_n1sdp_pcie.h94 int (*power_on)(fwk_id_t id);
104 int (*phy_init)(fwk_id_t id);
116 int (*controller_init)(fwk_id_t id, bool ep_mode);
126 int (*link_training)(fwk_id_t id, bool ep_mode);
136 int (*rc_setup)(fwk_id_t id);
148 int (*vc1_setup)(fwk_id_t id, uint8_t vc1_tc);
/SCP-firmware-master/module/mhu3/test/
A Dmod_mhu3_unit_test.c233 fwk_id_t id; in test_mhu3_start_id_module_success() local
236 status = mhu3_start(id); in test_mhu3_start_id_module_success()
243 fwk_id_t id; in test_mhu3_start_id_element_success() local
255 fwk_id_t id; in test_mhu3_start_id_element_set_isr_fails() local
266 fwk_id_t id; in test_mhu3_start_id_interrupt_enable_fails() local
278 fwk_id_t id = { 0 }; in test_mhu3_get_fch_invalid_sub_element() local
294 fwk_id_t id = { 0 }; in test_mhu3_get_fch_invalid_channel_type() local
318 fwk_id_t id = { 0 }; in test_mhu3_get_fch_null_fch_addr() local
338 fwk_id_t id = { 0 }; in test_mhu3_get_fch_valid_fch_dir_in() local
355 fwk_id_t id; in test_mhu3_get_fch_valid_fch_dir_out() local
[all …]
/SCP-firmware-master/module/pl011/src/
A Dmod_pl011.c143 static void mod_pl011_enable(fwk_id_t id) in mod_pl011_enable() argument
199 static void mod_pl011_flush(fwk_id_t id) in mod_pl011_flush() argument
235 static int mod_pl011_start(fwk_id_t id) in mod_pl011_start() argument
245 cfg = fwk_module_get_data(id); in mod_pl011_start()
264 id); in mod_pl011_start()
294 static int mod_pl011_powering_down(fwk_id_t id) in mod_pl011_powering_down() argument
320 static int mod_pl011_powered_on(fwk_id_t id) in mod_pl011_powered_on() argument
341 mod_pl011_enable(id); in mod_pl011_powered_on()
606 ok = mod_pl011_getch(stream->id, ch); in mod_pl011_io_getch()
631 mod_pl011_putch(stream->id, ch); in mod_pl011_io_putch()
[all …]
/SCP-firmware-master/module/debugger_cli/src/
A Dmod_debugger_cli.c46 .id = debugger_cli_event_id_request in alarm_callback()
56 static int start_alarm(fwk_id_t id) in start_alarm() argument
61 module_config = fwk_module_get_data(id); in start_alarm()
66 fwk_id_get_module_idx(id)); in start_alarm()
69 static int stop_alarm(fwk_id_t id) in stop_alarm() argument
74 module_config = fwk_module_get_data(id); in stop_alarm()
92 static int debugger_cli_bind(fwk_id_t id, unsigned int round) in debugger_cli_bind() argument
101 module_config = fwk_module_get_data(id); in debugger_cli_bind()
108 static int debugger_cli_start(fwk_id_t id) in debugger_cli_start() argument
110 return start_alarm(id); in debugger_cli_start()
[all …]
/SCP-firmware-master/module/sensor/src/
A Dsensor_extended.c33 fwk_id_t id, in sensor_set_timestamp_config() argument
38 fwk_assert(!fwk_id_is_equal(id, FWK_ID_NONE)); in sensor_set_timestamp_config()
43 ctx = sensor_get_ctx(id); in sensor_set_timestamp_config()
56 fwk_id_t id, in sensor_get_timestamp_config() argument
66 ctx = sensor_get_ctx(id); in sensor_get_timestamp_config()
89 uint64_t sensor_get_timestamp(fwk_id_t id) in sensor_get_timestamp() argument
95 ctx = sensor_get_ctx(id); in sensor_get_timestamp()
119 int sensor_axis_start(fwk_id_t id) in sensor_axis_start() argument
127 ctx = sensor_get_ctx(id); in sensor_axis_start()
170 fwk_id_t id, in sensor_get_axis_info() argument
[all …]
A Dsensor.h76 struct sensor_dev_ctx *sensor_get_ctx(fwk_id_t id);
96 int sensor_timestamp_dev_init(fwk_id_t id, struct sensor_dev_ctx *ctx);
99 fwk_id_t id,
103 fwk_id_t id,
106 uint64_t sensor_get_timestamp(fwk_id_t id);
111 int sensor_axis_start(fwk_id_t id);
114 fwk_id_t id,
/SCP-firmware-master/unit_test/unity_mocks/mocks/
A DMockfwk_module.h33 …_is_valid_module_id_ExpectAndReturn(id, cmock_retval) fwk_module_is_valid_module_id_CMockExpectAnd… argument
47 …s_valid_element_id_ExpectAndReturn(id, cmock_retval) fwk_module_is_valid_element_id_CMockExpectAnd… argument
61 …d_sub_element_id_ExpectAndReturn(id, cmock_retval) fwk_module_is_valid_sub_element_id_CMockExpectA… argument
75 …_is_valid_entity_id_ExpectAndReturn(id, cmock_retval) fwk_module_is_valid_entity_id_CMockExpectAnd… argument
89 …dule_is_valid_api_id_ExpectAndReturn(id, cmock_retval) fwk_module_is_valid_api_id_CMockExpectAndRe… argument
103 …e_is_valid_event_id_ExpectAndReturn(id, cmock_retval) fwk_module_is_valid_event_id_CMockExpectAndR… argument
117 …_notification_id_ExpectAndReturn(id, cmock_retval) fwk_module_is_valid_notification_id_CMockExpect… argument
159 …ule_get_element_name_ExpectAndReturn(id, cmock_retval) fwk_module_get_element_name_CMockExpectAndR… argument
173 …fine fwk_module_get_data_ExpectAndReturn(id, cmock_retval) fwk_module_get_data_CMockExpectAndRetur… argument
207 …ule_adapter_ExpectAndReturn(adapter, id, cmock_retval) fwk_module_adapter_CMockExpectAndReturn(__L… argument
[all …]
A DMockfwk_core.h43 …layed_response_ExpectAndReturn(id, cookie, event, cmock_retval) fwk_get_delayed_response_CMockExpe… argument
45 typedef int (* CMOCK_fwk_get_delayed_response_CALLBACK)(fwk_id_t id, uint32_t cookie, struct fwk_ev…
49 …tWithArrayAndReturn(id, cookie, event, event_Depth, cmock_retval) fwk_get_delayed_response_CMockEx… argument
67 …_list_empty_ExpectAndReturn(id, is_empty, cmock_retval) fwk_is_delayed_response_list_empty_CMockEx… argument
68 …ponse_list_empty_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t id, bool* is_empty, int…
69 typedef int (* CMOCK_fwk_is_delayed_response_list_empty_CALLBACK)(fwk_id_t id, bool* is_empty, int …
73 …hArrayAndReturn(id, is_empty, is_empty_Depth, cmock_retval) fwk_is_delayed_response_list_empty_CMo… argument
89 …elayed_response_ExpectAndReturn(id, event, cmock_retval) fwk_get_first_delayed_response_CMockExpec… argument
90 void fwk_get_first_delayed_response_CMockExpectAndReturn(UNITY_LINE_TYPE cmock_line, fwk_id_t id, s…
91 typedef int (* CMOCK_fwk_get_first_delayed_response_CALLBACK)(fwk_id_t id, struct fwk_event* event,…
[all …]
/SCP-firmware-master/product/morello/module/morello_pcie/include/
A Dmod_morello_pcie.h131 int (*power_on)(fwk_id_t id);
144 int (*phy_init)(fwk_id_t id);
159 int (*controller_init)(fwk_id_t id, bool ep_mode);
172 int (*link_training)(fwk_id_t id, bool ep_mode);
186 int (*rc_setup)(fwk_id_t id);
200 int (*vc1_setup)(fwk_id_t id, uint8_t vc1_tc);

Completed in 139 milliseconds

12345678910>>...13