Home
last modified time | relevance | path

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

12

/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/u-boot/scripts/kconfig/
Dexpr.h31 enum expr_type { enum
43 enum expr_type type;
293 struct expr *expr_alloc_one(enum expr_type type, struct expr *ce);
294 struct expr *expr_alloc_two(enum expr_type type, struct expr *e1, struct expr *e2);
295 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2);
307 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym);
Dexpr.c25 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()
42 struct expr *expr_alloc_comp(enum expr_type type, struct symbol *s1, struct symbol *s2) in expr_alloc_comp()
149 static void __expr_eliminate_eq(enum expr_type type, struct expr **ep1, struct expr **ep2) in __expr_eliminate_eq()
588 static void expr_eliminate_dups1(enum expr_type type, struct expr **ep1, struct expr **ep2) in expr_eliminate_dups1()
914 struct expr *expr_trans_compare(struct expr *e, enum expr_type type, struct symbol *sym) in expr_trans_compare()
1106 static 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()
746 if (expr->expr_type <= 0 || expr->expr_type > COND_LAST) { in expr_isvalid()
791 expr->expr_type = le32_to_cpu(buf[0]); in cond_read_node()
Dkernel_to_conf.c44 if (curr->expr_type == COND_BOOL) { in cond_expr_to_str()
53 switch(curr->expr_type) { in cond_expr_to_str()
61 sepol_log_err("Unknown conditional operator: %i", curr->expr_type); in cond_expr_to_str()
134 if (curr->expr_type == CEXPR_ATTR || curr->expr_type == CEXPR_NAMES) { in constraint_expr_to_str()
174 if (curr->expr_type == CEXPR_ATTR) { in constraint_expr_to_str()
197 switch (curr->expr_type) { in constraint_expr_to_str()
202 sepol_log_err("Unknown constraint expression type: %i", curr->expr_type); in constraint_expr_to_str()
Dkernel_to_cil.c45 if (curr->expr_type == COND_BOOL) { in cond_expr_to_str()
54 switch(curr->expr_type) { in cond_expr_to_str()
63 curr->expr_type); in cond_expr_to_str()
136 if (curr->expr_type == CEXPR_ATTR || curr->expr_type == CEXPR_NAMES) { in constraint_expr_to_str()
177 if (curr->expr_type == CEXPR_ATTR) { in constraint_expr_to_str()
200 switch (curr->expr_type) { in constraint_expr_to_str()
206 curr->expr_type); in constraint_expr_to_str()
Dmodule_to_cil.c1284 if (curr->expr_type == COND_BOOL) { in cond_expr_to_cil()
1301 switch(curr->expr_type) { in cond_expr_to_cil()
1313 num_params = curr->expr_type == COND_NOT ? 1 : 2; in cond_expr_to_cil()
1747 if (expr->expr_type == CEXPR_ATTR || expr->expr_type == CEXPR_NAMES) { in constraint_expr_to_string()
1782 if (expr->expr_type == CEXPR_ATTR) { in constraint_expr_to_string()
1840 switch (expr->expr_type) { in constraint_expr_to_string()
1845 log_err("Unknown constraint expression type: %i", expr->expr_type); in constraint_expr_to_string()
1850 num_params = expr->expr_type == CEXPR_NOT ? 1 : 2; in constraint_expr_to_string()
Dwrite.c771 buf[items++] = cpu_to_le32(cur_expr->expr_type); in cond_write_node()
931 buf[0] = cpu_to_le32(e->expr_type); in write_cons_helper()
938 switch (e->expr_type) { in write_cons_helper()
Dexpand.c308 new_expr->expr_type = expr->expr_type; in constraint_node_clone()
311 if (new_expr->expr_type == CEXPR_NAMES) { in constraint_node_clone()
2914 if (cur_expr->expr_type != COND_BOOL) in discard_tunables()
/external/adhd/cras/src/server/
Dcras_expr.h45 enum expr_type { enum
55 enum expr_type type;
/external/selinux/checkpolicy/
Dpolicy_define.h19 cond_expr_t *define_cond_expr(uint32_t expr_type, void *arg1, void* arg2);
75 uintptr_t define_cexpr(uint32_t expr_type, uintptr_t arg1, uintptr_t arg2);
Dpolicy_define.c3520 newe->expr_type = e->expr_type; in constraint_expr_clone()
3523 if (newe->expr_type == CEXPR_NAMES) { in constraint_expr_clone()
3569 switch (e->expr_type) { in define_constraint()
3715 switch (e->expr_type) { in define_validatetrans()
3796 uintptr_t define_cexpr(uint32_t expr_type, uintptr_t arg1, uintptr_t arg2) in define_cexpr() argument
3807 if (expr_type == CEXPR_NAMES) { in define_cexpr()
3820 expr->expr_type = expr_type; in define_cexpr()
3822 switch (expr_type) { in define_cexpr()
3973 switch (e->expr_type) { in define_conditional()
4042 cond_expr_t *define_cond_expr(uint32_t expr_type, void *arg1, void *arg2) in define_cond_expr() argument
[all …]
/external/selinux/libsepol/include/sepol/policydb/
Dconstraint.h39 uint32_t expr_type; /* expression type */ member
Dconditional.h56 uint32_t expr_type; member
/external/python/cpython3/Python/
DPython-ast.c188 static PyTypeObject *expr_type; variable
910 expr_type = make_type("expr", &AST_type, NULL, 0); in init_types()
911 if (!expr_type) return 0; in init_types()
912 if (!add_attributes(expr_type, expr_attributes, 2)) return 0; in init_types()
913 BoolOp_type = make_type("BoolOp", expr_type, BoolOp_fields, 2); in init_types()
915 BinOp_type = make_type("BinOp", expr_type, BinOp_fields, 3); in init_types()
917 UnaryOp_type = make_type("UnaryOp", expr_type, UnaryOp_fields, 2); in init_types()
919 Lambda_type = make_type("Lambda", expr_type, Lambda_fields, 2); in init_types()
921 IfExp_type = make_type("IfExp", expr_type, IfExp_fields, 3); in init_types()
923 Dict_type = make_type("Dict", expr_type, Dict_fields, 2); in init_types()
[all …]
/external/bcc/tools/
Dargdist.py284 def _is_string(self, expr_type): argument
285 return expr_type == "char*" or expr_type == "char *"
/external/python/cpython2/Python/
DPython-ast.c153 static PyTypeObject *expr_type; variable
739 expr_type = make_type("expr", &AST_type, NULL, 0); in init_types()
740 if (!expr_type) return 0; in init_types()
741 if (!add_attributes(expr_type, expr_attributes, 2)) return 0; in init_types()
742 BoolOp_type = make_type("BoolOp", expr_type, BoolOp_fields, 2); in init_types()
744 BinOp_type = make_type("BinOp", expr_type, BinOp_fields, 3); in init_types()
746 UnaryOp_type = make_type("UnaryOp", expr_type, UnaryOp_fields, 2); in init_types()
748 Lambda_type = make_type("Lambda", expr_type, Lambda_fields, 2); in init_types()
750 IfExp_type = make_type("IfExp", expr_type, IfExp_fields, 3); in init_types()
752 Dict_type = make_type("Dict", expr_type, Dict_fields, 2); in init_types()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_resolve_ast.h95 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_…
Dcil_binary.c2104 (*head)->expr_type = COND_BOOL; in __cil_cond_item_to_sepol_expr()
2146 op->expr_type = COND_NOT; in __cil_cond_expr_to_sepol_expr_helper()
2149 op->expr_type = COND_OR; in __cil_cond_expr_to_sepol_expr_helper()
2152 op->expr_type = COND_AND; in __cil_cond_expr_to_sepol_expr_helper()
2155 op->expr_type = COND_XOR; in __cil_cond_expr_to_sepol_expr_helper()
2158 op->expr_type = COND_EQ; in __cil_cond_expr_to_sepol_expr_helper()
2161 op->expr_type = COND_NEQ; in __cil_cond_expr_to_sepol_expr_helper()
2210 op->expr_type = COND_OR; in __cil_cond_expr_to_sepol_expr_helper()
2651 expr->expr_type = CEXPR_ATTR; in __cil_constrain_expr_leaf_to_sepol_expr()
2653 expr->expr_type = CEXPR_NAMES; in __cil_constrain_expr_leaf_to_sepol_expr()
[all …]
/external/bcc/src/cc/frontends/b/
Dnode.h143 enum expr_type { STRUCT, INTEGER, STRING, VOID, UNKNOWN }; enum
145 expr_type typeof_;
/external/selinux/checkpolicy/test/
Ddispol.c197 switch (cur->expr_type) { in display_expr()

12