Lines Matching refs:i_link
192 typedef struct i_link { struct
203 struct i_link *src_link_next; /* next src i_link /w same i_lnode */ argument
204 struct i_link *tgt_link_next; /* next tgt i_link /w same i_lnode */ argument
2119 i_link_t *i_link; in i_link_alloc() local
2121 i_link = kmem_zalloc(sizeof (i_link_t), KM_SLEEP); in i_link_alloc()
2122 i_link->spec_type = spec_type; in i_link_alloc()
2124 return (i_link); in i_link_alloc()
2128 i_link_check_free(i_link_t *i_link) in i_link_check_free() argument
2131 ASSERT(i_link->self > 0); in i_link_check_free()
2134 ASSERT(i_link->src_lnode); in i_link_check_free()
2135 ASSERT(i_link->tgt_lnode); in i_link_check_free()
2137 kmem_free(i_link, sizeof (i_link_t)); in i_link_check_free()
2193 i_link_t **i_link_next, *i_link; in di_ldi_callback() local
2274 i_link = i_link_alloc(ldi_usage->tgt_spec_type); in di_ldi_callback()
2275 i_link->src_lnode = src_lnode; in di_ldi_callback()
2276 i_link->tgt_lnode = tgt_lnode; in di_ldi_callback()
2284 (i_link->spec_type == (*i_link_next)->spec_type)) { in di_ldi_callback()
2286 kmem_free(i_link, sizeof (i_link_t)); in di_ldi_callback()
2291 *i_link_next = i_link; in di_ldi_callback()
2301 *i_link_next = i_link; in di_ldi_callback()
2306 res = mod_hash_insert(st->link_hash, i_link, i_link); in di_ldi_callback()
2325 i_link_t *i_link = (i_link_t *)key; in i_link_walker() local
2331 ASSERT(i_link->self == 0); in i_link_walker()
2333 i_link->self = data->link_off + in i_link_walker()
2342 me = DI_LINK(di_mem_addr(data->st, i_link->self)); in i_link_walker()
2343 me->self = i_link->self; in i_link_walker()
2344 me->spec_type = i_link->spec_type; in i_link_walker()
2353 me->src_lnode = i_link->src_lnode->self; in i_link_walker()
2354 me->tgt_lnode = i_link->tgt_lnode->self; in i_link_walker()
2378 medinode = i_link->src_lnode->di_node; in i_link_walker()
2386 medinode = i_link->tgt_lnode->di_node; in i_link_walker()