Home | History | Annotate | Download | only in hid

Lines Matching defs:hh_cb

38 tHID_HOST_CTB   hh_cb;
57 if( hh_cb.sdp_busy )
63 hh_cb.p_sdp_db = p_db;
68 hh_cb.sdp_cback = sdp_cback ;
69 hh_cb.sdp_busy = TRUE;
101 tSDP_DISCOVERY_DB *p_db = hh_cb.p_sdp_db;
105 tHID_DEV_SDP_INFO *p_nvi = &hh_cb.sdp_rec;
111 hh_cb.sdp_busy = FALSE;
115 hh_cb.sdp_cback(sdp_result, 0, NULL);
121 hh_cb.sdp_cback(HID_SDP_NO_SERV_UUID, 0, NULL);
125 memset (&hh_cb.sdp_rec, 0, sizeof( tHID_DEV_SDP_INFO ));
136 hh_cb.sdp_cback(HID_SDP_MANDATORY_MISSING, 0, NULL);
225 hh_cb.sdp_rec.p_sdp_layer_rec = p_rec;
226 hh_cb.sdp_cback(SDP_SUCCESS, attr_mask, &hh_cb.sdp_rec);
241 memset(&hh_cb, 0, sizeof(tHID_HOST_CTB));
244 hh_cb.trace_level = HID_INITIAL_TRACE_LEVEL;
246 hh_cb.trace_level = BT_TRACE_LEVEL_NONE;
263 hh_cb.trace_level = new_level;
265 return (hh_cb.trace_level);
281 if( hh_cb.reg_flag )
293 hh_cb.callback = dev_cback ;
294 hh_cb.reg_flag = TRUE;
312 if( !hh_cb.reg_flag )
321 hh_cb.reg_flag = FALSE;
338 /* 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 ;
370 hh_cb.devices[i].attr_mask = attr_mask;
389 if( !hh_cb.reg_flag )
392 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
396 hh_cb.devices[dev_handle].in_use = FALSE;
397 hh_cb.devices[dev_handle].conn.conn_state = HID_CONN_STATE_UNUSED;
398 hh_cb.devices[dev_handle].conn.ctrl_cid = hh_cb.devices[dev_handle].conn.intr_cid = 0;
415 if( !hh_cb.reg_flag )
418 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
421 if( hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN )
424 hh_cb.devices[dev_handle].conn_tries = 1;
445 if( !hh_cb.reg_flag )
451 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
457 else if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED )
485 if( !hh_cb.reg_flag )
488 if( (dev_handle >= HID_HOST_MAX_DEVICES) || (!hh_cb.devices[dev_handle].in_use) )
491 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1;
492 btu_stop_timer( &(hh_cb.devices[dev_handle].conn.timer_entry) ) ;
494 if( hh_cb.devices[dev_handle].state != HID_DEV_CONNECTED )
497 hh_cb.devices[dev_handle].conn_tries = HID_HOST_MAX_CONN_RETRY+1;