Searched refs:p_dev (Results 1 – 10 of 10) sorted by relevance
/system/bt/btif/co/ |
D | bta_hh_co.c | 80 static int uhid_read_event(btif_hh_device_t *p_dev) in uhid_read_event() argument 82 assert(p_dev); in uhid_read_event() 88 OSI_NO_INTR(ret = read(p_dev->fd, &ev, sizeof(ev))); in uhid_read_event() 111 p_dev->ready_for_data = TRUE; in uhid_read_event() 115 p_dev->ready_for_data = FALSE; in uhid_read_event() 119 p_dev->ready_for_data = TRUE; in uhid_read_event() 123 p_dev->ready_for_data = FALSE; in uhid_read_event() 137 btif_hh_setreport(p_dev, BTHH_FEATURE_REPORT, in uhid_read_event() 140 btif_hh_setreport(p_dev, BTHH_OUTPUT_REPORT, in uhid_read_event() 143 btif_hh_setreport(p_dev, BTHH_INPUT_REPORT, in uhid_read_event() [all …]
|
/system/bt/btif/src/ |
D | btif_hh.c | 146 extern void bta_hh_co_send_hid_info(btif_hh_device_t *p_dev, char *dev_name, UINT16 vendor_id, 160 static void sync_lockstate_on_connect(btif_hh_device_t *p_dev); 268 static void update_keyboard_lockstates(btif_hh_device_t *p_dev) in update_keyboard_lockstates() argument 278 __FUNCTION__, p_dev->dev_handle, btif_hh_keylockstates); in update_keyboard_lockstates() 284 bda = (BD_ADDR*) (&p_dev->bd_addr); in update_keyboard_lockstates() 285 BTA_HhSendData(p_dev->dev_handle, *bda, p_buf); in update_keyboard_lockstates() 297 static void sync_lockstate_on_connect(btif_hh_device_t *p_dev) in sync_lockstate_on_connect() argument 304 update_keyboard_lockstates(p_dev); in sync_lockstate_on_connect() 316 toggle_os_keylockstates(p_dev->fd, keylockstates); in sync_lockstate_on_connect() 399 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/ |
D | hidh_conn.c | 173 tHID_HOST_DEV_CTB *p_dev= (tHID_HOST_DEV_CTB *) p_ref_data; in hidh_sec_check_complete_term() local 177 if( res == BTM_SUCCESS && p_dev->conn.conn_state == HID_CONN_STATE_SECURITY ) in hidh_sec_check_complete_term() 179 …p_dev->conn.disc_reason = HID_SUCCESS; /* Authentication passed. Reset disc_reason (from HID_ERR_… in hidh_sec_check_complete_term() 181 p_dev->conn.conn_state = HID_CONN_STATE_CONNECTING_INTR; in hidh_sec_check_complete_term() 184 …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() 187 L2CA_ConfigReq (p_dev->conn.ctrl_cid, &hh_cb.l2cap_cfg); in hidh_sec_check_complete_term() 193 p_dev->conn.disc_reason = HID_ERR_AUTH_FAILED; /* Save reason for disconnecting */ in hidh_sec_check_complete_term() 194 p_dev->conn.conn_state = HID_CONN_STATE_UNUSED; in hidh_sec_check_complete_term() 195 …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() 215 tHID_HOST_DEV_CTB *p_dev; in hidh_l2cif_connect_ind() local [all …]
|
/system/bt/bta/dm/ |
D | bta_dm_pm.c | 48 static void bta_dm_pm_set_sniff_policy(tBTA_DM_PEER_DEVICE *p_dev, BOOLEAN bDisable); 347 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() 460 if(p_dev) in bta_dm_pm_cback() 462 p_dev->pm_mode_attempted = 0; in bta_dm_pm_cback() 463 p_dev->pm_mode_failed = 0; in bta_dm_pm_cback() 1011 tBTA_DM_PEER_DEVICE *p_dev = bta_dm_find_peer_device(p_data->pm_status.bd_addr); in bta_dm_pm_btm_status() local 1012 if (NULL == p_dev) in bta_dm_pm_btm_status() 1015 tBTA_DM_DEV_INFO info = p_dev->info; in bta_dm_pm_btm_status() [all …]
|
D | bta_dm_act.c | 703 tBTA_DM_API_REMOVE_DEVICE *p_dev = &p_data->remove_dev; in bta_dm_remove_device() local 705 if (p_dev == NULL) in bta_dm_remove_device() 709 bdcpy(other_address, p_dev->bd_addr); in bta_dm_remove_device() 715 if (BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_LE) || in bta_dm_remove_device() 716 BTM_IsAclConnectionUp(p_dev->bd_addr, BT_TRANSPORT_BR_EDR)) in bta_dm_remove_device() 724 if (!bdcmp(bta_dm_cb.device_list.peer_device[i].peer_bdaddr, p_dev->bd_addr)) in bta_dm_remove_device() 732 btm_remove_acl(p_dev->bd_addr, transport); in bta_dm_remove_device() 779 bta_dm_process_remove_device(p_dev->bd_addr); in bta_dm_remove_device() 798 tBTA_DM_API_ADD_DEVICE *p_dev = &p_data->add_dev; in bta_dm_add_device() local 808 if (p_dev->dc_known) in bta_dm_add_device() [all …]
|
D | bta_dm_api.c | 562 tBTA_DM_PEER_DEVICE * p_dev = bta_dm_find_peer_device(bd_addr); in BTA_DmGetConnectionState() local 563 return (p_dev && p_dev->conn_state == BTA_DM_CONNECTED); in BTA_DmGetConnectionState()
|
/system/bt/stack/gatt/ |
D | gatt_utils.c | 2385 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 2391 if (p_dev->in_use && (p_dev->gatt_if[i] == gatt_if)) in gatt_is_bg_dev_for_app() 2460 tGATT_BG_CONN_DEV *p_dev = NULL; in gatt_add_bg_dev_list() local 2464 if ((p_dev = gatt_find_bg_dev(bd_addr)) == NULL) in gatt_add_bg_dev_list() 2466 p_dev = gatt_alloc_bg_dev(bd_addr); in gatt_add_bg_dev_list() 2469 if (p_dev) in gatt_add_bg_dev_list() 2475 if (p_dev->gatt_if[i] == gatt_if) in gatt_add_bg_dev_list() 2480 else if (p_dev->gatt_if[i] == 0) in gatt_add_bg_dev_list() 2482 p_dev->gatt_if[i] = gatt_if; in gatt_add_bg_dev_list() 2492 if (p_dev->listen_gif[i] == gatt_if) in gatt_add_bg_dev_list() [all …]
|
D | gatt_int.h | 606 extern BOOLEAN gatt_is_bg_dev_for_app(tGATT_BG_CONN_DEV *p_dev, tGATT_IF gatt_if);
|
/system/bt/btif/include/ |
D | btif_hh.h | 107 extern void btif_hh_setreport(btif_hh_device_t *p_dev, bthh_report_type_t r_type,
|
/system/bt/stack/btm/ |
D | btm_ble_privacy.c | 933 tBTM_SEC_DEV_REC *p_dev = data; in is_on_resolving_list() local 934 if ((p_dev->ble.in_controller_list & BTM_RESOLVING_LIST_BIT) && in is_on_resolving_list() 935 (p_dev->ble.in_controller_list & BTM_WHITE_LIST_BIT)) in is_on_resolving_list()
|