/Zephyr-latest/tests/bluetooth/tester/src/audio/ |
D | btp_bap.c | 78 .opcode = BTP_ASCS_READ_SUPPORTED_COMMANDS, 84 .opcode = BTP_ASCS_CONFIGURE_CODEC, 89 .opcode = BTP_ASCS_CONFIGURE_QOS, 94 .opcode = BTP_ASCS_ENABLE, 99 .opcode = BTP_ASCS_RECEIVER_START_READY, 104 .opcode = BTP_ASCS_RECEIVER_STOP_READY, 109 .opcode = BTP_ASCS_DISABLE, 114 .opcode = BTP_ASCS_RELEASE, 119 .opcode = BTP_ASCS_UPDATE_METADATA, 124 .opcode = BTP_ASCS_ADD_ASE_TO_CIS, [all …]
|
/Zephyr-latest/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-latest/tests/bluetooth/tester/src/ |
D | btp.c | 56 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, 58 static void tester_rsp_with_index(uint8_t service, uint8_t opcode, uint8_t index, 72 static const struct btp_handler *find_btp_handler(uint8_t service, uint8_t opcode) in find_btp_handler() argument 80 if (service_handler[service].handlers[i].opcode == opcode) { in find_btp_handler() 100 cmd->hdr.opcode, cmd->hdr.index); in cmd_handler() 104 btp = find_btp_handler(cmd->hdr.service, cmd->hdr.opcode); in cmd_handler() 130 tester_send_with_index(cmd->hdr.service, cmd->hdr.opcode, in cmd_handler() 133 tester_rsp_with_index(cmd->hdr.service, cmd->hdr.opcode, in cmd_handler() 278 static void tester_send_with_index(uint8_t service, uint8_t opcode, uint8_t index, in tester_send_with_index() argument 284 msg.opcode = opcode; in tester_send_with_index() [all …]
|
/Zephyr-latest/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-latest/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-latest/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-latest/tests/bluetooth/host/id/mocks/ |
D | hci_core_expects.c | 38 void expect_single_call_bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in expect_single_call_bt_hci_cmd_create() argument 45 zassert_equal(bt_hci_cmd_create_fake.arg0_val, opcode, in expect_single_call_bt_hci_cmd_create() 59 void expect_single_call_bt_hci_cmd_send_sync(uint16_t opcode) in expect_single_call_bt_hci_cmd_send_sync() argument 66 zassert_equal(bt_hci_cmd_send_sync_fake.arg0_val, opcode, in expect_single_call_bt_hci_cmd_send_sync()
|
D | hci_core_expects.h | 31 void expect_single_call_bt_hci_cmd_create(uint16_t opcode, uint8_t param_len); 47 void expect_single_call_bt_hci_cmd_send_sync(uint16_t opcode);
|
/Zephyr-latest/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-latest/tests/bsim/bluetooth/host/l2cap/reassembly/peer/src/ |
D | peer.c | 59 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() argument 64 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in bt_hci_cmd_create() 76 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create() 86 uint16_t opcode; in handle_cmd_complete() local 99 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 107 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 113 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete() 115 TEST_ASSERT(status == 0x00, "cmd 0x%x status: 0x%x", opcode, status); in handle_cmd_complete() 117 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-latest/tests/bluetooth/controller/common/src/ |
D | helper_util.c | 405 void lt_tx_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, in lt_tx_real() argument 418 if (helper_node_encode[opcode]) { in lt_tx_real() 419 helper_node_encode[opcode](rx, param); in lt_tx_real() 423 zassert_not_null(helper_pdu_encode[opcode], "PDU encode function cannot be NULL\n"); in lt_tx_real() 424 helper_pdu_encode[opcode](pdu, param); in lt_tx_real() 455 void lt_rx_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, in lt_rx_real() argument 466 if (helper_pdu_verify[opcode]) { in lt_rx_real() 467 helper_pdu_verify[opcode](file, line, pdu, param); in lt_rx_real() 481 void ut_rx_pdu_real(const char *file, uint32_t line, enum helper_pdu_opcode opcode, in ut_rx_pdu_real() argument 494 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-latest/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-latest/drivers/bluetooth/hci/ |
D | hci_nxp.c | 83 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 89 buf = bt_hci_cmd_create(opcode, params_len); in nxp_bt_send_vs_command() 99 return bt_hci_cmd_send_sync(opcode, buf, NULL); in nxp_bt_send_vs_command() 109 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_SET_BT_SLEEP_MODE_OCF); in nxp_bt_enable_controller_autosleep() local 117 return nxp_bt_send_vs_command(opcode, params, HCI_CMD_SET_BT_SLEEP_MODE_PARAM_LENGTH); in nxp_bt_enable_controller_autosleep() 122 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_BT_HOST_SLEEP_CONFIG_OCF); in nxp_bt_set_host_sleep_config() local 129 return nxp_bt_send_vs_command(opcode, params, HCI_CMD_BT_HOST_SLEEP_CONFIG_PARAM_LENGTH); in nxp_bt_set_host_sleep_config() 136 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_STORE_BT_CAL_DATA_OCF); in bt_nxp_set_calibration_data() local 140 return nxp_bt_send_vs_command(opcode, hci_cal_data_params, in bt_nxp_set_calibration_data() 147 uint16_t opcode = BT_OP(BT_OGF_VS, HCI_CMD_STORE_BT_CAL_DATA_ANNEX100_OCF); in bt_nxp_set_calibration_data_annex100() local [all …]
|
D | hci_stm32wb0.c | 100 static uint8_t check_legacy_extended_call(uint16_t opcode, uint8_t *buffer_out) in check_legacy_extended_call() argument 105 if (IN_RANGE(opcode, BT_HCI_OP_LE_SET_ADV_PARAM, BT_HCI_OP_LE_CREATE_CONN)) { in check_legacy_extended_call() 113 } else if ((opcode >= BT_HCI_OP_LE_SET_EXT_ADV_PARAM) && in check_legacy_extended_call() 114 (opcode <= BT_HCI_OP_LE_READ_PER_ADV_LIST_SIZE)) { in check_legacy_extended_call() 128 if (opcode == BT_HCI_OP_LE_CREATE_CONN || opcode == BT_HCI_OP_LE_EXT_CREATE_CONN || in check_legacy_extended_call() 129 opcode == BT_HCI_OP_LE_PER_ADV_CREATE_SYNC) { in check_legacy_extended_call() 137 params->opcode = sys_cpu_to_le16(opcode); in check_legacy_extended_call() 145 params->opcode = sys_cpu_to_le16(opcode); in check_legacy_extended_call() 164 op_code = hdr->opcode; in process_command() 171 for (i = 0; hci_command_table[i].opcode != 0; i++) { in process_command() [all …]
|
/Zephyr-latest/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 = 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-latest/tests/bsim/bluetooth/host/misc/disconnect/tester/src/ |
D | main.c | 58 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() argument 63 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in bt_hci_cmd_create() 75 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create() 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() 116 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 303 LOG_DBG("opcode %x", opcode); in send_cmd() [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/ |
D | hci.h | 60 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len); 79 int bt_hci_cmd_send(uint16_t opcode, struct net_buf *buf); 104 int bt_hci_cmd_send_sync(uint16_t opcode, struct net_buf *buf,
|
/Zephyr-latest/drivers/flash/ |
D | flash_npcx_fiu_nor.c | 92 static int flash_npcx_uma_cmd_only(const struct device *dev, uint8_t opcode) in flash_npcx_uma_cmd_only() argument 94 struct npcx_uma_cfg cfg = { .opcode = opcode}; in flash_npcx_uma_cmd_only() 99 static int flash_npcx_uma_cmd_by_addr(const struct device *dev, uint8_t opcode, in flash_npcx_uma_cmd_by_addr() argument 102 struct npcx_uma_cfg cfg = { .opcode = opcode}; in flash_npcx_uma_cmd_by_addr() 108 static int flash_npcx_uma_read(const struct device *dev, uint8_t opcode, in flash_npcx_uma_read() argument 111 struct npcx_uma_cfg cfg = { .opcode = opcode, in flash_npcx_uma_read() 118 static int flash_npcx_uma_write(const struct device *dev, uint8_t opcode, in flash_npcx_uma_write() argument 121 struct npcx_uma_cfg cfg = { .opcode = opcode, in flash_npcx_uma_write() 128 static int flash_npcx_uma_write_by_addr(const struct device *dev, uint8_t opcode, in flash_npcx_uma_write_by_addr() argument 131 struct npcx_uma_cfg cfg = { .opcode = opcode, in flash_npcx_uma_write_by_addr() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/sequential/tester/src/ |
D | main.c | 62 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() argument 67 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in bt_hci_cmd_create() 79 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create() 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() 116 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete() 120 ASSERT(active_opcode == opcode, "unexpected opcode %x != %x", active_opcode, opcode); in handle_cmd_complete() 323 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument 325 LOG_DBG("opcode %x", opcode); in send_cmd() [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/host/att/pipeline/tester/src/ |
D | main.c | 66 struct net_buf *bt_hci_cmd_create(uint16_t opcode, uint8_t param_len) in bt_hci_cmd_create() argument 71 LOG_DBG("opcode 0x%04x param_len %u", opcode, param_len); in bt_hci_cmd_create() 83 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create() 93 uint16_t opcode; in handle_cmd_complete() local 106 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 114 opcode = sys_le16_to_cpu(evt->opcode); in handle_cmd_complete() 120 LOG_DBG("opcode 0x%04x status %x", opcode, status); in handle_cmd_complete() 124 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 349 LOG_DBG("opcode %x", opcode); in send_cmd() [all …]
|