Lines Matching refs:sco_con
330 ng_hci_unit_con_p acl_con = NULL, sco_con = NULL;
367 * 1) sco_con->link_type == NG_HCI_LINK_SCO
369 * 2) sco_con->state == NG_HCI_CON_W4_LP_CON_RSP ||
370 * sco_con->state == NG_HCI_CON_W4_CONN_COMPLETE
372 * 3) sco_con->bdaddr == ep->bdaddr
389 LIST_FOREACH(sco_con, &unit->con_list, next)
390 if (sco_con->link_type == NG_HCI_LINK_SCO &&
391 (sco_con->state == NG_HCI_CON_W4_LP_CON_RSP ||
392 sco_con->state == NG_HCI_CON_W4_CONN_COMPLETE) &&
393 bcmp(&sco_con->bdaddr, &ep->bdaddr, sizeof(bdaddr_t)) == 0)
396 if (sco_con != NULL) {
397 switch (sco_con->state) {
403 sco_con->flags |= NG_HCI_CON_NOTIFY_SCO;
410 sco_con->state);
422 sco_con = ng_hci_new_con(unit, NG_HCI_LINK_SCO);
423 if (sco_con == NULL) {
428 bcopy(&ep->bdaddr, &sco_con->bdaddr, sizeof(sco_con->bdaddr));
436 ng_hci_free_con(sco_con);
468 sco_con->flags |= NG_HCI_CON_NOTIFY_SCO;
470 sco_con->state = NG_HCI_CON_W4_CONN_COMPLETE;
471 ng_hci_con_timeout(sco_con);