Home
last modified time | relevance | path

Searched refs:p_port (Results 1 – 9 of 9) sorted by relevance

/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/rfcomm/
Dport_rfc.c41 UINT32 port_rfc_send_tx_data (tPORT *p_port);
42 void port_rfc_closed (tPORT *p_port, UINT8 res);
43 void port_get_credits (tPORT *p_port, UINT8 k);
56 int port_open_continue (tPORT *p_port) in port_open_continue() argument
60 RFCOMM_TRACE_EVENT ("port_open_continue, p_port:%p", p_port); in port_open_continue()
63 if ((p_mcb = rfc_alloc_multiplexer_channel (p_port->bd_addr, TRUE)) == NULL) { in port_open_continue()
65 port_release_port (p_port); in port_open_continue()
69 p_port->rfc.p_mcb = p_mcb; in port_open_continue()
71 p_mcb->port_inx[p_port->dlci] = p_port->inx; in port_open_continue()
74 port_select_mtu (p_port); in port_open_continue()
[all …]
Dport_utils.c66 tPORT *p_port = &rfc_cb.port.port[0]; in port_allocate_port() local
74 p_port = &rfc_cb.port.port[yy]; in port_allocate_port()
75 if (!p_port->in_use) { in port_allocate_port()
76 memset (p_port, 0, sizeof (tPORT)); in port_allocate_port()
78 p_port->in_use = TRUE; in port_allocate_port()
79 p_port->inx = yy + 1; in port_allocate_port()
81 p_port->dlci = dlci; in port_allocate_port()
82 memcpy (p_port->bd_addr, bd_addr, BD_ADDR_LEN); in port_allocate_port()
85 port_set_defaults (p_port); in port_allocate_port()
88 …RFCOMM_TRACE_DEBUG("rfc_cb.port.port[%d]:%p allocated, last_port:%d", yy, p_port, rfc_cb.rfc.last_… in port_allocate_port()
[all …]
Dport_api.c108 tPORT *p_port; in RFCOMM_CreateConnection() local
137 if (!is_server && ((p_port = port_find_port (dlci, bd_addr)) != NULL)) { in RFCOMM_CreateConnection()
139 if (p_port->is_server == FALSE) { in RFCOMM_CreateConnection()
141p_port->state, p_port->rfc.state, p_port->rfc.p_mcb ? p_port->rfc.p_mcb->state : 0); in RFCOMM_CreateConnection()
146 if ((p_port = port_allocate_port (dlci, bd_addr)) == NULL) { in RFCOMM_CreateConnection()
151 scn, dlci, is_server, mtu, p_mcb, p_port); in RFCOMM_CreateConnection()
153 p_port->default_signal_state = (PORT_DTRDSR_ON | PORT_CTSRTS_ON | PORT_DCD_ON); in RFCOMM_CreateConnection()
157 p_port->default_signal_state = PORT_OBEX_DEFAULT_SIGNAL_STATE; in RFCOMM_CreateConnection()
160 p_port->default_signal_state = PORT_SPP_DEFAULT_SIGNAL_STATE; in RFCOMM_CreateConnection()
163 p_port->default_signal_state = PORT_PPP_DEFAULT_SIGNAL_STATE; in RFCOMM_CreateConnection()
[all …]
Drfc_port_fsm.c41 static void rfc_port_sm_state_closed (tPORT *p_port, UINT16 event, void *p_data);
42 static void rfc_port_sm_sabme_wait_ua (tPORT *p_port, UINT16 event, void *p_data);
43 static void rfc_port_sm_opened (tPORT *p_port, UINT16 event, void *p_data);
44 static void rfc_port_sm_orig_wait_sec_check (tPORT *p_port, UINT16 event, void *p_data);
45 static void rfc_port_sm_term_wait_sec_check (tPORT *p_port, UINT16 event, void *p_data);
46 static void rfc_port_sm_disc_wait_ua (tPORT *p_port, UINT16 event, void *p_data);
48 static void rfc_port_uplink_data (tPORT *p_port, BT_HDR *p_buf);
63 void rfc_port_sm_execute (tPORT *p_port, UINT16 event, void *p_data) in rfc_port_sm_execute() argument
65 RFCOMM_TRACE_DEBUG("%s st:%d, evt:%d\n", __func__, p_port->rfc.state, event); in rfc_port_sm_execute()
67 if (!p_port) { in rfc_port_sm_execute()
[all …]
Drfc_port_if.c93 tPORT *p_port = port_find_mcb_dlci_port(p_mcb, dlci); in RFCOMM_DlcEstablishReq() local
94 if (p_port == NULL) { in RFCOMM_DlcEstablishReq()
100 rfc_port_sm_execute(p_port, RFC_EVENT_OPEN, NULL); in RFCOMM_DlcEstablishReq()
120 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in RFCOMM_DlcEstablishRsp() local
121 if (p_port == NULL) { in RFCOMM_DlcEstablishRsp()
126 rfc_port_sm_execute(p_port, RFC_EVENT_ESTABLISH_RSP, &result); in RFCOMM_DlcEstablishRsp()
147 tPORT *p_port = port_find_mcb_dlci_port(p_mcb, dlci); in RFCOMM_ParNegReq() local
148 if (p_port == NULL) { in RFCOMM_ParNegReq()
155 p_port->error = PORT_PAR_NEG_FAILED; in RFCOMM_ParNegReq()
167 k = (p_port->credit_rx_max < RFCOMM_K_MAX) ? p_port->credit_rx_max : RFCOMM_K_MAX; in RFCOMM_ParNegReq()
[all …]
Drfc_utils.c268 void rfc_port_timer_start (tPORT *p_port, UINT16 timeout) in rfc_port_timer_start() argument
270 TIMER_LIST_ENT *p_tle = &p_port->rfc.tle; in rfc_port_timer_start()
274 p_tle->param = (UINT32)p_port; in rfc_port_timer_start()
286 void rfc_port_timer_stop (tPORT *p_port) in rfc_port_timer_stop() argument
290 btu_stop_timer (&p_port->rfc.tle); in rfc_port_timer_stop()
300 void rfc_port_timer_free (tPORT *p_port) in rfc_port_timer_free() argument
304 btu_free_timer (&p_port->rfc.tle); in rfc_port_timer_free()
305 memset(&p_port->rfc.tle, 0, sizeof(TIMER_LIST_ENT)); in rfc_port_timer_free()
377 tPORT *p_port = (tPORT *)p_ref_data; in rfc_sec_check_complete() local
382 if (!p_port->in_use in rfc_sec_check_complete()
[all …]
Drfc_l2cap_if.c303 tPORT *p_port; in RFCOMM_BufDataInd() local
335 if (((p_port = port_find_mcb_dlci_port (p_mcb, rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd()
336 || (!p_port->rfc.p_mcb)) { in RFCOMM_BufDataInd()
347 if ((p_port = port_find_dlci_port (rfc_cb.rfc.rx_frame.dlci)) == NULL) { in RFCOMM_BufDataInd()
352 p_mcb->port_inx[rfc_cb.rfc.rx_frame.dlci] = p_port->inx; in RFCOMM_BufDataInd()
353 p_port->rfc.p_mcb = p_mcb; in RFCOMM_BufDataInd()
358 rfc_port_sm_execute (p_port, event, p_buf); in RFCOMM_BufDataInd()
364 rfc_inc_credit (p_port, rfc_cb.rfc.rx_frame.credit); in RFCOMM_BufDataInd()
369 rfc_port_sm_execute (p_port, event, NULL); in RFCOMM_BufDataInd()
/hal_espressif-3.7.0/components/bt/host/bluedroid/stack/rfcomm/include/
Dport_int.h223 extern void port_set_defaults (tPORT *p_port);
224 extern void port_select_mtu (tPORT *p_port);
225 extern void port_release_port (tPORT *p_port);
230 extern UINT32 port_get_signal_changes (tPORT *p_port, UINT8 old_signals, UINT8 signal);
231 extern UINT32 port_flow_control_user (tPORT *p_port);
232 extern void port_flow_control_peer(tPORT *p_port, BOOLEAN enable, UINT16 count);
237 extern int port_open_continue (tPORT *p_port);
238 extern void port_start_port_open (tPORT *p_port);
239 extern void port_start_par_neg (tPORT *p_port);
240 extern void port_start_control (tPORT *p_port);
[all …]
Drfc_int.h279 extern void rfc_port_sm_execute (tPORT *p_port, UINT16 event, void *p_data);
300 extern void rfc_port_timer_start (tPORT *p_port, UINT16 tout);
301 extern void rfc_port_timer_stop (tPORT *p_port);
302 extern void rfc_port_timer_free (tPORT *p_port);
309 extern void rfc_port_closed (tPORT *p_port);
311 extern void rfc_inc_credit (tPORT *p_port, UINT8 credit);
312 extern void rfc_dec_credit (tPORT *p_port);