/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/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() 99 LOG_DBG("cmd service 0x%02x opcode 0x%02x index 0x%02x", cmd->hdr.service, in cmd_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 [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 | 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 173 /* Check opcode before length */ in write_vcs_control() 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() [all …]
|
/Zephyr-latest/soc/ite/ec/it8xxx2/ |
D | __arithmetic.S | 19 .macro __int_arithmetic func opcode 25 .word \opcode 31 /* signed 32 bit multiplication. opcode of mul a0,a0,a1 is 0x02b50533 */ 34 /* signed 32 bit division. opcode of div a0,a0,a1 is 0x02b54533 */ 37 /* unsigned 32 bit division. opcode of divu a0,a0,a1 is 0x02b55533 */ 42 * opcode of rem a0,a0,a1 is 0x02b56533 48 * opcode of remu a0,a0,a1 is 0x02b57533
|
/Zephyr-latest/soc/microchip/mec/mec15xx/ |
D | soc_espi_saf_v1.h | 85 * Transmit one byte opcode at 1X (no DMA). 112 * SAF Opcode 32-bit register value. 113 * Each byte contain a SPI flash 8-bit opcode. 114 * NOTE1: opcode value of 0 = flash does not support this operation 116 * SAF Opcode A 117 * op0 = SPI flash write-enable opcode 118 * op1 = SPI flash program/erase suspend opcode 119 * op2 = SPI flash program/erase resume opcode 120 * op3 = SPI flash read STATUS1 opcode 121 * SAF Opcode B [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() 70 /* Loop over handlers to try to handle the command given by opcode. */ 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() 92 /* Lookup the command opcode and invoke handler. */ 102 uint16_t opcode; in cmd_handle() local [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 73 /* Encode a PDU for the opcode */ in lt_tx_pdu_and_rx_unknown_rsp() 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 121 * a placeholder and override the opcode in lt_tx_undef_opcode_and_rx_unknown_rsp() 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 [all …]
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | msg.h | 35 * @brief Helper to determine the length of an opcode. 37 * @param _op Opcode. 44 * Returns the length of a Mesh model message buffer, including the opcode 47 * @param _op Opcode of the message. 56 * Returns the length of a Mesh model message buffer, including the opcode 59 * @param _op Opcode of the message. 69 * @param _op Opcode of the message. 161 * Clears the message buffer contents, and encodes the given opcode. 165 * @param opcode Opcode to encode. 167 void bt_mesh_model_msg_init(struct net_buf_simple *msg, uint32_t opcode); [all …]
|
/Zephyr-latest/soc/microchip/mec/mec172x/ |
D | soc_espi_saf_v2.h | 109 * Transmit one byte opcode at 1X (no DMA). 136 * SAF Opcode 32-bit register value. 137 * Each byte contain a SPI flash 8-bit opcode. 138 * NOTE1: opcode value of 0 = flash does not support this operation 140 * SAF Opcode A 141 * op0 = SPI flash write-enable opcode 142 * op1 = SPI flash program/erase suspend opcode 143 * op2 = SPI flash program/erase resume opcode 144 * op3 = SPI flash read STATUS1 opcode 145 * SAF Opcode B [all …]
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/tests_scripts/op_agg/ |
D | model_coex.sh | 7 # Test that Opcode aggregator server and client can coexist on the same device. 8 # In this test scenario, the DUT has a sequence in progress on the Opcode 9 # Aggregator client model that is interrupted by an incoming sequence to the Opcode 14 # 1. Both Tester and DUT device initialize both Opcode aggregator server and client. 15 # Both devices starts an Opcode aggregator sequence and populates the buffer.
|
D | loopback.sh | 7 # Test that an Opcode aggregated message can be sent and received on loopback. 10 # 1. The device initializes both Opcode aggregator server and client. 11 # The device starts an Opcode aggregator sequence and populates the buffer.
|
/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() 30 * will declare the opcode in this way. in bt_mesh_model_msg_init() 32 net_buf_simple_add_le16(msg, opcode & 0xffff); in bt_mesh_model_msg_init() 35 LOG_WRN("Unknown opcode format"); in bt_mesh_model_msg_init()
|
/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() 46 "'%s()' was called with incorrect '%s' value", func_name, "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() 67 "'%s()' was called with incorrect '%s' value", func_name, "opcode"); in expect_single_call_bt_hci_cmd_send_sync()
|
/Zephyr-latest/include/zephyr/bluetooth/audio/ |
D | mcs.h | 224 /** Support the Play opcode */ 226 /** Support the Pause opcode */ 228 /** Support the Fast Rewind opcode */ 230 /** Support the Fast Forward opcode */ 232 /** Support the Stop opcode */ 235 /** Support the Move Relative opcode */ 238 /** Support the Previous Segment opcode */ 240 /** Support the Next Segment opcode */ 242 /** Support the First Segment opcode */ 244 /** Support the Last Segment opcode */ [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() 100 /* Loop over handlers to try to handle the command given by opcode. */ 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() 123 /* Lookup the command opcode and invoke handler. */ [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 109 LOG_DBG("Receive: opcode %u, block no %u, size %d", in send_data() 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() 131 LOG_ERR("Server responded with invalid opcode or block number."); in send_data() 151 /* Fill in the "Err" Opcode and the actual error code. */ in send_err() 251 .opcode = htons(ACK_OPCODE), in tftp_get() 273 uint16_t opcode = sys_get_be16(client->tftp_buf); in tftp_get() local [all …]
|
/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() 186 TEST_FAIL("unhandled opcode %x\n", op); in handle_att() [all …]
|
/Zephyr-latest/samples/bluetooth/tmap_peripheral/src/ |
D | mcp_ctlr.c | 37 printk("MCP: Command send failed (%d) - opcode: %u, param: %d\n", in mcc_send_command_cb() 38 err, cmd->opcode, cmd->param); in mcc_send_command_cb() 40 printk("MCP: Successfully sent command (%d) - opcode: %u, param: %d\n", in mcc_send_command_cb() 41 err, cmd->opcode, cmd->param); in mcc_send_command_cb() 73 cmd.opcode = mcp_opcode; in mcp_send_cmd()
|
/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/tests/bluetooth/audio/ascs/src/ |
D | test_ase_control_params.c | 113 uint8_t opcode) in test_expect_unsupported_opcode() argument 116 opcode, /* Opcode */ in test_expect_unsupported_opcode() 121 opcode, /* Opcode */ in test_expect_unsupported_opcode() 124 0x01, /* Response_Code[0] = Unsupported Opcode */ in test_expect_unsupported_opcode() 148 0x01, /* Opcode = Config Codec */ in test_codec_configure_expect_invalid_length() 179 0x01, /* Opcode = Config Codec */ in ZTEST_F() 204 0x01, /* Opcode = Config Codec */ in ZTEST_F() 237 0x01, /* Opcode = Config Codec */ in ZTEST_F() 278 0x01, /* Opcode = Config Codec */ in ZTEST_F() 314 0x01, /* Opcode = Config Codec */ in ZTEST_F() [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() 232 FAIL("unhandled opcode %x\n", op); in handle_att() 323 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument [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() 210 FAIL("unhandled opcode %x\n", op); in handle_att() 301 static void send_cmd(uint16_t opcode, struct net_buf *cmd, struct net_buf **rsp) in send_cmd() argument [all …]
|
/Zephyr-latest/arch/arm64/core/ |
D | elf.c | 94 * @param[in] loc Address of an opcode to rewrite (P in AArch64 ELF). 122 * @param[in] loc Address of an opcode to rewrite (P in AArch64 ELF). 186 * @param[in] loc Address of an opcode to rewrite (P in AArch64 ELF). 200 uint32_t opcode = sys_le32_to_cpu(*(uint32_t *)loc); in movw_reloc_handler() local 260 /* Manipulate opcode for signed relocations. Result depends on sign of immediate value. */ in movw_reloc_handler() 262 opcode &= ~(AARCH64_MASK_MOV_OPCODE << AARCH64_SHIFT_MOV_OPCODE); in movw_reloc_handler() 265 opcode |= (AARCH64_OPCODE_MOVN << AARCH64_SHIFT_MOV_OPCODE); in movw_reloc_handler() 267 opcode |= (AARCH64_OPCODE_MOVZ << AARCH64_SHIFT_MOV_OPCODE); in movw_reloc_handler() 273 opcode &= ~(AARCH64_MASK_IMM16 << AARCH64_SHIFT_MOV_IMM16); in movw_reloc_handler() 274 opcode |= (imm & AARCH64_MASK_IMM16) << AARCH64_SHIFT_MOV_IMM16; in movw_reloc_handler() [all …]
|