Home
last modified time | relevance | path

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

/external/bluetooth/bluedroid/stack/rfcomm/
Dport_rfc.c39 UINT32 port_rfc_send_tx_data (tPORT *p_port);
40 void port_rfc_closed (tPORT *p_port, UINT8 res);
41 void port_get_credits (tPORT *p_port, UINT8 k);
54 int port_open_continue (tPORT *p_port) in port_open_continue() argument
61 if ((p_mcb = rfc_alloc_multiplexer_channel (p_port->bd_addr, TRUE)) == NULL) in port_open_continue()
64 port_release_port (p_port); in port_open_continue()
68 p_port->rfc.p_mcb = p_mcb; in port_open_continue()
70 p_mcb->port_inx[p_port->dlci] = p_port->inx; in port_open_continue()
73 port_select_mtu (p_port); in port_open_continue()
77 RFCOMM_ParNegReq (p_mcb, p_port->dlci, p_port->mtu); in port_open_continue()
[all …]
Dport_utils.c65 tPORT *p_port = &rfc_cb.port.port[0]; in port_allocate_port() local
73 p_port = &rfc_cb.port.port[yy]; in port_allocate_port()
74 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()
89 return (p_port); in port_allocate_port()
[all …]
Dport_api.c81 tPORT *p_port; in RFCOMM_CreateConnection() local
110 if (!is_server && ((p_port = port_find_port (dlci, bd_addr)) != NULL)) in RFCOMM_CreateConnection()
113 if (p_port->is_server == FALSE) in RFCOMM_CreateConnection()
116 p_port->state, p_port->rfc.state, p_port->rfc.p_mcb ? p_port->rfc.p_mcb->state : 0); in RFCOMM_CreateConnection()
121 if ((p_port = port_allocate_port (dlci, bd_addr)) == NULL) in RFCOMM_CreateConnection()
127 p_port->default_signal_state = (PORT_DTRDSR_ON | PORT_CTSRTS_ON | PORT_DCD_ON); in RFCOMM_CreateConnection()
132 p_port->default_signal_state = PORT_OBEX_DEFAULT_SIGNAL_STATE; in RFCOMM_CreateConnection()
135 p_port->default_signal_state = PORT_SPP_DEFAULT_SIGNAL_STATE; in RFCOMM_CreateConnection()
138 p_port->default_signal_state = PORT_PPP_DEFAULT_SIGNAL_STATE; in RFCOMM_CreateConnection()
142 p_port->default_signal_state = PORT_DUN_DEFAULT_SIGNAL_STATE; in RFCOMM_CreateConnection()
[all …]
Drfc_port_fsm.c38 static void rfc_port_sm_state_closed (tPORT *p_port, UINT16 event, void *p_data);
39 static void rfc_port_sm_sabme_wait_ua (tPORT *p_port, UINT16 event, void *p_data);
40 static void rfc_port_sm_opened (tPORT *p_port, UINT16 event, void *p_data);
41 static void rfc_port_sm_orig_wait_sec_check (tPORT *p_port, UINT16 event, void *p_data);
42 static void rfc_port_sm_term_wait_sec_check (tPORT *p_port, UINT16 event, void *p_data);
43 static void rfc_port_sm_disc_wait_ua (tPORT *p_port, UINT16 event, void *p_data);
45 static void rfc_port_uplink_data (tPORT *p_port, BT_HDR *p_buf);
60 void rfc_port_sm_execute (tPORT *p_port, UINT16 event, void *p_data) in rfc_port_sm_execute() argument
62 if (!p_port) in rfc_port_sm_execute()
68 switch (p_port->rfc.state) in rfc_port_sm_execute()
[all …]
Drfc_port_if.c84 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in RFCOMM_DlcEstablishReq() local
92 rfc_port_sm_execute(p_port, RFC_EVENT_OPEN, NULL); in RFCOMM_DlcEstablishReq()
106 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in RFCOMM_DlcEstablishRsp() local
114 rfc_port_sm_execute(p_port, RFC_EVENT_ESTABLISH_RSP, &result); in RFCOMM_DlcEstablishRsp()
131 tPORT *p_port = port_find_mcb_dlci_port (p_mcb, dlci); in RFCOMM_ParNegReq() local
138 p_port->error = PORT_PAR_NEG_FAILED; in RFCOMM_ParNegReq()
151 k = (p_port->credit_rx_max < RFCOMM_K_MAX) ? p_port->credit_rx_max : RFCOMM_K_MAX; in RFCOMM_ParNegReq()
152 p_port->credit_rx = k; in RFCOMM_ParNegReq()
161 p_port->rfc.expected_rsp |= RFC_RSP_PN; in RFCOMM_ParNegReq()
165 rfc_port_timer_start (p_port, RFC_T2_TIMEOUT) ; in RFCOMM_ParNegReq()
[all …]
Drfc_utils.c240 void rfc_port_timer_start (tPORT *p_port, UINT16 timeout) in rfc_port_timer_start() argument
242 TIMER_LIST_ENT *p_tle = &p_port->rfc.tle; in rfc_port_timer_start()
246 p_tle->param = (UINT32)p_port; in rfc_port_timer_start()
259 void rfc_port_timer_stop (tPORT *p_port) in rfc_port_timer_stop() argument
263 btu_stop_timer (&p_port->rfc.tle); in rfc_port_timer_stop()
340 tPORT *p_port = (tPORT *)p_ref_data; in rfc_sec_check_complete() local
343 if (!p_port->in_use in rfc_sec_check_complete()
344 || ((p_port->rfc.state != RFC_STATE_ORIG_WAIT_SEC_CHECK) in rfc_sec_check_complete()
345 && (p_port->rfc.state != RFC_STATE_TERM_WAIT_SEC_CHECK))) in rfc_sec_check_complete()
363 void rfc_port_closed (tPORT *p_port) in rfc_port_closed() argument
[all …]
Dport_int.h227 extern void port_set_defaults (tPORT *p_port);
228 extern void port_select_mtu (tPORT *p_port);
229 extern void port_release_port (tPORT *p_port);
234 extern UINT32 port_get_signal_changes (tPORT *p_port, UINT8 old_signals, UINT8 signal);
235 extern UINT32 port_flow_control_user (tPORT *p_port);
236 extern void port_flow_control_peer(tPORT *p_port, BOOLEAN enable, UINT16 count);
241 extern int port_open_continue (tPORT *p_port);
242 extern void port_start_port_open (tPORT *p_port);
243 extern void port_start_par_neg (tPORT *p_port);
244 extern void port_start_control (tPORT *p_port);
[all …]
Drfc_l2cap_if.c303 tPORT *p_port; in RFCOMM_BufDataInd() local
339 if (((p_port = port_find_mcb_dlci_port (p_mcb, rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd()
340 || (!p_port->rfc.p_mcb)) in RFCOMM_BufDataInd()
352 if ((p_port = port_find_dlci_port (rfc_cb.rfc.rx_frame.dlci)) == NULL) in RFCOMM_BufDataInd()
358 p_mcb->port_inx[rfc_cb.rfc.rx_frame.dlci] = p_port->inx; in RFCOMM_BufDataInd()
359 p_port->rfc.p_mcb = p_mcb; in RFCOMM_BufDataInd()
365 rfc_port_sm_execute (p_port, event, p_buf); in RFCOMM_BufDataInd()
370 rfc_inc_credit (p_port, rfc_cb.rfc.rx_frame.credit); in RFCOMM_BufDataInd()
374 rfc_port_sm_execute (p_port, event, NULL); in RFCOMM_BufDataInd()
Drfc_int.h289 extern void rfc_port_sm_execute (tPORT *p_port, UINT16 event, void *p_data);
309 extern void rfc_port_timer_start (tPORT *p_port, UINT16 tout);
310 extern void rfc_port_timer_stop (tPORT *p_port);
317 extern void rfc_port_closed (tPORT *p_port);
319 extern void rfc_inc_credit (tPORT *p_port, UINT8 credit);
320 extern void rfc_dec_credit (tPORT *p_port);
/external/ipsec-tools/src/racoon/
Dracoonctl.c929 char *p_name = NULL, *p_port = NULL; local
939 if (get_comindex(*av, &p_name, &p_port, &p_prefs) == -1)
941 src = get_sockaddr(family, p_name, p_port);
946 if (p_port) {
947 racoon_free(p_port);
948 p_port = NULL;
954 if (get_comindex(*av, &p_name, &p_port, &p_prefd) == -1)
956 dst = get_sockaddr(family, p_name, p_port);
961 if (p_port) {
962 racoon_free(p_port);
[all …]
/external/apache-xml/src/main/java/org/apache/xml/serializer/utils/
DURI.java287 …public URI(String p_scheme, String p_userinfo, String p_host, int p_port, String p_path, String p_… in URI() argument
304 if (p_port != -1) in URI()
328 setPort(p_port); in URI()
1126 public void setPort(int p_port) throws MalformedURIException in setPort() argument
1129 if (p_port >= 0 && p_port <= 65535) in setPort()
1137 else if (p_port != -1) in setPort()
1142 m_port = p_port; in setPort()
/external/apache-xml/src/main/java/org/apache/xml/utils/
DURI.java284 …public URI(String p_scheme, String p_userinfo, String p_host, int p_port, String p_path, String p_… in URI() argument
301 if (p_port != -1) in URI()
325 setPort(p_port); in URI()
1146 public void setPort(int p_port) throws MalformedURIException in setPort() argument
1149 if (p_port >= 0 && p_port <= 65535) in setPort()
1157 else if (p_port != -1) in setPort()
1162 m_port = p_port; in setPort()
/external/valgrind/main/coregrind/
Dvgdb.c2277 int *p_port, in parse_options() argument
2411 *p_port = int_port; in parse_options()