Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 88) sorted by relevance

1234

/hal_espressif-latest/components/driver/spi/sdspi/
Dsdspi_transaction.c29 void make_hw_cmd(uint32_t opcode, uint32_t arg, int timeout_ms, sdspi_hw_cmd_t *hw_cmd) in make_hw_cmd() argument
33 hw_cmd->cmd_index = opcode; in make_hw_cmd()
102 make_hw_cmd(cmdinfo->opcode, cmdinfo->arg, cmdinfo->timeout_ms, &hw_cmd); in sdspi_host_do_transaction()
122 if (!s_app_cmd && cmdinfo->opcode == SD_SEND_IF_COND) { in sdspi_host_do_transaction()
124 } else if (!s_app_cmd && cmdinfo->opcode == MMC_SEND_STATUS) { in sdspi_host_do_transaction()
126 } else if (!s_app_cmd && cmdinfo->opcode == SD_READ_OCR) { in sdspi_host_do_transaction()
128 } else if (s_app_cmd && cmdinfo->opcode == SD_APP_SD_STATUS) { in sdspi_host_do_transaction()
130 } else if (!s_app_cmd && cmdinfo->opcode == MMC_GO_IDLE_STATE && in sdspi_host_do_transaction()
134 } else if (!s_app_cmd && cmdinfo->opcode == SD_IO_SEND_OP_COND) { in sdspi_host_do_transaction()
136 } else if (!s_app_cmd && cmdinfo->opcode == SD_IO_RW_DIRECT) { in sdspi_host_do_transaction()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Davrc_defs.h763 UINT8 opcode; /* Op Code (passthrough, vendor, etc) */ member
951 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
959 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
967 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
976 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
985 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
994 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1004 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1013 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
1021 UINT8 opcode; /* Op Code (assigned by AVRC_BldCommand according to pdu) */ member
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/stack/avrc/
Davrc_utils.c199 UINT8 opcode = 0; in avrc_opcode_from_pdu() local
204 opcode = AVRC_OP_PASS_THRU; in avrc_opcode_from_pdu()
208 opcode = AVRC_OP_VENDOR; in avrc_opcode_from_pdu()
212 return opcode; in avrc_opcode_from_pdu()
224 BOOLEAN avrc_is_valid_opcode(UINT8 opcode) in avrc_is_valid_opcode() argument
227 switch (opcode) { in avrc_is_valid_opcode()
Davrc_bld_ct.c131 UINT8 opcode = avrc_opcode_from_pdu(p_cmd->pdu); in avrc_bld_init_cmd_buffer() local
132 AVRC_TRACE_API("avrc_bld_init_cmd_buffer: pdu=%x, opcode=%x", p_cmd->pdu, opcode); in avrc_bld_init_cmd_buffer()
135 switch (opcode) { in avrc_bld_init_cmd_buffer()
151 p_pkt->event = opcode; in avrc_bld_init_cmd_buffer()
157 if (opcode != AVRC_OP_PASS_THRU) { in avrc_bld_init_cmd_buffer()
161 switch (opcode) { in avrc_bld_init_cmd_buffer()
173 p_cmd->cmd.opcode = opcode; in avrc_bld_init_cmd_buffer()
Davrc_bld_tg.c725 UINT8 opcode = avrc_opcode_from_pdu(p_rsp->pdu); in avrc_bld_init_rsp_buffer() local
727 AVRC_TRACE_API("avrc_bld_init_rsp_buffer: pdu=%x, opcode=%x/%x", p_rsp->pdu, opcode, in avrc_bld_init_rsp_buffer()
728 p_rsp->rsp.opcode); in avrc_bld_init_rsp_buffer()
729 if (opcode != p_rsp->rsp.opcode && p_rsp->rsp.status != AVRC_STS_NO_ERROR && in avrc_bld_init_rsp_buffer()
730 avrc_is_valid_opcode(p_rsp->rsp.opcode)) { in avrc_bld_init_rsp_buffer()
731 opcode = p_rsp->rsp.opcode; in avrc_bld_init_rsp_buffer()
732 AVRC_TRACE_API("opcode=%x", opcode); in avrc_bld_init_rsp_buffer()
735 switch (opcode) { in avrc_bld_init_rsp_buffer()
751 p_pkt->event = opcode; in avrc_bld_init_rsp_buffer()
757 if (opcode != AVRC_OP_PASS_THRU) { in avrc_bld_init_rsp_buffer()
[all …]
Davrc_pars_ct.c140 switch (p_msg->hdr.opcode) { in AVRC_ParsResponse()
153 AVRC_TRACE_ERROR("AVRC_ParsResponse() unknown opcode:0x%x", p_msg->hdr.opcode); in AVRC_ParsResponse()
156 p_result->rsp.opcode = p_msg->hdr.opcode; in AVRC_ParsResponse()
/hal_espressif-latest/components/bt/host/bluedroid/hci/
Dhci_layer.c97 static pkt_linked_item_t *get_waiting_command(command_opcode_t opcode);
266 HCI_TRACE_DEBUG("HCI Enqueue Command opcode=0x%x\n", metadata->opcode); in transmit_command()
411 …%s hci layer timeout waiting for response to a command. opcode: 0x%x", __func__, metadata->opcode); in command_timed_out()
440 command_opcode_t opcode; in filter_incoming_event() local
449 STREAM_TO_UINT16(opcode, stream); in filter_incoming_event()
450 wait_entry = get_waiting_command(opcode); in filter_incoming_event()
453 …ACE_WARNING("%s command complete event with no matching command. opcode: 0x%x.", __func__, opcode); in filter_incoming_event()
459 HCI_TRACE_WARNING("%s sync_info is NULL. opcode = 0x%x", __func__, opcode); in filter_incoming_event()
461 if (sync_info->sync_sem && sync_info->opcode == opcode) { in filter_incoming_event()
463 sync_info->opcode = 0; in filter_incoming_event()
[all …]
Dhci_packet_factory.c30 static BT_HDR *make_command_no_params(uint16_t opcode);
31 static BT_HDR *make_command(uint16_t opcode, size_t parameter_size, uint8_t **stream_out);
229 static BT_HDR *make_command_no_params(uint16_t opcode) in make_command_no_params() argument
231 return make_command(opcode, 0, NULL); in make_command_no_params()
234 static BT_HDR *make_command(uint16_t opcode, size_t parameter_size, uint8_t **stream_out) in make_command() argument
238 metadata->opcode = opcode; in make_command()
241 UINT16_TO_STREAM(stream, opcode); in make_command()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/
Dtime_scene_client.c92 uint32_t opcode = 0U; in timeout_handler() local
104 opcode = node->opcode; in timeout_handler()
107 opcode, BTC_BLE_MESH_EVT_TIME_SCENE_CLIENT_TIMEOUT, ctx.model, &ctx, NULL, 0); in timeout_handler()
299 switch (node->opcode) { in time_scene_status()
325 uint32_t opcode = node->opcode; in time_scene_status() local
327 bt_mesh_time_scene_client_cb_evt_to_btc(opcode, evt, model, ctx, val, len); in time_scene_status()
373 bt_mesh_model_msg_init(&msg, common->opcode); in time_scene_get_state()
376 switch (common->opcode) { in time_scene_get_state()
384 BT_DBG("No parameters for Time Scene Get 0x%04x", common->opcode); in time_scene_get_state()
404 bt_mesh_model_msg_init(msg, common->opcode); in time_scene_set_state()
[all …]
Dsensor_client.c76 uint32_t opcode = 0U; in timeout_handler() local
88 opcode = node->opcode; in timeout_handler()
91 opcode, BTC_BLE_MESH_EVT_SENSOR_CLIENT_TIMEOUT, ctx.model, &ctx, NULL, 0); in timeout_handler()
262 switch (node->opcode) { in sensor_status()
281 uint32_t opcode = node->opcode; in sensor_status() local
283 bt_mesh_sensor_client_cb_evt_to_btc(opcode, evt, model, ctx, val, len); in sensor_status()
364 bt_mesh_model_msg_init(msg, common->opcode); in sensor_act_state()
366 switch (common->opcode) { in sensor_act_state()
442 BT_ERR("Invalid Sensor client opcode 0x%04x", common->opcode); in sensor_act_state()
470 switch (common->opcode) { in bt_mesh_sensor_client_get_state()
[all …]
Dclient_common.c137 int size, uint32_t opcode) in bt_mesh_client_get_status_op() argument
145 if (op->cli_op == opcode) { in bt_mesh_client_get_status_op()
168 uint32_t opcode, int32_t timeout) in bt_mesh_client_calc_timeout() argument
220 BT_INFO("Client message 0x%08x with timeout %dms", opcode, time); in bt_mesh_client_calc_timeout()
291 BT_ERR("Failed to send client message 0x%08x", param->opcode); in bt_mesh_client_send_msg()
315 node->opcode = param->opcode; in bt_mesh_client_send_msg()
316 …e->op_pending = bt_mesh_client_get_status_op(client->op_pair, client->op_pair_size, param->opcode); in bt_mesh_client_send_msg()
322 node->timeout = bt_mesh_client_calc_timeout(&param->ctx, msg, param->opcode, in bt_mesh_client_send_msg()
341 BT_ERR("Failed to send client message 0x%08x", node->opcode); in bt_mesh_client_send_msg()
/hal_espressif-latest/components/bt/host/bluedroid/stack/btu/
Dbtu_hcif.c451 uint16_t opcode; in btu_hcif_send_cmd() local
455 STREAM_TO_UINT16(opcode, stream); in btu_hcif_send_cmd()
461 metadata->opcode = opcode; in btu_hcif_send_cmd()
465 if ((opcode & HCI_GRP_VENDOR_SPECIFIC) != HCI_GRP_VENDOR_SPECIFIC in btu_hcif_send_cmd()
467 && (opcode != HCI_BLE_RAND) in btu_hcif_send_cmd()
468 && (opcode != HCI_BLE_ENCRYPT) in btu_hcif_send_cmd()
497 uint16_t opcode; in btu_hcif_send_cmd_sync() local
501 STREAM_TO_UINT16(opcode, stream); in btu_hcif_send_cmd_sync()
503 sync_info->opcode = opcode; in btu_hcif_send_cmd_sync()
510 metadata->opcode = opcode; in btu_hcif_send_cmd_sync()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/include/
Dmesh_hci.h96 #define BLE_MESH_OGF(opcode) (((opcode) >> 10) & BIT_MASK(6)) argument
99 #define BLE_MESH_OCF(opcode) ((opcode) & BIT_MASK(10)) argument
/hal_espressif-latest/components/bt/esp_ble_mesh/btc/
Dbtc_ble_mesh_health_model.c138 switch (p_src_data->params->opcode) { in btc_ble_mesh_health_client_copy_req_data()
195 switch (arg->params->opcode) { in btc_ble_mesh_health_client_free_req_data()
238 void bt_mesh_health_client_cb_evt_to_btc(uint32_t opcode, uint8_t evt_type, in bt_mesh_health_client_cb_evt_to_btc() argument
270 params.opcode = opcode; in bt_mesh_health_client_cb_evt_to_btc()
292 void btc_ble_mesh_health_publish_callback(uint32_t opcode, struct bt_mesh_model *model, in btc_ble_mesh_health_publish_callback() argument
301 bt_mesh_health_client_cb_evt_to_btc(opcode, BTC_BLE_MESH_EVT_HEALTH_CLIENT_PUBLISH, in btc_ble_mesh_health_publish_callback()
316 if (params->opcode == ESP_BLE_MESH_MODEL_OP_HEALTH_FAULT_GET && get == NULL) { in btc_ble_mesh_health_client_get_state()
321 param.opcode = params->opcode; in btc_ble_mesh_health_client_get_state()
331 switch (param.opcode) { in btc_ble_mesh_health_client_get_state()
339 BT_ERR("Invalid Health Get opcode 0x%04x", param.opcode); in btc_ble_mesh_health_client_get_state()
[all …]
Dbtc_ble_mesh_time_scene_model.c137 switch (p_src_data->params->opcode) { in btc_ble_mesh_time_scene_client_copy_req_data()
181 switch (arg->params->opcode) { in btc_ble_mesh_time_scene_client_free_req_data()
221 void bt_mesh_time_scene_client_cb_evt_to_btc(uint32_t opcode, uint8_t evt_type, in bt_mesh_time_scene_client_cb_evt_to_btc() argument
253 params.opcode = opcode; in bt_mesh_time_scene_client_cb_evt_to_btc()
275 void btc_ble_mesh_time_scene_client_publish_callback(uint32_t opcode, struct bt_mesh_model *model, in btc_ble_mesh_time_scene_client_publish_callback() argument
284 bt_mesh_time_scene_client_cb_evt_to_btc(opcode, BTC_BLE_MESH_EVT_TIME_SCENE_CLIENT_PUBLISH, in btc_ble_mesh_time_scene_client_publish_callback()
306 common.opcode = params->opcode; in btc_ble_mesh_time_scene_client_call_handler()
326 common.opcode = params->opcode; in btc_ble_mesh_time_scene_client_call_handler()
Dbtc_ble_mesh_config_model.c145 switch (p_src_data->params->opcode) { in btc_ble_mesh_config_client_copy_req_data()
247 switch (arg->params->opcode) { in btc_ble_mesh_config_client_free_req_data()
305 void bt_mesh_config_client_cb_evt_to_btc(uint32_t opcode, uint8_t evt_type, in bt_mesh_config_client_cb_evt_to_btc() argument
337 params.opcode = opcode; in bt_mesh_config_client_cb_evt_to_btc()
359 void btc_ble_mesh_config_client_publish_callback(uint32_t opcode, struct bt_mesh_model *model, in btc_ble_mesh_config_client_publish_callback() argument
368 bt_mesh_config_client_cb_evt_to_btc(opcode, BTC_BLE_MESH_EVT_CONFIG_CLIENT_PUBLISH, in btc_ble_mesh_config_client_publish_callback()
383 switch (params->opcode) { in btc_ble_mesh_config_client_get_state()
403 param.opcode = params->opcode; in btc_ble_mesh_config_client_get_state()
413 switch (param.opcode) { in btc_ble_mesh_config_client_get_state()
461 BT_ERR("Invalid Configuration Get opcode 0x%04x", param.opcode); in btc_ble_mesh_config_client_get_state()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/api/models/
Desp_ble_mesh_config_model_api.c22 static bool config_client_get_need_param(esp_ble_mesh_opcode_t opcode) in config_client_get_need_param() argument
24 switch (opcode) { in config_client_get_need_param()
50 (config_client_get_need_param(params->opcode) && get_state == NULL)) { in esp_ble_mesh_config_client_get_state()
75 (params->opcode != ESP_BLE_MESH_MODEL_OP_NODE_RESET && set_state == NULL)) { in esp_ble_mesh_config_client_set_state()
Desp_ble_mesh_generic_model_api.c22 static bool generic_client_get_need_param(esp_ble_mesh_opcode_t opcode) in generic_client_get_need_param() argument
24 switch (opcode) { in generic_client_get_need_param()
45 (generic_client_get_need_param(params->opcode) && get_state == NULL)) { in esp_ble_mesh_generic_client_get_state()
/hal_espressif-latest/components/bt/esp_ble_mesh/api/core/
Desp_ble_mesh_networking_api.c19 uint32_t opcode, in ble_mesh_model_send_msg() argument
48 if (opcode < 0x100) { in ble_mesh_model_send_msg()
50 } else if (opcode < 0x10000) { in ble_mesh_model_send_msg()
75 bt_mesh_model_msg_init(model->pub->msg, opcode); in ble_mesh_model_send_msg()
82 esp_ble_mesh_model_msg_opcode_init(msg_data, opcode); in ble_mesh_model_send_msg()
97 arg.model_send.opcode = opcode; in ble_mesh_model_send_msg()
119 esp_err_t esp_ble_mesh_model_msg_opcode_init(uint8_t *data, uint32_t opcode) in esp_ble_mesh_model_msg_opcode_init() argument
127 if (opcode < 0x100) { in esp_ble_mesh_model_msg_opcode_init()
129 data[0] = opcode & 0xff; in esp_ble_mesh_model_msg_opcode_init()
133 if (opcode < 0x10000) { in esp_ble_mesh_model_msg_opcode_init()
[all …]
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Daccess.c563 uint8_t model_count, uint32_t opcode, in find_op() argument
574 if (op->opcode == opcode) { in find_op()
584 static int get_opcode(struct net_buf_simple *buf, uint32_t *opcode) in get_opcode() argument
594 *opcode = net_buf_simple_pull_u8(buf); in get_opcode()
602 *opcode = net_buf_simple_pull_be16(buf); in get_opcode()
610 *opcode = net_buf_simple_pull_u8(buf) << 16; in get_opcode()
615 *opcode |= net_buf_simple_pull_le16(buf); in get_opcode()
643 uint32_t opcode = 0U; in bt_mesh_model_recv() local
651 if (get_opcode(buf, &opcode) < 0) { in bt_mesh_model_recv()
656 BT_DBG("OpCode 0x%08x", opcode); in bt_mesh_model_recv()
[all …]
Dhealth_cli.c63 uint32_t opcode = 0U; in timeout_handler() local
75 opcode = node->opcode; in timeout_handler()
78 opcode, BTC_BLE_MESH_EVT_HEALTH_CLIENT_TIMEOUT, ctx.model, &ctx, NULL, 0); in timeout_handler()
110 switch (node->opcode) { in health_client_recv_status()
127 uint32_t opcode = node->opcode; in health_client_recv_status() local
130 opcode, evt_type, model, ctx, (const uint8_t *)status, len); in health_client_recv_status()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/include/
Dclient_common.h44 …void (*publish_status)(uint32_t opcode, struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, …
62 uint32_t opcode; /* Message opcode */ member
70 uint32_t opcode; /* Message opcode */ member
/hal_espressif-latest/components/riscv/
Dinstruction_decode.c20 unsigned int opcode: 7; member
34 if (jal_inst->opcode != 0x6f && jal_inst->rd != 0) { in riscv_decode_offset_from_jal_instruction()
/hal_espressif-latest/components/bt/esp_ble_mesh/api/core/include/
Desp_ble_mesh_networking_api.h58 esp_err_t esp_ble_mesh_model_msg_opcode_init(uint8_t *data, uint32_t opcode);
100 uint32_t opcode,
120 uint32_t opcode,
144 esp_err_t esp_ble_mesh_model_publish(esp_ble_mesh_model_t *model, uint32_t opcode,
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/server/
Dlighting_server.c54 bool publish, uint16_t opcode) in send_light_lightness_status() argument
77 bt_mesh_model_msg_init(msg, opcode); in send_light_lightness_status()
78 switch (opcode) { in send_light_lightness_status()
127 BT_WARN("Unknown Light Lightness status opcode 0x%04x", opcode); in send_light_lightness_status()
148 uint16_t opcode = 0U; in light_lightness_get() local
164 opcode = BLE_MESH_MODEL_OP_LIGHT_LIGHTNESS_STATUS; in light_lightness_get()
167 opcode = BLE_MESH_MODEL_OP_LIGHT_LIGHTNESS_LINEAR_STATUS; in light_lightness_get()
170 opcode = BLE_MESH_MODEL_OP_LIGHT_LIGHTNESS_LAST_STATUS; in light_lightness_get()
173 opcode = BLE_MESH_MODEL_OP_LIGHT_LIGHTNESS_DEFAULT_STATUS; in light_lightness_get()
176 opcode = BLE_MESH_MODEL_OP_LIGHT_LIGHTNESS_RANGE_STATUS; in light_lightness_get()
[all …]

1234