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()
191 p_dev_info->sec_bd_name, handle, p_lcb->link_role, in l2c_link_hci_conn_comp()
194 btm_acl_created(ci.bd_addr, NULL, NULL, handle, p_lcb->link_role, in l2c_link_hci_conn_comp()
367 btm_ble_update_link_topology_mask(p_lcb->link_role, false); in l2c_link_hci_disc_comp()
[all …]
Dl2c_ble.cc78 !(p_lcb->link_role == HCI_ROLE_SLAVE && in L2CA_CancelBleConnectReq()
162 << " not LE, link role " << p_lcb->link_role; in L2CA_EnableUpdateBleConnParams()
191 if (p_lcb != NULL) role = p_lcb->link_role; in L2CA_GetBleConnRole()
307 p_lcb->link_role = HCI_ROLE_MASTER; in l2cble_scanner_conn_comp()
317 btm_acl_created(bda, NULL, p_dev_rec->sec_bd_name, handle, p_lcb->link_role, in l2cble_scanner_conn_comp()
377 p_lcb->link_role = HCI_ROLE_SLAVE; in l2cble_advertiser_conn_comp()
389 btm_acl_created(bda, NULL, p_dev_rec->sec_bd_name, handle, p_lcb->link_role, in l2cble_advertiser_conn_comp()
476 if (p_lcb->link_role == HCI_ROLE_MASTER in l2cble_start_conn_update()
498 if (p_lcb->link_role == HCI_ROLE_MASTER in l2cble_start_conn_update()
619 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.cc2153 if ((p_lcb_cur->in_use) && (p_lcb_cur->link_role == HCI_ROLE_SLAVE)) { in l2cu_create_conn()
2174 p_lcb->link_role = HCI_ROLE_MASTER; in l2cu_create_conn()
/system/bt/stack/btm/
Dbtm_acl.cc189 uint16_t hci_handle, uint8_t link_role, in btm_acl_created() argument
196 hci_handle, link_role, transport); in btm_acl_created()
201 p->link_role = link_role; in btm_acl_created()
213 p->link_role = link_role; in btm_acl_created()
280 link_role == HCI_ROLE_MASTER) { in btm_acl_created()
369 p->link_role); in btm_acl_removed()
511 *p_role = p->link_role; in BTM_GetRole()
560 if (p->link_role == new_role) return (BTM_SUCCESS); in BTM_SwitchRole()
668 btsnd_hcic_switch_role(p->remote_addr, (uint8_t)!p->link_role); in btm_acl_encrypt_change()
1273 if (p->link_role == BTM_ROLE_MASTER) { in BTM_SetLinkSuperTout()
[all …]
Dbtm_ble_int.h88 uint8_t link_role);
144 extern void btm_ble_update_mode_operation(uint8_t link_role,
Dbtm_ble_gap.cc2532 void btm_ble_update_link_topology_mask(uint8_t link_role, bool increase) { in btm_ble_update_link_topology_mask() argument
2536 btm_cb.ble_ctr_cb.link_count[link_role]++; in btm_ble_update_link_topology_mask()
2537 else if (btm_cb.ble_ctr_cb.link_count[link_role] > 0) in btm_ble_update_link_topology_mask()
2538 btm_cb.ble_ctr_cb.link_count[link_role]--; in btm_ble_update_link_topology_mask()
2546 if (link_role == HCI_ROLE_SLAVE && increase) { in btm_ble_update_link_topology_mask()
2565 void btm_ble_update_mode_operation(uint8_t link_role, const RawAddress* bd_addr, in btm_ble_update_mode_operation() argument
Dbtm_int.h80 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()
1561 if (link_role == BTM_ROLE_MASTER) { in btm_ble_set_encryption()
Dbtm_sec.cc1375 rc = btm_ble_set_encryption(bd_addr, sec_act, p->link_role); in BTM_SetEncryption()
6097 return (p && (p->link_role == BTM_ROLE_MASTER)); in btm_sec_is_master()
/system/bt/stack/gatt/
Dgatt_db.cc311 if ((p != NULL) && (p->link_role == BTM_ROLE_MASTER)) in gatts_db_read_attr_value_by_type()
313 p->link_role); in gatts_db_read_attr_value_by_type()