Lines Matching refs:pcb

113 	struct sco_pcb *pcb = so->so_pcb;  in sco_accept()  local
118 if (pcb == NULL) in sco_accept()
121 return sco_peeraddr_pcb(pcb, (struct sockaddr_bt *)nam); in sco_accept()
127 struct sco_pcb *pcb = so->so_pcb; in sco_bind() local
133 if (pcb == NULL) in sco_bind()
142 return sco_bind_pcb(pcb, sa); in sco_bind()
148 struct sco_pcb *pcb = so->so_pcb; in sco_listen() local
152 if (pcb == NULL) in sco_listen()
155 return sco_listen_pcb(pcb); in sco_listen()
161 struct sco_pcb *pcb = so->so_pcb; in sco_connect() local
167 if (pcb == NULL) in sco_connect()
177 return sco_connect_pcb(pcb, sa); in sco_connect()
183 struct sco_pcb *pcb = so->so_pcb; in sco_connect2() local
187 if (pcb == NULL) in sco_connect2()
196 struct sco_pcb *pcb = so->so_pcb; in sco_disconnect() local
200 if (pcb == NULL) in sco_disconnect()
204 return sco_disconnect_pcb(pcb, so->so_linger); in sco_disconnect()
219 struct sco_pcb *pcb = so->so_pcb; in sco_abort() local
223 if (pcb == NULL) in sco_abort()
226 sco_disconnect_pcb(pcb, 0); in sco_abort()
249 struct sco_pcb *pcb = (struct sco_pcb *)so->so_pcb; in sco_peeraddr() local
252 KASSERT(pcb != NULL); in sco_peeraddr()
255 return sco_peeraddr_pcb(pcb, (struct sockaddr_bt *)nam); in sco_peeraddr()
261 struct sco_pcb *pcb = (struct sco_pcb *)so->so_pcb; in sco_sockaddr() local
264 KASSERT(pcb != NULL); in sco_sockaddr()
267 return sco_sockaddr_pcb(pcb, (struct sockaddr_bt *)nam); in sco_sockaddr()
290 struct sco_pcb *pcb = so->so_pcb; in sco_send() local
299 if (pcb == NULL) { in sco_send()
307 if (m->m_pkthdr.len > pcb->sp_mtu) { in sco_send()
319 return sco_send_pcb(pcb, m0); in sco_send()
350 struct sco_pcb *pcb = (struct sco_pcb *)so->so_pcb; in sco_ctloutput() local
355 if (pcb == NULL) in sco_ctloutput()
363 err = sco_getopt(pcb, sopt); in sco_ctloutput()
367 err = sco_setopt(pcb, sopt); in sco_ctloutput()