Lines Matching refs:nodes
34 struct cond_expr_node *node = &expr->nodes[i]; in cond_evaluate_expr()
105 avnode = node->true_list.nodes[i]; in evaluate_cond_node()
113 avnode = node->false_list.nodes[i]; in evaluate_cond_node()
142 kfree(node->expr.nodes); in cond_node_destroy()
144 kfree(node->true_list.nodes); in cond_node_destroy()
145 kfree(node->false_list.nodes); in cond_node_destroy()
296 if (other->nodes[i] == node_ptr) { in cond_insertf()
341 list->nodes = kcalloc(len, sizeof(*list->nodes), GFP_KERNEL); in cond_read_av_list()
342 if (!list->nodes) in cond_read_av_list()
348 data.dst = &list->nodes[i]; in cond_read_av_list()
352 kfree(list->nodes); in cond_read_av_list()
353 list->nodes = NULL; in cond_read_av_list()
390 node->expr.nodes = kcalloc(len, sizeof(*node->expr.nodes), GFP_KERNEL); in cond_read_node()
391 if (!node->expr.nodes) in cond_read_node()
397 struct cond_expr_node *expr = &node->expr.nodes[i]; in cond_read_node()
494 rc = avtab_write_item(p, list->nodes[i], fp); in cond_write_av_list()
520 buf[0] = cpu_to_le32(node->expr.nodes[i].expr_type); in cond_write_node()
521 buf[1] = cpu_to_le32(node->expr.nodes[i].bool); in cond_write_node()
612 new->nodes = kcalloc(orig->len, sizeof(*new->nodes), GFP_KERNEL); in cond_dup_av_list()
613 if (!new->nodes) in cond_dup_av_list()
617 new->nodes[i] = avtab_insert_nonunique(avtab, in cond_dup_av_list()
618 &orig->nodes[i]->key, in cond_dup_av_list()
619 &orig->nodes[i]->datum); in cond_dup_av_list()
620 if (!new->nodes[i]) in cond_dup_av_list()
652 newn->expr.nodes = kmemdup(orign->expr.nodes, in duplicate_policydb_cond_list()
653 orign->expr.len * sizeof(*orign->expr.nodes), in duplicate_policydb_cond_list()
655 if (!newn->expr.nodes) in duplicate_policydb_cond_list()