Lines Matching defs:sco
46 #include <netbt/sco.h>
50 * SCO - Upper Protocol API
58 * Attach a new instance of SCO pcb to handle
87 * Bind SCO pcb to local address
119 * Initiate a SCO connection to the destination address.
126 struct hci_link *acl, *sco;
148 * We must have an already open ACL connection before we open the SCO
149 * connection, and since SCO connections dont happen on their own we
157 sco = hci_link_alloc(unit, &pcb->sp_raddr, HCI_LINK_SCO);
158 if (sco == NULL)
161 sco->hl_link = hci_acl_open(unit, &pcb->sp_raddr);
162 KASSERT(sco->hl_link == acl);
168 hci_link_free(sco, err);
172 sco->hl_sco = pcb;
173 pcb->sp_link = sco;
182 * Copy remote address of SCO pcb to sockaddr
198 * Initiate disconnection of connected SCO pcb
204 struct hci_link *sco;
207 sco = pcb->sp_link;
208 if (sco == NULL)
211 cp.con_handle = htole16(sco->hl_handle);
214 err = hci_send_cmd(sco->hl_unit, HCI_CMD_DISCONNECT, &cp, sizeof(cp));
216 sco->hl_sco = NULL;
218 hci_link_free(sco, err);
227 * Detach SCO pcb from handle and clear up
266 * Send data on SCO pcb.
289 * handle SCO packet sizes that are not an integer number
316 * Set SCO pcb options
335 * Get SCO pcb options