/external/selinux/libsepol/cil/test/unit/ |
H A D | test_cil_post.h | 35 void test_cil_post_filecon_compare_meta_a_not_b(CuTest *tc); 36 void test_cil_post_filecon_compare_meta_b_not_a(CuTest *tc); 37 void test_cil_post_filecon_compare_meta_a_and_b_strlen_a_greater_b(CuTest *tc); 38 void test_cil_post_filecon_compare_meta_a_and_b_strlen_b_greater_a(CuTest *tc); 39 void test_cil_post_filecon_compare_type_atype_greater_btype(CuTest *tc); 40 void test_cil_post_filecon_compare_type_btype_greater_atype(CuTest *tc); 41 void test_cil_post_filecon_compare_stemlen_a_greater_b(CuTest *tc); 42 void test_cil_post_filecon_compare_stemlen_b_greater_a(CuTest *tc); 43 void test_cil_post_filecon_compare_equal(CuTest *tc); 45 void test_cil_post_portcon_compare_atotal_greater_btotal(CuTest *tc); [all...] |
H A D | test_cil_copy_ast.h | 41 void test_cil_copy_node_helper_block(CuTest *tc); 42 void test_cil_copy_node_helper_block_merge(CuTest *tc); 45 void test_cil_copy_node_helper_perm(CuTest *tc); 46 void test_cil_copy_node_helper_perm_neg(CuTest *tc); 49 void test_cil_copy_node_helper_class(CuTest *tc); 50 void test_cil_copy_node_helper_class_dup_neg(CuTest *tc); 53 void test_cil_copy_node_helper_common(CuTest *tc); 54 void test_cil_copy_node_helper_common_dup_neg(CuTest *tc); 57 void test_cil_copy_node_helper_classcommon(CuTest *tc); 60 void test_cil_copy_node_helper_sid(CuTest *tc); [all...] |
H A D | test_cil_build_ast.h | 130 void test_cil_gen_classmap_perm_dbnull_neg(CuTest *tc); 131 void test_cil_gen_classmap_perm_currnull_neg(CuTest *tc); 132 void test_cil_gen_classmap_perm_astnull_neg(CuTest *tc); 138 void test_cil_gen_classmap_dbnull_neg(CuTest *tc); 139 void test_cil_gen_classmap_currnull_neg(CuTest *tc); 140 void test_cil_gen_classmap_astnull_neg(CuTest *tc); 149 void test_cil_gen_classmapping_dbnull_neg(CuTest *tc); 150 void test_cil_gen_classmapping_currnull_neg(CuTest *tc); 151 void test_cil_gen_classmapping_astnull_neg(CuTest *tc); 154 void test_cil_gen_common_dbnull_neg(CuTest *tc); [all...] |
H A D | test_cil_tree.c | 37 void test_cil_tree_node_init(CuTest *tc) { argument 42 CuAssertPtrNotNull(tc, test_node); 43 CuAssertPtrEquals(tc, NULL, test_node->cl_head); 44 CuAssertPtrEquals(tc, NULL, test_node->cl_tail); 45 CuAssertPtrEquals(tc, NULL, test_node->parent); 46 CuAssertPtrEquals(tc, NULL, test_node->data); 47 CuAssertPtrEquals(tc, NULL, test_node->next); 48 CuAssertIntEquals(tc, 0, test_node->flavor); 49 CuAssertIntEquals(tc, 0, test_node->line); 54 void test_cil_tree_init(CuTest *tc) { argument [all...] |
H A D | test_cil_lexer.c | 37 void test_cil_lexer_setup(CuTest *tc) { argument 46 CuAssertIntEquals(tc, SEPOL_OK, rc); 51 void test_cil_lexer_next(CuTest *tc) { argument 64 CuAssertIntEquals(tc, SEPOL_OK, rc); 66 CuAssertIntEquals(tc, OPAREN, test_tok.type); 67 CuAssertStrEquals(tc, "(", test_tok.value); 68 CuAssertIntEquals(tc, 1, test_tok.line); 71 CuAssertIntEquals(tc, SEPOL_OK, rc); 73 CuAssertIntEquals(tc, SYMBOL, test_tok.type); 74 CuAssertStrEquals(tc, "tes [all...] |
H A D | test_cil_fqn.h | 36 void test_cil_qualify_name_cil_flavor(CuTest *tc);
|
H A D | CuTest.h | 78 void CuTestRun(CuTest* tc); 82 void CuFail_Line(CuTest* tc, const char* file, int line, const char* message2, const char* message); 83 void CuAssert_Line(CuTest* tc, const char* file, int line, const char* message, int condition); 84 void CuAssertStrEquals_LineMsg(CuTest* tc, 87 void CuAssertIntEquals_LineMsg(CuTest* tc, 90 void CuAssertDblEquals_LineMsg(CuTest* tc, 93 void CuAssertPtrEquals_LineMsg(CuTest* tc, 99 #define CuFail(tc, ms) CuFail_Line( (tc), __FILE__, __LINE__, NULL, (ms)) 100 #define CuAssert(tc, m [all...] |
/external/mesa3d/src/gallium/drivers/ilo/shader/ |
H A D | toy_optimize.h | 34 toy_compiler_optimize(struct toy_compiler *tc);
|
H A D | toy_legalize.h | 35 toy_compiler_lower_to_send(struct toy_compiler *tc, struct toy_inst *inst, 39 toy_compiler_lower_math(struct toy_compiler *tc, struct toy_inst *inst); 42 toy_compiler_allocate_registers(struct toy_compiler *tc, 47 toy_compiler_legalize_for_ra(struct toy_compiler *tc); 50 toy_compiler_legalize_for_asm(struct toy_compiler *tc);
|
H A D | toy_compiler.h | 174 tc_alloc_vrf(struct toy_compiler *tc, int count) argument 176 const int vrf = tc->next_vrf; 178 tc->next_vrf += count; 187 tc_alloc_tmp(struct toy_compiler *tc) argument 189 return tdst(TOY_FILE_VRF, tc_alloc_vrf(tc, 1), 0); 196 tc_alloc_tmp4(struct toy_compiler *tc, struct toy_dst *tmp) argument 198 tmp[0] = tc_alloc_tmp(tc); 199 tmp[1] = tc_alloc_tmp(tc); 200 tmp[2] = tc_alloc_tmp(tc); 201 tmp[3] = tc_alloc_tmp(tc); 208 tc_duplicate_inst(struct toy_compiler *tc, const struct toy_inst *inst) argument 226 tc_move_inst(struct toy_compiler *tc, struct toy_inst *inst) argument 236 tc_discard_inst(struct toy_compiler *tc, struct toy_inst *inst) argument 247 tc_add(struct toy_compiler *tc) argument 256 tc_add3(struct toy_compiler *tc, unsigned opcode, struct toy_dst dst, struct toy_src src0, struct toy_src src1, struct toy_src src2) argument 281 tc_add2(struct toy_compiler *tc, int opcode, struct toy_dst dst, struct toy_src src0, struct toy_src src1) argument 293 tc_add1(struct toy_compiler *tc, unsigned opcode, struct toy_dst dst, struct toy_src src0) argument 305 tc_add0(struct toy_compiler *tc, unsigned opcode) argument 393 tc_list_to_inst(struct toy_compiler *tc, struct list_head *item) argument 402 tc_current(struct toy_compiler *tc) argument 412 tc_head(struct toy_compiler *tc) argument 422 tc_tail(struct toy_compiler *tc) argument 432 tc_next_no_skip(struct toy_compiler *tc) argument 450 tc_next(struct toy_compiler *tc) argument 462 tc_fail(struct toy_compiler *tc, const char *reason) argument [all...] |
H A D | toy_optimize.c | 36 eliminate_dead_code(struct toy_compiler *tc) argument 40 tc_head(tc); 41 while ((inst = tc_next(tc)) != NULL) { 60 tc_discard_inst(tc, inst); 68 toy_compiler_optimize(struct toy_compiler *tc) argument 70 eliminate_dead_code(tc);
|
/external/mesa3d/src/gallium/drivers/softpipe/ |
H A D | sp_tex_tile_cache.c | 49 struct softpipe_tex_tile_cache *tc; local 55 tc = CALLOC_STRUCT( softpipe_tex_tile_cache ); 56 if (tc) { 57 tc->pipe = pipe; 58 for (pos = 0; pos < ARRAY_SIZE(tc->entries); pos++) { 59 tc->entries[pos].addr.bits.invalid = 1; 61 tc->last_tile = &tc->entries[0]; /* any tile */ 63 return tc; 68 sp_destroy_tex_tile_cache(struct softpipe_tex_tile_cache *tc) argument 93 sp_tex_tile_cache_validate_texture(struct softpipe_tex_tile_cache *tc) argument 106 sp_tex_tile_is_compat_view(struct softpipe_tex_tile_cache *tc, struct pipe_sampler_view *view) argument 123 sp_tex_tile_cache_set_sampler_view(struct softpipe_tex_tile_cache *tc, struct pipe_sampler_view *view) argument 166 sp_flush_tex_tile_cache(struct softpipe_tex_tile_cache *tc) argument 204 sp_find_cached_tile_tex(struct softpipe_tex_tile_cache *tc, union tex_tile_address addr ) argument [all...] |
H A D | sp_tile_cache.c | 42 sp_alloc_tile(struct softpipe_tile_cache *tc); 93 struct softpipe_tile_cache *tc; local 107 tc = CALLOC_STRUCT( softpipe_tile_cache ); 108 if (tc) { 109 tc->pipe = pipe; 110 for (pos = 0; pos < ARRAY_SIZE(tc->tile_addrs); pos++) { 111 tc->tile_addrs[pos].bits.invalid = 1; 113 tc->last_tile_addr.bits.invalid = 1; 118 tc->tile = MALLOC_STRUCT( softpipe_cached_tile ); 119 if (!tc 140 sp_destroy_tile_cache(struct softpipe_tile_cache *tc) argument 171 sp_tile_cache_set_surface(struct softpipe_tile_cache *tc, struct pipe_surface *ps) argument 228 sp_tile_cache_get_surface(struct softpipe_tile_cache *tc) argument 343 sp_tile_cache_flush_clear(struct softpipe_tile_cache *tc, int layer) argument 401 sp_flush_tile(struct softpipe_tile_cache* tc, unsigned pos) argument 445 sp_flush_tile_cache(struct softpipe_tile_cache *tc) argument 479 sp_alloc_tile(struct softpipe_tile_cache *tc) argument 516 sp_find_cached_tile(struct softpipe_tile_cache *tc, union tile_address addr ) argument 635 sp_tile_cache_clear(struct softpipe_tile_cache *tc, const union pipe_color_union *color, uint64_t clearValue) argument [all...] |
/external/ltp/testcases/kernel/syscalls/getpriority/ |
H A D | getpriority02.c | 52 struct tcase *tc = &tcases[n]; local 54 TEST(getpriority(tc->which, tc->who)); 58 "returned %li", tc->which, tc->who, TEST_RETURN); 62 if (tc->exp_errno != TEST_ERRNO) { 65 tc->which, tc->who, tst_strerrno(tc->exp_errno)); 70 tc [all...] |
H A D | getpriority01.c | 44 struct tcase *tc = &tcases[n]; local 46 TEST(getpriority(tc->which, 0)); 50 tc->which); 54 if (TEST_RETURN < tc->min || TEST_RETURN > tc->max) { 57 tc->which, TEST_RETURN, tc->min, tc->max); 62 tc->which, TEST_RETURN);
|
/external/ltp/testcases/kernel/syscalls/lseek/ |
H A D | lseek01.c | 52 struct tcase *tc = &tcases[n]; local 59 TEST(lseek(fd, tc->off, tc->whence)); 62 tc->off, tc->wname); 66 if (TEST_RETURN != tc->exp_off) { 68 TFILE, tc->off, tc->wname, TEST_RETURN, tc->exp_off); 72 SAFE_READ(1, fd, read_buf, tc [all...] |
H A D | lseek07.c | 52 struct tcase *tc = &tcases[n]; local 56 TEST(lseek(*tc->fd, tc->off, SEEK_SET)); 59 tc->fname, tc->off); 63 if (TEST_RETURN != tc->exp_off) { 65 tc->fname, tc->off, TEST_RETURN, tc->exp_off); 69 SAFE_WRITE(1, *tc [all...] |
/external/ltp/testcases/kernel/syscalls/setpriority/ |
H A D | setpriority02.c | 67 static void setpriority_test(struct tcase *tc) argument 71 if (tc->unprivil) 74 TEST(setpriority(tc->which, tc->who, tc->prio)); 79 "returned %ld", tc->which, tc->who, tc->prio, desc, 84 if (TEST_ERRNO != tc->exp_errno) { 87 tc 99 struct tcase *tc = &tcases[n]; local [all...] |
/external/expat/tests/ |
H A D | minicheck.c | 59 TCase *tc = (TCase *) calloc(1, sizeof(TCase)); local 60 if (tc != NULL) { 61 tc->name = name; 63 return tc; 67 suite_add_tcase(Suite *suite, TCase *tc) argument 70 assert(tc != NULL); 71 assert(tc->next_tcase == NULL); 73 tc->next_tcase = suite->tests; 74 suite->tests = tc; 78 tcase_add_checked_fixture(TCase *tc, argument 88 tcase_add_test(TCase *tc, tcase_test_function test) argument 104 tcase_free(TCase *tc) argument 168 TCase *tc; local [all...] |
/external/ltp/testcases/kernel/syscalls/mincore/ |
H A D | mincore01.c | 61 static void setup1(struct test_case_t *tc); 62 static void setup2(struct test_case_t *tc); 63 static void setup3(struct test_case_t *tc); 64 static void setup4(struct test_case_t *tc); 71 void (*setupfunc) (struct test_case_t *tc); 79 static void mincore_verify(struct test_case_t *tc); 102 static void setup1(struct test_case_t *tc) argument 104 tc->addr = global_pointer + 1; 105 tc->len = global_len; 106 tc 109 setup2(struct test_case_t *tc) argument 131 setup3(struct test_case_t *tc) argument 139 setup4(struct test_case_t *tc) argument 191 mincore_verify(struct test_case_t *tc) argument [all...] |
/external/ltp/testcases/kernel/syscalls/access/ |
H A D | access03.c | 48 static void access_test(struct tcase *tc, const char *user) argument 50 TEST(access(tc->addr, tc->mode)); 54 tc->addr, tc->name, user); 61 tc->addr, tc->name, user); 66 tc->addr, tc->name, user); 71 struct tcase *tc local [all...] |
/external/libnl/lib/route/ |
H A D | tc.c | 2 * lib/route/tc.c Traffic Control 14 * @defgroup tc Traffic Control 19 #include <netlink-private/tc.h> 24 #include <netlink/route/tc.h> 25 #include <netlink-private/route/tc-api.h> 61 int rtnl_tc_msg_parse(struct nlmsghdr *n, struct rtnl_tc *tc) argument 70 tc->ce_msgtype = n->nlmsg_type; 80 rtnl_tc_set_kind(tc, kind); 83 tc->tc_family = tm->tcm_family; 84 tc 193 rtnl_tc_msg_build(struct rtnl_tc *tc, int type, int flags, struct nl_msg **result) argument 265 rtnl_tc_set_ifindex(struct rtnl_tc *tc, int ifindex) argument 280 rtnl_tc_get_ifindex(struct rtnl_tc *tc) argument 297 rtnl_tc_set_link(struct rtnl_tc *tc, struct rtnl_link *link) argument 328 rtnl_tc_get_link(struct rtnl_tc *tc) argument 351 rtnl_tc_set_mtu(struct rtnl_tc *tc, uint32_t mtu) argument 366 rtnl_tc_get_mtu(struct rtnl_tc *tc) argument 386 rtnl_tc_set_mpu(struct rtnl_tc *tc, uint32_t mpu) argument 398 rtnl_tc_get_mpu(struct rtnl_tc *tc) argument 415 rtnl_tc_set_overhead(struct rtnl_tc *tc, uint32_t overhead) argument 427 rtnl_tc_get_overhead(struct rtnl_tc *tc) argument 443 rtnl_tc_set_linktype(struct rtnl_tc *tc, uint32_t type) argument 458 rtnl_tc_get_linktype(struct rtnl_tc *tc) argument 473 rtnl_tc_set_handle(struct rtnl_tc *tc, uint32_t id) argument 483 rtnl_tc_get_handle(struct rtnl_tc *tc) argument 494 rtnl_tc_set_parent(struct rtnl_tc *tc, uint32_t parent) argument 504 rtnl_tc_get_parent(struct rtnl_tc *tc) argument 516 rtnl_tc_set_kind(struct rtnl_tc *tc, const char *kind) argument 536 rtnl_tc_get_kind(struct rtnl_tc *tc) argument 551 rtnl_tc_get_stat(struct rtnl_tc *tc, enum rtnl_tc_stat id) argument 691 rtnl_tc_build_rate_table(struct rtnl_tc *tc, struct rtnl_ratespec *spec, uint32_t *dst) argument 735 struct rtnl_tc *tc = TC_CAST(obj); local 795 tc_dump(struct rtnl_tc *tc, enum nl_dump_type type, struct nl_dump_params *p) argument 818 struct rtnl_tc *tc = TC_CAST(obj); local 852 struct rtnl_tc *tc = TC_CAST(obj); local 874 struct rtnl_tc *tc = TC_CAST(obj); local 946 rtnl_tc_get_ops(struct rtnl_tc *tc) argument 1006 rtnl_tc_data(struct rtnl_tc *tc) argument 1043 rtnl_tc_data_check(struct rtnl_tc *tc, struct rtnl_tc_ops *ops) argument [all...] |
/external/ltp/testcases/kernel/syscalls/socket/ |
H A D | socket01.c | 57 struct test_case_t *tc = &tdat[n]; local 59 TEST(fd = socket(tc->domain, tc->type, tc->proto)); 66 if (TEST_RETURN != tc->retval) { 68 tc->desc, fd, tc->retval); 72 if (TEST_ERRNO != tc->experrno) { 74 tst_strerrno(tc->experrno), tc [all...] |
/external/ltp/testcases/kernel/syscalls/mq_timedsend/ |
H A D | mq_timedsend01.c | 141 const struct test_case *tc = &tcase[i]; local 148 if (tc->signal) 149 pid = set_sig(tc->rq); 151 if (tc->timeout) 152 set_timeout(tc->rq); 154 if (tc->send) { 156 send_msg(*tc->fd, tc->len, tc->prio); 159 TEST(mq_timedsend(*tc [all...] |
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_texture.c | 53 /* Compute sc = +/-scale and tc = +/-scale. 59 * would be to clamp (sc, tc) against +/- 1.0-1.0/mipsize, in the shader. 65 const float tc = (2 * in_st[1] - 1) * scale; local 70 ry = -tc; 75 ry = -tc; 81 rz = tc; 86 rz = -tc; 90 ry = -tc; 95 ry = -tc;
|