Home
last modified time | relevance | path

Searched refs:link_role (Results 1 – 12 of 12) sorted by relevance

/system/bt/stack/l2cap/
Dl2c_link.cc86 p_lcb->link_role = HCI_ROLE_MASTER; in l2c_link_hci_conn_req()
93 p_lcb->link_role = HCI_ROLE_SLAVE; in l2c_link_hci_conn_req()
95 p_lcb->link_role = l2cu_get_conn_role(p_lcb); in l2c_link_hci_conn_req()
99 btsnd_hcic_accept_conn(bd_addr, p_lcb->link_role); in l2c_link_hci_conn_req()
116 p_lcb->link_role = HCI_ROLE_SLAVE; in l2c_link_hci_conn_req()
118 p_lcb->link_role = l2cu_get_conn_role(p_lcb); in l2c_link_hci_conn_req()
120 btsnd_hcic_accept_conn(bd_addr, p_lcb->link_role); in l2c_link_hci_conn_req()
202 p_dev_info->sec_bd_name, handle, p_lcb->link_role, in l2c_link_hci_conn_comp()
205 btm_acl_created(ci.bd_addr, NULL, NULL, handle, p_lcb->link_role, in l2c_link_hci_conn_comp()
379 btm_ble_update_link_topology_mask(p_lcb->link_role, false); in l2c_link_hci_disc_comp()
[all …]
Dl2c_ble.cc75 !(p_lcb->link_role == HCI_ROLE_SLAVE && in L2CA_CancelBleConnectReq()
175 << " not LE, link role " << p_lcb->link_role; in L2CA_EnableUpdateBleConnParams()
204 if (p_lcb != NULL) role = p_lcb->link_role; in L2CA_GetBleConnRole()
307 p_lcb->link_role = role; in l2cble_conn_comp()
318 btm_acl_created(bda, NULL, p_dev_rec->sec_bd_name, handle, p_lcb->link_role, in l2cble_conn_comp()
382 if (p_lcb->link_role == HCI_ROLE_MASTER in l2cble_start_conn_update()
404 if (p_lcb->link_role == HCI_ROLE_MASTER in l2cble_start_conn_update()
526 if (p_lcb->link_role == HCI_ROLE_MASTER) { in l2cble_process_sig_cmd()
Dl2c_int.h397 uint8_t link_role; /* Master or slave */ member
Dl2c_utils.cc2147 if ((p_lcb_cur->in_use) && (p_lcb_cur->link_role == HCI_ROLE_SLAVE)) { in l2cu_create_conn_br_edr()
2166 p_lcb->link_role = HCI_ROLE_MASTER; in l2cu_create_conn_br_edr()
/system/bt/stack/btm/
Dbtm_ble_int.h84 uint8_t link_role);
123 extern void btm_ble_update_mode_operation(uint8_t link_role,
Dbtm_acl.cc194 uint16_t hci_handle, uint8_t link_role, in btm_acl_created() argument
201 __func__, bda.ToString().c_str(), hci_handle, link_role, in btm_acl_created()
207 p->link_role = link_role; in btm_acl_created()
219 p->link_role = link_role; in btm_acl_created()
287 link_role == HCI_ROLE_MASTER) { in btm_acl_created()
374 p->link_role); in btm_acl_removed()
516 *p_role = p->link_role; in BTM_GetRole()
566 if (p->link_role == new_role) return (BTM_SUCCESS); in BTM_SwitchRole()
672 btsnd_hcic_switch_role(p->remote_addr, (uint8_t)!p->link_role); in btm_acl_encrypt_change()
1271 if (p->link_role == BTM_ROLE_MASTER) { in BTM_SetLinkSuperTout()
[all …]
Dbtm_ble_gap.cc2360 void btm_ble_update_link_topology_mask(uint8_t link_role, bool increase) { in btm_ble_update_link_topology_mask() argument
2364 btm_cb.ble_ctr_cb.link_count[link_role]++; in btm_ble_update_link_topology_mask()
2365 else if (btm_cb.ble_ctr_cb.link_count[link_role] > 0) in btm_ble_update_link_topology_mask()
2366 btm_cb.ble_ctr_cb.link_count[link_role]--; in btm_ble_update_link_topology_mask()
2374 if (link_role == HCI_ROLE_SLAVE && increase) { in btm_ble_update_link_topology_mask()
2393 void btm_ble_update_mode_operation(uint8_t link_role, const RawAddress* bd_addr, in btm_ble_update_mode_operation() argument
Dbtm_int.h83 uint16_t hci_handle, uint8_t link_role,
Dbtm_int_types.h81 uint8_t link_role; member
Dbtm_ble.cc1521 uint8_t link_role) { in btm_ble_set_encryption() argument
1542 if (link_role == BTM_ROLE_MASTER) { in btm_ble_set_encryption()
1562 if (link_role == BTM_ROLE_MASTER) { in btm_ble_set_encryption()
Dbtm_sec.cc1203 rc = btm_ble_set_encryption(bd_addr, sec_act, p->link_role); in BTM_SetEncryption()
5691 return (p && (p->link_role == BTM_ROLE_MASTER)); in btm_sec_is_master()
/system/bt/stack/gatt/
Dgatt_db.cc309 if ((p != NULL) && (p->link_role == BTM_ROLE_MASTER)) in gatts_db_read_attr_value_by_type()
311 p->link_role); in gatts_db_read_attr_value_by_type()