Lines Matching refs:attrp

211 	tsol_ire_gw_secattr_t *attrp = buf;
213 mutex_init(&attrp->igsa_lock, NULL, MUTEX_DEFAULT, NULL);
215 attrp->igsa_rhc = NULL;
216 attrp->igsa_gc = NULL;
225 tsol_ire_gw_secattr_t *attrp = (tsol_ire_gw_secattr_t *)buf;
227 mutex_destroy(&attrp->igsa_lock);
237 ire_gw_secattr_free(tsol_ire_gw_secattr_t *attrp)
239 ASSERT(MUTEX_NOT_HELD(&attrp->igsa_lock));
241 if (attrp->igsa_rhc != NULL) {
242 TNRHC_RELE(attrp->igsa_rhc);
243 attrp->igsa_rhc = NULL;
246 if (attrp->igsa_gc != NULL) {
247 GC_REFRELE(attrp->igsa_gc);
248 attrp->igsa_gc = NULL;
251 ASSERT(attrp->igsa_rhc == NULL);
252 ASSERT(attrp->igsa_gc == NULL);
254 kmem_cache_free(ire_gw_secattr_cache, attrp);
1238 tsol_ire_gw_secattr_t *attrp = NULL;
1269 attrp = ire->ire_gw_secattr;
1276 mutex_enter(&attrp->igsa_lock);
1283 if ((gc = attrp->igsa_gc) != NULL) {
1290 if ((gw_rhc = attrp->igsa_rhc) != NULL) {
1297 attrp->igsa_rhc = gw_rhc = NULL;
1335 if (attrp->igsa_rhc != NULL) {
1338 gw_rhc = attrp->igsa_rhc;
1340 attrp->igsa_rhc = gw_rhc;
1351 mutex_exit(&attrp->igsa_lock);
1454 tsol_ire_gw_secattr_t *attrp = NULL;
1556 attrp = ire->ire_gw_secattr;
1557 gw_rhtp = attrp->igsa_rhc->rhc_tpc;
1566 mblk_t *, mp, tsol_ire_gw_secattr_t *, attrp);
1572 ((attrp = ire->ire_gw_secattr) == NULL || attrp->igsa_rhc == NULL ||
1573 (gw_rhtp = attrp->igsa_rhc->rhc_tpc) == NULL) && off_link) {
1576 mblk_t *, mp, tsol_ire_gw_secattr_t *, attrp);
1854 tsol_ire_gw_secattr_t *attrp;
1863 * The only time that attrp can be NULL is when this routine is
1868 if ((attrp = ire->ire_gw_secattr) == NULL) {
1869 attrp = ire_gw_secattr_alloc(KM_NOSLEEP);
1870 if (attrp == NULL)
1872 ire->ire_gw_secattr = attrp;
1875 mutex_enter(&attrp->igsa_lock);
1877 if (attrp->igsa_rhc != NULL) {
1878 TNRHC_RELE(attrp->igsa_rhc);
1879 attrp->igsa_rhc = NULL;
1882 if (attrp->igsa_gc != NULL)
1883 GC_REFRELE(attrp->igsa_gc);
1885 ASSERT(!exists || MUTEX_HELD(&attrp->igsa_lock));
1891 attrp->igsa_gc = gc;
1932 attrp->igsa_rhc = find_rhc(paddr, ipversion, B_FALSE);
1936 mutex_exit(&attrp->igsa_lock);