| /Zephyr-4.3.0/tests/bluetooth/tester/src/audio/ |
| D | btp_bap.c | 80 .opcode = BTP_ASCS_READ_SUPPORTED_COMMANDS, 86 .opcode = BTP_ASCS_CONFIGURE_CODEC, 91 .opcode = BTP_ASCS_CONFIGURE_QOS, 96 .opcode = BTP_ASCS_ENABLE, 101 .opcode = BTP_ASCS_RECEIVER_START_READY, 106 .opcode = BTP_ASCS_RECEIVER_STOP_READY, 111 .opcode = BTP_ASCS_DISABLE, 116 .opcode = BTP_ASCS_RELEASE, 121 .opcode = BTP_ASCS_UPDATE_METADATA, 126 .opcode = BTP_ASCS_ADD_ASE_TO_CIS, [all …]
|
| D | btp_csis.c | 127 .opcode = BTP_CSIS_READ_SUPPORTED_COMMANDS, 133 .opcode = BTP_CSIS_SET_MEMBER_LOCK, 138 .opcode = BTP_CSIS_GET_MEMBER_RSI, 143 .opcode = BTP_CSIS_SET_SIRK_TYPE, 148 .opcode = BTP_CSIS_SET_SIRK, 153 .opcode = BTP_CSIS_SET_SET_SIZE,
|
| /Zephyr-4.3.0/subsys/bluetooth/audio/ |
| D | mcs_internal.h | 21 #define BT_MCS_VALID_OP(opcode) \ argument 22 (IN_RANGE((opcode), BT_MCS_OPC_PLAY, BT_MCS_OPC_STOP) || \ 23 (opcode == BT_MCS_OPC_MOVE_RELATIVE) || \ 24 IN_RANGE((opcode), BT_MCS_OPC_PREV_SEGMENT, BT_MCS_OPC_GOTO_SEGMENT) || \ 25 IN_RANGE((opcode), BT_MCS_OPC_PREV_TRACK, BT_MCS_OPC_GOTO_TRACK) || \ 26 IN_RANGE((opcode), BT_MCS_OPC_PREV_GROUP, BT_MCS_OPC_GOTO_GROUP))
|
| D | bap_internal.h | 42 #define BT_BAP_BASS_VALID_OPCODE(opcode) ((opcode) <= BT_BAP_BASS_OP_REM_SRC) argument 45 uint8_t opcode; member 49 uint8_t opcode; member 59 uint8_t opcode; member 70 uint8_t opcode; member 79 uint8_t opcode; member 85 uint8_t opcode; member 90 uint8_t opcode; member
|
| D | tbs_internal.h | 76 static inline const char *bt_tbs_opcode_str(uint8_t opcode) in bt_tbs_opcode_str() argument 78 switch (opcode) { in bt_tbs_opcode_str() 228 uint8_t opcode; member 233 uint8_t opcode; member 238 uint8_t opcode; member 243 uint8_t opcode; member 248 uint8_t opcode; member 253 uint8_t opcode; member 258 uint8_t opcode; member 268 uint8_t opcode; member
|
| D | vcp_vol_rend.c | 51 #define VALID_VCP_OPCODE(opcode) ((opcode) <= BT_VCP_OPCODE_MUTE) argument 163 uint8_t opcode; in write_vcs_control() local 174 if (!VALID_VCP_OPCODE(cp_val->cp.opcode)) { in write_vcs_control() 175 LOG_DBG("Invalid opcode %u", cp_val->cp.opcode); in write_vcs_control() 181 cp_val->cp.opcode != BT_VCP_OPCODE_SET_ABS_VOL) || in write_vcs_control() 186 opcode = cp_val->cp.opcode; in write_vcs_control() 188 LOG_DBG("Opcode %u, counter %u", opcode, cp_val->cp.counter); in write_vcs_control() 194 switch (opcode) { in write_vcs_control() 196 LOG_DBG("Relative Volume Down (0x%x)", opcode); in write_vcs_control() 204 LOG_DBG("Relative Volume Up (0x%x)", opcode); in write_vcs_control() [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/tester/src/ |
| D | btp.c | 61 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, 63 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index, 77 static const struct btp_handler *find_btp_handler(uint8_t service, uint8_t opcode) in find_btp_handler() argument 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() 143 tester_send_with_index(hdr->service, hdr->opcode, in cmd_handler() 146 tester_rsp_with_index(hdr->service, hdr->opcode, in cmd_handler() 292 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_send_with_index() argument 298 msg.opcode = opcode; in tester_send_with_index() [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/controller/ctrl_unsupported/src/ |
| 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 …]
|
| /Zephyr-4.3.0/tests/bluetooth/hci_prop_evt/src/ |
| D | main.c | 41 uint16_t opcode; /* HCI command opcode */ member 44 uint8_t len, uint16_t opcode); 58 static void *cmd_complete(struct net_buf **buf, uint8_t plen, uint16_t opcode) in cmd_complete() argument 66 cc->opcode = sys_cpu_to_le16(opcode); in cmd_complete() 71 static int cmd_handle_helper(uint16_t opcode, struct net_buf *cmd, in cmd_handle_helper() argument 79 if (handler->opcode != opcode) { in cmd_handle_helper() 84 handler->handler(cmd, evt, handler->len, opcode); in cmd_handle_helper() 102 uint16_t opcode; in cmd_handle() local 106 opcode = sys_le16_to_cpu(chdr->opcode); in cmd_handle() 108 err = cmd_handle_helper(opcode, cmd, &evt, handlers, num_handlers); in cmd_handle() [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/host_long_adv_recv/src/ |
| D | main.c | 51 uint16_t opcode; /* HCI command opcode */ member 53 void (*handler)(struct net_buf *buf, struct net_buf **evt, uint8_t len, uint16_t opcode); 87 static void *cmd_complete(struct net_buf **buf, uint8_t plen, uint16_t opcode) in cmd_complete() argument 95 cc->opcode = sys_cpu_to_le16(opcode); in cmd_complete() 101 static int cmd_handle_helper(uint16_t opcode, struct net_buf *cmd, struct net_buf **evt, in cmd_handle_helper() argument 107 if (handler->opcode != opcode) { in cmd_handle_helper() 112 handler->handler(cmd, evt, handler->len, opcode); in cmd_handle_helper() 118 zassert_unreachable("opcode %X failed", opcode); in cmd_handle_helper() 131 uint16_t opcode; in cmd_handle() local 135 opcode = sys_le16_to_cpu(chdr->opcode); in cmd_handle() [all …]
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/tester/src/audio/ |
| D | mcp_central.c | 26 const uint8_t opcode = BT_MCS_OPC_PAUSE; in test_mcp_central() local 54 bsim_btp_mcp_send_cmd(&remote_addr, opcode, false, 0); in test_mcp_central() 56 TEST_ASSERT(opcode == expect_opcode, "%u != %u", opcode, expect_opcode); in test_mcp_central()
|
| /Zephyr-4.3.0/subsys/bluetooth/mesh/ |
| D | msg.c | 15 void bt_mesh_model_msg_init(struct net_buf_simple *msg, uint32_t opcode) in bt_mesh_model_msg_init() argument 19 switch (BT_MESH_MODEL_OP_LEN(opcode)) { in bt_mesh_model_msg_init() 21 net_buf_simple_add_u8(msg, opcode); in bt_mesh_model_msg_init() 24 net_buf_simple_add_be16(msg, opcode); in bt_mesh_model_msg_init() 27 net_buf_simple_add_u8(msg, ((opcode >> 16) & 0xff)); in bt_mesh_model_msg_init() 32 net_buf_simple_add_le16(msg, opcode & 0xffff); in bt_mesh_model_msg_init()
|
| D | op_agg.c | 70 uint16_t opcode; in bt_mesh_op_agg_is_op_agg_msg() local 74 opcode = net_buf_simple_pull_be16(buf); in bt_mesh_op_agg_is_op_agg_msg() 77 if ((opcode == OP_OPCODES_AGGREGATOR_STATUS) || in bt_mesh_op_agg_is_op_agg_msg() 78 (opcode == OP_OPCODES_AGGREGATOR_SEQUENCE)) { in bt_mesh_op_agg_is_op_agg_msg()
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/ |
| D | peer.c | 60 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument 65 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd() 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() 112 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete() 114 TEST_ASSERT(status == 0x00, "cmd 0x%x status: 0x%x", opcode, status); in handle_cmd_complete() 116 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 277 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument [all …]
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/tester/src/ |
| D | bsim_btp.c | 40 switch (hdr->opcode) { in is_valid_core_packet_len() 55 LOG_ERR("Unhandled opcode 0x%02X", hdr->opcode); in is_valid_core_packet_len() 62 switch (hdr->opcode) { in is_valid_gap_packet_len() 223 LOG_ERR("Unhandled opcode 0x%02X", hdr->opcode); in is_valid_gap_packet_len() 230 switch (hdr->opcode) { in is_valid_gatt_packet_len() 474 LOG_ERR("Unhandled opcode 0x%02X", hdr->opcode); in is_valid_gatt_packet_len() 481 switch (hdr->opcode) { in is_valid_l2cap_packet_len() 528 LOG_ERR("Unhandled opcode 0x%02X", hdr->opcode); in is_valid_l2cap_packet_len() 535 switch (hdr->opcode) { in is_valid_mesh_packet_len() 819 LOG_ERR("Unhandled opcode 0x%02X", hdr->opcode); in is_valid_mesh_packet_len() [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/controller/common/src/ |
| D | helper_util.c | 407 void lt_tx_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, in lt_tx_real() argument 420 if (helper_node_encode[opcode]) { in lt_tx_real() 421 helper_node_encode[opcode](rx, param); in lt_tx_real() 425 zassert_not_null(helper_pdu_encode[opcode], "PDU encode function cannot be NULL\n"); in lt_tx_real() 426 helper_pdu_encode[opcode](pdu, param); in lt_tx_real() 457 void lt_rx_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, in lt_rx_real() argument 468 if (helper_pdu_verify[opcode]) { in lt_rx_real() 469 helper_pdu_verify[opcode](file, line, pdu, param); in lt_rx_real() 483 void ut_rx_pdu_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, in ut_rx_pdu_real() argument 496 if (helper_pdu_ntf_verify[opcode]) { in ut_rx_pdu_real() [all …]
|
| 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() 86 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PER_INIT_FEAT_XCHG; in helper_pdu_encode_peripheral_feature_req() 102 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_FEATURE_RSP; in helper_pdu_encode_feature_rsp() 117 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_MIN_USED_CHAN_IND; in helper_pdu_encode_min_used_chans_ind() 129 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_VERSION_IND; in helper_pdu_encode_version_ind() 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() 166 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_START_ENC_REQ; in helper_pdu_encode_start_enc_req() [all …]
|
| /Zephyr-4.3.0/tests/bluetooth/controller/common/include/ |
| 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);
|
| /Zephyr-4.3.0/subsys/net/lib/tftp/ |
| D | tftp_client.c | 106 uint16_t opcode = sys_get_be16(client->tftp_buf); in send_data() local 110 opcode, blockno, ret); in send_data() 112 if (opcode == ACK_OPCODE && blockno == block_no) { in send_data() 114 } else if (opcode == ACK_OPCODE && blockno < block_no) { in send_data() 118 } else if (opcode == ERROR_OPCODE) { in send_data() 251 .opcode = net_htons(ACK_OPCODE), in tftp_get() 273 uint16_t opcode = sys_get_be16(client->tftp_buf); in tftp_get() local 277 opcode, block_no, rcv_size); in tftp_get() 279 if (opcode == ERROR_OPCODE) { in tftp_get() 291 } else if (opcode != DATA_OPCODE) { in tftp_get() [all …]
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/host/misc/disconnect/tester/src/ |
| D | main.c | 62 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument 67 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd() 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() 114 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete() 118 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 301 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument 305 LOG_DBG("opcode %x", opcode); in send_cmd() [all …]
|
| /Zephyr-4.3.0/drivers/bluetooth/hci/ |
| D | hci_nxp.c | 93 static int nxp_bt_send_vs_command(uint16_t opcode, const uint8_t *params, uint8_t params_len) in nxp_bt_send_vs_command() argument 109 return bt_hci_cmd_send_sync(opcode, buf, NULL); in nxp_bt_send_vs_command() 119 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_SET_BT_SLEEP_MODE_OCF); in nxp_bt_enable_controller_autosleep() local 127 return nxp_bt_send_vs_command(opcode, params, HCI_CMD_SET_BT_SLEEP_MODE_PARAM_LENGTH); in nxp_bt_enable_controller_autosleep() 132 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_BT_HOST_SLEEP_CONFIG_OCF); in nxp_bt_set_host_sleep_config() local 139 return nxp_bt_send_vs_command(opcode, params, HCI_CMD_BT_HOST_SLEEP_CONFIG_PARAM_LENGTH); in nxp_bt_set_host_sleep_config() 146 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_STORE_BT_CAL_DATA_OCF); in bt_nxp_set_calibration_data() local 150 return nxp_bt_send_vs_command(opcode, hci_cal_data_params, in bt_nxp_set_calibration_data() 157 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_STORE_BT_CAL_DATA_ANNEX100_OCF); in bt_nxp_set_calibration_data_annex100() local 163 return nxp_bt_send_vs_command(opcode, hci_cal_data_annex100_params, in bt_nxp_set_calibration_data_annex100() [all …]
|
| /Zephyr-4.3.0/include/zephyr/bluetooth/ |
| D | hci.h | 66 __deprecated struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len); 99 int bt_hci_cmd_send(uint16_t opcode, struct net_buf *buf); 124 int bt_hci_cmd_send_sync(uint16_t opcode, struct net_buf *buf,
|
| /Zephyr-4.3.0/subsys/bluetooth/host/ |
| D | monitor.h | 58 uint16_t opcode; member 114 void bt_monitor_send(uint16_t opcode, const void *data, size_t len); 121 static inline void bt_monitor_send(uint16_t opcode, const void *data, size_t len) in bt_monitor_send() argument 123 ARG_UNUSED(opcode); in bt_monitor_send()
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/host/l2cap/split/tester/src/ |
| D | main.c | 52 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument 57 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd() 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() 105 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete() 109 __ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 304 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument 308 LOG_DBG("opcode %x", opcode); in send_cmd() [all …]
|
| /Zephyr-4.3.0/tests/bsim/bluetooth/host/att/pipeline/tester/src/ |
| D | main.c | 69 static struct net_buf *create_cmd(uint16_t opcode, uint8_t param_len) in create_cmd() argument 74 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in create_cmd() 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() 121 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete() 125 TEST_ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 347 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument 351 LOG_DBG("opcode %x", opcode); in send_cmd() [all …]
|