Lines Matching refs:hh_cb
39 tHID_HOST_CTB hh_cb; variable
58 if( hh_cb.sdp_busy ) in HID_HostGetSDPRecord()
64 hh_cb.p_sdp_db = p_db; in HID_HostGetSDPRecord()
69 hh_cb.sdp_cback = sdp_cback ; in HID_HostGetSDPRecord()
70 hh_cb.sdp_busy = TRUE; in HID_HostGetSDPRecord()
102 tSDP_DISCOVERY_DB *p_db = hh_cb.p_sdp_db; in hidh_search_callback()
106 tHID_DEV_SDP_INFO *p_nvi = &hh_cb.sdp_rec; in hidh_search_callback()
112 hh_cb.sdp_busy = FALSE; in hidh_search_callback()
116 hh_cb.sdp_cback(sdp_result, 0, NULL); in hidh_search_callback()
122 hh_cb.sdp_cback(HID_SDP_NO_SERV_UUID, 0, NULL); in hidh_search_callback()
126 memset (&hh_cb.sdp_rec, 0, sizeof( tHID_DEV_SDP_INFO )); in hidh_search_callback()
137 hh_cb.sdp_cback(HID_SDP_MANDATORY_MISSING, 0, NULL); in hidh_search_callback()
226 hh_cb.sdp_rec.p_sdp_layer_rec = p_rec; in hidh_search_callback()
227 hh_cb.sdp_cback(SDP_SUCCESS, attr_mask, &hh_cb.sdp_rec); in hidh_search_callback()
242 memset(&hh_cb, 0, sizeof(tHID_HOST_CTB)); in HID_HostInit()
245 hh_cb.devices[i].conn.process_repage_timer = in HID_HostInit()
250 hh_cb.trace_level = HID_INITIAL_TRACE_LEVEL; in HID_HostInit()
252 hh_cb.trace_level = BT_TRACE_LEVEL_NONE; in HID_HostInit()
269 hh_cb.trace_level = new_level; in HID_HostSetTraceLevel()
271 return (hh_cb.trace_level); in HID_HostSetTraceLevel()
287 if( hh_cb.reg_flag ) in HID_HostRegister()
299 hh_cb.callback = dev_cback ; in HID_HostRegister()
300 hh_cb.reg_flag = TRUE; in HID_HostRegister()
318 if( !hh_cb.reg_flag ) in HID_HostDeregister()
327 hh_cb.reg_flag = FALSE; in HID_HostDeregister()
345 if( !hh_cb.reg_flag ) in HID_HostAddDev()
350 if((hh_cb.devices[i].in_use) && in HID_HostAddDev()
351 (!memcmp(addr, hh_cb.devices[i].addr, BD_ADDR_LEN))) in HID_HostAddDev()
359 if( !hh_cb.devices[i].in_use) in HID_HostAddDev()
367 if (!hh_cb.devices[i].in_use) in HID_HostAddDev()
369 hh_cb.devices[i].in_use = TRUE; in HID_HostAddDev()
370 memcpy( hh_cb.devices[i].addr, addr, sizeof( BD_ADDR ) ) ; in HID_HostAddDev()
371 hh_cb.devices[i].state = HID_DEV_NO_CONN; in HID_HostAddDev()
372 hh_cb.devices[i].conn_tries = 0 ; in HID_HostAddDev()
376 hh_cb.devices[i].attr_mask = attr_mask; in HID_HostAddDev()
395 if( !hh_cb.reg_flag ) in HID_HostRemoveDev()
398 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostRemoveDev()
402 hh_cb.devices[dev_handle].in_use = FALSE; in HID_HostRemoveDev()
403 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED; in HID_HostRemoveDev()
404 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0; in HID_HostRemoveDev()
405 hh_cb.devices[dev_handle].attr_mask = 0; in HID_HostRemoveDev()
421 if( !hh_cb.reg_flag ) in HID_HostOpenDev()
424 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostOpenDev()
427 if( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN ) in HID_HostOpenDev()
430 hh_cb.devices[dev_handle].conn_tries = 1; in HID_HostOpenDev()
451 if( !hh_cb.reg_flag ) in HID_HostWriteDev()
457 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostWriteDev()
463 else if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED ) in HID_HostWriteDev()
488 if( !hh_cb.reg_flag ) in HID_HostCloseDev()
491 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) ) in HID_HostCloseDev()
494 if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED ) in HID_HostCloseDev()
497 alarm_cancel(hh_cb.devices[dev_handle].conn.process_repage_timer); in HID_HostCloseDev()
498 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1; in HID_HostCloseDev()
563 if ( !hh_cb.reg_flag ) in hid_known_hid_device()
592 if ((hh_cb.devices[i].in_use) && in hid_known_hid_device()
593 (memcmp(bd_addr, hh_cb.devices[i].addr, BD_ADDR_LEN) == 0)) in hid_known_hid_device()