crypto/libressl/apps/openssl/s_client.c
1082
con = SSL_new(ctx);
crypto/libressl/apps/openssl/s_client.c
1100
SSL_set_session(con, sess);
crypto/libressl/apps/openssl/s_client.c
1110
!SSL_set_tlsext_host_name(con, servername)) {
crypto/libressl/apps/openssl/s_client.c
1148
SSL_set_debug(con, 1);
crypto/libressl/apps/openssl/s_client.c
1150
if (SSL_is_dtls(con)) {
crypto/libressl/apps/openssl/s_client.c
1174
SSL_set_options(con, SSL_OP_NO_QUERY_MTU);
crypto/libressl/apps/openssl/s_client.c
1175
SSL_set_mtu(con, s_client_config.socket_mtu - 28);
crypto/libressl/apps/openssl/s_client.c
1189
SSL_set_debug(con, 1);
crypto/libressl/apps/openssl/s_client.c
1194
SSL_set_msg_callback(con, msg_cb);
crypto/libressl/apps/openssl/s_client.c
1195
SSL_set_msg_callback_arg(con, bio_c_out);
crypto/libressl/apps/openssl/s_client.c
1198
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/libressl/apps/openssl/s_client.c
1199
SSL_set_tlsext_debug_arg(con, bio_c_out);
crypto/libressl/apps/openssl/s_client.c
1202
SSL_set_tlsext_status_type(con, TLSEXT_STATUSTYPE_ocsp);
crypto/libressl/apps/openssl/s_client.c
1207
SSL_set_bio(con, sbio, sbio);
crypto/libressl/apps/openssl/s_client.c
1208
SSL_set_connect_state(con);
crypto/libressl/apps/openssl/s_client.c
1347
if (SSL_is_dtls(con) && DTLSv1_get_timeout(con, &timeout))
crypto/libressl/apps/openssl/s_client.c
1351
if (SSL_in_init(con) && !SSL_total_renegotiations(con)) {
crypto/libressl/apps/openssl/s_client.c
1363
SSL_get_session(con));
crypto/libressl/apps/openssl/s_client.c
1370
print_stuff(bio_c_out, con, full_log);
crypto/libressl/apps/openssl/s_client.c
1383
SSL_shutdown(con);
crypto/libressl/apps/openssl/s_client.c
1384
SSL_set_connect_state(con);
crypto/libressl/apps/openssl/s_client.c
1385
shutdown(SSL_get_fd(con), SHUT_RD);
crypto/libressl/apps/openssl/s_client.c
1386
close(SSL_get_fd(con));
crypto/libressl/apps/openssl/s_client.c
1392
ssl_pending = read_ssl && SSL_pending(con);
crypto/libressl/apps/openssl/s_client.c
1408
pfd[2].fd = SSL_get_fd(con);
crypto/libressl/apps/openssl/s_client.c
1426
if (SSL_is_dtls(con) &&
crypto/libressl/apps/openssl/s_client.c
1427
DTLSv1_handle_timeout(con) > 0)
crypto/libressl/apps/openssl/s_client.c
1435
k = SSL_write(con, &(cbuf[cbuf_off]),
crypto/libressl/apps/openssl/s_client.c
1437
switch (SSL_get_error(con, k)) {
crypto/libressl/apps/openssl/s_client.c
1516
SSL_renegotiate(con);
crypto/libressl/apps/openssl/s_client.c
1522
k = p = SSL_peek(con, pbuf, 1024 /* BUFSIZZ */ );
crypto/libressl/apps/openssl/s_client.c
1523
pending = SSL_pending(con);
crypto/libressl/apps/openssl/s_client.c
1524
if (SSL_get_error(con, p) == SSL_ERROR_NONE) {
crypto/libressl/apps/openssl/s_client.c
1528
k = SSL_read(con, sbuf, p);
crypto/libressl/apps/openssl/s_client.c
1531
k = SSL_read(con, sbuf, 1024 /* BUFSIZZ */ );
crypto/libressl/apps/openssl/s_client.c
1534
switch (SSL_get_error(con, k)) {
crypto/libressl/apps/openssl/s_client.c
1628
SSL_renegotiate(con);
crypto/libressl/apps/openssl/s_client.c
1643
print_stuff(bio_c_out, con, full_log);
crypto/libressl/apps/openssl/s_client.c
1644
SSL_shutdown(con);
crypto/libressl/apps/openssl/s_client.c
1645
shutdown(SSL_get_fd(con), SHUT_RD);
crypto/libressl/apps/openssl/s_client.c
1646
close(SSL_get_fd(con));
crypto/libressl/apps/openssl/s_client.c
1648
if (con != NULL) {
crypto/libressl/apps/openssl/s_client.c
1650
print_stuff(bio_c_out, con, 1);
crypto/libressl/apps/openssl/s_client.c
1651
SSL_free(con);
crypto/libressl/apps/openssl/s_client.c
174
static void print_stuff(BIO *berr, SSL *con, int full);
crypto/libressl/apps/openssl/s_client.c
904
SSL *con = NULL;
crypto/libressl/apps/openssl/s_server.c
1540
SSL *con = NULL;
crypto/libressl/apps/openssl/s_server.c
1555
if (con == NULL) {
crypto/libressl/apps/openssl/s_server.c
1556
con = SSL_new(ctx);
crypto/libressl/apps/openssl/s_server.c
1558
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/libressl/apps/openssl/s_server.c
1559
SSL_set_tlsext_debug_arg(con, bio_s_out);
crypto/libressl/apps/openssl/s_server.c
1568
SSL_set_session_id_context(con, context,
crypto/libressl/apps/openssl/s_server.c
1571
SSL_clear(con);
crypto/libressl/apps/openssl/s_server.c
1573
if (SSL_is_dtls(con)) {
crypto/libressl/apps/openssl/s_server.c
1588
SSL_set_options(con, SSL_OP_NO_QUERY_MTU);
crypto/libressl/apps/openssl/s_server.c
1589
SSL_set_mtu(con, s_server_config.socket_mtu - 28);
crypto/libressl/apps/openssl/s_server.c
1595
SSL_set_options(con, SSL_OP_COOKIE_EXCHANGE);
crypto/libressl/apps/openssl/s_server.c
1606
SSL_set_bio(con, sbio, sbio);
crypto/libressl/apps/openssl/s_server.c
1607
SSL_set_accept_state(con);
crypto/libressl/apps/openssl/s_server.c
1611
SSL_set_debug(con, 1);
crypto/libressl/apps/openssl/s_server.c
1612
BIO_set_callback(SSL_get_rbio(con), bio_dump_callback);
crypto/libressl/apps/openssl/s_server.c
1613
BIO_set_callback_arg(SSL_get_rbio(con), (char *) bio_s_out);
crypto/libressl/apps/openssl/s_server.c
1616
SSL_set_msg_callback(con, msg_cb);
crypto/libressl/apps/openssl/s_server.c
1617
SSL_set_msg_callback_arg(con, bio_s_out);
crypto/libressl/apps/openssl/s_server.c
1620
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/libressl/apps/openssl/s_server.c
1621
SSL_set_tlsext_debug_arg(con, bio_s_out);
crypto/libressl/apps/openssl/s_server.c
1631
read_from_sslcon = SSL_pending(con);
crypto/libressl/apps/openssl/s_server.c
1639
if (SSL_is_dtls(con) &&
crypto/libressl/apps/openssl/s_server.c
1640
DTLSv1_get_timeout(con, &timeout))
crypto/libressl/apps/openssl/s_server.c
1648
if (SSL_is_dtls(con) &&
crypto/libressl/apps/openssl/s_server.c
1649
DTLSv1_handle_timeout(con) > 0)
crypto/libressl/apps/openssl/s_server.c
1696
if (!SSL_is_dtls(con)) {
crypto/libressl/apps/openssl/s_server.c
1707
SSL_renegotiate(con);
crypto/libressl/apps/openssl/s_server.c
1708
i = SSL_do_handshake(con);
crypto/libressl/apps/openssl/s_server.c
1718
SSL_set_verify(con,
crypto/libressl/apps/openssl/s_server.c
1722
SSL_renegotiate(con);
crypto/libressl/apps/openssl/s_server.c
1723
i = SSL_do_handshake(con);
crypto/libressl/apps/openssl/s_server.c
1735
BIO_write(SSL_get_wbio(con), str,
crypto/libressl/apps/openssl/s_server.c
1740
SSL_get_SSL_CTX(con));
crypto/libressl/apps/openssl/s_server.c
1751
SSL_renegotiate(con);
crypto/libressl/apps/openssl/s_server.c
1755
k = SSL_write(con, &(buf[l]), (unsigned int) i);
crypto/libressl/apps/openssl/s_server.c
1756
switch (SSL_get_error(con, k)) {
crypto/libressl/apps/openssl/s_server.c
1785
if (!SSL_is_init_finished(con)) {
crypto/libressl/apps/openssl/s_server.c
1786
i = init_ssl_connection(con);
crypto/libressl/apps/openssl/s_server.c
1797
i = SSL_read(con, (char *) buf, bufsize);
crypto/libressl/apps/openssl/s_server.c
1798
switch (SSL_get_error(con, i)) {
crypto/libressl/apps/openssl/s_server.c
1813
if (SSL_pending(con))
crypto/libressl/apps/openssl/s_server.c
1835
if (con != NULL) {
crypto/libressl/apps/openssl/s_server.c
1837
SSL_set_shutdown(con,
crypto/libressl/apps/openssl/s_server.c
1839
SSL_free(con);
crypto/libressl/apps/openssl/s_server.c
1859
init_ssl_connection(SSL *con)
crypto/libressl/apps/openssl/s_server.c
1868
i = SSL_accept(con);
crypto/libressl/apps/openssl/s_server.c
1875
verify_error = SSL_get_verify_result(con);
crypto/libressl/apps/openssl/s_server.c
1883
PEM_write_bio_SSL_SESSION(bio_s_out, SSL_get_session(con));
crypto/libressl/apps/openssl/s_server.c
1885
peer = SSL_get_peer_certificate(con);
crypto/libressl/apps/openssl/s_server.c
1895
if (SSL_get_shared_ciphers(con, buf, sizeof buf) != NULL)
crypto/libressl/apps/openssl/s_server.c
1897
str = SSL_CIPHER_get_name(SSL_get_current_cipher(con));
crypto/libressl/apps/openssl/s_server.c
1903
= SSL_get_selected_srtp_profile(con);
crypto/libressl/apps/openssl/s_server.c
1911
if (SSL_cache_hit(con))
crypto/libressl/apps/openssl/s_server.c
1914
SSL_get_secure_renegotiation_support(con) ? "" : " NOT");
crypto/libressl/apps/openssl/s_server.c
1923
if (!SSL_export_keying_material(con, exportedkeymat,
crypto/libressl/apps/openssl/s_server.c
1964
SSL *con;
crypto/libressl/apps/openssl/s_server.c
1987
if ((con = SSL_new(ctx)) == NULL)
crypto/libressl/apps/openssl/s_server.c
1990
SSL_set_tlsext_debug_callback(con, tlsext_cb);
crypto/libressl/apps/openssl/s_server.c
1991
SSL_set_tlsext_debug_arg(con, bio_s_out);
crypto/libressl/apps/openssl/s_server.c
1994
SSL_set_session_id_context(con, context,
crypto/libressl/apps/openssl/s_server.c
2004
SSL_set_bio(con, sbio, sbio);
crypto/libressl/apps/openssl/s_server.c
2005
SSL_set_accept_state(con);
crypto/libressl/apps/openssl/s_server.c
2008
BIO_set_ssl(ssl_bio, con, BIO_CLOSE);
crypto/libressl/apps/openssl/s_server.c
2012
SSL_set_debug(con, 1);
crypto/libressl/apps/openssl/s_server.c
2013
BIO_set_callback(SSL_get_rbio(con), bio_dump_callback);
crypto/libressl/apps/openssl/s_server.c
2014
BIO_set_callback_arg(SSL_get_rbio(con), (char *) bio_s_out);
crypto/libressl/apps/openssl/s_server.c
2017
SSL_set_msg_callback(con, msg_cb);
crypto/libressl/apps/openssl/s_server.c
2018
SSL_set_msg_callback_arg(con, bio_s_out);
crypto/libressl/apps/openssl/s_server.c
2061
SSL_get_secure_renegotiation_support(con) ?
crypto/libressl/apps/openssl/s_server.c
2070
sk = SSL_get_ciphers(con);
crypto/libressl/apps/openssl/s_server.c
2081
p = SSL_get_shared_ciphers(con, buf, bufsize);
crypto/libressl/apps/openssl/s_server.c
2101
BIO_printf(io, (SSL_cache_hit(con)
crypto/libressl/apps/openssl/s_server.c
2104
c = SSL_get_current_cipher(con);
crypto/libressl/apps/openssl/s_server.c
2108
SSL_SESSION_print(io, SSL_get_session(con));
crypto/libressl/apps/openssl/s_server.c
2110
print_stats(io, SSL_get_SSL_CTX(con));
crypto/libressl/apps/openssl/s_server.c
2112
peer = SSL_get_peer_certificate(con);
crypto/libressl/apps/openssl/s_server.c
2212
SSL_renegotiate(con);
crypto/libressl/apps/openssl/s_server.c
2221
SSL_renegotiate(con);
crypto/libressl/apps/openssl/s_server.c
2254
SSL_set_shutdown(con, SSL_SENT_SHUTDOWN | SSL_RECEIVED_SHUTDOWN);
crypto/libressl/ssl/bio_ssl.c
522
BIO *ret = NULL, *con = NULL, *ssl = NULL;
crypto/libressl/ssl/bio_ssl.c
524
if ((con = BIO_new(BIO_s_connect())) == NULL)
crypto/libressl/ssl/bio_ssl.c
528
if ((ret = BIO_push(ssl, con)) == NULL)
crypto/libressl/ssl/bio_ssl.c
533
BIO_free(con);
crypto/openssh/ssh-keyscan.c
122
con *fdcon;
crypto/openssh/ssh-keyscan.c
124
static void keyprint(con *c, struct sshkey *key);
crypto/openssh/ssh-keyscan.c
212
con *c;
crypto/openssh/ssh-keyscan.c
237
keygrab_ssh2(con *c)
crypto/openssh/ssh-keyscan.c
342
keyprint(con *c, struct sshkey *key)
crypto/openssh/ssh-keyscan.c
456
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
471
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
558
con *c = &fdcon[s];
crypto/openssh/ssh-keyscan.c
570
con *c;
crypto/openssh/ssh-keyscan.c
811
fdcon = xcalloc(maxfd, sizeof(con));
lib/libc/stdio/fparseln.c
126
if (s && con) { /* Check and eliminate continuations */
lib/libc/stdio/fparseln.c
129
if (*cp == con && !isescaped(ptr, cp, esc)) {
lib/libc/stdio/fparseln.c
169
if (cp[1] == con)
lib/libc/stdio/fparseln.c
173
if (cp[1] != com && cp[1] != con && cp[1] != esc)
lib/libc/stdio/fparseln.c
79
char esc, con, nl, com;
lib/libc/stdio/fparseln.c
93
con = str[1];
sys/netgraph/netgraph/ng_base.c
1275
struct ngm_connect *const con =
sys/netgraph/netgraph/ng_base.c
1279
if (msg->header.arglen != sizeof(*con)) {
sys/netgraph/netgraph/ng_base.c
1283
con->path[sizeof(con->path) - 1] = '\0';
sys/netgraph/netgraph/ng_base.c
1284
con->ourhook[sizeof(con->ourhook) - 1] = '\0';
sys/netgraph/netgraph/ng_base.c
1285
con->peerhook[sizeof(con->peerhook) - 1] = '\0';
sys/netgraph/netgraph/ng_base.c
1286
error = ng_path2node(here, con->path, &node2, NULL);
sys/netgraph/netgraph/ng_base.c
1289
error = ng_con_nodes(here, con->ourhook, node2, con->peerhook);
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
490
ng_hci_unit_con_t *con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
498
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
499
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
504
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
507
con->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
510
con->role = rp->role;
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
611
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
626
con = LIST_FIRST(&unit->con_list);
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
629
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
630
ng_hci_con_untimeout(con);
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
633
ng_hci_lp_discon_ind(con, 0x16);
sys/netgraph7/bluetooth/hci/ng_hci_cmds.c
634
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1007
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1008
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1017
n = ng_hci_get_neighbor(unit, &con->bdaddr);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1025
bcopy(&con->bdaddr, &n->bdaddr, sizeof(n->bdaddr));
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1045
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1057
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1058
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1063
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1066
__func__, NG_NODE_NAME(unit->node), con->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1068
} else if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1071
__func__, NG_NODE_NAME(unit->node), con->state, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
1074
error = ng_hci_lp_qos_ind(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
251
ng_hci_unit_con_p con = NULL, winner = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
264
LIST_FOREACH(con, &unit->con_list, next) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
265
if (con->link_type != link_type)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
267
if (NG_BT_ITEMQ_LEN(&con->conq) == 0)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
270
if (con->pending < min_pending) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
271
winner = con;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
272
min_pending = con->pending;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
346
sync_con_queue(ng_hci_unit_p unit, ng_hci_unit_con_p con, int completed)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
353
hook = (con->link_type == NG_HCI_LINK_ACL)? unit->acl : unit->sco;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
363
state->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
436
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
453
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
454
if (con->link_type == ep->link_type &&
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
455
con->state == NG_HCI_CON_W4_CONN_COMPLETE &&
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
456
bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
475
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
479
con = ng_hci_new_con(unit, ep->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
480
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
485
bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
486
} else if ((error = ng_hci_con_untimeout(con)) != 0)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
494
con->con_handle = NG_HCI_CON_HANDLE(le16toh(ep->con_handle));
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
495
con->encryption_mode = ep->encryption_mode;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
497
ng_hci_lp_con_cfm(con, ep->status);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
501
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
503
con->state = NG_HCI_CON_OPEN;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
562
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
613
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
614
if (con->link_type == ep->link_type &&
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
615
(con->state == NG_HCI_CON_W4_LP_CON_RSP ||
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
616
con->state == NG_HCI_CON_W4_CONN_COMPLETE) &&
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
617
bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
620
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
621
con = ng_hci_new_con(unit, ep->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
622
if (con != NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
623
bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
625
con->state = NG_HCI_CON_W4_LP_CON_RSP;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
626
ng_hci_con_timeout(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
628
error = ng_hci_lp_con_ind(con, ep->uclass);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
630
ng_hci_con_untimeout(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
631
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
647
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
666
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
667
if (con != NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
668
error = ng_hci_lp_discon_ind(con, ep->reason);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
671
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
672
ng_hci_con_untimeout(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
674
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
693
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
705
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
706
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
711
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
715
con->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
719
con->encryption_mode = NG_HCI_ENCRYPTION_MODE_P2P;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
721
con->encryption_mode = NG_HCI_ENCRYPTION_MODE_NONE;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
737
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
751
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
752
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
761
n = ng_hci_get_neighbor(unit, &con->bdaddr);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
769
bcopy(&con->bdaddr, &n->bdaddr, sizeof(n->bdaddr));
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
789
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
801
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
802
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
807
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
810
__func__, NG_NODE_NAME(unit->node), con->link_type, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
812
} else if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
816
con->state, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
819
error = ng_hci_lp_qos_cfm(con, ep->status);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
844
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
854
con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
855
if (con != NULL)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
856
con->role = ep->role;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
881
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
903
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
904
if (con != NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
905
con->pending -= p;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
906
if (con->pending < 0) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
910
con->con_handle, con->pending, p);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
912
con->pending = 0;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
916
if (con->link_type == NG_HCI_LINK_ACL)
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
939
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
951
con = ng_hci_con_by_handle(unit, h);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
952
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
957
} else if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
961
con->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
964
con->mode = ep->unit_mode;
sys/netgraph7/bluetooth/hci/ng_hci_evnt.c
994
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_main.c
778
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_main.c
829
con = ng_hci_con_by_handle(unit, con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
830
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
839
if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
843
con_handle, con->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
849
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
853
con->state, con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
859
if (NG_BT_ITEMQ_FULL(&con->conq)) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
863
m->m_pkthdr.len, NG_BT_ITEMQ_LEN(&con->conq));
sys/netgraph7/bluetooth/hci/ng_hci_main.c
865
NG_BT_ITEMQ_DROP(&con->conq);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
874
NG_BT_ITEMQ_ENQUEUE(&con->conq, item);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
898
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_main.c
949
con = ng_hci_con_by_handle(unit, con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
950
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
959
if (con->link_type != NG_HCI_LINK_SCO) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
963
con_handle, con->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
969
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
973
con->state, con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
979
if (NG_BT_ITEMQ_FULL(&con->conq)) {
sys/netgraph7/bluetooth/hci/ng_hci_main.c
983
m->m_pkthdr.len, NG_BT_ITEMQ_LEN(&con->conq));
sys/netgraph7/bluetooth/hci/ng_hci_main.c
985
NG_BT_ITEMQ_DROP(&con->conq);
sys/netgraph7/bluetooth/hci/ng_hci_main.c
994
NG_BT_ITEMQ_ENQUEUE(&con->conq, item);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
145
ng_hci_unit_con_p con = LIST_FIRST(&unit->con_list);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
148
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
149
ng_hci_con_untimeout(con);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
156
ng_hci_lp_discon_ind(con, reason);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
157
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
256
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
260
con = kmalloc(sizeof(*con), M_NETGRAPH_HCI,
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
262
if (con != NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
263
con->unit = unit;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
264
con->state = NG_HCI_CON_CLOSED;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
280
con->con_handle = fake_con_handle ++;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
284
con->link_type = link_type;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
286
if (con->link_type == NG_HCI_LINK_ACL)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
291
NG_BT_ITEMQ_INIT(&con->conq, num_pkts);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
293
ng_callout_init(&con->con_timo);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
295
LIST_INSERT_HEAD(&unit->con_list, con, next);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
298
return (con);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
306
ng_hci_free_con(ng_hci_unit_con_p con)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
308
LIST_REMOVE(con, next);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
315
if (con->link_type == NG_HCI_LINK_ACL)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
316
NG_HCI_BUFF_ACL_FREE(con->unit->buffer, con->pending);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
318
NG_HCI_BUFF_SCO_FREE(con->unit->buffer, con->pending);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
320
NG_BT_ITEMQ_DESTROY(&con->conq);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
322
bzero(con, sizeof(*con));
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
323
kfree(con, M_NETGRAPH_HCI);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
333
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
335
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
336
if (con->con_handle == con_handle)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
339
return (con);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
349
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
351
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
352
if (con->link_type == link_type &&
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
353
bcmp(&con->bdaddr, bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
356
return (con);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
404
ng_hci_con_timeout(ng_hci_unit_con_p con)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
406
if (con->flags & NG_HCI_CON_TIMEOUT_PENDING)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
409
__func__, NG_NODE_NAME(con->unit->node));
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
411
con->flags |= NG_HCI_CON_TIMEOUT_PENDING;
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
412
ng_callout(&con->con_timo, con->unit->node, NULL,
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
415
con->con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
425
ng_hci_con_untimeout(ng_hci_unit_con_p con)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
427
if (!(con->flags & NG_HCI_CON_TIMEOUT_PENDING))
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
429
"%s: %s - No connection timeout!\n", __func__, NG_NODE_NAME(con->unit->node));
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
431
if (ng_uncallout(&con->con_timo, con->unit->node) == 0)
sys/netgraph7/bluetooth/hci/ng_hci_misc.c
434
con->flags &= ~NG_HCI_CON_TIMEOUT_PENDING;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1025
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1027
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1047
ng_hci_lp_qos_cfm(ng_hci_unit_con_p con, int status)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1049
ng_hci_unit_p unit = con->unit;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1054
if (con->flags & NG_HCI_CON_NOTIFY_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1061
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1071
con->flags &= ~NG_HCI_CON_NOTIFY_ACL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1074
if (con->flags & NG_HCI_CON_NOTIFY_SCO) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1081
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1091
con->flags &= ~NG_HCI_CON_NOTIFY_SCO;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1102
ng_hci_lp_qos_ind(ng_hci_unit_con_p con)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1104
ng_hci_unit_p unit = con->unit;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1121
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1136
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1155
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
116
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1163
con = ng_hci_con_by_handle(unit, con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1165
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1172
if (!(con->flags & NG_HCI_CON_TIMEOUT_PENDING)) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1175
__func__, NG_NODE_NAME(node), con_handle, con->state,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1176
con->flags);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1180
con->flags &= ~NG_HCI_CON_TIMEOUT_PENDING;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1195
switch (con->state) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1200
ng_hci_lp_con_cfm(con, 0xee);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1206
__func__, NG_NODE_NAME(node), con->state);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
1210
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
150
con = ng_hci_con_by_bdaddr(unit, &ep->bdaddr, NG_HCI_LINK_ACL);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
151
if (con != NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
152
switch (con->state) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
159
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
161
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
178
cfm->link_type = con->link_type;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
179
cfm->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
180
bcopy(&con->bdaddr, &cfm->bdaddr,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
202
__func__, NG_NODE_NAME(unit->node), con->state);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
215
con = ng_hci_new_con(unit, NG_HCI_LINK_ACL);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
216
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
221
bcopy(&ep->bdaddr, &con->bdaddr, sizeof(con->bdaddr));
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
229
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
283
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
285
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
287
con->state = NG_HCI_CON_W4_CONN_COMPLETE;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
288
ng_hci_con_timeout(con);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
484
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
510
con = ng_hci_con_by_handle(unit, ep->con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
511
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
520
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
523
__func__, NG_NODE_NAME(unit->node), con->state,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
568
ng_hci_lp_con_cfm(ng_hci_unit_con_p con, int status)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
570
ng_hci_unit_p unit = con->unit;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
581
if (con->link_type == NG_HCI_LINK_ACL &&
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
582
con->flags & NG_HCI_CON_NOTIFY_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
589
ep->link_type = con->link_type;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
590
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
591
bcopy(&con->bdaddr, &ep->bdaddr,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
602
con->flags &= ~NG_HCI_CON_NOTIFY_ACL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
605
if (con->flags & NG_HCI_CON_NOTIFY_SCO) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
612
ep->link_type = con->link_type;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
613
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
614
bcopy(&con->bdaddr, &ep->bdaddr,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
625
con->flags &= ~NG_HCI_CON_NOTIFY_SCO;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
636
ng_hci_lp_con_ind(ng_hci_unit_con_p con, u_int8_t *uclass)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
638
ng_hci_unit_p unit = con->unit;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
649
if (con->link_type == NG_HCI_LINK_ACL)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
661
ep->link_type = con->link_type;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
663
bcopy(&con->bdaddr, &ep->bdaddr, sizeof(ep->bdaddr));
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
692
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
750
LIST_FOREACH(con, &unit->con_list, next)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
751
if (con->link_type == ep->link_type &&
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
752
(con->state == NG_HCI_CON_W4_LP_CON_RSP ||
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
753
con->state == NG_HCI_CON_W4_CONN_COMPLETE) &&
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
754
bcmp(&con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
757
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
769
if ((error = ng_hci_con_untimeout(con)) != 0)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
772
switch (con->state) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
816
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
818
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
820
con->state = NG_HCI_CON_W4_CONN_COMPLETE;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
821
ng_hci_con_timeout(con);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
838
ng_hci_free_con(con);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
852
con->flags |= NG_HCI_CON_NOTIFY_ACL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
854
con->flags |= NG_HCI_CON_NOTIFY_SCO;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
862
__func__, NG_NODE_NAME(unit->node), con->state);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
876
ng_hci_lp_discon_ind(ng_hci_unit_con_p con, int reason)
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
878
ng_hci_unit_p unit = con->unit;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
890
if (con->link_type == NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
899
ep->link_type = con->link_type;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
900
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
917
ep->link_type = con->link_type;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
918
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
941
ng_hci_unit_con_p con = NULL;
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
967
con = ng_hci_con_by_handle(unit, ep->con_handle);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
968
if (con == NULL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
977
if (con->link_type != NG_HCI_LINK_ACL) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
979
__func__, NG_NODE_NAME(unit->node), con->link_type);
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
985
if (con->state != NG_HCI_CON_OPEN) {
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
988
__func__, NG_NODE_NAME(unit->node), con->state,
sys/netgraph7/bluetooth/hci/ng_hci_ulpi.c
989
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
103
(void) ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
109
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
120
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
133
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
145
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
155
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
166
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
168
ng_l2cap_l2ca_ping_rsp(con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
178
error = ng_l2cap_lp_send(con, NG_L2CAP_SIGNAL_CID, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
180
ng_l2cap_l2ca_get_info_rsp(con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
202
error = ng_l2cap_lp_send(con, cmd->ch->dcid, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
217
__func__, NG_NODE_NAME(con->l2cap->node), cmd->code);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
229
ng_l2cap_con_fail(ng_l2cap_con_p con, u_int16_t result)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
231
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
240
con->flags |= NG_L2CAP_CON_DYING;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
243
while (!TAILQ_EMPTY(&con->cmd_list)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
244
cmd = TAILQ_FIRST(&con->cmd_list);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
250
KASSERT((cmd->con == con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
283
ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
288
ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
313
if (ch->con == con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
317
ng_l2cap_free_con(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
329
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
341
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
342
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
349
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
377
ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
383
ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
64
ng_l2cap_con_wakeup(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
71
TAILQ_FOREACH(cmd, &con->cmd_list, next) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
72
KASSERT((cmd->con == con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_cmds.c
74
__func__, NG_NODE_NAME(con->l2cap->node)));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1000
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1010
ng_l2cap_process_echo_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1012
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1017
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1021
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1027
error = ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1028
NG_L2CAP_SUCCESS, con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
103
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1031
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1037
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
104
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1048
ng_l2cap_process_info_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1050
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1055
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(ng_l2cap_info_req_cp));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1056
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1059
type = le16toh(mtod(con->rx_pkt, ng_l2cap_info_req_cp *)->type);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1060
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1062
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_INFO_RSP, 0);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
107
hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1085
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1086
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1096
ng_l2cap_process_info_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1098
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1104
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1105
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1108
cp = mtod(con->rx_pkt, ng_l2cap_info_rsp_cp *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1111
m_adj(con->rx_pkt, sizeof(*cp));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1114
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
112
if (hdr->length != con->rx_pkt->m_pkthdr.len - sizeof(*hdr)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1120
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1127
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1136
if (con->rx_pkt->m_pkthdr.len == sizeof(u_int16_t))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1137
*mtod(con->rx_pkt, u_int16_t *) =
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1138
le16toh(*mtod(con->rx_pkt,u_int16_t *));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1146
con->rx_pkt->m_pkthdr.len);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1158
error = ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1159
cp->result, con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
116
con->rx_pkt->m_pkthdr.len - sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1162
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1172
send_l2cap_reject(ng_l2cap_con_p con, u_int8_t ident, u_int16_t reason,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1177
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_CMD_REJ, 0);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1189
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1190
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1200
send_l2cap_con_rej(ng_l2cap_con_p con, u_int8_t ident, u_int16_t scid,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1205
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_CON_RSP, 0);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1217
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1218
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1228
send_l2cap_cfg_rsp(ng_l2cap_con_p con, u_int8_t ident, u_int16_t scid,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1233
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_CFG_RSP, 0);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
124
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1248
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
1249
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
125
error = ng_l2cap_process_signal_cmd(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
129
error = ng_l2cap_l2ca_clt_receive(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
133
error = ng_l2cap_l2ca_receive(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
139
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
153
ng_l2cap_process_signal_cmd(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
155
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
159
while (con->rx_pkt != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
161
if (con->rx_pkt->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
165
con->rx_pkt->m_pkthdr.len);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
166
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
172
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
173
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
176
hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
178
m_adj(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
181
if (con->rx_pkt->m_pkthdr.len < hdr->length) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
187
con->rx_pkt->m_pkthdr.len);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
188
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
194
if (con->rx_pkt->m_pkthdr.len > hdr->length)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
195
m = m_split(con->rx_pkt, hdr->length, M_NOWAIT);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
202
ng_l2cap_process_cmd_rej(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
206
ng_l2cap_process_con_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
210
ng_l2cap_process_con_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
214
ng_l2cap_process_cfg_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
218
ng_l2cap_process_cfg_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
222
ng_l2cap_process_discon_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
226
ng_l2cap_process_discon_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
230
ng_l2cap_process_echo_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
234
ng_l2cap_process_echo_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
238
ng_l2cap_process_info_req(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
242
ng_l2cap_process_info_rsp(con, hdr->ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
256
send_l2cap_reject(con, hdr->ident,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
258
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
262
con->rx_pkt = m;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
273
ng_l2cap_process_cmd_rej(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
275
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
280
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
281
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
284
cp = mtod(con->rx_pkt, ng_l2cap_cmd_rej_cp *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
288
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
292
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
314
ng_l2cap_l2ca_ping_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
319
ng_l2cap_l2ca_get_info_rsp(cmd->con, cmd->token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
337
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
347
ng_l2cap_process_con_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
349
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
350
struct mbuf *m = con->rx_pkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
366
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
373
ch = ng_l2cap_new_chan(l2cap, con, psm);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
375
return (send_l2cap_con_rej(con, ident, 0, dcid,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
387
send_l2cap_con_rej(con, ident, ch->scid, dcid,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
401
ng_l2cap_process_con_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
403
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
404
struct mbuf *m = con->rx_pkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
422
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
425
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
430
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
511
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, scid, dcid);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
521
ng_l2cap_process_cfg_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
523
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
524
struct mbuf *m = con->rx_pkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
533
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
626
error = send_l2cap_cfg_rsp(con, ident, ch->dcid, result, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
645
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, 0, dcid);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
655
ng_l2cap_process_cfg_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
657
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
658
struct mbuf *m = con->rx_pkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
667
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
679
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
684
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
799
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, scid, 0);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
809
ng_l2cap_process_discon_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
811
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
818
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
819
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
822
cp = mtod(con->rx_pkt, ng_l2cap_discon_req_cp *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
826
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
86
ng_l2cap_receive(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
871
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_DISCON_RSP, 0);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
88
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
883
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
884
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
890
send_l2cap_reject(con, ident, NG_L2CAP_REJ_INVALID_CID, 0, scid, dcid);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
900
ng_l2cap_process_discon_rsp(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
902
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
909
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*cp));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
910
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
913
cp = mtod(con->rx_pkt, ng_l2cap_discon_rsp_cp *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
917
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
920
cmd = ng_l2cap_cmd_by_ident(con, ident);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
925
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
93
if (con->rx_pkt->m_pkthdr.len < sizeof(*hdr)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
969
ng_l2cap_process_echo_req(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
97
con->rx_pkt->m_pkthdr.len);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
971
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
975
con->rx_pkt = ng_l2cap_prepend(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
976
if (con->rx_pkt == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
984
hdr = mtod(con->rx_pkt, ng_l2cap_cmd_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
987
hdr->length = htole16(con->rx_pkt->m_pkthdr.len - sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
989
cmd = ng_l2cap_new_cmd(con, NULL, ident, NG_L2CAP_ECHO_RSP, 0);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
991
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
997
cmd->aux = con->rx_pkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
998
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_evnt.c
999
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
104
ng_l2cap_free_con(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
113
con->flags |= NG_L2CAP_CON_OUTGOING;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
114
con->state = NG_L2CAP_W4_LP_CON_CFM;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
115
ng_l2cap_lp_timeout(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
119
if ((error = ng_l2cap_lp_untimeout(con)) != 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
122
ng_l2cap_free_con(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
138
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
153
con = ng_l2cap_con_by_addr(l2cap, &ep->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
154
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
163
if (con->state != NG_L2CAP_W4_LP_CON_CFM) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
167
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
168
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
180
if ((error = ng_l2cap_lp_untimeout(con)) != 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
184
con->state = NG_L2CAP_CON_OPEN;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
185
con->con_handle = ep->con_handle;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
186
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
188
ng_l2cap_con_fail(con, ep->status);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
208
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
223
con = ng_l2cap_con_by_addr(l2cap, &ep->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
224
if (con != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
228
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
229
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
244
con = ng_l2cap_new_con(l2cap, &ep->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
245
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
254
ng_l2cap_free_con(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
264
con->state = NG_L2CAP_W4_LP_CON_CFM;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
265
ng_l2cap_lp_timeout(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
269
if ((error = ng_l2cap_lp_untimeout(con)) != 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
272
ng_l2cap_free_con(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
287
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
302
con = ng_l2cap_con_by_handle(l2cap, ep->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
303
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
313
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
317
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
318
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
330
if (con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
331
if ((error = ng_l2cap_discon_untimeout(con)) != 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
334
ng_l2cap_con_fail(con, ep->reason);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
349
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
353
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
354
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
364
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
368
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
369
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
438
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
453
con = ng_l2cap_con_by_handle(l2cap, ep->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
454
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
464
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
468
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
469
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
485
ng_l2cap_lp_send(ng_l2cap_con_p con, u_int16_t dcid, struct mbuf *m0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
487
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
493
KASSERT((con->tx_pkt == NULL),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
550
con->con_handle, flag, 0));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
555
if (con->tx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
556
con->tx_pkt = m_last = m0;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
564
__func__, NG_NODE_NAME(l2cap->node), con->con_handle,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
577
while (con->tx_pkt != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
578
m = con->tx_pkt->m_nextpkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
579
m_freem(con->tx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
580
con->tx_pkt = m;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
605
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
637
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
638
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
648
if (con->state != NG_L2CAP_CON_OPEN) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
651
__func__, NG_NODE_NAME(l2cap->node), con->state);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
658
if (con->rx_pkt != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
662
con->rx_pkt->m_pkthdr.len, con->rx_pkt_len);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
663
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
664
con->rx_pkt_len = 0;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
689
con->rx_pkt = m;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
690
con->rx_pkt_len = le16toh(l2cap_hdr->length)+sizeof(*l2cap_hdr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
692
if (con->rx_pkt == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
696
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
701
m_cat(con->rx_pkt, m);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
702
con->rx_pkt->m_pkthdr.len += length;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
71
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
711
con->rx_pkt_len -= length;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
712
if (con->rx_pkt_len < 0) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
716
con->rx_pkt->m_pkthdr.len, con->rx_pkt_len);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
717
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
718
con->rx_pkt_len = 0;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
719
} else if (con->rx_pkt_len == 0) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
721
error = ng_l2cap_receive(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
722
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
723
con->rx_pkt_len = 0;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
739
ng_l2cap_lp_deliver(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
741
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
746
if (con->state != NG_L2CAP_CON_OPEN)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
749
if (con->tx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
75
con = ng_l2cap_con_by_addr(l2cap, bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
750
ng_l2cap_con_wakeup(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
752
if (con->tx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
76
if (con != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
765
while (con->pending < con->l2cap->num_pkts && con->tx_pkt != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
766
m = con->tx_pkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
767
con->tx_pkt = con->tx_pkt->m_nextpkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
772
__func__, NG_NODE_NAME(l2cap->node), con->con_handle,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
780
con->con_handle, error);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
785
con->pending ++;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
790
__func__, NG_NODE_NAME(l2cap->node), con->pending,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
791
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
796
while (con->tx_pkt != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
797
m = con->tx_pkt->m_nextpkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
798
m_freem(con->tx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
799
con->tx_pkt = m;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
80
__func__, NG_NODE_NAME(l2cap->node), con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
81
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
813
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
821
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
823
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
830
if (!(con->flags & NG_L2CAP_CON_LP_TIMO)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
833
__func__, NG_NODE_NAME(node), con_handle, con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
834
con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
843
con->flags &= ~NG_L2CAP_CON_LP_TIMO;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
844
ng_l2cap_con_fail(con, NG_L2CAP_TIMEOUT);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
856
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
867
con = ng_l2cap_con_by_handle(l2cap, con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
869
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
876
if (!(con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
879
__func__, NG_NODE_NAME(node), con_handle, con->state,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
880
con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
884
con->flags &= ~NG_L2CAP_CON_AUTO_DISCON_TIMO;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
901
ep->con_handle = con->con_handle;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
96
con = ng_l2cap_new_con(l2cap, bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_llpi.c
97
if (con == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
299
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
305
con = ng_l2cap_con_by_handle(l2cap,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
307
if (con == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
313
ep->con_handle, con->pending,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
316
con->pending -= ep->completed;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
317
if (con->pending < 0) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
322
con->con_handle, con->pending,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
325
con->pending = 0;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
328
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
551
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
557
LIST_FOREACH(con, &l2cap->con_list, next)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
575
LIST_FOREACH(con, &l2cap->con_list, next) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
576
e2->state = con->state;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
578
e2->flags = con->flags;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
579
if (con->tx_pkt != NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
581
if (con->rx_pkt != NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
584
e2->pending = con->pending;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
586
e2->con_handle = con->con_handle;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
587
bcopy(&con->remote, &e2->remote,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
633
bcopy(&ch->con->remote, &e2->remote,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
733
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
737
con = LIST_FIRST(&l2cap->con_list);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
739
if (con->flags & NG_L2CAP_CON_LP_TIMO)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
740
ng_l2cap_lp_untimeout(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
741
else if (con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
742
ng_l2cap_discon_untimeout(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_main.c
745
ng_l2cap_con_fail(con, 0x16);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
104
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
107
con = kmalloc(sizeof(*con), M_NETGRAPH_L2CAP,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
109
if (con == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
112
con->l2cap = l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
113
con->state = NG_L2CAP_CON_CLOSED;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
129
con->con_handle = fake_con_handle ++;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
133
bcopy(bdaddr, &con->remote, sizeof(con->remote));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
134
ng_callout_init(&con->con_timo);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
136
con->ident = NG_L2CAP_FIRST_IDENT - 1;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
137
TAILQ_INIT(&con->cmd_list);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
140
LIST_INSERT_HEAD(&l2cap->con_list, con, next);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
142
return (con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
150
ng_l2cap_con_ref(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
152
con->refcnt ++;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
154
if (con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
155
if ((con->state != NG_L2CAP_CON_OPEN) ||
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
156
(con->flags & NG_L2CAP_CON_OUTGOING) == 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
159
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
160
con->state, con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
162
ng_l2cap_discon_untimeout(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
171
ng_l2cap_con_unref(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
173
con->refcnt --;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
175
if (con->refcnt < 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
177
"%s: %s - con->refcnt < 0\n", __func__, NG_NODE_NAME(con->l2cap->node));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
188
if ((con->refcnt == 0) &&
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
189
(con->state == NG_L2CAP_CON_OPEN) &&
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
190
(con->flags & NG_L2CAP_CON_OUTGOING) &&
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
191
(con->l2cap->discon_timo > 0) &&
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
192
((con->flags & NG_L2CAP_CON_DYING) == 0))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
193
ng_l2cap_discon_timeout(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
202
ng_l2cap_discon_timeout(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
204
if (con->flags & (NG_L2CAP_CON_LP_TIMO|NG_L2CAP_CON_AUTO_DISCON_TIMO))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
207
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
208
con->state, con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
210
con->flags |= NG_L2CAP_CON_AUTO_DISCON_TIMO;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
211
ng_callout(&con->con_timo, con->l2cap->node, NULL,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
212
con->l2cap->discon_timo * hz,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
214
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
224
ng_l2cap_discon_untimeout(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
226
if (!(con->flags & NG_L2CAP_CON_AUTO_DISCON_TIMO))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
229
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
230
con->state, con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
232
if (ng_uncallout(&con->con_timo, con->l2cap->node) == 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
235
con->flags &= ~NG_L2CAP_CON_AUTO_DISCON_TIMO;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
245
ng_l2cap_free_con(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
249
con->state = NG_L2CAP_CON_CLOSED;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
251
while (con->tx_pkt != NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
252
struct mbuf *m = con->tx_pkt->m_nextpkt;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
254
m_freem(con->tx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
255
con->tx_pkt = m;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
258
NG_FREE_M(con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
260
for (f = LIST_FIRST(&con->l2cap->chan_list); f != NULL; ) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
263
if (f->con == con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
269
while (!TAILQ_EMPTY(&con->cmd_list)) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
270
ng_l2cap_cmd_p cmd = TAILQ_FIRST(&con->cmd_list);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
278
if (con->flags & (NG_L2CAP_CON_AUTO_DISCON_TIMO|NG_L2CAP_CON_LP_TIMO))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
281
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
282
con->state, con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
284
LIST_REMOVE(con, next);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
286
bzero(con, sizeof(*con));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
287
kfree(con, M_NETGRAPH_L2CAP);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
297
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
299
LIST_FOREACH(con, &l2cap->con_list, next)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
300
if (bcmp(bdaddr, &con->remote, sizeof(con->remote)) == 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
303
return (con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
313
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
315
LIST_FOREACH(con, &l2cap->con_list, next)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
316
if (con->con_handle == con_handle)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
319
return (con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
328
ng_l2cap_new_chan(ng_l2cap_p l2cap, ng_l2cap_con_p con, u_int16_t psm)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
342
ch->con = con;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
357
ng_l2cap_con_ref(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
392
f = TAILQ_FIRST(&ch->con->cmd_list);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
408
ng_l2cap_con_unref(ch->con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
419
ng_l2cap_new_cmd(ng_l2cap_con_p con, ng_l2cap_chan_p ch, u_int8_t ident,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
424
KASSERT((ch == NULL || ch->con == con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
426
__func__, NG_NODE_NAME(con->l2cap->node)));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
433
cmd->con = con;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
448
ng_l2cap_cmd_by_ident(ng_l2cap_con_p con, u_int8_t ident)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
452
TAILQ_FOREACH(cmd, &con->cmd_list, next) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
454
KASSERT((cmd->con == con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
456
__func__, NG_NODE_NAME(con->l2cap->node)));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
471
ng_l2cap_lp_timeout(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
473
if (con->flags & (NG_L2CAP_CON_LP_TIMO|NG_L2CAP_CON_AUTO_DISCON_TIMO))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
476
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
477
con->state, con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
479
con->flags |= NG_L2CAP_CON_LP_TIMO;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
480
ng_callout(&con->con_timo, con->l2cap->node, NULL,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
483
con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
493
ng_l2cap_lp_untimeout(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
495
if (!(con->flags & NG_L2CAP_CON_LP_TIMO))
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
498
__func__, NG_NODE_NAME(con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
499
con->state, con->flags);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
501
if (ng_uncallout(&con->con_timo, con->l2cap->node) == 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
504
con->flags &= ~NG_L2CAP_CON_LP_TIMO;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
522
__func__, NG_NODE_NAME(cmd->con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
525
arg = ((cmd->ident << 16) | cmd->con->con_handle);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
527
ng_callout(&cmd->timo, cmd->con->l2cap->node, NULL, timo,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
543
__func__, NG_NODE_NAME(cmd->con->l2cap->node),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
546
if (ng_uncallout(&cmd->timo, cmd->con->l2cap->node) == 0)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
622
ng_l2cap_get_ident(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
624
u_int8_t ident = con->ident + 1;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
629
while (ident != con->ident) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
630
if (ng_l2cap_cmd_by_ident(con, ident) == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.c
631
con->ident = ident;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.h
62
#define ng_l2cap_link_cmd(con, cmd) \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.h
64
TAILQ_INSERT_TAIL(&(con)->cmd_list, (cmd), next); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.h
65
ng_l2cap_con_ref((con)); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.h
70
TAILQ_REMOVE(&((cmd)->con->cmd_list), (cmd), next); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_misc.h
71
ng_l2cap_con_unref((cmd)->con); \
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1026
NG_SEND_DATA_ONLY(error, l2cap->l2c, con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1027
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1029
NG_FREE_M(con->rx_pkt); /* checks for != NULL */
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1041
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
106
ch = ng_l2cap_new_chan(l2cap, con, ip->psm);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1063
bcopy(&ch->con->remote, &ip->bdaddr, sizeof(ip->bdaddr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1118
cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(ch->con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
113
cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1144
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1145
ng_l2cap_lp_deliver(ch->con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1157
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1197
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1301
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1325
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1326
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1337
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1338
KASSERT((con != NULL),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1343
cmd = ng_l2cap_new_cmd(con, NULL, ng_l2cap_get_ident(con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1366
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1367
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1377
ng_l2cap_l2ca_ping_rsp(ng_l2cap_con_p con, u_int32_t token, u_int16_t result,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1380
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
140
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1408
bcopy(&con->remote, &op->bdaddr, sizeof(op->bdaddr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
141
ng_l2cap_lp_deliver(ch->con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1430
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1447
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1448
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1459
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1460
KASSERT((con != NULL),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1465
cmd = ng_l2cap_new_cmd(con, NULL, ng_l2cap_get_ident(con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1487
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1488
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1498
ng_l2cap_l2ca_get_info_rsp(ng_l2cap_con_p con, u_int32_t token,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
1501
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
154
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
204
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
245
con = ch->con;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
276
cmd = ng_l2cap_new_cmd(con, ch, ip->ident, NG_L2CAP_CON_RSP,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
298
ng_l2cap_link_cmd(con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
299
ng_l2cap_lp_deliver(con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
311
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
351
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
374
bcopy(&ch->con->remote, &ip->bdaddr, sizeof(ip->bdaddr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
456
cmd = ng_l2cap_new_cmd(ch->con, ch, ng_l2cap_get_ident(ch->con),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
486
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
487
ng_l2cap_lp_deliver(ch->con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
499
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
624
cmd = ng_l2cap_new_cmd(ch->con, ch, ch->ident, NG_L2CAP_CFG_RSP,
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
645
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
646
ng_l2cap_lp_deliver(ch->con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
658
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
66
ng_l2cap_con_p con = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
711
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
815
cmd = ng_l2cap_new_cmd(ch->con, ch, 0, NGM_L2CAP_L2CA_WRITE, token);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
823
ng_l2cap_link_cmd(ch->con, cmd);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
824
ng_l2cap_lp_deliver(ch->con);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
84
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
841
ng_l2cap_p l2cap = ch->con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
85
if (con == NULL) {
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
882
ng_l2cap_l2ca_receive(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
884
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
889
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
890
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
893
hdr = mtod(con->rx_pkt, ng_l2cap_hdr_t *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
942
NG_SEND_DATA_ONLY(error, l2cap->l2c, con->rx_pkt);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
943
con->rx_pkt = NULL;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
945
NG_FREE_M(con->rx_pkt); /* checks for != NULL */
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
956
ng_l2cap_l2ca_clt_receive(ng_l2cap_con_p con)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
96
con = ng_l2cap_con_by_addr(l2cap, &ip->bdaddr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
962
ng_l2cap_p l2cap = con->l2cap;
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
965
NG_L2CAP_M_PULLUP(con->rx_pkt, sizeof(*hdr));
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
966
if (con->rx_pkt == NULL)
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
969
hdr = mtod(con->rx_pkt, struct _clt_pkt *);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
97
KASSERT((con != NULL),
sys/netgraph7/bluetooth/l2cap/ng_l2cap_ulpi.c
972
length = con->rx_pkt->m_pkthdr.len - sizeof(*hdr);
sys/netgraph7/bluetooth/l2cap/ng_l2cap_var.h
138
ng_l2cap_con_p con; /* pointer to connection */
sys/netgraph7/bluetooth/l2cap/ng_l2cap_var.h
171
ng_l2cap_con_p con; /* L2CAP connection */
sys/netgraph7/netgraph/ng_base.c
2153
struct ngm_connect *const con =
sys/netgraph7/netgraph/ng_base.c
2157
if (msg->header.arglen != sizeof(*con)) {
sys/netgraph7/netgraph/ng_base.c
2162
con->path[sizeof(con->path) - 1] = '\0';
sys/netgraph7/netgraph/ng_base.c
2163
con->ourhook[sizeof(con->ourhook) - 1] = '\0';
sys/netgraph7/netgraph/ng_base.c
2164
con->peerhook[sizeof(con->peerhook) - 1] = '\0';
sys/netgraph7/netgraph/ng_base.c
2166
error = ng_path2noderef(here, con->path, &node2, NULL);
sys/netgraph7/netgraph/ng_base.c
2169
error = ng_con_nodes(item, here, con->ourhook,
sys/netgraph7/netgraph/ng_base.c
2170
node2, con->peerhook);
usr.sbin/ngctl/connect.c
59
struct ngm_connect con;
usr.sbin/ngctl/connect.c
70
snprintf(con.path, sizeof(con.path), "%s", av[1]);
usr.sbin/ngctl/connect.c
71
snprintf(con.ourhook, sizeof(con.ourhook), "%s", av[2]);
usr.sbin/ngctl/connect.c
72
snprintf(con.peerhook, sizeof(con.peerhook), "%s", av[3]);
usr.sbin/ngctl/connect.c
80
NGM_CONNECT, &con, sizeof(con)) < 0) {