Lines Matching refs:error_code

270 		uint8_t error_code = 0;  in avdtp_discover_handler()  local
275 err = session->ops->discovery_ind(session, &error_code); in avdtp_discover_handler()
286 if (error_code == 0) { in avdtp_discover_handler()
287 error_code = BT_AVDTP_BAD_STATE; in avdtp_discover_handler()
289 LOG_DBG("discover err code:%d", error_code); in avdtp_discover_handler()
290 net_buf_add_u8(rsp_buf, error_code); in avdtp_discover_handler()
362 uint8_t error_code = 0; in avdtp_get_capabilities_handler() local
375 &error_code); in avdtp_get_capabilities_handler()
389 if (error_code == 0) { in avdtp_get_capabilities_handler()
390 error_code = BT_AVDTP_BAD_ACP_SEID; in avdtp_get_capabilities_handler()
392 LOG_DBG("get cap err code:%d", error_code); in avdtp_get_capabilities_handler()
393 net_buf_add_u8(rsp_buf, error_code); in avdtp_get_capabilities_handler()
430 uint8_t error_code = 0; in avdtp_process_configuration() local
451 error_code = BT_AVDTP_BAD_STATE; in avdtp_process_configuration()
464 session, sep, int_seid, buf, &error_code); in avdtp_process_configuration()
467 session, sep, int_seid, buf, &error_code); in avdtp_process_configuration()
481 if (error_code == 0) { in avdtp_process_configuration()
482 error_code = BT_AVDTP_BAD_ACP_SEID; in avdtp_process_configuration()
484 LOG_DBG("set configuration err code:%d", error_code); in avdtp_process_configuration()
490 net_buf_add_u8(rsp_buf, error_code); in avdtp_process_configuration()
571 uint8_t error_code = 0; in avdtp_open_handler() local
580 error_code = BT_AVDTP_BAD_STATE; in avdtp_open_handler()
582 err = session->ops->open_ind(session, sep, &error_code); in avdtp_open_handler()
594 if (error_code == 0) { in avdtp_open_handler()
595 error_code = BT_AVDTP_BAD_ACP_SEID; in avdtp_open_handler()
597 LOG_DBG("open_ind err code:%d", error_code); in avdtp_open_handler()
598 net_buf_add_u8(rsp_buf, error_code); in avdtp_open_handler()
645 uint8_t error_code = 0; in avdtp_start_handler() local
654 error_code = BT_AVDTP_BAD_STATE; in avdtp_start_handler()
656 err = session->ops->start_ind(session, sep, &error_code); in avdtp_start_handler()
668 if (error_code == 0) { in avdtp_start_handler()
669 error_code = BT_AVDTP_BAD_ACP_SEID; in avdtp_start_handler()
671 LOG_DBG("start err code:%d", error_code); in avdtp_start_handler()
672 net_buf_add_u8(rsp_buf, error_code); in avdtp_start_handler()
719 uint8_t error_code = 0; in avdtp_close_handler() local
728 error_code = BT_AVDTP_BAD_STATE; in avdtp_close_handler()
730 err = session->ops->close_ind(session, sep, &error_code); in avdtp_close_handler()
742 if (error_code == 0) { in avdtp_close_handler()
743 error_code = BT_AVDTP_BAD_ACP_SEID; in avdtp_close_handler()
745 LOG_DBG("close err code:%d", error_code); in avdtp_close_handler()
746 net_buf_add_u8(rsp_buf, error_code); in avdtp_close_handler()
789 uint8_t error_code = 0; in avdtp_suspend_handler() local
798 error_code = BT_AVDTP_BAD_STATE; in avdtp_suspend_handler()
800 err = session->ops->suspend_ind(session, sep, &error_code); in avdtp_suspend_handler()
813 if (error_code == 0) { in avdtp_suspend_handler()
814 error_code = BT_AVDTP_BAD_ACP_SEID; in avdtp_suspend_handler()
816 LOG_DBG("suspend err code:%d", error_code); in avdtp_suspend_handler()
817 net_buf_add_u8(rsp_buf, error_code); in avdtp_suspend_handler()
864 uint8_t error_code = 0; in avdtp_abort_handler() local
872 err = session->ops->abort_ind(session, sep, &error_code); in avdtp_abort_handler()
883 if (error_code == 0) { in avdtp_abort_handler()
884 error_code = BT_AVDTP_BAD_ACP_SEID; in avdtp_abort_handler()
886 LOG_DBG("abort err code:%d", error_code); in avdtp_abort_handler()
887 net_buf_add_u8(rsp_buf, error_code); in avdtp_abort_handler()