Home
last modified time | relevance | path

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

/system/bt/stack/l2cap/
Dl2c_link.cc85 p_lcb->link_role = HCI_ROLE_MASTER; in l2c_link_hci_conn_req()
92 p_lcb->link_role = HCI_ROLE_SLAVE; in l2c_link_hci_conn_req()
94 p_lcb->link_role = l2cu_get_conn_role(p_lcb); in l2c_link_hci_conn_req()
98 btsnd_hcic_accept_conn(bd_addr, p_lcb->link_role); in l2c_link_hci_conn_req()
115 p_lcb->link_role = HCI_ROLE_SLAVE; in l2c_link_hci_conn_req()
117 p_lcb->link_role = l2cu_get_conn_role(p_lcb); in l2c_link_hci_conn_req()
119 btsnd_hcic_accept_conn(bd_addr, p_lcb->link_role); in l2c_link_hci_conn_req()
196 p_dev_info->sec_bd_name, handle, p_lcb->link_role, in l2c_link_hci_conn_comp()
199 btm_acl_created(ci.bd_addr, NULL, NULL, handle, p_lcb->link_role, in l2c_link_hci_conn_comp()
373 btm_ble_update_link_topology_mask(p_lcb->link_role, false); in l2c_link_hci_disc_comp()
[all …]
Dl2c_ble.cc74 !(p_lcb->link_role == HCI_ROLE_SLAVE && in L2CA_CancelBleConnectReq()
169 << " not LE, link role " << p_lcb->link_role; in L2CA_EnableUpdateBleConnParams()
198 if (p_lcb != NULL) role = p_lcb->link_role; in L2CA_GetBleConnRole()
304 p_lcb->link_role = role; in l2cble_conn_comp()
315 btm_acl_created(bda, NULL, p_dev_rec->sec_bd_name, handle, p_lcb->link_role, in l2cble_conn_comp()
379 if (p_lcb->link_role == HCI_ROLE_MASTER in l2cble_start_conn_update()
401 if (p_lcb->link_role == HCI_ROLE_MASTER in l2cble_start_conn_update()
523 if (p_lcb->link_role == HCI_ROLE_MASTER) { in l2cble_process_sig_cmd()
Dl2c_int.h398 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_acl.cc192 uint16_t hci_handle, uint8_t link_role, in btm_acl_created() argument
199 __func__, bda.ToString().c_str(), hci_handle, link_role, in btm_acl_created()
205 p->link_role = link_role; in btm_acl_created()
217 p->link_role = link_role; in btm_acl_created()
285 link_role == HCI_ROLE_MASTER) { in btm_acl_created()
372 p->link_role); in btm_acl_removed()
514 *p_role = p->link_role; in BTM_GetRole()
564 if (p->link_role == new_role) return (BTM_SUCCESS); in BTM_SwitchRole()
670 btsnd_hcic_switch_role(p->remote_addr, (uint8_t)!p->link_role); in btm_acl_encrypt_change()
1298 if (p->link_role == BTM_ROLE_MASTER) { in BTM_SetLinkSuperTout()
[all …]
Dbtm_ble_int.h87 uint8_t link_role);
127 extern void btm_ble_update_mode_operation(uint8_t link_role,
Dbtm_ble_gap.cc2429 void btm_ble_update_link_topology_mask(uint8_t link_role, bool increase) { in btm_ble_update_link_topology_mask() argument
2433 btm_cb.ble_ctr_cb.link_count[link_role]++; in btm_ble_update_link_topology_mask()
2434 else if (btm_cb.ble_ctr_cb.link_count[link_role] > 0) in btm_ble_update_link_topology_mask()
2435 btm_cb.ble_ctr_cb.link_count[link_role]--; in btm_ble_update_link_topology_mask()
2443 if (link_role == HCI_ROLE_SLAVE && increase) { in btm_ble_update_link_topology_mask()
2462 void btm_ble_update_mode_operation(uint8_t link_role, const RawAddress* bd_addr, in btm_ble_update_mode_operation() argument
Dbtm_int.h82 uint16_t hci_handle, uint8_t link_role,
Dbtm_int_types.h82 uint8_t link_role; member
Dbtm_ble.cc1509 uint8_t link_role) { in btm_ble_set_encryption() argument
1530 if (link_role == BTM_ROLE_MASTER) { in btm_ble_set_encryption()
1550 if (link_role == BTM_ROLE_MASTER) { in btm_ble_set_encryption()
Dbtm_sec.cc1306 rc = btm_ble_set_encryption(bd_addr, sec_act, p->link_role); in BTM_SetEncryption()
5955 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()