Home
last modified time | relevance | path

Searched refs:result_code (Results 1 – 17 of 17) sorted by relevance

/Zephyr-latest/samples/net/sockets/coap_download/src/
Dmain.c34 static void on_coap_response(int16_t result_code, size_t offset, const uint8_t *payload, size_t len, in on_coap_response() argument
37 LOG_INF("CoAP response, result_code=%d, offset=%u, len=%u", result_code, offset, len); in on_coap_response()
39 if ((COAP_RESPONSE_CODE_CONTENT == result_code) && last_block) { in on_coap_response()
46 } else if (COAP_RESPONSE_CODE_CONTENT != result_code) { in on_coap_response()
47 LOG_ERR("Error during CoAP download, result_code=%d", result_code); in on_coap_response()
/Zephyr-latest/subsys/bluetooth/audio/
Dmpl.c1352 uint8_t result_code = MEDIA_PROXY_CMD_SUCCESS; in inactive_state_command_handler() local
1372 result_code = MEDIA_PROXY_CMD_PLAYER_INACTIVE; in inactive_state_command_handler()
1402 result_code = MEDIA_PROXY_CMD_CANNOT_BE_COMPLETED; in inactive_state_command_handler()
1426 result_code = MEDIA_PROXY_CMD_CANNOT_BE_COMPLETED; in inactive_state_command_handler()
1432 result_code = MEDIA_PROXY_CMD_NOT_SUPPORTED; in inactive_state_command_handler()
1436 return result_code; in inactive_state_command_handler()
1441 uint8_t result_code = MEDIA_PROXY_CMD_SUCCESS; in playing_state_command_handler() local
1477 result_code = MEDIA_PROXY_CMD_CANNOT_BE_COMPLETED; in playing_state_command_handler()
1511 result_code = MEDIA_PROXY_CMD_CANNOT_BE_COMPLETED; in playing_state_command_handler()
1531 result_code = MEDIA_PROXY_CMD_CANNOT_BE_COMPLETED; in playing_state_command_handler()
[all …]
Dmcs.c658 .result_code = BT_MCS_OPC_NTF_NOT_SUPPORTED, in write_control_point()
674 .result_code = BT_MCS_OPC_NTF_CANNOT_BE_COMPLETED, in write_control_point()
744 const uint8_t result_code = BT_MCS_SCP_NTF_FAILURE; in write_search_control_point() local
748 notify(BT_UUID_MCS_SEARCH_CONTROL_POINT, &result_code, sizeof(result_code)); in write_search_control_point()
1176 uint8_t result_code = client->search_control_point_result; in notify_cb() local
1178 LOG_DBG("Notifying search control point - result: %d", result_code); in notify_cb()
1179 notify(BT_UUID_MCS_SEARCH_CONTROL_POINT, &result_code, sizeof(result_code)); in notify_cb()
1185 client->cmd_ntf.requested_opcode, client->cmd_ntf.result_code); in notify_cb()
1365 void media_proxy_sctrl_search_cb(uint8_t result_code) in media_proxy_sctrl_search_cb() argument
1369 UINT_TO_POINTER(result_code)); in media_proxy_sctrl_search_cb()
Dmedia_proxy_internal.h71 void (*search)(uint8_t result_code);
Dmedia_proxy.c575 ntf->requested_opcode, ntf->result_code); in mcc_cmd_ntf_cb()
614 static void mcc_search_ntf_cb(struct bt_conn *conn, int err, uint8_t result_code) in mcc_search_ntf_cb() argument
617 LOG_ERR("Search notification error (%d), result code: %d", err, result_code); in mcc_search_ntf_cb()
621 mprx.ctrlr.cbs->search_recv(&mprx.remote_player, err, result_code); in mcc_search_ntf_cb()
2140 void media_proxy_pl_search_cb(uint8_t result_code) in media_proxy_pl_search_cb() argument
2142 mprx.sctrlr.cbs->search(result_code); in media_proxy_pl_search_cb()
2145 mprx.ctrlr.cbs->search_recv(&mprx.local_player, 0, result_code); in media_proxy_pl_search_cb()
Dmcc.c1118 if (length == sizeof(ntf.requested_opcode) + sizeof(ntf.result_code)) { in mcs_notify_handler()
1120 ntf.result_code = *((uint8_t *)data + in mcs_notify_handler()
1123 ntf.requested_opcode, ntf.result_code); in mcs_notify_handler()
1144 uint8_t result_code = 0; in mcs_notify_handler() local
1147 if (length == sizeof(result_code)) { in mcs_notify_handler()
1148 result_code = *(uint8_t *)data; in mcs_notify_handler()
1149 LOG_DBG("Result: %d", result_code); in mcs_notify_handler()
1156 mcc_cb->search_ntf(conn, cb_err, result_code); in mcs_notify_handler()
/Zephyr-latest/subsys/bluetooth/services/ots/
Dots_client.c241 enum bt_gatt_ots_oacp_res_code result_code) in print_oacp_response() argument
244 LOG_DBG("Result Code : %s", lit_result[result_code]); in print_oacp_response()
248 enum bt_gatt_ots_olcp_res_code result_code) in print_olcp_response() argument
251 LOG_DBG("Result Code : %s", lit_olcp_result[result_code]); in print_olcp_response()
321 enum bt_gatt_ots_olcp_res_code result_code = in olcp_ind_handler() local
324 print_olcp_response(req_opcode, result_code); in olcp_ind_handler()
329 on_object_selected(conn, result_code, otc_inst); in olcp_ind_handler()
333 on_object_selected(conn, result_code, otc_inst); in olcp_ind_handler()
337 on_object_selected(conn, result_code, otc_inst); in olcp_ind_handler()
341 on_object_selected(conn, result_code, otc_inst); in olcp_ind_handler()
[all …]
/Zephyr-latest/include/zephyr/bluetooth/audio/
Dmedia_proxy.h77 uint8_t result_code; member
816 void (*search_recv)(struct media_player *player, int err, uint8_t result_code);
1782 void media_proxy_pl_search_cb(uint8_t result_code);
Dmcc.h373 uint8_t result_code);
/Zephyr-latest/include/zephyr/net/
Dcoap_client.h48 typedef void (*coap_client_response_cb_t)(int16_t result_code,
/Zephyr-latest/samples/net/sockets/coap_download/
DREADME.rst82 [00:00:00.180,000] <inf> coap_download: CoAP response, result_code=69, offset=0, len=100
85 [00:00:00.300,000] <inf> coap_download: CoAP response, result_code=69, offset=0, len=100
/Zephyr-latest/tests/bluetooth/tester/src/audio/btp/
Dbtp_mcp.h320 uint8_t result_code; member
327 uint8_t result_code; member
/Zephyr-latest/tests/bsim/bluetooth/audio/src/
Dmedia_controller_test.c420 g_command_result = cmd_ntf->result_code; in command_recv_cb()
457 static void search_recv_cb(struct media_player *plr, int err, uint8_t result_code) in search_recv_cb() argument
460 FAIL("Search failed (%d), result code: %u", err, result_code); in search_recv_cb()
469 g_search_control_point_result_code = result_code; in search_recv_cb()
Dmcc_test.c366 err, ntf->requested_opcode, ntf->result_code); in mcc_cmd_ntf_cb()
370 g_command_result = ntf->result_code; in mcc_cmd_ntf_cb()
397 static void mcc_search_ntf_cb(struct bt_conn *conn, int err, uint8_t result_code) in mcc_search_ntf_cb() argument
401 err, result_code); in mcc_search_ntf_cb()
405 g_search_result = result_code; in mcc_search_ntf_cb()
/Zephyr-latest/tests/bluetooth/tester/src/audio/
Dbtp_mcp.c383 ev.result_code = ntf->result_code; in btp_send_command_notifications_ev()
389 uint8_t result_code) in btp_send_search_notifications_ev() argument
396 ev.result_code = result_code; in btp_send_search_notifications_ev()
621 static void mcc_search_ntf_cb(struct bt_conn *conn, int err, uint8_t result_code) in mcc_search_ntf_cb() argument
626 result_code); in mcc_search_ntf_cb()
/Zephyr-latest/subsys/bluetooth/audio/shell/
Dmcc.c409 err, ntf->requested_opcode, ntf->result_code); in mcc_cmd_ntf_cb()
414 ntf->requested_opcode, ntf->result_code); in mcc_cmd_ntf_cb()
444 static void mcc_search_ntf_cb(struct bt_conn *conn, int err, uint8_t result_code) in mcc_search_ntf_cb() argument
449 err, result_code); in mcc_search_ntf_cb()
454 result_code); in mcc_search_ntf_cb()
Dmedia_controller.c322 plr, cmd_ntf->requested_opcode, cmd_ntf->result_code); in command_recv_cb()
347 static void search_recv_cb(struct media_player *plr, int err, uint8_t result_code) in search_recv_cb() argument
354 shell_print(ctx_shell, "Player: %p, Search result code: %u", plr, result_code); in search_recv_cb()