Lines Matching defs:rcas
4919 cache_avl_struct_t *rcas;
4924 rcas = avl_first(&hca->avl_tree);
4925 if (rcas != NULL)
4926 avl_remove(&hca->avl_tree, rcas);
4928 while (rcas != NULL) {
4929 while (rcas->r.forw != &rcas->r) {
4930 rcas->elements--;
4931 rb = rcas->r.forw;
4941 mutex_destroy(&rcas->node_lock);
4942 kmem_cache_free(hca->server_side_cache, rcas);
4943 rcas = avl_first(&hca->avl_tree);
4944 if (rcas != NULL)
4945 avl_remove(&hca->avl_tree, rcas);
4953 cache_avl_struct_t *rcas;
4965 rcas = avl_last(&hca->avl_tree);
4966 if (rcas != NULL)
4967 avl_remove(&hca->avl_tree, rcas);
4969 while (rcas != NULL) {
4970 while (rcas->r.forw != &rcas->r) {
4971 rcas->elements--;
4972 rb = rcas->r.forw;
4983 mutex_destroy(&rcas->node_lock);
4985 kmem_cache_free(hca->server_side_cache, rcas);
4993 rcas = avl_last(&hca->avl_tree);
4994 if (rcas != NULL)
4995 avl_remove(&hca->avl_tree, rcas);
5041 cache_avl_struct_t cas, *rcas;
5058 if ((rcas = (cache_avl_struct_t *)avl_find(&hca->avl_tree, &cas,
5076 if ((rcas = (cache_avl_struct_t *)avl_find(&hca->avl_tree,
5079 rcas = (cache_avl_struct_t *)
5082 bzero(rcas, sizeof (cache_avl_struct_t));
5083 rcas->elements = 0;
5084 rcas->r.forw = &rcas->r;
5085 rcas->r.back = &rcas->r;
5086 rcas->len = len;
5087 mutex_init(&rcas->node_lock, NULL, MUTEX_DEFAULT, NULL);
5088 avl_insert(&hca->avl_tree, rcas, where);
5092 mutex_enter(&rcas->node_lock);
5094 if (rcas->r.forw != &rcas->r && rcas->elements > 0) {
5095 reply_buf = rcas->r.forw;
5097 rcas->elements--;
5098 mutex_exit(&rcas->node_lock);
5107 mutex_exit(&rcas->node_lock);
5129 reply_buf->avl_node = (void *)rcas;
5154 cache_avl_struct_t cas, *rcas;
5163 if ((rcas = (cache_avl_struct_t *)
5169 mutex_enter(&rcas->node_lock);
5170 insque(reg_buf, &rcas->r);
5171 rcas->elements ++;
5172 mutex_exit(&rcas->node_lock);