| /tests/bluetooth/tester/src/audio/ |
| A D | btp_bap.c | 86 .opcode = BTP_ASCS_CONFIGURE_CODEC, 91 .opcode = BTP_ASCS_CONFIGURE_QOS, 96 .opcode = BTP_ASCS_ENABLE, 111 .opcode = BTP_ASCS_DISABLE, 116 .opcode = BTP_ASCS_RELEASE, 121 .opcode = BTP_ASCS_UPDATE_METADATA, 126 .opcode = BTP_ASCS_ADD_ASE_TO_CIS, 308 .opcode = BTP_PACS_SET_LOCATION, 357 .opcode = BTP_BAP_DISCOVER, 362 .opcode = BTP_BAP_SEND, [all …]
|
| A D | btp_vcp.c | 166 .opcode = BTP_VCS_SET_VOL, 171 .opcode = BTP_VCS_VOL_UP, 176 .opcode = BTP_VCS_VOL_DOWN, 181 .opcode = BTP_VCS_MUTE, 186 .opcode = BTP_VCS_UNMUTE, 257 ev.opcode = opcode; in btp_send_vocs_procedure_ev() 401 .opcode = BTP_VOCS_UPDATE_DESC, 406 .opcode = BTP_VOCS_UPDATE_LOC, 411 .opcode = BTP_VOCS_STATE_GET, 416 .opcode = BTP_VOCS_LOCATION_GET, [all …]
|
| A D | btp_aics.c | 133 ev.opcode = opcode; in btp_send_aics_procedure_ev() 429 .opcode = BTP_AICS_SET_GAIN, 434 .opcode = BTP_AICS_MUTE, 439 .opcode = BTP_AICS_UNMUTE, 449 .opcode = BTP_AICS_MUTE_DISABLE, 454 .opcode = BTP_AICS_MAN_GAIN_SET, 459 .opcode = BTP_AICS_AUTO_GAIN_SET, 479 .opcode = BTP_AICS_DESCRIPTION_GET, 484 .opcode = BTP_AICS_TYPE_GET, 489 .opcode = BTP_AICS_STATUS_GET, [all …]
|
| A D | btp_has.c | 135 .opcode = BTP_HAS_READ_SUPPORTED_COMMANDS, 141 .opcode = BTP_HAS_SET_ACTIVE_INDEX, 146 .opcode = BTP_HAS_SET_PRESET_NAME, 151 .opcode = BTP_HAS_REMOVE_PRESET, 156 .opcode = BTP_HAS_ADD_PRESET, 161 .opcode = BTP_HAS_SET_PROPERTIES,
|
| A D | btp_ccp.c | 731 .opcode = BTP_CCP_DISCOVER_TBS, 736 .opcode = BTP_CCP_ACCEPT_CALL, 771 .opcode = BTP_CCP_READ_URI_LIST, 791 .opcode = BTP_CCP_READ_CCID, 796 .opcode = BTP_CCP_READ_CALL_URI, 826 .opcode = BTP_CCP_HOLD_CALL, 831 .opcode = BTP_CCP_RETRIEVE_CALL, 836 .opcode = BTP_CCP_JOIN_CALLS, 1090 .opcode = BTP_TBS_HOLD, 1115 .opcode = BTP_TBS_REMOTE_HOLD, [all …]
|
| A D | btp_csis.c | 81 .opcode = BTP_CSIS_READ_SUPPORTED_COMMANDS, 87 .opcode = BTP_CSIS_SET_MEMBER_LOCK, 92 .opcode = BTP_CSIS_GET_MEMBER_RSI, 97 .opcode = BTP_CSIS_ENC_SIRK_TYPE,
|
| A D | btp_hap.c | 234 .opcode = BTP_HAP_READ_SUPPORTED_COMMANDS, 240 .opcode = BTP_HAP_HA_INIT, 245 .opcode = BTP_HAP_HAUC_INIT, 250 .opcode = BTP_HAP_IAC_INIT, 255 .opcode = BTP_HAP_IAC_DISCOVER, 260 .opcode = BTP_HAP_IAC_SET_ALERT, 265 .opcode = BTP_HAP_HAUC_DISCOVER,
|
| A D | btp_cas.c | 66 .opcode = BTP_CAS_READ_SUPPORTED_COMMANDS, 72 .opcode = BTP_CAS_SET_MEMBER_LOCK, 77 .opcode = BTP_CAS_GET_MEMBER_RSI,
|
| /tests/bluetooth/tester/src/ |
| A D | btp.c | 85 if (service_handler[service].handlers[i].opcode == opcode) { in find_btp_handler() 106 hdr->service, hdr->opcode, hdr->index); in cmd_handler() 108 btp = find_btp_handler(hdr->service, hdr->opcode); in cmd_handler() 142 tester_rsp_with_index(hdr->service, hdr->opcode, in cmd_handler() 294 msg.opcode = opcode; in tester_send_with_index() 325 __ASSERT_NO_MSG(opcode >= 0x80); in tester_event() 336 __ASSERT_NO_MSG(opcode < 0x80); in tester_rsp_full() 354 __ASSERT_NO_MSG(opcode < 0x80); in tester_rsp() 377 tester_set_bit(cmds, handler->opcode); in tester_supported_commands() 379 if (handler->opcode > opcode_max) { in tester_supported_commands() [all …]
|
| A D | btp_mesh.c | 4732 .opcode = BTP_MESH_INIT, 4737 .opcode = BTP_MESH_RESET, 4763 .opcode = BTP_MESH_LPN, 4768 .opcode = BTP_MESH_LPN_POLL, 4774 .opcode = BTP_MESH_NET_SEND, 4789 .opcode = BTP_MESH_MODEL_SEND, 5074 .opcode = BTP_MESH_VA_ADD, 5079 .opcode = BTP_MESH_VA_DEL, 5097 .opcode = BTP_MESH_RPL_CLEAR, 5206 {.opcode = BTP_MESH_SRPL_CLEAR, [all …]
|
| /tests/bluetooth/controller/ctrl_unsupported/src/ |
| A D | main.c | 66 static void lt_tx_pdu_and_rx_unknown_rsp(enum helper_pdu_opcode opcode) in lt_tx_pdu_and_rx_unknown_rsp() argument 74 encode_pdu(opcode, &pdu, &data); in lt_tx_pdu_and_rx_unknown_rsp() 78 .type = pdu.llctrl.opcode in lt_tx_pdu_and_rx_unknown_rsp() 88 lt_tx(opcode, &test_conn, &pdu.llctrl.unknown_rsp); in lt_tx_pdu_and_rx_unknown_rsp() 113 static void lt_tx_undef_opcode_and_rx_unknown_rsp(uint8_t opcode) in lt_tx_undef_opcode_and_rx_unknown_rsp() argument 124 pdu.llctrl.opcode = opcode; in lt_tx_undef_opcode_and_rx_unknown_rsp() 128 .type = pdu.llctrl.opcode in lt_tx_undef_opcode_and_rx_unknown_rsp() 232 for (uint16_t opcode = 0x30; opcode < 0x100; opcode++) { in ZTEST() local 233 lt_tx_undef_opcode_and_rx_unknown_rsp(opcode); in ZTEST() 247 for (uint16_t opcode = 0x30; opcode < 0x100; opcode++) { in ZTEST() local [all …]
|
| /tests/bluetooth/hci_prop_evt/src/ |
| A D | main.c | 41 uint16_t opcode; /* HCI command opcode */ member 44 uint8_t len, uint16_t opcode); 66 cc->opcode = sys_cpu_to_le16(opcode); in cmd_complete() 79 if (handler->opcode != opcode) { in cmd_handle_helper() 102 uint16_t opcode; in cmd_handle() local 106 opcode = sys_le16_to_cpu(chdr->opcode); in cmd_handle() 124 uint8_t len, uint16_t opcode) in generic_success() argument 138 uint8_t len, uint16_t opcode) in read_local_features() argument 149 uint8_t len, uint16_t opcode) in read_supported_commands() argument 160 uint8_t len, uint16_t opcode) in le_read_local_features() argument [all …]
|
| /tests/bluetooth/host_long_adv_recv/src/ |
| A D | main.c | 51 uint16_t opcode; /* HCI command opcode */ member 95 cc->opcode = sys_cpu_to_le16(opcode); in cmd_complete() 107 if (handler->opcode != opcode) { in cmd_handle_helper() 131 uint16_t opcode; in cmd_handle() local 135 opcode = sys_le16_to_cpu(chdr->opcode); in cmd_handle() 156 ccst = cmd_complete(evt, len, opcode); in generic_success() 166 uint16_t opcode) in read_local_features() argument 170 rp = cmd_complete(evt, sizeof(*rp), opcode); in read_local_features() 177 uint16_t opcode) in read_supported_commands() argument 188 uint16_t opcode) in le_read_local_features() argument [all …]
|
| /tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/ |
| A D | peer.c | 75 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd() 85 uint16_t opcode; in handle_cmd_complete() local 98 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 106 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 116 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 281 LOG_DBG("opcode %x", opcode); in send_cmd() 284 cmd = create_cmd(opcode, 0); in send_cmd() 290 __ASSERT_NO_MSG(opcode); in send_cmd() 291 active_opcode = opcode; in send_cmd() 349 static void set_event_mask(uint16_t opcode) in set_event_mask() argument [all …]
|
| /tests/bluetooth/controller/common/include/ |
| A D | helper_util.h | 32 void lt_tx_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, 36 void lt_rx_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, 39 void ut_rx_pdu_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, 41 void ut_rx_node_real(const char *file, uint32_t line, enum helper_node_opcode opcode, 46 void encode_pdu(enum helper_pdu_opcode opcode, struct pdu_data *pdu, void *param);
|
| /tests/bsim/bluetooth/tester/src/ |
| A D | bsim_btp.c | 40 switch (hdr->opcode) { in is_valid_core_packet_len() 62 switch (hdr->opcode) { in is_valid_gap_packet_len() 205 switch (hdr->opcode) { in is_valid_gatt_packet_len() 458 switch (hdr->opcode) { in is_valid_l2cap_packet_len() 512 switch (hdr->opcode) { in is_valid_mesh_packet_len() 804 switch (hdr->opcode) { in is_valid_mesh_mdl_packet_len() 837 switch (hdr->opcode) { in is_valid_vcs_packet_len() 861 switch (hdr->opcode) { in is_valid_ias_packet_len() 875 switch (hdr->opcode) { in is_valid_aics_packet_len() 934 switch (hdr->opcode) { in is_valid_vocs_packet_len() [all …]
|
| A D | bsim_btp.h | 34 cmd_hdr->opcode = BTP_CORE_REGISTER_SERVICE; in bsim_btp_core_register() 53 cmd_hdr->opcode = BTP_CSIP_DISCOVER; in bsim_btp_csip_discover() 170 cmd_hdr->opcode = BTP_GAP_START_DISCOVERY; in bsim_btp_gap_start_discovery() 188 cmd_hdr->opcode = BTP_GAP_STOP_DISCOVERY; in bsim_btp_gap_stop_discovery() 218 cmd_hdr->opcode = BTP_GAP_CONNECT; in bsim_btp_gap_connect() 252 cmd_hdr->opcode = BTP_GAP_DISCONNECT; in bsim_btp_gap_disconnect() 285 cmd_hdr->opcode = BTP_GAP_PAIR; in bsim_btp_gap_pair() 323 cmd_hdr->opcode = BTP_HAP_HAUC_INIT; in bsim_btp_hauc_init() 342 cmd_hdr->opcode = BTP_HAP_HAUC_DISCOVER; in bsim_btp_hauc_discover() 496 cmd_hdr->opcode = BTP_AICS_SET_GAIN; in bsim_btp_aics_set_gain() [all …]
|
| /tests/bluetooth/controller/common/src/ |
| A D | helper_util.c | 418 if (helper_node_encode[opcode]) { in lt_tx_real() 419 helper_node_encode[opcode](rx, param); in lt_tx_real() 424 helper_pdu_encode[opcode](pdu, param); in lt_tx_real() 466 if (helper_pdu_verify[opcode]) { in lt_rx_real() 467 helper_pdu_verify[opcode](file, line, pdu, param); in lt_rx_real() 494 if (helper_pdu_ntf_verify[opcode]) { in ut_rx_pdu_real() 496 } else if (helper_pdu_verify[opcode]) { in ut_rx_pdu_real() 497 helper_pdu_verify[opcode](file, line, pdu, param); in ut_rx_pdu_real() 514 if (helper_node_verify[opcode]) { in ut_rx_node_real() 515 helper_node_verify[opcode](file, line, ntf, param); in ut_rx_node_real() [all …]
|
| A D | helper_pdu.c | 54 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_REQ; in helper_pdu_encode_ping_req() 62 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP; in helper_pdu_encode_ping_rsp() 72 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_FEATURE_REQ; in helper_pdu_encode_feature_req() 142 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_REQ; in helper_pdu_encode_enc_req() 156 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_RSP; in helper_pdu_encode_enc_rsp() 223 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_REQ; in helper_pdu_encode_phy_req() 235 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_RSP; in helper_pdu_encode_phy_rsp() 388 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CTE_REQ; in helper_pdu_encode_cte_req() 398 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CTE_RSP; in helper_pdu_encode_cte_rsp() 419 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_CIS_REQ; in helper_pdu_encode_cis_req() [all …]
|
| /tests/bsim/bluetooth/host/misc/disconnect/tester/src/ |
| A D | main.c | 77 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd() 87 uint16_t opcode; in handle_cmd_complete() local 100 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 108 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 118 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 305 LOG_DBG("opcode %x", opcode); in send_cmd() 308 cmd = create_cmd(opcode, 0); in send_cmd() 314 active_opcode = opcode; in send_cmd() 397 static void set_event_mask(uint16_t opcode) in set_event_mask() argument 404 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask() [all …]
|
| /tests/bsim/bluetooth/host/att/sequential/tester/src/ |
| A D | main.c | 79 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd() 89 uint16_t opcode; in handle_cmd_complete() local 102 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 110 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 120 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 328 LOG_DBG("opcode %x", opcode); in send_cmd() 331 cmd = create_cmd(opcode, 0); in send_cmd() 337 active_opcode = opcode; in send_cmd() 420 static void set_event_mask(uint16_t opcode) in set_event_mask() argument 427 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask() [all …]
|
| /tests/bsim/bluetooth/host/l2cap/split/tester/src/ |
| A D | main.c | 67 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd() 77 uint16_t opcode; in handle_cmd_complete() local 91 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 99 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 109 __ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 308 LOG_DBG("opcode %x", opcode); in send_cmd() 311 cmd = create_cmd(opcode, 0); in send_cmd() 317 active_opcode = opcode; in send_cmd() 400 static void set_event_mask(uint16_t opcode) in set_event_mask() argument 407 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask() [all …]
|
| /tests/bsim/bluetooth/host/att/pipeline/tester/src/ |
| A D | main.c | 84 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd() 94 uint16_t opcode; in handle_cmd_complete() local 107 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 115 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 125 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 351 LOG_DBG("opcode %x", opcode); in send_cmd() 354 cmd = create_cmd(opcode, 0); in send_cmd() 360 active_opcode = opcode; in send_cmd() 443 static void set_event_mask(uint16_t opcode) in set_event_mask() argument 450 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask() [all …]
|
| /tests/bsim/bluetooth/host/misc/hfc_multilink/tester/src/ |
| A D | tester.c | 68 hdr->opcode = sys_cpu_to_le16(opcode); in create_cmd() 78 uint16_t opcode; in handle_cmd_complete() local 92 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 100 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 110 __ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 319 LOG_DBG("opcode %x", opcode); in send_cmd() 322 cmd = create_cmd(opcode, 0); in send_cmd() 328 active_opcode = opcode; in send_cmd() 411 static void set_event_mask(uint16_t opcode) in set_event_mask() argument 418 buf = create_cmd(opcode, sizeof(*cp_mask)); in set_event_mask() [all …]
|
| /tests/bluetooth/controller/ctrl_invalid/src/ |
| A D | main.c | 63 static void lt_tx_invalid_pdu_size(enum helper_pdu_opcode opcode, int adj_size) in lt_tx_invalid_pdu_size() argument 72 encode_pdu(opcode, &pdu, &data); in lt_tx_invalid_pdu_size() 75 if (opcode == LL_ZERO) { in lt_tx_invalid_pdu_size() 79 unknown_rsp.type = pdu.llctrl.opcode; in lt_tx_invalid_pdu_size()
|