Searched refs:p_dev (Results 1 – 10 of 10) sorted by relevance
/system/bt/btif/co/ |
D | bta_hh_co.cc | 81 static int uhid_read_event(btif_hh_device_t* p_dev) { in uhid_read_event() argument 82 CHECK(p_dev); in uhid_read_event() 88 OSI_NO_INTR(ret = read(p_dev->fd, &ev, sizeof(ev))); in uhid_read_event() 102 p_dev->ready_for_data = true; in uhid_read_event() 106 p_dev->ready_for_data = false; in uhid_read_event() 110 p_dev->ready_for_data = true; in uhid_read_event() 114 p_dev->ready_for_data = false; in uhid_read_event() 128 btif_hh_setreport(p_dev, BTHH_FEATURE_REPORT, ev.u.output.size, in uhid_read_event() 131 btif_hh_setreport(p_dev, BTHH_OUTPUT_REPORT, ev.u.output.size, in uhid_read_event() 154 p_dev->get_rpt_snt++; in uhid_read_event() [all …]
|
/system/bt/btif/src/ |
D | btif_hh.cc | 140 extern void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev, 157 static void sync_lockstate_on_connect(btif_hh_device_t* p_dev); 264 static void update_keyboard_lockstates(btif_hh_device_t* p_dev) { in update_keyboard_lockstates() argument 272 p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates() 278 BTA_HhSendData(p_dev->dev_handle, p_dev->bd_addr, p_buf); in update_keyboard_lockstates() 292 static void sync_lockstate_on_connect(btif_hh_device_t* p_dev) { in sync_lockstate_on_connect() argument 300 update_keyboard_lockstates(p_dev); in sync_lockstate_on_connect() 312 toggle_os_keylockstates(p_dev->fd, keylockstates); in sync_lockstate_on_connect() 390 btif_hh_device_t* p_dev = btif_hh_find_connected_dev_by_bda(*bd_addr); in btif_hh_stop_vup_timer() local 392 if (p_dev != NULL) { in btif_hh_stop_vup_timer() [all …]
|
D | btif_rc.cc | 92 #define CHECK_RC_CONNECTED(p_dev) \ argument 94 if ((p_dev) == NULL || !(p_dev)->rc_connected) { \ 100 #define CHECK_BR_CONNECTED(p_dev) \ argument 102 if ((p_dev) == NULL || !(p_dev)->br_connected) { \ 256 static void send_metamsg_rsp(btif_rc_device_cb_t* p_dev, int index, 259 static void register_volumechange(uint8_t label, btif_rc_device_cb_t* p_dev); 266 btif_rc_device_cb_t* p_dev); 273 btif_rc_device_cb_t* p_dev); 274 static void rc_ctrl_procedure_complete(btif_rc_device_cb_t* p_dev); 276 btif_rc_device_cb_t* p_dev); [all …]
|
/system/bt/stack/hid/ |
D | hidh_conn.cc | 166 tHID_HOST_DEV_CTB* p_dev = (tHID_HOST_DEV_CTB*)p_ref_data; in hidh_sec_check_complete_term() local 168 if (res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidh_sec_check_complete_term() 169 p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset in hidh_sec_check_complete_term() 173 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidh_sec_check_complete_term() 176 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidh_sec_check_complete_term() 180 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term() 185 p_dev->conn.disc_reason = in hidh_sec_check_complete_term() 187 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_sec_check_complete_term() 188 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidh_sec_check_complete_term() 210 tHID_HOST_DEV_CTB* p_dev; in hidh_l2cif_connect_ind() local [all …]
|
D | hidd_conn.cc | 115 tHID_DEV_DEV_CTB* p_dev = (tHID_DEV_DEV_CTB*)p_ref_data; in hidd_sec_check_complete() local 117 if (res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY) { in hidd_sec_check_complete() 118 p_dev->conn.disc_reason = HID_SUCCESS; in hidd_sec_check_complete() 119 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidd_sec_check_complete() 121 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidd_sec_check_complete() 123 L2CA_ConfigReq(p_dev->conn.ctrl_cid, &hd_cb.l2cap_cfg); in hidd_sec_check_complete() 127 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; in hidd_sec_check_complete() 128 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidd_sec_check_complete() 129 L2CA_ConnectRsp(p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, in hidd_sec_check_complete() 148 tHID_DEV_DEV_CTB* p_dev = (tHID_DEV_DEV_CTB*)p_ref_data; in hidd_sec_check_complete_orig() local [all …]
|
/system/bt/bta/dm/ |
D | bta_dm_pm.cc | 56 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE* p_dev, 338 tBTA_DM_PEER_DEVICE* p_dev; in bta_dm_pm_cback() local 344 p_dev = bta_dm_find_peer_device(peer_addr); in bta_dm_pm_cback() 363 if ((BTA_SYS_CONN_OPEN == status) && p_dev && in bta_dm_pm_cback() 364 (p_dev->info & BTA_DM_DI_USE_SSR)) { in bta_dm_pm_cback() 445 if (p_dev) { in bta_dm_pm_cback() 446 p_dev->pm_mode_attempted = 0; in bta_dm_pm_cback() 447 p_dev->pm_mode_failed = 0; in bta_dm_pm_cback() 899 tBTA_DM_PEER_DEVICE* p_dev = bta_dm_find_peer_device(bd_addr); local 900 if (NULL == p_dev) return; [all …]
|
D | bta_dm_act.cc | 895 tBTA_DM_PEER_DEVICE* p_dev = NULL; in bta_dm_policy_cback() local 900 p_dev = bta_dm_find_peer_device(peer_addr); in bta_dm_policy_cback() 906 if (!p_dev) return; in bta_dm_policy_cback() 908 p_dev->link_policy |= policy; in bta_dm_policy_cback() 909 BTM_SetLinkPolicy(p_dev->peer_bdaddr, &(p_dev->link_policy)); in bta_dm_policy_cback() 913 if (!p_dev) return; in bta_dm_policy_cback() 915 p_dev->link_policy &= (~policy); in bta_dm_policy_cback() 916 BTM_SetLinkPolicy(p_dev->peer_bdaddr, &(p_dev->link_policy)); in bta_dm_policy_cback() 920 bta_dm_pm_active(p_dev->peer_bdaddr); in bta_dm_policy_cback() 2670 tBTA_DM_PEER_DEVICE* p_dev = bta_dm_find_peer_device(bd_addr); in handle_role_change() local [all …]
|
D | bta_dm_api.cc | 390 tBTA_DM_PEER_DEVICE* p_dev = bta_dm_find_peer_device(bd_addr); in BTA_DmGetConnectionState() local 391 return (p_dev && p_dev->conn_state == BTA_DM_CONNECTED); in BTA_DmGetConnectionState()
|
/system/bt/btif/include/ |
D | btif_hh.h | 109 extern void btif_hh_setreport(btif_hh_device_t* p_dev, 112 extern void btif_hh_getreport(btif_hh_device_t* p_dev,
|
/system/bt/stack/btm/ |
D | btm_ble_privacy.cc | 839 tBTM_SEC_DEV_REC* p_dev = static_cast<tBTM_SEC_DEV_REC*>(data); in is_on_resolving_list() local 840 if ((p_dev->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) && in is_on_resolving_list() 841 (p_dev->ble.in_controller_list & BTM_WHITE_LIST_BIT)) in is_on_resolving_list()
|