Home
last modified time | relevance | path

Searched refs:buffer_out (Results 1 – 13 of 13) sorted by relevance

/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_info/src/
Dmain.c227 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
261 ok = create_mcumgr_format_packet(zse, "s", buffer, buffer_out, &buffer_size); in ZTEST()
267 zassert_mem_equal(command, buffer_out, sizeof(command), in ZTEST()
275 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
298 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
312 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
319 ok = create_mcumgr_format_packet(zse, query_kernel_name, buffer, buffer_out, &buffer_size); in ZTEST()
327 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
359 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
373 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
[all …]
Dlimited.c41 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
55 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
62 ok = create_mcumgr_format_packet(zse, query_kernel_name, buffer, buffer_out, &buffer_size); in ZTEST()
70 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
102 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
121 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
128 ok = create_mcumgr_format_packet(zse, query_all, buffer, buffer_out, &buffer_size); in ZTEST()
136 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
Dbuild_date.c79 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
95 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
102 ok = create_mcumgr_format_packet(zse, query_build_date, buffer, buffer_out, &buffer_size); in ZTEST()
110 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
155 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
171 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
178 ok = create_mcumgr_format_packet(zse, query_all, buffer, buffer_out, &buffer_size); in ZTEST()
186 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/cb_notifications/src/
Dmain.c100 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
108 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
115 ok = create_mcumgr_format_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
123 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
146 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
154 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
161 ok = create_mcumgr_format_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
169 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
192 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
200 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/os_mgmt_datetime/src/
Dmain.c149 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
167 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
173 ok = create_mcumgr_datetime_get_packet(zse, false, buffer, buffer_out, &buffer_size); in ZTEST()
181 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
211 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
229 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
235 ok = create_mcumgr_datetime_get_packet(zse, true, buffer, buffer_out, &buffer_size); in ZTEST()
243 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
275 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
293 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
[all …]
/Zephyr-latest/soc/nordic/common/
Ddmm.h106 void **buffer_out);
118 int dmm_buffer_out_release(void *region, void *buffer_out);
179 size_t user_length, void **buffer_out)
183 *buffer_out = (void *)user_buffer;
187 static ALWAYS_INLINE int dmm_buffer_out_release(void *region, void *buffer_out)
190 ARG_UNUSED(buffer_out);
Ddmm.c126 void **buffer_out) in dmm_buffer_out_prepare() argument
132 *buffer_out = (void *)user_buffer; in dmm_buffer_out_prepare()
149 *buffer_out = (void *)user_buffer; in dmm_buffer_out_prepare()
155 *buffer_out = dmm_buffer_alloc(dh, user_length); in dmm_buffer_out_prepare()
157 if (*buffer_out == NULL) { in dmm_buffer_out_prepare()
161 memcpy(*buffer_out, user_buffer, user_length); in dmm_buffer_out_prepare()
169 sys_cache_data_flush_range(*buffer_out, user_length); in dmm_buffer_out_prepare()
176 int dmm_buffer_out_release(void *region, void *buffer_out) in dmm_buffer_out_release() argument
179 uintptr_t addr = (uintptr_t)buffer_out; in dmm_buffer_out_release()
192 dmm_buffer_free(dh, buffer_out); in dmm_buffer_out_release()
/Zephyr-latest/tests/subsys/mgmt/mcumgr/smp_version/src/
Dmain.c103 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
122 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
129 ok = create_mcumgr_format_packet(zse, query_fake, buffer, buffer_out, &buffer_size, in ZTEST()
138 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
190 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
209 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
216 ok = create_mcumgr_format_packet(zse, query_fake, buffer, buffer_out, &buffer_size, in ZTEST()
225 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
276 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
295 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/enum_mgmt/src/
Dmain.c108 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
123 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
130 ok = create_enum_mgmt_count_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
138 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
207 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
224 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
231 ok = create_enum_mgmt_list_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
239 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
310 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
331 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/settings_mgmt/src/
Dmain.c101 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
114 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
121 ok = create_settings_mgmt_commit_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
129 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
183 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
231 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
244 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
251 ok = create_settings_mgmt_save_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
259 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
313 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
[all …]
/Zephyr-latest/drivers/bluetooth/hci/
Dhci_stm32wb0.c100 static uint8_t check_legacy_extended_call(uint16_t opcode, uint8_t *buffer_out) in check_legacy_extended_call() argument
125 struct bt_hci_evt_hdr *evt_header = (struct bt_hci_evt_hdr *)(buffer_out + 1); in check_legacy_extended_call()
127 *buffer_out = BT_HCI_H4_EVT; in check_legacy_extended_call()
131 (struct bt_hci_evt_cmd_status *)(buffer_out + 3); in check_legacy_extended_call()
140 (struct bt_hci_evt_cmd_complete *)(buffer_out + 3); in check_legacy_extended_call()
146 buffer_out[6] = BT_HCI_ERR_CMD_DISALLOWED; in check_legacy_extended_call()
154 static uint16_t process_command(uint8_t *buffer, uint16_t buffer_in_length, uint8_t *buffer_out, in process_command() argument
165 ret_val = check_legacy_extended_call(op_code, buffer_out); in process_command()
174 buffer_out, buffer_out_max_length); in process_command()
180 struct bt_hci_evt_hdr *evt_header = (struct bt_hci_evt_hdr *)(buffer_out + 1); in process_command()
[all …]
/Zephyr-latest/tests/subsys/mgmt/mcumgr/img_mgmt_slot_info/src/
Dmain.c198 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
214 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
221 ok = create_img_mgmt_slot_info_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
229 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
325 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
340 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
347 ok = create_img_mgmt_slot_info_packet(zse, buffer, buffer_out, &buffer_size); in ZTEST()
357 (void)smp_dummy_tx_pkt(buffer_out, buffer_size); in ZTEST()
397 uint8_t buffer_out[OUTPUT_BUFFER_SIZE]; in ZTEST() local
413 memset(buffer_out, 0, sizeof(buffer_out)); in ZTEST()
[all …]
/Zephyr-latest/samples/boards/st/bluetooth/interactive_gui/src/
Dmain.c98 static uint16_t parse_cmd(uint8_t *hci_buffer, uint16_t hci_pckt_len, uint8_t *buffer_out) in parse_cmd() argument
102 struct bt_vendor_rsp_hdr *rsp = (struct bt_vendor_rsp_hdr *) (buffer_out + 1); in parse_cmd()
104 buffer_out[0] = H4_ST_VND_CMD; in parse_cmd()