Home
last modified time | relevance | path

Searched refs:expr_type (Results 1 – 24 of 24) sorted by relevance

/external/selinux/libsepol/tests/
Dtest-linker-cond-map.c54 uint32_t expr_type; member
70 CU_ASSERT(expr->expr_type == bools[i].expr_type); in test_cond_expr_mapping()
103 bools[0].expr_type = COND_BOOL; in base_cond_tests()
113 bools[0].expr_type = COND_BOOL; in base_cond_tests()
131 bools[0].expr_type = COND_BOOL; in module_cond_tests()
141 bools[0].expr_type = COND_BOOL; in module_cond_tests()
153 bools[0].expr_type = COND_BOOL; in module_cond_tests()
155 bools[1].expr_type = COND_BOOL; in module_cond_tests()
157 bools[2].expr_type = COND_AND; in module_cond_tests()
Ddebug.c42 switch (cur->expr_type) { in display_expr()
65 fprintf(fp, "error! (%d)", cur->expr_type); in display_expr()
/external/toybox/kconfig/
Dexpr.h34 enum expr_type { enum
44 enum expr_type type;
162 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
163 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
164 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2);
180 void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2);
181 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym);
Dlkc_proto.h41 P(expr_compare_type,int,(enum expr_type t1, enum expr_type t2));
Dexpr.c24 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce) in expr_alloc_one()
33 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2) in expr_alloc_two()
43 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) in expr_alloc_comp()
135 static void __expr_eliminate_eq(enum expr_type type, struct expr **ep1, struct expr **ep2) in __expr_eliminate_eq()
509 static void expr_eliminate_dups1(enum expr_type type, struct expr **ep1, struct expr **ep2) in expr_eliminate_dups1()
561 static void expr_eliminate_dups2(enum expr_type type, struct expr **ep1, struct expr **ep2) in expr_eliminate_dups2()
853 void expr_extract_eq(enum expr_type type, struct expr **ep, struct expr **ep1, struct expr **ep2) in expr_extract_eq()
882 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym) in expr_trans_compare()
984 int expr_compare_type(enum expr_type t1, enum expr_type t2) in expr_compare_type()
/external/selinux/libsepol/src/
Dconditional.c124 if (cur_a->expr_type != cur_b->expr_type) in cond_expr_equal()
126 if (cur_a->expr_type == COND_BOOL) { in cond_expr_equal()
220 switch (cur->expr_type) { in cond_evaluate_expr()
280 new_expr->expr_type = cur->expr_type; in cond_copy_expr()
367 if (e->expr_type == COND_NOT) { in cond_normalize_expr()
389 switch (e->expr_type) { in cond_normalize_expr()
749 if (expr->expr_type <= 0 || expr->expr_type > COND_LAST) { in expr_isvalid()
794 expr->expr_type = le32_to_cpu(buf[0]); in cond_read_node()
Dmodule_to_cil.c1136 if (curr->expr_type == COND_BOOL) { in cond_expr_to_cil()
1154 switch(curr->expr_type) { in cond_expr_to_cil()
1166 num_params = curr->expr_type == COND_NOT ? 1 : 2; in cond_expr_to_cil()
1644 if (expr->expr_type == CEXPR_ATTR || expr->expr_type == CEXPR_NAMES) { in constraint_expr_to_string()
1679 if (expr->expr_type == CEXPR_ATTR) { in constraint_expr_to_string()
1738 switch (expr->expr_type) { in constraint_expr_to_string()
1743 log_err("Unknown constraint expression type: %i", expr->expr_type); in constraint_expr_to_string()
1748 num_params = expr->expr_type == CEXPR_NOT ? 1 : 2; in constraint_expr_to_string()
Dwrite.c754 buf[items++] = cpu_to_le32(cur_expr->expr_type); in cond_write_node()
915 buf[0] = cpu_to_le32(e->expr_type); in write_cons_helper()
922 switch (e->expr_type) { in write_cons_helper()
Dexpand.c306 new_expr->expr_type = expr->expr_type; in constraint_node_clone()
309 if (new_expr->expr_type == CEXPR_NAMES) { in constraint_node_clone()
2859 if (cur_expr->expr_type != COND_BOOL) in discard_tunables()
Dpolicydb.c2028 e->expr_type = le32_to_cpu(buf[0]); in read_cons_helper()
2032 switch (e->expr_type) { in read_cons_helper()
Dservices.c472 switch (e->expr_type) { in constraint_expr_eval_reason()
Dlink.c1572 if (cur_expr->expr_type != COND_BOOL) in copy_cond_list()
/external/selinux/checkpolicy/
Dpolicy_define.h19 cond_expr_t *define_cond_expr(uint32_t expr_type, void *arg1, void* arg2);
72 uintptr_t define_cexpr(uint32_t expr_type, uintptr_t arg1, uintptr_t arg2);
Dpolicy_define.c3384 newe->expr_type = e->expr_type; in constraint_expr_clone()
3387 if (newe->expr_type == CEXPR_NAMES) { in constraint_expr_clone()
3433 switch (e->expr_type) { in define_constraint()
3579 switch (e->expr_type) { in define_validatetrans()
3660 uintptr_t define_cexpr(uint32_t expr_type, uintptr_t arg1, uintptr_t arg2) in define_cexpr() argument
3671 if (expr_type == CEXPR_NAMES) { in define_cexpr()
3684 expr->expr_type = expr_type; in define_cexpr()
3686 switch (expr_type) { in define_cexpr()
3837 switch (e->expr_type) { in define_conditional()
3906 cond_expr_t *define_cond_expr(uint32_t expr_type, void *arg1, void *arg2) in define_cond_expr() argument
[all …]
Dcheckpolicy.c309 switch (cur->expr_type) { in display_expr()
/external/selinux/libsepol/include/sepol/policydb/
Dconstraint.h37 uint32_t expr_type; /* expression type */ member
Dconditional.h55 uint32_t expr_type; member
/external/selinux/policycoreutils/sepolicy/
Dsearch.c306 uint32_t expr_type = 0; in get_bool() local
326 if (qpol_cond_expr_node_get_expr_type(q, expr, &expr_type)) { in get_bool()
329 if (expr_type != QPOL_COND_EXPR_BOOL) { in get_bool()
330 obj = PyString_FromString(apol_cond_expr_type_to_str(expr_type)); in get_bool()
/external/selinux/libsepol/cil/src/
Dcil_resolve_ast.h93 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_…
Dcil_binary.c1912 (*head)->expr_type = COND_BOOL; in __cil_cond_item_to_sepol_expr()
1954 op->expr_type = COND_NOT; in __cil_cond_expr_to_sepol_expr_helper()
1957 op->expr_type = COND_OR; in __cil_cond_expr_to_sepol_expr_helper()
1960 op->expr_type = COND_AND; in __cil_cond_expr_to_sepol_expr_helper()
1963 op->expr_type = COND_XOR; in __cil_cond_expr_to_sepol_expr_helper()
1966 op->expr_type = COND_EQ; in __cil_cond_expr_to_sepol_expr_helper()
1969 op->expr_type = COND_NEQ; in __cil_cond_expr_to_sepol_expr_helper()
2017 op->expr_type = COND_OR; in __cil_cond_expr_to_sepol_expr_helper()
2447 expr->expr_type = CEXPR_ATTR; in __cil_constrain_expr_leaf_to_sepol_expr()
2449 expr->expr_type = CEXPR_NAMES; in __cil_constrain_expr_leaf_to_sepol_expr()
[all …]
Dcil_resolve_ast.c3064 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_… in cil_resolve_expr() argument
3104 …if (sym_index == CIL_SYM_TYPES && (expr_type == CIL_CONSTRAIN || expr_type == CIL_VALIDATETRANS)) { in cil_resolve_expr()
3112 rc = cil_resolve_expr(expr_type, curr->data, &datum_sub_expr, parent, extra_args); in cil_resolve_expr()
/external/selinux/checkpolicy/test/
Ddispol.c197 switch (cur->expr_type) { in display_expr()
Ddismod.c376 switch (cur->expr_type) { in display_expr()
/external/valgrind/perf/
Dtinycc.c5401 static void expr_type(CType *type);
12724 expr_type(type); in parse_expr_type()
13464 static void expr_type(CType *type) in expr_type() function
13965 int v, int expr_type) in init_putv() argument
13972 switch(expr_type) { in init_putv()
14073 int size1, align1, expr_type; in decl_initializer() local
14262 expr_type = EXPR_CONST; in decl_initializer()
14264 expr_type = EXPR_ANY; in decl_initializer()
14265 init_putv(type, sec, c, 0, expr_type); in decl_initializer()