Home
last modified time | relevance | path

Searched refs:role (Results 1 – 25 of 66) sorted by relevance

123

/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_core/
Daccess.c740 static bool ready_to_send(uint8_t role, uint16_t dst) in ready_to_send() argument
742 if (IS_ENABLED(CONFIG_BLE_MESH_NODE) && bt_mesh_is_provisioned() && role == NODE) { in ready_to_send()
744 …} else if (IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) && bt_mesh_is_provisioner_en() && role == PROVI… in ready_to_send()
750 …} else if (IS_ENABLED(CONFIG_BLE_MESH_FAST_PROV) && bt_mesh_is_provisioned() && role == FAST_PROV)… in ready_to_send()
762 uint8_t role = 0U; in model_send() local
764 role = bt_mesh_get_device_role(model, tx->ctx->srv_send); in model_send()
765 if (role == ROLE_NVAL) { in model_send()
774 if (!ready_to_send(role, tx->ctx->addr)) { in model_send()
803 uint8_t role = 0U; in bt_mesh_model_send() local
805 role = bt_mesh_get_device_role(model, ctx->srv_send); in bt_mesh_model_send()
[all …]
Dmain.c222 uint8_t role = bt_mesh_atomic_get(bt_mesh.flags) & BLE_MESH_SETTINGS_ROLE_BIT_MASK; in bt_mesh_prov_enable() local
223 if (role != BLE_MESH_SETTINGS_ROLE_NONE && in bt_mesh_prov_enable()
224 role != BLE_MESH_SETTINGS_ROLE_NODE) { in bt_mesh_prov_enable()
225 BT_ERR("%s, Mismatch role %u", __func__, role); in bt_mesh_prov_enable()
229 if (role == BLE_MESH_SETTINGS_ROLE_NONE) { in bt_mesh_prov_enable()
233 role == BLE_MESH_SETTINGS_ROLE_NONE) { in bt_mesh_prov_enable()
588 uint8_t role = bt_mesh_atomic_get(bt_mesh.flags) & BLE_MESH_SETTINGS_ROLE_BIT_MASK; in bt_mesh_provisioner_enable() local
589 if (role != BLE_MESH_SETTINGS_ROLE_NONE && in bt_mesh_provisioner_enable()
590 role != BLE_MESH_SETTINGS_ROLE_PROV) { in bt_mesh_provisioner_enable()
591 BT_ERR("%s, Mismatch role %u", __func__, role); in bt_mesh_provisioner_enable()
[all …]
Daccess.h58 struct bt_mesh_subnet *bt_mesh_tx_netkey_get(uint8_t role, uint16_t net_idx);
60 const uint8_t *bt_mesh_tx_devkey_get(uint8_t role, uint16_t dst);
62 struct bt_mesh_app_key *bt_mesh_tx_appkey_get(uint8_t role, uint16_t app_idx);
/hal_espressif-latest/components/bt/host/bluedroid/stack/avct/
Davct_api.c145 AVCT_TRACE_API("AVCT_CreateConn: %d, control:%d", p_cc->role, p_cc->control); in AVCT_CreateConn()
155 if (p_cc->role == AVCT_INT) { in AVCT_CreateConn()
232 UINT16 AVCT_CreateBrowse (UINT8 handle, UINT8 role) in AVCT_CreateBrowse() argument
240 AVCT_TRACE_API("AVCT_CreateBrowse: %d", role); in AVCT_CreateBrowse()
253 if (role == AVCT_INT) { in AVCT_CreateBrowse()
279 UNUSED(role); in AVCT_CreateBrowse()
/hal_espressif-latest/components/bt/host/bluedroid/bta/jv/
Dbta_jv_api.c371 tBTA_JV_STATUS BTA_JvL2capConnectLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capConnectLE() argument
386 p_msg->role = role; in BTA_JvL2capConnectLE()
426 tBTA_JV_STATUS BTA_JvL2capConnect(tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capConnect() argument
440 p_msg->role = role; in BTA_JvL2capConnect()
538 tBTA_JV_STATUS BTA_JvL2capStartServer(tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capStartServer() argument
551 p_msg->role = role; in BTA_JvL2capStartServer()
589 tBTA_JV_STATUS BTA_JvL2capStartServerLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role, in BTA_JvL2capStartServerLE() argument
602 p_msg->role = role; in BTA_JvL2capStartServerLE()
913 tBTA_JV_ROLE role, UINT8 remote_scn, BD_ADDR peer_bd_addr, in BTA_JvRfcommConnect() argument
924 p_msg->role = role; in BTA_JvRfcommConnect()
[all …]
/hal_espressif-latest/components/bt/host/bluedroid/api/
Desp_spp_api.c106 esp_spp_role_t role, uint8_t remote_scn, esp_bd_addr_t peer_bd_addr) in esp_spp_connect() argument
124 arg.connect.role = role; in esp_spp_connect()
147 esp_spp_role_t role, uint8_t local_scn, const char *name) in esp_spp_start_srv() argument
175 arg.start_srv.role = role; in esp_spp_start_srv()
/hal_espressif-latest/components/bt/host/bluedroid/stack/smp/
Dsmp_act.c83 __func__, p_cb->role, recv, p_cb->local_i_key, p_cb->local_r_key); in smp_update_key_mask()
92 } else if (p_cb->role == HCI_ROLE_SLAVE) { in smp_update_key_mask()
565 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) { in smp_proc_pair_cmd()
585 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_proc_pair_cmd()
872 if (!p_dev_rec->new_encryption_key_is_p256 && p_cb->role == HCI_ROLE_SLAVE) { in smp_br_process_pairing_command()
880 if (p_dev_rec && (p_cb->role == HCI_ROLE_SLAVE)) { in smp_br_process_pairing_command()
905 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_br_process_pairing_command()
955 if (p_cb->role == HCI_ROLE_MASTER) { in smp_br_check_authorization_request()
969 if (p_cb->role == HCI_ROLE_MASTER && p_cb->local_r_key == 0) { in smp_br_check_authorization_request()
986 __func__, p_cb->role, p_cb->local_r_key, p_cb->local_i_key); in smp_br_select_next_key()
[all …]
Dsmp_br_main.c319 tSMP_BR_ENTRY_TBL entry_table = smp_br_entry_table[p_cb->role]; in smp_br_state_machine_event()
328 (p_cb->role == HCI_ROLE_SLAVE) ? "Slave" : "Master", in smp_br_state_machine_event()
342 state_table = smp_br_state_table[curr_state][p_cb->role]; in smp_br_state_machine_event()
Dsmp_l2c.c129 p_cb->role = L2CA_GetBleConnRole(bd_addr); in smp_connect_callback()
176 p_cb->role = L2CA_GetBleConnRole(bd_addr); in smp_data_received()
319 p_cb->role = HCI_ROLE_SLAVE; in smp_br_data_received()
Dsmp_utils.c1018 if (p_cb->role == HCI_ROLE_SLAVE) { in smp_proc_pairing_cmpl()
1325 if (p_cb->role == HCI_ROLE_MASTER) { in smp_select_legacy_association_model()
1326 model = smp_association_table[p_cb->role][p_cb->peer_io_caps] in smp_select_legacy_association_model()
1329 model = smp_association_table[p_cb->role][p_cb->local_io_capability] in smp_select_legacy_association_model()
1361 if (p_cb->role == HCI_ROLE_MASTER) { in smp_select_association_model_secure_connections()
1362 model = smp_association_table_sc[p_cb->role][p_cb->peer_io_caps] in smp_select_association_model_secure_connections()
1365 model = smp_association_table_sc[p_cb->role][p_cb->local_io_capability] in smp_select_association_model_secure_connections()
1583 if (p_cb->role == HCI_ROLE_MASTER) { in smp_calculate_f5_mackey_and_long_term_key()
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_ag/
Dbta_ag_sdp.c84 if (p_scb->role == BTA_AG_ACP) { in bta_ag_sdp_cback()
297 } else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) { in bta_ag_sdp_find_attr()
321 if (p_scb->role == BTA_AG_INT) { in bta_ag_sdp_find_attr()
376 if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_INT) { in bta_ag_do_disc()
383 } else if (service & BTA_HFP_SERVICE_MASK && p_scb->role == BTA_AG_ACP) { in bta_ag_do_disc()
390 } else if (service & BTA_HSP_SERVICE_MASK && p_scb->role == BTA_AG_INT) { in bta_ag_do_disc()
/hal_espressif-latest/components/bt/host/bluedroid/btc/profile/std/include/
Dbtc_spp.h57 esp_spp_role_t role; member
68 esp_spp_role_t role; member
/hal_espressif-latest/components/bt/host/bluedroid/stack/include/stack/
Davct_api.h116 UINT8 role; /* Initiator/acceptor role */ member
210 extern UINT16 AVCT_CreateBrowse(UINT8 handle, UINT8 role);
/hal_espressif-latest/components/bt/host/bluedroid/bta/include/bta/
Dbta_jv_api.h615 extern tBTA_JV_STATUS BTA_JvL2capConnectLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
635 extern tBTA_JV_STATUS BTA_JvL2capConnect(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
679 extern tBTA_JV_STATUS BTA_JvL2capStartServer(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
699 extern tBTA_JV_STATUS BTA_JvL2capStartServerLE(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
837 tBTA_JV_ROLE role, UINT8 remote_scn, BD_ADDR peer_bd_addr,
867 extern tBTA_JV_STATUS BTA_JvRfcommStartServer(tBTA_SEC sec_mask, tBTA_JV_ROLE role,
/hal_espressif-latest/components/bt/host/bluedroid/bta/av/
Dbta_av_aact.c307 p_scb->role &= ~BTA_AV_ROLE_START_INT; in notify_start_failed()
335 (p_scb->use_rc == TRUE || (p_scb->role & BTA_AV_ROLE_AD_ACP)) ) { in bta_av_st_rc_timer()
813 …RACE_DEBUG("bta_av_role_res q_tag:%d, wait:x%x, role:x%x", p_scb->q_tag, p_scb->wait, p_scb->role); in bta_av_role_res()
814 if (p_scb->role & BTA_AV_ROLE_START_INT) { in bta_av_role_res()
822 p_scb->role &= ~BTA_AV_ROLE_START_INT; in bta_av_role_res()
838 p_scb->role &= ~BTA_AV_ROLE_START_INT; in bta_av_role_res()
863 APPL_TRACE_DEBUG("wait:x%x, role:x%x", p_scb->wait, p_scb->role); in bta_av_role_res()
1012 UINT8 role = BTA_AV_ROLE_AD_INT; in bta_av_cleanup() local
1029 p_scb->role = role; in bta_av_cleanup()
1148 p_scb->role |= BTA_AV_ROLE_AD_ACP; in bta_av_config_ind()
[all …]
Dbta_av_main.c427 APPL_TRACE_DEBUG("scb hndl x%x, role x%x\n", p_scb->hndl, p_scb->role); in bta_av_conn_cback()
848 ((0 == (p_scb->role & BTA_AV_ROLE_AD_ACP)) || /* Outgoing connection or */ in bta_av_chk_start()
1033 UINT8 role; in bta_av_switch_if_needed() local
1045 BTM_GetRole(p_scbi->peer_addr, &role); in bta_av_switch_if_needed()
1047 if (BTM_ROLE_MASTER != role) { in bta_av_switch_if_needed()
1078 UINT8 role; in bta_av_link_role_ok() local
1081 if (BTM_GetRole(p_scb->peer_addr, &role) == BTM_SUCCESS) { in bta_av_link_role_ok()
1083 __func__, p_scb->hndl, role, bta_av_cb.conn_audio, bits, in bta_av_link_role_ok()
1085 …if (BTM_ROLE_MASTER != role && (A2D_BitsSet(bta_av_cb.conn_audio) > bits || (bta_av_cb.features & … in bta_av_link_role_ok()
/hal_espressif-latest/components/bt/host/bluedroid/stack/avdt/
Davdt_scb_act.c93 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_abort_cmd()
126 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_close_cmd()
228 p_scb->role = AVDT_OPEN_INT; in avdt_scb_hdl_open_rsp()
868 if (p_scb->p_ccb != NULL && p_scb->role == AVDT_CONF_INT) { in avdt_scb_init_open_req()
896 p_scb->role = AVDT_CONF_INT; in avdt_scb_hdl_setconfig_rsp()
1028 if ((p_scb->role == AVDT_CLOSE_INT) || (p_scb->role == AVDT_OPEN_INT)) { in avdt_scb_hdl_tc_close()
1032 event = (p_scb->role == AVDT_CLOSE_INT) ? AVDT_CLOSE_CFM_EVT : AVDT_CLOSE_IND_EVT; in avdt_scb_hdl_tc_close()
1033 p_scb->role = AVDT_CLOSE_ACP; in avdt_scb_hdl_tc_close()
1080 if(p_scb->role == AVDT_CONF_INT) { in avdt_scb_hdl_delay_rpt_cmd()
1110 (p_scb->state == AVDT_SCB_CONF_ST) && (p_scb->role == AVDT_CONF_INT)) { in avdt_scb_hdl_delay_rpt_rsp()
[all …]
Davdt_ad.c502 void avdt_ad_open_req(UINT8 type, tAVDT_CCB *p_ccb, tAVDT_SCB *p_scb, UINT8 role) in avdt_ad_open_req() argument
515 type, role, p_tbl->tcid); in avdt_ad_open_req()
534 if (role == AVDT_ACP) { in avdt_ad_open_req()
/hal_espressif-latest/components/bt/host/bluedroid/bta/jv/include/
Dbta_jv_int.h183 tBTA_JV_ROLE role; member
202 tBTA_JV_ROLE role; member
271 tBTA_JV_ROLE role; member
282 tBTA_JV_ROLE role; member
/hal_espressif-latest/components/bt/host/bluedroid/bta/hf_client/
Dbta_hf_client_sdp.c60 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_ACP) { in bta_hf_client_sdp_cback()
240 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_INT) { in bta_hf_client_sdp_find_attr()
305 if (bta_hf_client_cb.scb.role == BTA_HF_CLIENT_INT) { in bta_hf_client_do_disc()
Dbta_hf_client_act.c201 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_INT; in bta_hf_client_start_open()
274 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_ACP; in bta_hf_client_rfc_acp_open()
327 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_ACP; in bta_hf_client_rfc_fail()
397 bta_hf_client_cb.scb.role = BTA_HF_CLIENT_ACP; in bta_hf_client_rfc_close()
/hal_espressif-latest/components/bt/host/bluedroid/api/include/api/
Desp_spp_api.h330 esp_err_t esp_spp_connect(esp_spp_sec_t sec_mask, esp_spp_role_t role, uint8_t remote_scn, esp_bd_a…
362 esp_err_t esp_spp_start_srv(esp_spp_sec_t sec_mask, esp_spp_role_t role, uint8_t local_scn, const c…
/hal_espressif-latest/tools/esptool_py/test/images/efuse/
Desp_efuse_custom_table.csv3 DEVICE_ROLE, EFUSE_BLK3, 64, 3, Device role
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/
Dclient_common.c498 int bt_mesh_set_client_model_role(struct bt_mesh_model *model, uint8_t role) in bt_mesh_set_client_model_role() argument
513 if (role >= ROLE_NVAL) { in bt_mesh_set_client_model_role()
514 BT_ERR("Invalid client role 0x%02x", role); in bt_mesh_set_client_model_role()
518 client->msg_role = role; in bt_mesh_set_client_model_role()
/hal_espressif-latest/components/bt/esp_ble_mesh/mesh_models/client/include/
Dclient_common.h116 int bt_mesh_set_client_model_role(struct bt_mesh_model *model, uint8_t role);

123