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.c66 static int uhid_event(btif_hh_device_t *p_dev) in uhid_event() argument
71 if(!p_dev) in uhid_event()
76 ret = read(p_dev->fd, &ev, sizeof(ev)); in uhid_event()
116 btif_hh_setreport(p_dev, BTHH_FEATURE_REPORT, in uhid_event()
119 btif_hh_setreport(p_dev, BTHH_OUTPUT_REPORT, in uhid_event()
122 btif_hh_setreport(p_dev, BTHH_INPUT_REPORT, in uhid_event()
179 btif_hh_device_t *p_dev = arg; in btif_hh_poll_event_thread() local
180 APPL_TRACE_DEBUG("%s: Thread created fd = %d", __FUNCTION__, p_dev->fd); in btif_hh_poll_event_thread()
183 pfds[0].fd = p_dev->fd; in btif_hh_poll_event_thread()
186 while(p_dev->hh_keep_polling){ in btif_hh_poll_event_thread()
[all …]
/system/bt/btif/src/
Dbtif_hh.c153 extern void bta_hh_co_send_hid_info(btif_hh_device_t *p_dev, char *dev_name, UINT16 vendor_id,
167 static void sync_lockstate_on_connect(btif_hh_device_t *p_dev);
278 static void update_keyboard_lockstates(btif_hh_device_t *p_dev) in update_keyboard_lockstates() argument
288 __FUNCTION__, p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates()
294 bda = (BD_ADDR*) (&p_dev->bd_addr); in update_keyboard_lockstates()
295 BTA_HhSendData(p_dev->dev_handle, *bda, p_buf); in update_keyboard_lockstates()
307 static void sync_lockstate_on_connect(btif_hh_device_t *p_dev) in sync_lockstate_on_connect() argument
314 update_keyboard_lockstates(p_dev); in sync_lockstate_on_connect()
326 toggle_os_keylockstates(p_dev->fd, keylockstates); in sync_lockstate_on_connect()
409 btif_hh_device_t *p_dev = btif_hh_find_connected_dev_by_bda(bd_addr); in btif_hh_stop_vup_timer() local
[all …]
/system/bt/stack/hid/
Dhidh_conn.c168 tHID_HOST_DEV_CTB *p_dev= (tHID_HOST_DEV_CTB *) p_ref_data; in hidh_sec_check_complete_term() local
172 if( res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY ) in hidh_sec_check_complete_term()
174p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset disc_reason (from HID_ERR_… in hidh_sec_check_complete_term()
176 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidh_sec_check_complete_term()
179 …L2CA_ConnectRsp (p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, L2CAP_CONN_OK, L2CAP_CONN… in hidh_sec_check_complete_term()
182 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term()
188 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ in hidh_sec_check_complete_term()
189 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_sec_check_complete_term()
190 …L2CA_ConnectRsp (p_dev->addr, p_dev->conn.ctrl_id, p_dev->conn.ctrl_cid, L2CAP_CONN_SECURITY_BLOCK… in hidh_sec_check_complete_term()
210 tHID_HOST_DEV_CTB *p_dev; in hidh_l2cif_connect_ind() local
[all …]
/system/bt/bta/dm/
Dbta_dm_pm.c45 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE *p_dev, BOOLEAN bDisable);
348 tBTA_DM_PEER_DEVICE *p_dev; in bta_dm_pm_cback() local
356 p_dev = bta_dm_find_peer_device(peer_addr); in bta_dm_pm_cback()
377 if((BTA_SYS_CONN_OPEN == status) && p_dev && (p_dev->info & BTA_DM_DI_USE_SSR)) in bta_dm_pm_cback()
455 if(p_dev) in bta_dm_pm_cback()
457 p_dev->pm_mode_attempted = 0; in bta_dm_pm_cback()
458 p_dev->pm_mode_failed = 0; in bta_dm_pm_cback()
987 tBTA_DM_PEER_DEVICE *p_dev = bta_dm_find_peer_device(p_data->pm_status.bd_addr); in bta_dm_pm_btm_status() local
988 if (NULL == p_dev) in bta_dm_pm_btm_status()
991 tBTA_DM_DEV_INFO info = p_dev->info; in bta_dm_pm_btm_status()
[all …]
Dbta_dm_act.c646 tBTA_DM_API_REMOVE_DEVICE *p_dev = &p_data->remove_dev; in bta_dm_remove_device() local
647 if (p_dev == NULL) in bta_dm_remove_device()
651 bdcpy(other_address, p_dev->bd_addr); in bta_dm_remove_device()
657 if (BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_LE) || in bta_dm_remove_device()
658 BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_BR_EDR)) in bta_dm_remove_device()
666 if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr)) in bta_dm_remove_device()
669 btm_remove_acl( p_dev->bd_addr, bta_dm_cb.device_list.peer_device[i].transport); in bta_dm_remove_device()
714 bta_dm_process_remove_device(p_dev->bd_addr); in bta_dm_remove_device()
733 tBTA_DM_API_ADD_DEVICE *p_dev = &p_data->add_dev; in bta_dm_add_device() local
743 if (p_dev->dc_known) in bta_dm_add_device()
[all …]
Dbta_dm_api.c638 tBTA_DM_PEER_DEVICE * p_dev = bta_dm_find_peer_device(bd_addr); in BTA_DmGetConnectionState() local
639 return (p_dev && p_dev->conn_state == BTA_DM_CONNECTED); in BTA_DmGetConnectionState()
/system/bt/stack/gatt/
Dgatt_utils.c2330 BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if) in gatt_is_bg_dev_for_app() argument
2336 if (p_dev->in_use && (p_dev->gatt_if[i] == gatt_if)) in gatt_is_bg_dev_for_app()
2405 tGATT_BG_CONN_DEV *p_dev = NULL; in gatt_add_bg_dev_list() local
2409 if ((p_dev = gatt_find_bg_dev(bd_addr)) == NULL) in gatt_add_bg_dev_list()
2411 p_dev = gatt_alloc_bg_dev(bd_addr); in gatt_add_bg_dev_list()
2414 if (p_dev) in gatt_add_bg_dev_list()
2420 if (p_dev->gatt_if[i] == gatt_if) in gatt_add_bg_dev_list()
2425 else if (p_dev->gatt_if[i] == 0) in gatt_add_bg_dev_list()
2427 p_dev->gatt_if[i] = gatt_if; in gatt_add_bg_dev_list()
2437 if (p_dev->listen_gif[i] == gatt_if) in gatt_add_bg_dev_list()
[all …]
Dgatt_int.h624 extern BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if);
/system/bt/btif/include/
Dbtif_hh.h107 extern void btif_hh_setreport(btif_hh_device_t *p_dev, bthh_report_type_t r_type,
/system/bt/stack/btm/
Dbtm_ble_privacy.c952 tBTM_SEC_DEV_REC *p_dev = &btm_cb.sec_dev_rec[0]; in btm_ble_enable_resolving_list_for_platform() local
953 for (UINT8 i = 0; i < BTM_SEC_MAX_DEVICE_RECORDS; i ++, p_dev ++) in btm_ble_enable_resolving_list_for_platform()
955 if ((p_dev->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) && in btm_ble_enable_resolving_list_for_platform()
956 (p_dev->ble.in_controller_list & BTM_WHITE_LIST_BIT)) in btm_ble_enable_resolving_list_for_platform()