| /subsys/bluetooth/audio/ |
| A 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
|
| A 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))
|
| A 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 186 opcode = cp_val->cp.opcode; in write_vcs_control() 194 switch (opcode) { in write_vcs_control() 237 opcode, vol_rend.state.volume); in write_vcs_control() 245 LOG_DBG("Unmute (0x%x)", opcode); in write_vcs_control() 252 LOG_DBG("Mute (0x%x)", opcode); in write_vcs_control() 544 .opcode = BT_VCP_OPCODE_REL_VOL_DOWN, in bt_vcp_vol_rend_vol_down() 557 .opcode = BT_VCP_OPCODE_REL_VOL_UP, in bt_vcp_vol_rend_vol_up() 612 .opcode = BT_VCP_OPCODE_UNMUTE, in bt_vcp_vol_rend_unmute() [all …]
|
| A 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
|
| A D | has_client.c | 228 switch (hdr->opcode) { in control_point_notify_cb() 307 hdr->opcode = BT_HAS_OP_READ_PRESET_REQ; in read_presets_req() 339 hdr->opcode = opcode; in preset_set() 352 LOG_DBG("conn %p opcode 0x%02x", (void *)inst->conn, opcode); in preset_set_next_or_prev() 355 hdr->opcode = opcode; in preset_set_next_or_prev() 914 uint8_t opcode; in bt_has_client_preset_set() local 937 return preset_set(inst, opcode, index); in bt_has_client_preset_set() 943 uint8_t opcode; in bt_has_client_preset_next() local 962 return preset_set_next_or_prev(inst, opcode); in bt_has_client_preset_next() 968 uint8_t opcode; in bt_has_client_preset_prev() local [all …]
|
| A D | vcp_vol_ctlr.c | 189 static void vcs_cp_notify_app(struct bt_vcp_vol_ctlr *vol_ctlr, uint8_t opcode, int err) in vcs_cp_notify_app() argument 193 LOG_DBG("%p opcode %u err %d", vol_ctlr, opcode, err); in vcs_cp_notify_app() 196 switch (opcode) { in vcs_cp_notify_app() 233 LOG_DBG("Unknown opcode 0x%02x", opcode); in vcs_cp_notify_app() 245 uint8_t opcode = vol_ctlr->cp_val.cp.opcode; in internal_read_vol_state_cb() local 264 if (opcode == BT_VCP_OPCODE_SET_ABS_VOL) { in internal_read_vol_state_cb() 282 vcs_cp_notify_app(vol_ctlr, opcode, cb_err); in internal_read_vol_state_cb() 292 uint8_t opcode = vol_ctlr->cp_val.cp.opcode; in vcp_vol_ctlr_write_vcs_cp_cb() local 326 vcs_cp_notify_app(vol_ctlr, opcode, err); in vcp_vol_ctlr_write_vcs_cp_cb() 591 vol_ctlr->cp_val.cp.opcode = opcode; in vcp_vol_ctlr_common_vcs_cp() [all …]
|
| A D | aics.c | 39 #define VALID_AICS_OPCODE(opcode) \ argument 40 ((opcode) >= BT_AICS_OPCODE_SET_GAIN && (opcode) <= BT_AICS_OPCODE_SET_AUTO) 266 if (!VALID_AICS_OPCODE(cp->cp.opcode)) { in valid_control_point_write() 267 LOG_DBG("Invalid opcode %u", cp->cp.opcode); in valid_control_point_write() 278 LOG_DBG("Opcode %u, counter %u", cp->cp.opcode, cp->cp.counter); in valid_control_point_write() 378 switch (cp->cp.opcode) { in write_aics_control() 842 cp.opcode = BT_AICS_OPCODE_UNMUTE; in bt_aics_unmute() 863 cp.opcode = BT_AICS_OPCODE_MUTE; in bt_aics_mute() 884 cp.opcode = BT_AICS_OPCODE_SET_MANUAL; in bt_aics_manual_gain_set() 905 cp.opcode = BT_AICS_OPCODE_SET_AUTO; in bt_aics_automatic_gain_set() [all …]
|
| A D | vocs.c | 40 #define VALID_VOCS_OPCODE(opcode) ((opcode) == BT_VOCS_OPCODE_SET_OFFSET) argument 196 if (!VALID_VOCS_OPCODE(cp->opcode)) { in write_vocs_control() 197 LOG_DBG("Invalid opcode %u", cp->opcode); in write_vocs_control() 205 LOG_DBG("Opcode %u, counter %u", cp->opcode, cp->counter); in write_vocs_control() 212 switch (cp->opcode) { in write_vocs_control() 553 cp.opcode = BT_VOCS_OPCODE_SET_OFFSET; in bt_vocs_state_set()
|
| /subsys/net/lib/tftp/ |
| A 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() 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() 397 uint16_t opcode = sys_get_be16(client->tftp_buf); in tftp_put() local [all …]
|
| /subsys/bluetooth/mesh/ |
| A 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()
|
| A 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()
|
| A D | testing.h | 30 void (*prov_invalid_bearer)(uint8_t opcode); 86 void bt_mesh_test_prov_invalid_bearer(uint8_t opcode);
|
| /subsys/bluetooth/controller/ll_sw/ |
| A D | ull_llcp_pdu.c | 73 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_REQ; in llcp_pdu_encode_ping_req() 80 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PING_RSP; in llcp_pdu_encode_ping_rsp() 91 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_UNKNOWN_RSP; in llcp_pdu_encode_unknown_rsp() 330 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_REQ; in encode_enc_req() 368 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_ENC_RSP; in llcp_pdu_encode_enc_rsp() 455 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_REQ; in llcp_pdu_encode_phy_req() 471 pdu->llctrl.opcode = PDU_DATA_LLCTRL_TYPE_PHY_RSP; in llcp_pdu_encode_phy_rsp() 507 uint8_t opcode) in encode_conn_param_req_rsp_common() argument 512 pdu->llctrl.opcode = opcode; in encode_conn_param_req_rsp_common() 630 const uint8_t opcode, in encode_length_req_rsp_common() argument [all …]
|
| /subsys/usb/device_next/class/ |
| A D | usbd_msc_scsi.c | 43 #define SCSI_CMD_STRUCT(opcode) struct scsi_##opcode##_cmd argument 79 uint8_t opcode; in SCSI_CMD_STRUCT() local 88 uint8_t opcode; in SCSI_CMD_STRUCT() local 145 uint8_t opcode; in SCSI_CMD_STRUCT() local 177 uint8_t opcode; in SCSI_CMD_STRUCT() local 213 uint8_t opcode; in SCSI_CMD_STRUCT() local 231 uint8_t opcode; in SCSI_CMD_STRUCT() local 240 uint8_t opcode; in SCSI_CMD_STRUCT() local 276 uint8_t opcode; in SCSI_CMD_STRUCT() local 287 uint8_t opcode; in SCSI_CMD_STRUCT() local [all …]
|
| /subsys/bluetooth/host/classic/ |
| A D | obex.c | 79 uint8_t opcode; member 222 uint8_t opcode; in obex_server_put_common() local 303 uint8_t opcode; in obex_server_get_common() local 440 uint8_t opcode; in obex_server_action_common() local 666 uint8_t opcode; member 956 if (client_handler[i].opcode == opcode) { in obex_client_find_handler() 1314 uint8_t opcode; in bt_obex_put() local 1379 uint8_t opcode; in bt_obex_put_rsp() local 1439 uint8_t opcode; in bt_obex_get() local 1504 uint8_t opcode; in bt_obex_get_rsp() local [all …]
|
| A D | avrcp.c | 49 bt_avrcp_opcode_t opcode; member 322 cmd->hdr.opcode = BT_AVRCP_OPC_UNIT_INFO; in avrcp_create_unit_pdu() 344 cmd->hdr.opcode = BT_AVRCP_OPC_SUBUNIT_INFO; in avrcp_create_subunit_pdu() 365 cmd->hdr.opcode = BT_AVRCP_OPC_PASS_THROUGH; in avrcp_create_passthrough_pdu() 386 cmd->hdr.opcode = BT_AVRCP_OPC_VENDOR_DEPENDENT; in avrcp_create_vendor_pdu() 402 avrcp_hdr->opcode); in avrcp_send() 614 (avrcp_hdr->opcode != BT_AVRCP_OPC_UNIT_INFO)) { in avrcp_unit_info_cmd_handler() 683 avrcp_hdr->opcode); in avrcp_recv() 686 if (avrcp_hdr->opcode == rsp_handlers[i].opcode) { in avrcp_recv() 693 if (avrcp_hdr->opcode == cmd_handlers[i].opcode) { in avrcp_recv() [all …]
|
| /subsys/bluetooth/host/ |
| A 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()
|
| A D | monitor.c | 77 static void drop_add(uint16_t opcode) in drop_add() argument 79 switch (opcode) { in drop_add() 147 drop_add(hdr->opcode); in monitor_send() 211 uint16_t opcode, uint16_t len) in encode_hdr() argument 215 hdr->opcode = sys_cpu_to_le16(opcode); in encode_hdr() 236 void bt_monitor_send(uint16_t opcode, const void *data, size_t len) in bt_monitor_send() argument 241 drop_add(opcode); in bt_monitor_send() 245 encode_hdr(&hdr, monitor_ts_get(), opcode, len); in bt_monitor_send()
|
| A D | hci_common.c | 54 cc->opcode = sys_cpu_to_le16(op); in bt_hci_cmd_complete_create() 79 cs->opcode = sys_cpu_to_le16(op); in bt_hci_cmd_status_create()
|
| A D | hci_core.c | 151 uint16_t opcode; member 360 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_create() 403 cmd(buf)->opcode = opcode; in bt_hci_cmd_send() 410 hdr->opcode = sys_cpu_to_le16(opcode); in bt_hci_cmd_send() 506 opcode, err); in bt_hci_cmd_send_sync() 2550 if (opcode == 0) { in hci_cmd_done() 2562 if (cmd(buf)->opcode != opcode) { in hci_cmd_done() 2601 uint16_t opcode; in hci_cmd_complete() local 2605 opcode = sys_le16_to_cpu(evt->opcode); in hci_cmd_complete() 2635 uint16_t opcode; in hci_cmd_status() local [all …]
|
| /subsys/sd/ |
| A D | sd_ops.c | 25 cmd.opcode = SD_SEND_STATUS; in sdmmc_read_status() 213 cmd.opcode = opcode; in sdmmc_spi_read_cxd() 228 LOG_DBG("CMD%d failed: %d", opcode, ret); in sdmmc_spi_read_cxd() 243 cmd.opcode = opcode; in sdmmc_read_cxd() 251 LOG_DBG("CMD%d failed: %d", opcode, ret); in sdmmc_read_cxd() 337 cmd.opcode = SD_VOL_SWITCH; in sdmmc_switch_voltage() 416 cmd.opcode = SD_SEND_RELATIVE_ADDR; in sdmmc_request_rca() 443 cmd.opcode = SD_SELECT_CARD; in sdmmc_select_card() 468 cmd.opcode = SD_APP_CMD; in card_app_command() 509 cmd.opcode = (num_blocks == 1U) ? SD_READ_SINGLE_BLOCK : SD_READ_MULTIPLE_BLOCK; in card_read() [all …]
|
| A D | mmc.c | 201 cmd.opcode = MMC_SEND_OP_COND; in mmc_send_op_cond() 263 cmd.opcode = MMC_SEND_RELATIVE_ADDR; in mmc_set_rca() 287 cmd.opcode = SD_SEND_CSD; in mmc_read_csd() 387 cmd.opcode = SD_SWITCH; in mmc_set_bus_width() 413 cmd.opcode = SD_SWITCH; in mmc_set_hs_timing() 441 cmd.opcode = SD_SWITCH; in mmc_set_power_class_HS200() 477 cmd.opcode = SD_SWITCH; in mmc_set_timing() 525 cmd.opcode = SD_SWITCH; in mmc_set_timing() 536 cmd.opcode = SD_SWITCH; in mmc_set_timing() 567 cmd.opcode = MMC_SEND_EXT_CSD; in mmc_read_ext_csd() [all …]
|
| /subsys/bluetooth/audio/shell/ |
| A D | media_controller.c | 768 .opcode = BT_MCS_OPC_PLAY, in cmd_media_play() 785 .opcode = BT_MCS_OPC_PAUSE, in cmd_media_pause() 839 .opcode = BT_MCS_OPC_STOP, in cmd_media_stop() 1003 .opcode = BT_MCS_OPC_PREV_TRACK, in cmd_media_prev_track() 1022 .opcode = BT_MCS_OPC_NEXT_TRACK, in cmd_media_next_track() 1060 .opcode = BT_MCS_OPC_LAST_TRACK, in cmd_media_last_track() 1078 .opcode = BT_MCS_OPC_GOTO_TRACK, in cmd_media_goto_track() 1113 .opcode = BT_MCS_OPC_PREV_GROUP, in cmd_media_prev_group() 1132 .opcode = BT_MCS_OPC_NEXT_GROUP, in cmd_media_next_group() 1168 .opcode = BT_MCS_OPC_LAST_GROUP, in cmd_media_last_group() [all …]
|
| A D | mcc.c | 1076 .opcode = BT_MCS_OPC_PLAY, in cmd_mcc_play() 1093 .opcode = BT_MCS_OPC_PAUSE, in cmd_mcc_pause() 1146 .opcode = BT_MCS_OPC_STOP, in cmd_mcc_stop() 1303 .opcode = BT_MCS_OPC_PREV_TRACK, in cmd_mcc_prev_track() 1320 .opcode = BT_MCS_OPC_NEXT_TRACK, in cmd_mcc_next_track() 1355 .opcode = BT_MCS_OPC_LAST_TRACK, in cmd_mcc_last_track() 1372 .opcode = BT_MCS_OPC_GOTO_TRACK, in cmd_mcc_goto_track() 1405 .opcode = BT_MCS_OPC_PREV_GROUP, in cmd_mcc_prev_group() 1422 .opcode = BT_MCS_OPC_NEXT_GROUP, in cmd_mcc_next_group() 1457 .opcode = BT_MCS_OPC_LAST_GROUP, in cmd_mcc_last_group() [all …]
|
| /subsys/net/lib/mqtt/ |
| A D | mqtt_transport_websocket.c | 113 enum websocket_opcode opcode = WEBSOCKET_OPCODE_DATA_BINARY; in mqtt_client_websocket_write_msg() local 127 message->msg_iov[i].iov_len, opcode, in mqtt_client_websocket_write_msg() 133 opcode = WEBSOCKET_OPCODE_CONTINUE; in mqtt_client_websocket_write_msg()
|