Home
last modified time | relevance | path

Searched refs:rp (Results 1 – 25 of 76) sorted by relevance

1234

/Zephyr-latest/tests/kernel/device/src/
Dmain.c160 static struct init_record *rp = init_records; variable
165 rp->pre_kernel = pre_kernel; in add_init_record()
166 rp->is_pre_kernel = k_is_pre_kernel(); in add_init_record()
167 rp->is_in_isr = k_is_in_isr(); in add_init_record()
168 rp->could_yield = k_can_yield(); in add_init_record()
169 ++rp; in add_init_record()
217 struct init_record *rpe = rp; in ZTEST()
219 zassert_equal(rp - init_records, 4U, in ZTEST()
221 rp = init_records; in ZTEST()
222 while ((rp < rpe) && rp->pre_kernel) { in ZTEST()
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/
Dbtp_core.c36 struct btp_core_read_supported_commands_rp *rp = rsp; in supported_commands() local
38 tester_set_bit(rp->data, BTP_CORE_READ_SUPPORTED_COMMANDS); in supported_commands()
39 tester_set_bit(rp->data, BTP_CORE_READ_SUPPORTED_SERVICES); in supported_commands()
40 tester_set_bit(rp->data, BTP_CORE_REGISTER_SERVICE); in supported_commands()
41 tester_set_bit(rp->data, BTP_CORE_UNREGISTER_SERVICE); in supported_commands()
43 *rsp_len = sizeof(*rp) + 1; in supported_commands()
51 struct btp_core_read_supported_services_rp *rp = rsp; in supported_services() local
54 tester_set_bit(rp->data, BTP_SERVICE_ID_CORE); in supported_services()
55 tester_set_bit(rp->data, BTP_SERVICE_ID_GAP); in supported_services()
56 tester_set_bit(rp->data, BTP_SERVICE_ID_GATT); in supported_services()
[all …]
Dbtp_mesh.c474 struct btp_mesh_read_supported_commands_rp *rp = rsp; in supported_commands() local
477 tester_set_bit(rp->data, BTP_MESH_READ_SUPPORTED_COMMANDS); in supported_commands()
478 tester_set_bit(rp->data, BTP_MESH_CONFIG_PROVISIONING); in supported_commands()
479 tester_set_bit(rp->data, BTP_MESH_PROVISION_NODE); in supported_commands()
480 tester_set_bit(rp->data, BTP_MESH_INIT); in supported_commands()
481 tester_set_bit(rp->data, BTP_MESH_RESET); in supported_commands()
482 tester_set_bit(rp->data, BTP_MESH_INPUT_NUMBER); in supported_commands()
483 tester_set_bit(rp->data, BTP_MESH_INPUT_STRING); in supported_commands()
486 tester_set_bit(rp->data, BTP_MESH_IVU_TEST_MODE); in supported_commands()
487 tester_set_bit(rp->data, BTP_MESH_IVU_TOGGLE_STATE); in supported_commands()
[all …]
Dbtp_gap.c240 struct btp_gap_read_supported_commands_rp *rp = rsp; in supported_commands() local
243 tester_set_bit(rp->data, BTP_GAP_READ_SUPPORTED_COMMANDS); in supported_commands()
244 tester_set_bit(rp->data, BTP_GAP_READ_CONTROLLER_INDEX_LIST); in supported_commands()
245 tester_set_bit(rp->data, BTP_GAP_READ_CONTROLLER_INFO); in supported_commands()
246 tester_set_bit(rp->data, BTP_GAP_SET_POWERED); in supported_commands()
247 tester_set_bit(rp->data, BTP_GAP_SET_CONNECTABLE); in supported_commands()
250 tester_set_bit(rp->data, BTP_GAP_SET_DISCOVERABLE); in supported_commands()
251 tester_set_bit(rp->data, BTP_GAP_SET_BONDABLE); in supported_commands()
252 tester_set_bit(rp->data, BTP_GAP_START_ADVERTISING); in supported_commands()
253 tester_set_bit(rp->data, BTP_GAP_STOP_ADVERTISING); in supported_commands()
[all …]
Dbtp_gatt.c223 struct btp_gatt_read_supported_commands_rp *rp = rsp; in supported_commands() local
226 tester_set_bit(rp->data, BTP_GATT_READ_SUPPORTED_COMMANDS); in supported_commands()
227 tester_set_bit(rp->data, BTP_GATT_ADD_SERVICE); in supported_commands()
228 tester_set_bit(rp->data, BTP_GATT_ADD_CHARACTERISTIC); in supported_commands()
229 tester_set_bit(rp->data, BTP_GATT_ADD_DESCRIPTOR); in supported_commands()
230 tester_set_bit(rp->data, BTP_GATT_ADD_INCLUDED_SERVICE); in supported_commands()
231 tester_set_bit(rp->data, BTP_GATT_SET_VALUE); in supported_commands()
232 tester_set_bit(rp->data, BTP_GATT_START_SERVER); in supported_commands()
235 tester_set_bit(rp->data, BTP_GATT_SET_ENC_KEY_SIZE); in supported_commands()
236 tester_set_bit(rp->data, BTP_GATT_EXCHANGE_MTU); in supported_commands()
[all …]
/Zephyr-latest/samples/drivers/mspi/mspi_flash/src/
Dmain.c66 const uint8_t *rp = buf; in single_sector_test() local
67 const uint8_t *rpe = rp + len; in single_sector_test()
70 while (rp < rpe) { in single_sector_test()
72 (uint32_t)(SPI_FLASH_TEST_REGION_OFFSET + (rp - buf)), in single_sector_test()
73 *wp, *rp, (*rp == *wp) ? "match" : "MISMATCH"); in single_sector_test()
74 ++rp; in single_sector_test()
149 const uint8_t *rp = buf; in multi_sector_test() local
150 const uint8_t *rpe = rp + len; in multi_sector_test()
153 while (rp < rpe) { in multi_sector_test()
155 (uint32_t)(offs + (rp - buf)), in multi_sector_test()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/hci/
Dhci.c595 struct bt_hci_rp_read_auth_payload_timeout *rp; in read_auth_payload_timeout() local
604 rp = hci_cmd_complete(evt, sizeof(*rp)); in read_auth_payload_timeout()
605 rp->status = status; in read_auth_payload_timeout()
606 rp->handle = sys_cpu_to_le16(handle); in read_auth_payload_timeout()
607 rp->auth_payload_timeout = sys_cpu_to_le16(auth_payload_timeout); in read_auth_payload_timeout()
614 struct bt_hci_rp_write_auth_payload_timeout *rp; in write_auth_payload_timeout() local
624 rp = hci_cmd_complete(evt, sizeof(*rp)); in write_auth_payload_timeout()
625 rp->status = status; in write_auth_payload_timeout()
626 rp->handle = sys_cpu_to_le16(handle); in write_auth_payload_timeout()
635 struct bt_hci_rp_configure_data_path *rp; in configure_data_path() local
[all …]
/Zephyr-latest/samples/drivers/spi_flash/src/
Dmain.c108 const uint8_t *rp = buf; in single_sector_test() local
109 const uint8_t *rpe = rp + len; in single_sector_test()
112 while (rp < rpe) { in single_sector_test()
114 (uint32_t)(SPI_FLASH_TEST_REGION_OFFSET + (rp - buf)), in single_sector_test()
115 *wp, *rp, (*rp == *wp) ? "match" : "MISMATCH"); in single_sector_test()
116 ++rp; in single_sector_test()
190 const uint8_t *rp = buf; in multi_sector_test() local
191 const uint8_t *rpe = rp + len; in multi_sector_test()
194 while (rp < rpe) { in multi_sector_test()
196 (uint32_t)(offs + (rp - buf)), in multi_sector_test()
[all …]
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_cas.c23 struct btp_cas_read_supported_commands_rp *rp = rsp; in cas_supported_commands() local
26 tester_set_bit(rp->data, BTP_CAS_READ_SUPPORTED_COMMANDS); in cas_supported_commands()
27 tester_set_bit(rp->data, BTP_CAS_SET_MEMBER_LOCK); in cas_supported_commands()
28 tester_set_bit(rp->data, BTP_CAS_GET_MEMBER_RSI); in cas_supported_commands()
30 *rsp_len = sizeof(*rp) + 1; in cas_supported_commands()
51 struct btp_cas_get_member_rsi_rp *rp = rsp; in cas_get_member_rsi() local
55 err = bt_csip_set_member_generate_rsi(csis_svc_inst, rp->rsi); in cas_get_member_rsi()
57 *rsp_len = sizeof(*rp); in cas_get_member_rsi()
Dbtp_csis.c25 struct btp_csis_read_supported_commands_rp *rp = rsp; in csis_supported_commands() local
28 tester_set_bit(rp->data, BTP_CSIS_READ_SUPPORTED_COMMANDS); in csis_supported_commands()
29 tester_set_bit(rp->data, BTP_CSIS_SET_MEMBER_LOCK); in csis_supported_commands()
30 tester_set_bit(rp->data, BTP_CSIS_GET_MEMBER_RSI); in csis_supported_commands()
31 tester_set_bit(rp->data, BTP_CSIS_ENC_SIRK_TYPE); in csis_supported_commands()
33 *rsp_len = sizeof(*rp) + 1; in csis_supported_commands()
54 struct btp_csis_get_member_rsi_rp *rp = rsp; in csis_get_member_rsi() local
58 err = bt_csip_set_member_generate_rsi(csis_svc_inst, rp->rsi); in csis_get_member_rsi()
61 *rsp_len = sizeof(*rp); in csis_get_member_rsi()
Dbtp_bap.c66 struct btp_ascs_read_supported_commands_rp *rp = rsp; in btp_ascs_supported_commands() local
69 tester_set_bit(rp->data, BTP_ASCS_READ_SUPPORTED_COMMANDS); in btp_ascs_supported_commands()
71 *rsp_len = sizeof(*rp) + 1; in btp_ascs_supported_commands()
197 struct btp_pacs_read_supported_commands_rp *rp = rsp; in pacs_supported_commands() local
200 tester_set_bit(rp->data, BTP_PACS_READ_SUPPORTED_COMMANDS); in pacs_supported_commands()
201 tester_set_bit(rp->data, BTP_PACS_UPDATE_CHARACTERISTIC); in pacs_supported_commands()
202 tester_set_bit(rp->data, BTP_PACS_SET_LOCATION); in pacs_supported_commands()
203 tester_set_bit(rp->data, BTP_PACS_SET_AVAILABLE_CONTEXTS); in pacs_supported_commands()
204 tester_set_bit(rp->data, BTP_PACS_SET_SUPPORTED_CONTEXTS); in pacs_supported_commands()
206 *rsp_len = sizeof(*rp) + 1; in pacs_supported_commands()
[all …]
Dbtp_has.c22 struct btp_has_read_supported_commands_rp *rp = rsp; in has_supported_commands() local
24 tester_set_bit(rp->data, BTP_HAS_READ_SUPPORTED_COMMANDS); in has_supported_commands()
25 tester_set_bit(rp->data, BTP_HAS_SET_ACTIVE_INDEX); in has_supported_commands()
26 tester_set_bit(rp->data, BTP_HAS_SET_PRESET_NAME); in has_supported_commands()
27 tester_set_bit(rp->data, BTP_HAS_REMOVE_PRESET); in has_supported_commands()
28 tester_set_bit(rp->data, BTP_HAS_ADD_PRESET); in has_supported_commands()
29 tester_set_bit(rp->data, BTP_HAS_SET_PROPERTIES); in has_supported_commands()
31 *rsp_len = sizeof(*rp) + 1; in has_supported_commands()
/Zephyr-latest/tests/bluetooth/hci_prop_evt/src/
Dmain.c140 struct bt_hci_rp_read_local_features *rp; in read_local_features() local
142 rp = cmd_complete(evt, sizeof(*rp), opcode); in read_local_features()
143 rp->status = 0x00; in read_local_features()
144 (void)memset(&rp->features[0], 0xFF, sizeof(rp->features)); in read_local_features()
151 struct bt_hci_rp_read_supported_commands *rp; in read_supported_commands() local
153 rp = cmd_complete(evt, sizeof(*rp), opcode); in read_supported_commands()
154 (void)memset(&rp->commands[0], 0xFF, sizeof(rp->commands)); in read_supported_commands()
155 rp->status = 0x00; in read_supported_commands()
162 struct bt_hci_rp_le_read_local_features *rp; in le_read_local_features() local
164 rp = cmd_complete(evt, sizeof(*rp), opcode); in le_read_local_features()
[all …]
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_random_id_addr/src/
Dtest_suite_bt_privacy_enabled.c84 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
90 rp->num_addrs = 1; in ZTEST()
94 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
126 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
132 rp->num_addrs = 1; in ZTEST()
136 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
178 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
184 rp->num_addrs = 1; in ZTEST()
188 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
230 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
[all …]
Dtest_suite_bt_settings_enabled.c111 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
117 rp->num_addrs = 1; in ZTEST()
121 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
159 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
165 rp->num_addrs = 1; in ZTEST()
169 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
204 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
212 rp->num_addrs = 1; in ZTEST()
216 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
Dmain.c93 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
99 rp->num_addrs = 1; in ZTEST()
103 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
147 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
153 rp->num_addrs = 2; in ZTEST()
158 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
201 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
207 rp->num_addrs = 2; in ZTEST()
212 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
Dtest_suite_invalid_cases.c128 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
136 rp->num_addrs = 0; in ZTEST()
170 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
178 rp->num_addrs = 1; in ZTEST()
212 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
220 rp->num_addrs = 0; in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_id_init/src/
Dtest_suite_setup_static_random_identity.c85 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
96 rp->num_addrs = 1; in ZTEST()
100 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
141 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
152 rp->num_addrs = 1; in ZTEST()
156 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
187 struct bt_hci_rp_vs_read_static_addrs *rp = in ZTEST() local
198 rp->num_addrs = 1; in ZTEST()
202 rp->num_addrs * sizeof(struct bt_hci_vs_static_addr); in ZTEST()
Dtest_suite_setup_public_identity.c68 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
70 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
103 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
107 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
/Zephyr-latest/tests/bluetooth/host/id/bt_setup_public_id_addr/src/
Dtest_suite_bt_privacy_enabled.c79 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
81 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
111 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
113 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
153 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
155 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
195 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
197 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
Dtest_suite_bt_settings_enabled.c106 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
108 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
143 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
145 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
177 struct bt_hci_rp_read_bd_addr *rp = (void *)&hci_rp_read_bd_addr; in ZTEST() local
181 bt_addr_copy(&rp->bdaddr, BT_ADDR); in ZTEST()
/Zephyr-latest/tests/bluetooth/host_long_adv_recv/src/
Dmain.c168 struct bt_hci_rp_read_local_features *rp; in read_local_features() local
170 rp = cmd_complete(evt, sizeof(*rp), opcode); in read_local_features()
171 rp->status = 0x00; in read_local_features()
172 (void)memset(rp->features, 0xFF, sizeof(rp->features)); in read_local_features()
179 struct bt_hci_rp_read_supported_commands *rp; in read_supported_commands() local
181 rp = cmd_complete(evt, sizeof(*rp), opcode); in read_supported_commands()
182 (void)memset(rp->commands, 0xFF, sizeof(rp->commands)); in read_supported_commands()
183 rp->status = 0x00; in read_supported_commands()
190 struct bt_hci_rp_le_read_local_features *rp; in le_read_local_features() local
192 rp = cmd_complete(evt, sizeof(*rp), opcode); in le_read_local_features()
[all …]
/Zephyr-latest/tests/bluetooth/hci_codecs_info/src/
Dmain.c178 struct bt_hci_rp_read_codec_capabilities *rp; in ZTEST() local
203 rp = (struct bt_hci_rp_read_codec_capabilities *)rsp->data; in ZTEST()
204 zassert_equal(rp->status, 0, in ZTEST()
206 zassert_equal(rp->num_capabilities, NUM_CAPABILITIES, in ZTEST()
208 ptr = &rp->capabilities[0]; in ZTEST()
260 struct bt_hci_rp_read_ctlr_delay *rp; in ZTEST() local
286 rp = (struct bt_hci_rp_read_ctlr_delay *)rsp->data; in ZTEST()
287 zassert_equal(rp->status, 0, in ZTEST()
289 zassert_equal(sys_get_le24(rp->min_ctlr_delay), MIN_CTLR_DELAY, in ZTEST()
291 zassert_equal(sys_get_le24(rp->max_ctlr_delay), MAX_CTLR_DELAY, in ZTEST()
/Zephyr-latest/tests/drivers/mspi/flash/src/
Dmain.c162 const uint8_t *rp = actual; in test_multi_sector_rw() local
163 const uint8_t *rpe = rp + MSPI_FLASH_TEST_SIZE; in test_multi_sector_rw()
167 while (rp < rpe) { in test_multi_sector_rw()
168 if (*rp != *wp) { in test_multi_sector_rw()
170 (uint32_t)(offs + (rp - actual)), *wp, *rp); in test_multi_sector_rw()
177 ++rp; in test_multi_sector_rw()
/Zephyr-latest/samples/bluetooth/hci_pwr_ctrl/src/
Dmain.c56 struct bt_hci_rp_read_rssi *rp; in read_conn_rssi() local
75 rp = (void *)rsp->data; in read_conn_rssi()
76 *rssi = rp->rssi; in read_conn_rssi()
85 struct bt_hci_rp_vs_write_tx_power_level *rp; in set_tx_power() local
108 rp = (void *)rsp->data; in set_tx_power()
109 printk("Actual Tx Power: %d\n", rp->selected_tx_power); in set_tx_power()
117 struct bt_hci_rp_vs_read_tx_power_level *rp; in get_tx_power() local
140 rp = (void *)rsp->data; in get_tx_power()
141 *tx_pwr_lvl = rp->tx_power_level; in get_tx_power()

1234