Lines Matching refs:so_pcb
303 so->so_pcb = (caddr_t)kcb; in ctl_attach()
311 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_sofreelastref()
313 so->so_pcb = 0; in ctl_sofreelastref()
375 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_detach()
413 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_setup_kctl()
555 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_bind()
593 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_connect()
669 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_disconnect()
671 if ((kcb = (struct ctl_cb *)so->so_pcb)) { in ctl_disconnect()
710 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_peeraddr()
770 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_usr_rcvd()
805 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_send()
849 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_send_list()
1316 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb; in ctl_ctloutput()
2025 if (so->so_pcb != NULL) { in ctl_lock()
2026 lck_mtx_lock(&((struct ctl_cb *)so->so_pcb)->mtx); in ctl_lock()
2035 so, so->so_pcb, lr_saved, so->so_usecount, in ctl_lock()
2064 (uint64_t)VM_KERNEL_ADDRPERM(so->so_pcb, in ctl_unlock()
2065 (uint64_t)VM_KERNEL_ADDRPERM(&((struct ctl_cb *)so->so_pcb)->mtx), in ctl_unlock()
2077 if (so->so_pcb == NULL) { in ctl_unlock()
2083 mutex_held = &((struct ctl_cb *)so->so_pcb)->mtx; in ctl_unlock()
2101 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb;
2103 if (so->so_pcb) {
2357 struct ctl_cb *kcb = (struct ctl_cb *)so->so_pcb;