Home
last modified time | relevance | path

Searched refs:p_dev (Results 1 – 10 of 10) sorted by relevance

/system/bt/btif/co/
Dbta_hh_co.cc81 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/
Dbtif_hh.cc136 extern void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev,
153 static void sync_lockstate_on_connect(btif_hh_device_t* p_dev);
260 static void update_keyboard_lockstates(btif_hh_device_t* p_dev) { in update_keyboard_lockstates() argument
268 p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates()
274 BTA_HhSendData(p_dev->dev_handle, p_dev->bd_addr, p_buf); in update_keyboard_lockstates()
288 static void sync_lockstate_on_connect(btif_hh_device_t* p_dev) { in sync_lockstate_on_connect() argument
296 update_keyboard_lockstates(p_dev); in sync_lockstate_on_connect()
308 toggle_os_keylockstates(p_dev->fd, keylockstates); in sync_lockstate_on_connect()
386 btif_hh_device_t* p_dev = btif_hh_find_connected_dev_by_bda(*bd_addr); in btif_hh_stop_vup_timer() local
388 if (p_dev != NULL) { in btif_hh_stop_vup_timer()
[all …]
Dbtif_rc.cc92 #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) { \
257 static void send_metamsg_rsp(btif_rc_device_cb_t* p_dev, int index,
260 static void register_volumechange(uint8_t label, btif_rc_device_cb_t* p_dev);
267 btif_rc_device_cb_t* p_dev);
274 btif_rc_device_cb_t* p_dev);
275 static void rc_ctrl_procedure_complete(btif_rc_device_cb_t* p_dev);
277 btif_rc_device_cb_t* p_dev);
[all …]
/system/bt/stack/hid/
Dhidh_conn.cc166 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 …]
Dhidd_conn.cc115 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/
Dbta_dm_pm.cc57 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE* p_dev,
339 tBTA_DM_PEER_DEVICE* p_dev; in bta_dm_pm_cback() local
345 p_dev = bta_dm_find_peer_device(peer_addr); in bta_dm_pm_cback()
364 if ((BTA_SYS_CONN_OPEN == status) && p_dev && in bta_dm_pm_cback()
365 (p_dev->info & BTA_DM_DI_USE_SSR)) { in bta_dm_pm_cback()
446 if (p_dev) { in bta_dm_pm_cback()
447 p_dev->pm_mode_attempted = 0; in bta_dm_pm_cback()
448 p_dev->pm_mode_failed = 0; in bta_dm_pm_cback()
901 tBTA_DM_PEER_DEVICE* p_dev = bta_dm_find_peer_device(bd_addr); local
902 if (NULL == p_dev) return;
[all …]
Dbta_dm_act.cc895 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()
2675 tBTA_DM_PEER_DEVICE* p_dev = bta_dm_find_peer_device(bd_addr); in handle_role_change() local
[all …]
Dbta_dm_api.cc385 tBTA_DM_PEER_DEVICE* p_dev = bta_dm_find_peer_device(bd_addr); in BTA_DmGetConnectionState() local
386 return (p_dev && p_dev->conn_state == BTA_DM_CONNECTED); in BTA_DmGetConnectionState()
/system/bt/btif/include/
Dbtif_hh.h109 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/
Dbtm_ble_privacy.cc839 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()