Lines Matching refs:ai
1210 arl_ill_common_t *ai;
1231 ai = kmem_zalloc(sizeof (*ai), KM_SLEEP);
1237 kmem_free(ai, sizeof (*ai));
1244 kmem_free(ai, sizeof (*ai));
1247 mutex_init(&ai->ai_lock, NULL, MUTEX_DEFAULT, NULL);
1248 ai->ai_arl = arl;
1249 ai->ai_ill = ill;
1250 ill->ill_common = ai;
1251 arl->arl_common = ai;
1321 arl_ill_common_t *ai = ill->ill_common;
1324 if (ai == NULL)
1328 * ill_common structure. We can safely access the ai here as it
1332 mutex_enter(&ai->ai_lock);
1333 if ((arl = ai->ai_arl) != NULL) {
1343 mutex_exit(&ai->ai_lock);
1350 arl_ill_common_t *ai = arl->arl_common;
1353 if (ai == NULL) {
1362 * arl_common structure. We can safely access the ai here as it
1366 mutex_enter(&ai->ai_lock);
1367 if ((ill = ai->ai_ill) != NULL) {
1377 mutex_exit(&ai->ai_lock);
1818 arl_ill_common_t *ai = arl->arl_common;
1842 if (ai != NULL && ipsq == NULL) {
1848 * If the arp_modclose happened even before SLIFNAME, the ai
1852 mutex_enter(&ai->ai_lock);
1853 while (ai->ai_ill != NULL)
1854 cv_wait(&ai->ai_ill_unplumb_done, &ai->ai_lock);
1855 mutex_exit(&ai->ai_lock);
1926 if (ai != NULL) {
1927 mutex_enter(&ai->ai_lock);
1928 ai->ai_arl = NULL;
1929 if (ai->ai_ill == NULL) {
1930 mutex_destroy(&ai->ai_lock);
1931 kmem_free(ai, sizeof (*ai));
1933 mutex_exit(&ai->ai_lock);
2161 arl_ill_common_t *ai;
2166 ai = arl->arl_common;
2167 if (ai != NULL) {
2168 mutex_enter(&ai->ai_lock);
2169 if (ai->ai_ill != NULL)
2170 ASSERT(IAM_WRITER_ILL(ai->ai_ill));
2171 mutex_exit(&ai->ai_lock);