Lines Matching full:uint16
276 BT_HDR *l2cu_build_header (tL2C_LCB *p_lcb, UINT16 len, UINT8 cmd, UINT8 id)
348 void l2cu_send_peer_cmd_reject (tL2C_LCB *p_lcb, UINT16 reason, UINT8 rem_id,
349 UINT16 p1, UINT16 p2)
351 UINT16 param_len;
363 if ((p_buf = l2cu_build_header (p_lcb, (UINT16) (L2CAP_CMD_REJECT_LEN + param_len), L2CAP_CMD_REJECT, rem_id)) == NULL )
432 void l2cu_send_peer_connect_rsp (tL2C_CCB *p_ccb, UINT16 result, UINT16 status)
475 void l2cu_reject_connection (tL2C_LCB *p_lcb, UINT16 remote_cid, UINT8 rem_id, UINT16 result)
509 UINT16 cfg_len=0;
531 if ((p_buf = l2cu_build_header (p_ccb->p_lcb, (UINT16) (L2CAP_CONFIG_REQ_LEN + cfg_len),
616 UINT16 cfg_len = 0;
631 if ((p_buf = l2cu_build_header (p_ccb->p_lcb, (UINT16)(L2CAP_CONFIG_RSP_LEN + cfg_len),
706 void l2cu_send_peer_config_rej (tL2C_CCB *p_ccb, UINT8 *p_data, UINT16 data_len, UINT16 rej_len)
709 UINT16 len, cfg_len;
789 len = (UINT16) (p - p_hci_len - 2);
860 void l2cu_send_peer_disc_rsp (tL2C_LCB *p_lcb, UINT8 remote_id, UINT16 local_cid,
861 UINT16 remote_cid)
892 void l2cu_send_peer_echo_req (tL2C_LCB *p_lcb, UINT8 *p_data, UINT16 data_len)
900 if ((p_buf = l2cu_build_header(p_lcb, (UINT16) (L2CAP_ECHO_REQ_LEN + data_len), L2CAP_CMD_ECHO_REQ, p_lcb->id)) == NULL)
927 void l2cu_send_peer_echo_rsp (tL2C_LCB *p_lcb, UINT8 id, UINT8 *p_data, UINT16 data_len)
931 UINT16 maxlen;
935 btu_cb.hcit_acl_data_size : (UINT16)GKI_get_pool_bufsize(L2CAP_CMD_POOL_ID);
936 maxlen -= (UINT16)(BT_HDR_SIZE + HCI_DATA_PREAMBLE_SIZE + L2CAP_PKT_OVERHEAD +
942 if ((p_buf = l2cu_build_header (p_lcb, (UINT16)(L2CAP_ECHO_RSP_LEN + data_len), L2CAP_CMD_ECHO_RSP, id)) == NULL)
968 void l2cu_send_peer_info_req (tL2C_LCB *p_lcb, UINT16 info_type)
1007 void l2cu_send_peer_info_rsp (tL2C_LCB *p_lcb, UINT8 remote_id, UINT16 info_type)
1011 UINT16 len = L2CAP_INFO_RSP_LEN;
1344 tL2C_CCB *l2cu_allocate_ccb (tL2C_LCB *p_lcb, UINT16 cid)
1395 p_ccb->local_cid = L2CAP_BASE_APPL_CID + (UINT16)(p_ccb - l2cb.ccb_pool);
1497 BOOLEAN l2cu_start_post_bond_timer (UINT16 handle)
1499 UINT16 timeout;
1634 tL2C_CCB *l2cu_find_ccb_by_remote_cid (tL2C_LCB *p_lcb, UINT16 remote_cid)
1664 tL2C_RCB *l2cu_allocate_rcb (UINT16 psm)
1667 UINT16 xx;
1713 UINT16 local_cid = p_ccb->local_cid;
1745 tL2C_RCB *l2cu_find_rcb_by_psm (UINT16 psm)
1748 UINT16 xx;
1953 UINT16 hci_flush_to;
2083 extern UINT16 tcs_wug_get_clk_offset( BD_ADDR addr ) ;
2210 UINT16 clock_offset;
2212 UINT16 num_acl = BTM_GetNumAclLinks();
2247 clock_offset = (UINT16)(p_inq_info->results.clock_offset);
2297 UINT16 i;
2329 UINT16 i;
2522 UINT16 packet_size;
2565 BOOLEAN l2cu_initialize_fixed_ccb (tL2C_LCB *p_lcb, UINT16 fixed_cid, tL2CAP_FCR_OPTS *p_fcr)
2631 UINT16 timeout = p_lcb->idle_timeout;
2701 UINT16 reason = (p_lcb->is_ble_link ) ? 1 : 0;
2703 UINT16 reason =0;
2744 void l2cu_send_peer_ble_par_req (tL2C_LCB *p_lcb, UINT16 min_int, UINT16 max_int, UINT16 latency, UINT16 timeout)
2780 void l2cu_send_peer_ble_par_rsp (tL2C_LCB *p_lcb, UINT16 reason, UINT8 rem_id)
2816 tL2C_LCB *l2cu_find_lcb_by_handle (UINT16 handle)
2844 tL2C_CCB *l2cu_find_ccb_by_cid (tL2C_LCB *p_lcb, UINT16 local_cid)
3225 UINT16 q_count = p_ccb->xmit_hold_q.count;