Lines Matching defs:hh_cb
39 tHID_HOST_CTB hh_cb;
58 if( hh_cb.sdp_busy )
64 hh_cb.p_sdp_db = p_db;
69 hh_cb.sdp_cback = sdp_cback ;
70 hh_cb.sdp_busy = TRUE;
102 tSDP_DISCOVERY_DB *p_db = hh_cb.p_sdp_db;
106 tHID_DEV_SDP_INFO *p_nvi = &hh_cb.sdp_rec;
112 hh_cb.sdp_busy = FALSE;
116 hh_cb.sdp_cback(sdp_result, 0, NULL);
122 hh_cb.sdp_cback(HID_SDP_NO_SERV_UUID, 0, NULL);
126 memset (&hh_cb.sdp_rec, 0, sizeof( tHID_DEV_SDP_INFO ));
137 hh_cb.sdp_cback(HID_SDP_MANDATORY_MISSING, 0, NULL);
226 hh_cb.sdp_rec.p_sdp_layer_rec = p_rec;
227 hh_cb.sdp_cback(SDP_SUCCESS, attr_mask, &hh_cb.sdp_rec);
242 memset(&hh_cb, 0, sizeof(tHID_HOST_CTB));
245 hh_cb.trace_level = HID_INITIAL_TRACE_LEVEL;
247 hh_cb.trace_level = BT_TRACE_LEVEL_NONE;
264 hh_cb.trace_level = new_level;
266 return (hh_cb.trace_level);
282 if( hh_cb.reg_flag )
294 hh_cb.callback = dev_cback ;
295 hh_cb.reg_flag = TRUE;
313 if( !hh_cb.reg_flag )
322 hh_cb.reg_flag = FALSE;
339 /* Find an entry for this device in hh_cb.devices array */
340 if( !hh_cb.reg_flag )
345 if((hh_cb.devices[i].in_use) &&
346 (!memcmp(addr, hh_cb.devices[i].addr, BD_ADDR_LEN)))
354 if( !hh_cb.devices[i].in_use)
362 if (!hh_cb.devices[i].in_use)
364 hh_cb.devices[i].in_use = TRUE;
365 memcpy( hh_cb.devices[i].addr, addr, sizeof( BD_ADDR ) ) ;
366 hh_cb.devices[i].state = HID_DEV_NO_CONN;
367 hh_cb.devices[i].conn_tries = 0 ;
371 hh_cb.devices[i].attr_mask = attr_mask;
390 if( !hh_cb.reg_flag )
393 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
397 hh_cb.devices[dev_handle].in_use = FALSE;
398 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED;
399 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0;
416 if( !hh_cb.reg_flag )
419 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
422 if( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN )
425 hh_cb.devices[dev_handle].conn_tries = 1;
446 if( !hh_cb.reg_flag )
452 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
458 else if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED )
486 if( !hh_cb.reg_flag )
489 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
492 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1;
493 btu_stop_timer( &(hh_cb.devices[dev_handle].conn.timer_entry) ) ;
495 if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED )
498 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1;
563 if ( !hh_cb.reg_flag )
589 /* Find an entry for this device in hh_cb.devices array */
592 if ((hh_cb.devices[i].in_use) &&
593 (memcmp(bd_addr, hh_cb.devices[i].addr, BD_ADDR_LEN) == 0))