Home
last modified time | relevance | path

Searched refs:rfc (Results 1 – 15 of 15) sorted by relevance

/packages/modules/Bluetooth/system/stack/rfcomm/
Drfc_port_fsm.cc86 << ", STATE=" << std::to_string(p_port->rfc.state) in rfc_port_sm_execute()
88 switch (p_port->rfc.state) { in rfc_port_sm_execute()
130 p_port->rfc.state = RFC_STATE_ORIG_WAIT_SEC_CHECK; in rfc_port_sm_state_closed()
131 btm_sec_mx_access_request(p_port->rfc.p_mcb->bd_addr, true, in rfc_port_sm_state_closed()
149 rfc_timer_stop(p_port->rfc.p_mcb); in rfc_port_sm_state_closed()
152 p_port->rfc.state = RFC_STATE_TERM_WAIT_SEC_CHECK; in rfc_port_sm_state_closed()
153 btm_sec_mx_access_request(p_port->rfc.p_mcb->bd_addr, false, in rfc_port_sm_state_closed()
169 rfc_send_dm(p_port->rfc.p_mcb, p_port->dlci, false); in rfc_port_sm_state_closed()
173 rfc_send_dm(p_port->rfc.p_mcb, p_port->dlci, false); in rfc_port_sm_state_closed()
177 Port_TimeOutCloseMux(p_port->rfc.p_mcb); in rfc_port_sm_state_closed()
[all …]
Drfc_l2cap_if.cc64 tL2CAP_APPL_INFO* p_l2c = &rfc_cb.rfc.reg_info; in rfcomm_l2cap_if_init()
76 L2CA_Register(BT_PSM_RFCOMM, rfc_cb.rfc.reg_info, true /* enable_snoop */, in rfcomm_l2cap_if_init()
266 tRFC_EVENT event = rfc_parse_data(p_mcb, &rfc_cb.rfc.rx_frame, p_buf); in RFCOMM_BufDataInd()
276 if (rfc_cb.rfc.rx_frame.dlci == RFCOMM_MX_DLCI) { in RFCOMM_BufDataInd()
292 tPORT* p_port = port_find_mcb_dlci_port(p_mcb, rfc_cb.rfc.rx_frame.dlci); in RFCOMM_BufDataInd()
293 if (p_port == nullptr || !p_port->rfc.p_mcb) { in RFCOMM_BufDataInd()
299 if ((p_mcb->is_initiator && !rfc_cb.rfc.rx_frame.cr) || in RFCOMM_BufDataInd()
300 (!p_mcb->is_initiator && rfc_cb.rfc.rx_frame.cr)) { in RFCOMM_BufDataInd()
304 rfc_send_dm(p_mcb, rfc_cb.rfc.rx_frame.dlci, rfc_cb.rfc.rx_frame.pf); in RFCOMM_BufDataInd()
310 p_port = port_find_dlci_port(rfc_cb.rfc.rx_frame.dlci); in RFCOMM_BufDataInd()
[all …]
Dport_utils.cc64 uint8_t port_index = rfc_cb.rfc.last_port_index + static_cast<uint8_t>(1); in port_allocate_port()
80 p_port->rfc.port_timer = alarm_new("rfcomm_port.port_timer"); in port_allocate_port()
83 rfc_cb.rfc.last_port_index = port_index; in port_allocate_port()
87 __func__, port_index, p_port, rfc_cb.rfc.last_port_index, in port_allocate_port()
206 p_port, p_port->rfc.state, p_port->keep_port_handle); in port_release_port()
223 alarm_cancel(p_port->rfc.port_timer); in port_release_port()
227 if (p_port->rfc.state == RFC_STATE_CLOSED) { in port_release_port()
228 if (p_port->rfc.p_mcb) { in port_release_port()
229 p_port->rfc.p_mcb->port_handles[p_port->dlci] = 0; in port_release_port()
232 rfc_check_mcb_active(p_port->rfc.p_mcb); in port_release_port()
[all …]
Drfc_utils.cc159 for (i = 0, j = rfc_cb.rfc.last_mux + 1; i < MAX_BD_CONNECTIONS; i++, j++) { in rfc_alloc_multiplexer_channel()
181 rfc_cb.rfc.last_mux = (uint8_t)j; in rfc_alloc_multiplexer_channel()
201 if (rfc_cb.port.port[i].rfc.p_mcb == p_mcb) in rfc_release_multiplexer_channel()
202 rfc_cb.port.port[i].rfc.p_mcb = NULL; in rfc_release_multiplexer_channel()
253 alarm_set_on_mloop(p_port->rfc.port_timer, interval_ms, in rfc_port_timer_start()
267 alarm_cancel(p_port->rfc.port_timer); in rfc_port_timer_stop()
328 ((p_port->rfc.state != RFC_STATE_ORIG_WAIT_SEC_CHECK) && in rfc_sec_check_complete()
329 (p_port->rfc.state != RFC_STATE_TERM_WAIT_SEC_CHECK))) in rfc_sec_check_complete()
347 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in rfc_port_closed()
349 p_port->rfc.state = RFC_STATE_CLOSED; in rfc_port_closed()
[all …]
Dport_api.cc142 << ", RFC_state=" << static_cast<int>(p_port->rfc.state) in RFCOMM_CreateConnectionWithSecurity()
144 << (p_port->rfc.p_mcb ? p_port->rfc.p_mcb->state : 0) in RFCOMM_CreateConnectionWithSecurity()
493 __func__, handle, p_port->in_use, p_port->state, p_port->rfc.p_mcb, in PORT_CheckConnection()
494 (p_port->rfc.p_mcb ? p_port->rfc.p_mcb->peer_ready : -1), in PORT_CheckConnection()
495 p_port->rfc.state); in PORT_CheckConnection()
501 if (!p_port->rfc.p_mcb || !p_port->rfc.p_mcb->peer_ready || in PORT_CheckConnection()
502 (p_port->rfc.state != RFC_STATE_OPENED)) { in PORT_CheckConnection()
506 *bd_addr = p_port->rfc.p_mcb->bd_addr; in PORT_CheckConnection()
507 if (p_lcid) *p_lcid = p_port->rfc.p_mcb->lcid; in PORT_CheckConnection()
539 if (port.rfc.p_mcb == &multiplexer_cb) { in PORT_IsOpening()
[all …]
Dport_rfc.cc75 p_port->rfc.p_mcb = p_mcb; in port_open_continue()
111 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in port_start_control()
129 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in port_start_par_neg()
148 tRFC_MCB* p_mcb = p_port->rfc.p_mcb; in port_start_close()
171 if ((p_mcb == NULL) || (p_port->rfc.state == RFC_STATE_CLOSED)) { in port_start_close()
204 if (p_port->rfc.p_mcb == p_mcb) { in PORT_StartCnf()
264 if ((p_port->rfc.p_mcb == NULL) || (p_port->rfc.p_mcb == p_mcb)) { in PORT_StartInd()
313 p_port->rfc.p_mcb = p_mcb; in PORT_ParNegInd()
523 RFCOMM_PortParameterNegotiationRequest(p_port->rfc.p_mcb, p_port->dlci, in PORT_DlcEstablishCnf()
526 RFCOMM_ControlReq(p_port->rfc.p_mcb, p_port->dlci, &p_port->local_ctrl); in PORT_DlcEstablishCnf()
[all …]
Drfc_port_if.cc160 p_port->rfc.expected_rsp |= RFC_RSP_PN; in RFCOMM_ParameterNegotiationRequest()
209 p_port->rfc.expected_rsp |= RFC_RSP_RPN_REPLY; in RFCOMM_PortParameterNegotiationRequest()
211 p_port->rfc.expected_rsp |= RFC_RSP_RPN; in RFCOMM_PortParameterNegotiationRequest()
249 (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_ControlReq()
254 p_port->rfc.expected_rsp |= RFC_RSP_MSC; in RFCOMM_ControlReq()
277 (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_FlowReq()
282 p_port->rfc.expected_rsp |= RFC_RSP_MSC; in RFCOMM_FlowReq()
304 (p_port->rfc.state != RFC_STATE_OPENED)) in RFCOMM_LineStatusReq()
307 p_port->rfc.expected_rsp |= RFC_RSP_RLS; in RFCOMM_LineStatusReq()
Drfc_ts_frames.cc235 *p_data++ = rfc_cb.rfc.rx_frame.u.pn.priority; in rfc_send_pn()
386 *p_data++ = rfc_cb.rfc.rx_frame.ea | in rfc_send_nsc()
387 (rfc_cb.rfc.rx_frame.cr << RFCOMM_SHIFT_CR) | in rfc_send_nsc()
388 rfc_cb.rfc.rx_frame.type; in rfc_send_nsc()
638 MX_FRAME* p_rx_frame = &rfc_cb.rfc.rx_frame; in rfc_process_mx_message()
Dport_int.h172 tRFC_PORT rfc; /* RFCOMM port control block */ member
Drfc_int.h169 tRFCOMM_CB rfc; member
/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_act.cc547 int status = PORT_CheckConnection(data.rfc.port_handle, &dev_addr, &lcid); in bta_ag_rfc_acp_open()
593 p_scb->serv_handle[i], data.rfc.port_handle); in bta_ag_rfc_acp_open()
595 if (p_scb->serv_handle[i] == data.rfc.port_handle) { in bta_ag_rfc_acp_open()
597 p_scb->conn_handle = data.rfc.port_handle; in bta_ag_rfc_acp_open()
Dbta_ag_rfc.cc154 data.rfc.port_handle = port_handle; in bta_ag_mgmt_cback()
Dbta_ag_int.h174 tBTA_AG_RFC rfc; member
/packages/modules/Bluetooth/system/bta/hf_client/
Dbta_hf_client_int.h148 tBTA_HF_CLIENT_RFC rfc; member
/packages/services/Car/car-lib/src/android/car/navigation/
Dnavigation_state.proto629 // [https://www.ietf.org/rfc/rfc3339.txt](https://www.ietf.org/rfc/rfc3339.txt).