Lines Matching refs:kc

484 	keysock_consumer_t *kc;  in keysock_close()  local
496 kc = (keysock_consumer_t *)ptr; in keysock_close()
497 keystack = kc->kc_keystack; in keysock_close()
500 kc->kc_sa_type)); in keysock_close()
505 if (kc->kc_flags & KC_FLUSHING) { in keysock_close()
529 keystack->keystack_consumers[kc->kc_sa_type] = NULL; in keysock_close()
531 mutex_destroy(&kc->kc_lock); in keysock_close()
532 netstack_rele(kc->kc_keystack->keystack_netstack); in keysock_close()
565 keysock_consumer_t *kc; in keysock_open() local
604 kc = kmem_zalloc(sizeof (keysock_consumer_t), KM_NOSLEEP); in keysock_open()
605 if (kc == NULL) { in keysock_open()
609 mutex_init(&kc->kc_lock, NULL, MUTEX_DEFAULT, 0); in keysock_open()
610 kc->kc_rq = q; in keysock_open()
611 kc->kc_wq = WR(q); in keysock_open()
613 q->q_ptr = kc; in keysock_open()
614 WR(q)->q_ptr = kc; in keysock_open()
616 kc->kc_keystack = keystack; in keysock_open()
632 mutex_destroy(&kc->kc_lock); in keysock_open()
633 kmem_free(kc, sizeof (*kc)); in keysock_open()
646 putnext(kc->kc_wq, mp); in keysock_open()
1030 keysock_consumer_t *kc; in keysock_passdown() local
1076 kc = keystack->keystack_consumers[satype]; in keysock_passdown()
1077 if (kc == NULL) { in keysock_passdown()
1101 putnext(kc->kc_wq, wrapper); in keysock_passdown()
1851 keysock_consumer_t *kc = (keysock_consumer_t *)q->q_ptr; in keysock_wput() local
1852 keystack = kc->kc_keystack; in keysock_wput()
1861 kc->kc_sa_type)); in keysock_wput()
1914 keysock_link_consumer(uint8_t satype, keysock_consumer_t *kc) in keysock_link_consumer() argument
1917 keysock_stack_t *keystack = kc->kc_keystack; in keysock_link_consumer()
1920 mutex_enter(&kc->kc_lock); in keysock_link_consumer()
1929 mutex_exit(&kc->kc_lock); in keysock_link_consumer()
1933 keystack->keystack_consumers[satype] = kc; in keysock_link_consumer()
1935 kc->kc_flags = 0; in keysock_link_consumer()
1936 kc->kc_sa_type = satype; in keysock_link_consumer()
1937 mutex_exit(&kc->kc_lock); in keysock_link_consumer()
1962 keysock_out_err(keysock_consumer_t *kc, int ks_errno, mblk_t *mp) in keysock_out_err() argument
1966 keysock_stack_t *keystack = kc->kc_keystack; in keysock_out_err()
1995 putnext(kc->kc_wq, imp); in keysock_out_err()
2011 keysock_consumer_t *kc, boolean_t persistent, keysock_stack_t *keystack) in keysock_passup() argument
2067 if (kc == NULL) { in keysock_passup()
2080 satype = kc->kc_sa_type; in keysock_passup()
2134 ASSERT(kc != NULL); in keysock_passup()
2135 ASSERT(kc->kc_sa_type == satype); in keysock_passup()
2159 allereg : allreg && kc != NULL && in keysock_passup()
2160 KEYSOCK_ISREG(ks, kc->kc_sa_type))) in keysock_passup()
2210 if ((err != 0) && (kc != NULL)) { in keysock_passup()
2236 keysock_out_err(kc, err, mp1); in keysock_passup()
2278 keysock_consumer_t *kc = (keysock_consumer_t *)q->q_ptr; in keysock_rput() local
2284 keysock_stack_t *keystack = kc->kc_keystack; in keysock_rput()
2325 mutex_enter(&kc->kc_lock); in keysock_rput()
2326 kc->kc_flags &= ~KC_FLUSHING; in keysock_rput()
2327 mutex_exit(&kc->kc_lock); in keysock_rput()
2353 keysock_passup(mp1, samsg, serial, kc, in keysock_rput()
2359 keysock_link_consumer(ksa->ks_hello_satype, kc); in keysock_rput()