Lines Matching refs:hd_cb
37 tHID_DEV_CTB hd_cb; variable
49 uint8_t log_level = hd_cb.trace_level; in HID_DevInit()
53 memset(&hd_cb, 0, sizeof(tHID_DEV_CTB)); in HID_DevInit()
54 hd_cb.trace_level = log_level; in HID_DevInit()
69 if (new_level != 0xFF) hd_cb.trace_level = new_level; in HID_DevSetTraceLevel()
71 return (hd_cb.trace_level); in HID_DevSetTraceLevel()
88 if (hd_cb.reg_flag) return HID_ERR_ALREADY_REGISTERED; in HID_DevRegister()
96 hd_cb.callback = host_cback; in HID_DevRegister()
97 hd_cb.reg_flag = TRUE; in HID_DevRegister()
99 if (hd_cb.pending_data) { in HID_DevRegister()
100 osi_free(hd_cb.pending_data); in HID_DevRegister()
101 hd_cb.pending_data = NULL; in HID_DevRegister()
119 if (!hd_cb.reg_flag) return (HID_ERR_NOT_REGISTERED); in HID_DevDeregister()
123 hd_cb.reg_flag = FALSE; in HID_DevDeregister()
432 hd_cb.device.in_use = TRUE; in HID_DevPlugDevice()
433 hd_cb.device.addr = addr; in HID_DevPlugDevice()
448 if (hd_cb.device.addr == addr) { in HID_DevUnplugDevice()
449 hd_cb.device.in_use = FALSE; in HID_DevUnplugDevice()
450 hd_cb.device.conn.conn_state = HID_CONN_STATE_UNUSED; in HID_DevUnplugDevice()
451 hd_cb.device.conn.ctrl_cid = 0; in HID_DevUnplugDevice()
452 hd_cb.device.conn.intr_cid = 0; in HID_DevUnplugDevice()
468 if (!hd_cb.reg_flag) { in HID_DevConnect()
472 if (!hd_cb.device.in_use) { in HID_DevConnect()
476 if (hd_cb.device.state != HIDD_DEV_NO_CONN) { in HID_DevConnect()
493 if (!hd_cb.reg_flag) { in HID_DevDisconnect()
497 if (!hd_cb.device.in_use) { in HID_DevDisconnect()
501 if (hd_cb.device.state == HIDD_DEV_NO_CONN) { in HID_DevDisconnect()
503 if (hd_cb.device.conn.conn_state != HID_CONN_STATE_UNUSED) { in HID_DevDisconnect()
505 hd_cb.device.conn.conn_state = HID_CONN_STATE_UNUSED; in HID_DevDisconnect()
506 hd_cb.callback(hd_cb.device.addr, HID_DHOST_EVT_CLOSE, in HID_DevDisconnect()
526 hd_cb.allow_incoming = allow; in HID_DevSetIncomingPolicy()
576 if (hd_cb.device.in_use) { in HID_DevGetDevice()
577 *addr = hd_cb.device.addr; in HID_DevGetDevice()
600 hd_cb.use_in_qos = TRUE; in HID_DevSetIncomingQos()
602 hd_cb.in_qos.service_type = service_type; in HID_DevSetIncomingQos()
603 hd_cb.in_qos.token_rate = token_rate; in HID_DevSetIncomingQos()
604 hd_cb.in_qos.token_bucket_size = token_bucket_size; in HID_DevSetIncomingQos()
605 hd_cb.in_qos.peak_bandwidth = peak_bandwidth; in HID_DevSetIncomingQos()
606 hd_cb.in_qos.latency = latency; in HID_DevSetIncomingQos()
607 hd_cb.in_qos.delay_variation = delay_variation; in HID_DevSetIncomingQos()
627 hd_cb.l2cap_intr_cfg.qos_present = TRUE; in HID_DevSetOutgoingQos()
629 hd_cb.l2cap_intr_cfg.qos.service_type = service_type; in HID_DevSetOutgoingQos()
630 hd_cb.l2cap_intr_cfg.qos.token_rate = token_rate; in HID_DevSetOutgoingQos()
631 hd_cb.l2cap_intr_cfg.qos.token_bucket_size = token_bucket_size; in HID_DevSetOutgoingQos()
632 hd_cb.l2cap_intr_cfg.qos.peak_bandwidth = peak_bandwidth; in HID_DevSetOutgoingQos()
633 hd_cb.l2cap_intr_cfg.qos.latency = latency; in HID_DevSetOutgoingQos()
634 hd_cb.l2cap_intr_cfg.qos.delay_variation = delay_variation; in HID_DevSetOutgoingQos()