/external/bluetooth/bluedroid/stack/rfcomm/ |
D | rfc_int.h | 51 extern void RFCOMM_DlcEstablishReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu); 52 extern void RFCOMM_DlcEstablishRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result); 54 extern void RFCOMM_DataReq (tRFC_MCB *p_mcb, UINT8 dlci, BT_HDR *p_buf); 56 extern void RFCOMM_DlcReleaseReq (tRFC_MCB *p_mcb, UINT8 dlci); 58 extern void RFCOMM_ParNegReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu); 59 extern void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k); 66 extern void RFCOMM_FlowReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT8 state); 68 extern void RFCOMM_PortNegReq (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_STATE *p_pars); 69 extern void RFCOMM_PortNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_STATE *p_pars, UINT16 param_mask); 71 extern void RFCOMM_ControlReq (tRFC_MCB *p_mcb, UINT8 dlci, tPORT_CTRL *p_pars); [all …]
|
D | rfc_port_if.c | 82 void RFCOMM_DlcEstablishReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) in RFCOMM_DlcEstablishReq() argument 84 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in RFCOMM_DlcEstablishReq() 88 PORT_DlcEstablishCnf (p_mcb, dlci, 0, RFCOMM_ERROR); in RFCOMM_DlcEstablishReq() 104 void RFCOMM_DlcEstablishRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT16 result) in RFCOMM_DlcEstablishRsp() argument 106 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in RFCOMM_DlcEstablishRsp() 110 PORT_DlcReleaseInd (p_mcb, dlci); in RFCOMM_DlcEstablishRsp() 129 void RFCOMM_ParNegReq (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu) in RFCOMM_ParNegReq() argument 131 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in RFCOMM_ParNegReq() 163 rfc_send_pn (p_mcb, dlci, TRUE, mtu, cl, k); in RFCOMM_ParNegReq() 177 void RFCOMM_ParNegRsp (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in RFCOMM_ParNegRsp() argument [all …]
|
D | port_rfc.c | 70 p_mcb->port_inx[p_port->dlci] = p_port->inx; in port_open_continue() 77 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); in port_open_continue() 114 RFCOMM_ControlReq (p_mcb, p_port->dlci, &p_port->local_ctrl); in port_start_control() 135 RFCOMM_PortNegReq (p_mcb, p_port->dlci, &p_port->user_port_pars); in port_start_par_neg() 184 RFCOMM_DlcReleaseReq (p_mcb, p_port->dlci); in port_start_close() 215 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); in PORT_StartCnf() 293 void PORT_ParNegInd (tRFC_MCB *p_mcb, UINT8 dlci, UINT16 mtu, UINT8 cl, UINT8 k) in PORT_ParNegInd() argument 295 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in PORT_ParNegInd() 299 RFCOMM_TRACE_EVENT2 ("PORT_ParNegInd dlci:%d mtu:%d", dlci, mtu); in PORT_ParNegInd() 304 p_port = port_find_dlci_port (dlci); in PORT_ParNegInd() [all …]
|
D | rfc_port_fsm.c | 115 BTM_SEC_PROTO_RFCOMM, (UINT32)(p_port->dlci / 2), in rfc_port_sm_state_closed() 136 BTM_SEC_PROTO_RFCOMM, (UINT32)(p_port->dlci / 2), in rfc_port_sm_state_closed() 149 rfc_send_dm (p_port->rfc.p_mcb, p_port->dlci, FALSE); in rfc_port_sm_state_closed() 153 rfc_send_dm (p_port->rfc.p_mcb, p_port->dlci, FALSE); in rfc_port_sm_state_closed() 187 rfc_send_disc (p_port->rfc.p_mcb, p_port->dlci); in rfc_port_sm_sabme_wait_ua() 203 …PORT_DlcEstablishCnf (p_port->rfc.p_mcb, p_port->dlci, p_port->rfc.p_mcb->peer_l2cap_mtu, RFCOMM_S… in rfc_port_sm_sabme_wait_ua() 208 …PORT_DlcEstablishCnf (p_port->rfc.p_mcb, p_port->dlci, p_port->rfc.p_mcb->peer_l2cap_mtu, RFCOMM_E… in rfc_port_sm_sabme_wait_ua() 213 rfc_send_ua (p_port->rfc.p_mcb, p_port->dlci); in rfc_port_sm_sabme_wait_ua() 214 …PORT_DlcEstablishCnf (p_port->rfc.p_mcb, p_port->dlci, p_port->rfc.p_mcb->peer_l2cap_mtu, RFCOMM_E… in rfc_port_sm_sabme_wait_ua() 220 rfc_send_ua (p_port->rfc.p_mcb, p_port->dlci); in rfc_port_sm_sabme_wait_ua() [all …]
|
D | rfc_ts_frames.c | 39 void rfc_send_sabme (tRFC_MCB *p_mcb, UINT8 dlci) in rfc_send_sabme() argument 52 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_sabme() 56 *p_data = RFCOMM_SABME_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_sabme() 71 void rfc_send_ua (tRFC_MCB *p_mcb, UINT8 dlci) in rfc_send_ua() argument 84 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_ua() 88 *p_data = RFCOMM_UA_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_ua() 103 void rfc_send_dm (tRFC_MCB *p_mcb, UINT8 dlci, BOOLEAN pf) in rfc_send_dm() argument 116 *p_data++ = RFCOMM_EA | cr | (dlci << RFCOMM_SHIFT_DLCI); in rfc_send_dm() 120 *p_data = RFCOMM_DM_FCS ((UINT8 *)(p_buf + 1) + L2CAP_MIN_OFFSET, cr, dlci); in rfc_send_dm() 135 void rfc_send_disc (tRFC_MCB *p_mcb, UINT8 dlci) in rfc_send_disc() argument [all …]
|
D | port_utils.c | 63 tPORT *port_allocate_port (UINT8 dlci, BD_ADDR bd_addr) in port_allocate_port() argument 81 p_port->dlci = dlci; in port_allocate_port() 235 p_port->rfc.p_mcb->port_inx[p_port->dlci] = 0; in port_release_port() 260 p_port->dlci &= 0xfe; in port_release_port() 317 tPORT *port_find_mcb_dlci_port (tRFC_MCB *p_mcb, UINT8 dlci) in port_find_mcb_dlci_port() argument 324 if (dlci > RFCOMM_MAX_DLCI) in port_find_mcb_dlci_port() 327 inx = p_mcb->port_inx[dlci]; in port_find_mcb_dlci_port() 330 … RFCOMM_TRACE_DEBUG2("port_find_mcb_dlci_port: p_mcb:%p, port_inx[dlci:%d] is 0", p_mcb, dlci); in port_find_mcb_dlci_port() 347 tPORT *port_find_dlci_port (UINT8 dlci) in port_find_dlci_port() argument 358 if (p_port->dlci == dlci) in port_find_dlci_port() [all …]
|
D | rfc_l2cap_if.c | 178 rfc_cb.port.port[idx - 1].dlci += 1; in RFCOMM_ConnectCnf() 179 … RFCOMM_TRACE_DEBUG2 ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in RFCOMM_ConnectCnf() 323 if (rfc_cb.rfc.rx_frame.dlci == RFCOMM_MX_DLCI) in RFCOMM_BufDataInd() 339 if (((p_port = port_find_mcb_dlci_port (p_mcb, rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd() 347 rfc_send_dm (p_mcb, rfc_cb.rfc.rx_frame.dlci, rfc_cb.rfc.rx_frame.pf); in RFCOMM_BufDataInd() 352 if ((p_port = port_find_dlci_port (rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd() 354 rfc_send_dm (p_mcb, rfc_cb.rfc.rx_frame.dlci, TRUE); in RFCOMM_BufDataInd() 358 p_mcb->port_inx[rfc_cb.rfc.rx_frame.dlci] = p_port->inx; in RFCOMM_BufDataInd()
|
D | port_int.h | 162 UINT8 dlci; /* DLCI of the connection */ member 226 extern tPORT *port_allocate_port (UINT8 dlci, BD_ADDR bd_addr); 230 extern tPORT *port_find_mcb_dlci_port (tRFC_MCB *p_mcb, UINT8 dlci); 232 extern tPORT *port_find_dlci_port (UINT8 dlci); 233 extern tPORT *port_find_port (UINT8 dlci, BD_ADDR bd_addr);
|
D | port_api.c | 83 UINT8 dlci; in RFCOMM_CreateConnection() local 102 dlci = (scn << 1) + 1; in RFCOMM_CreateConnection() 104 dlci = (scn << 1); in RFCOMM_CreateConnection() 106 scn, dlci, is_server, mtu, p_mcb); in RFCOMM_CreateConnection() 110 if (!is_server && ((p_port = port_find_port (dlci, bd_addr)) != NULL)) in RFCOMM_CreateConnection() 121 if ((p_port = port_allocate_port (dlci, bd_addr)) == NULL) in RFCOMM_CreateConnection() 127 scn, dlci, is_server, mtu, p_mcb, p_port); in RFCOMM_CreateConnection() 148 …RFCOMM_TRACE_EVENT2 ("RFCOMM_CreateConnection dlci:%d signal state:0x%x", dlci, p_port->default_si… in RFCOMM_CreateConnection() 1044 RFCOMM_LineStatusReq (p_port->rfc.p_mcb, p_port->dlci, errors); in PORT_SendError() 1399 RFCOMM_DataReq (p_port->rfc.p_mcb, p_port->dlci, p_buf); in port_write()
|
D | rfc_utils.c | 390 p_mcb->port_inx[p_port->dlci] = 0; in rfc_port_closed() 420 PORT_FlowInd(p_port->rfc.p_mcb, p_port->dlci, TRUE); in rfc_inc_credit()
|
D | rfc_mx_fsm.c | 237 rfc_cb.port.port[idx - 1].dlci += 1; in rfc_mx_sm_state_wait_conn_cnf() 238 … RFCOMM_TRACE_DEBUG2 ("RFCOMM MX - DLCI:%d -> %d", i, rfc_cb.port.port[idx - 1].dlci); in rfc_mx_sm_state_wait_conn_cnf()
|
/external/tcpdump/ |
D | print-fr.c | 103 static int parse_q922_addr(const u_char *p, u_int *dlci, u_int *sdlcore, in parse_q922_addr() argument 110 *dlci = ((p[0] & 0xFC) << 2) | ((p[1] & 0xF0) >> 4); in parse_q922_addr() 123 *dlci = (*dlci << 7) | (p[0] >> 1); in parse_q922_addr() 136 *dlci = (*dlci << 6) | (p[0] >> 2); in parse_q922_addr() 177 fr_hdr_print(int length, u_int addr_len, u_int dlci, u_int8_t *flags, u_int16_t nlpid) in fr_hdr_print() argument 181 dlci, in fr_hdr_print() 187 dlci, in fr_hdr_print() 195 dlci, in fr_hdr_print() 224 u_int dlci; in fr_print() local 231 if (parse_q922_addr(p, &dlci, &sdlcore, &addr_len, flags)) { in fr_print() [all …]
|
/external/bluetooth/bluedroid/stack/include/ |
D | rfcdefs.h | 69 #define RFCOMM_PARSE_CTRL_FIELD(ea, cr, dlci, p_data) \ argument 73 dlci = *p_data++ >> RFCOMM_SHIFT_DLCI; \ 74 if (!ea) dlci += *p_data++ << RFCOMM_SHIFT_DLCI2; \ 77 #define RFCOMM_FORMAT_CTRL_FIELD(p_data, ea, cr, dlci) \ argument 78 *p_data++ = ea | cr | (dlci << RFCOMM_SHIFT_DLCI) 114 #define RFCOMM_VALID_DLCI(dlci) \ argument 115 (((dlci) == 0) || (((dlci) >= 2) && ((dlci) <= RFCOMM_MAX_DLCI)))
|
/external/kernel-headers/original/linux/hdlc/ |
D | ioctl.h | 33 unsigned int dlci; member 37 unsigned int dlci; member
|
/external/iproute2/include/linux/hdlc/ |
D | ioctl.h | 66 unsigned int dlci; member 70 unsigned int dlci; member
|
/external/iproute2/lib/ |
D | ll_types.c | 46 __PF(DLCI,dlci) in ll_type_n2a()
|
/external/kernel-headers/original/linux/ |
D | wanrouter.h | 154 unsigned dlci[100]; /* List of all DLCIs */ member
|