/external/ltp/testcases/kernel/syscalls/quotactl/ |
quotactl01.c | 187 struct tcase *tc = &tcases[n]; local 193 TEST(quotactl(tc->cmd, tst_device->dev, *tc->id, tc->addr)); 195 tst_res(TFAIL | TTERRNO, "quotactl failed to %s", tc->des); 199 if (memcmp(tc->res_data, tc->set_data, tc->sz)) { 200 tst_res(TFAIL, "quotactl failed to %s", tc->des); 201 tst_res_hexd(TINFO, tc->res_data, tc->sz, "retval: ") [all...] |
/external/mesa3d/src/gallium/drivers/ilo/shader/ |
toy_helpers.h | 132 tsrc_imm_mdesc(const struct toy_compiler *tc, 155 tsrc_imm_mdesc_sampler(const struct toy_compiler *tc, 171 if (ilo_dev_gen(tc->dev) >= ILO_GEN(7)) { 184 return tsrc_imm_mdesc(tc, eot, message_length, 189 tsrc_imm_mdesc_data_port(const struct toy_compiler *tc, 201 if (ilo_dev_gen(tc->dev) >= ILO_GEN(7)) { 220 return tsrc_imm_mdesc(tc, eot, message_length, 225 tsrc_imm_mdesc_data_port_scratch(const struct toy_compiler *tc, 238 assert(ilo_dev_gen(tc->dev) >= ILO_GEN(7)); 248 return tsrc_imm_mdesc(tc, eot, message_length [all...] |
toy_tgsi.c | 105 aos_simple(struct toy_compiler *tc, 129 inst = tc_add(tc); 193 aos_set_on_cond(struct toy_compiler *tc, 253 tc_MOV(tc, dst[0], zero); 254 tc_CMP(tc, tdst_null(), src[0], src[1], cond); 255 inst = tc_MOV(tc, dst[0], one); 260 aos_compare(struct toy_compiler *tc, 280 tc_CMP(tc, tdst_null(), src[0], zero, GEN6_COND_L); 281 inst = tc_SEL(tc, dst[0], src[1], src[2], GEN6_COND_NONE); 286 aos_set_sign(struct toy_compiler *tc, [all...] |
/prebuilts/go/darwin-x86/src/runtime/pprof/internal/profile/ |
proto_test.go | 15 for i, tc := range []testcase{ 32 source := &packedInts{tc.uint64s, tc.int64s} 33 if got, want := marshal(source), tc.encoded; !reflect.DeepEqual(got, want) { 38 if err := unmarshal(tc.encoded, dest); err != nil { 42 if got, want := dest.uint64s, tc.uint64s; !reflect.DeepEqual(got, want) { 45 if got, want := dest.int64s, tc.int64s; !reflect.DeepEqual(got, want) {
|
/prebuilts/go/linux-x86/src/runtime/pprof/internal/profile/ |
proto_test.go | 15 for i, tc := range []testcase{ 32 source := &packedInts{tc.uint64s, tc.int64s} 33 if got, want := marshal(source), tc.encoded; !reflect.DeepEqual(got, want) { 38 if err := unmarshal(tc.encoded, dest); err != nil { 42 if got, want := dest.uint64s, tc.uint64s; !reflect.DeepEqual(got, want) { 45 if got, want := dest.int64s, tc.int64s; !reflect.DeepEqual(got, want) {
|
/external/libnl/src/ |
nl-qdisc-delete.c | 13 #include <netlink/cli/tc.h> 71 struct rtnl_tc *tc; local 80 tc = (struct rtnl_tc *) qdisc; 114 nl_cli_tc_parse_dev(tc, link_cache, optarg); 118 nl_cli_tc_parse_parent(tc, optarg); 122 nl_cli_tc_parse_handle(tc, optarg, 0); 126 nl_cli_tc_parse_kind(tc, optarg);
|
/external/ltp/testcases/kernel/syscalls/preadv/ |
preadv02.c | 87 struct tcase *tc = &tcases[n]; local 89 TEST(preadv(*tc->fd, tc->name, tc->count, tc->offset)); 96 if (TEST_ERRNO == tc->exp_err) { 102 tst_strerrno(tc->exp_err));
|
/toolchain/binutils/binutils-2.27/gas/testsuite/gas/ppc/ |
test1xcoff32.s | 19 .tc ignored0[TC],dsym0 21 .tc ignored1[TC],dsym1 23 .tc ignored2[TC],usym0 25 .tc ignored3[TC],usym1 27 .tc ignored4[TC],esym [all...] |
/external/libhevc/common/ |
ihevc_deblk_edge_filter.c | 109 WORD32 beta, tc; local 124 /* based on BS, tc index is calcuated by adding 2 * ( bs - 1) to QP and tc_offset */ 131 tc = gai4_ihevc_tc_table[tc_indx]; 132 if(0 == tc) 162 && ABS(pu1_src[0] - pu1_src[-1]) < ((5 * tc + 1) >> 1)) 172 && ABS(pu1_src[0] - pu1_src[-1]) < ((5 * tc + 1) >> 1)) 181 if(tc <= 1) 205 pu1_src[0] - 2 * tc, 206 pu1_src[0] + 2 * tc); 210 pu1_src[1] - 2 * tc, 346 WORD32 beta, tc; local 727 WORD32 tc; local [all...] |
/external/ltp/testcases/kernel/syscalls/mq_open/ |
mq_open01.c | 233 struct test_case *tc = &tcase[i]; local 236 qname = tc->qname; 241 if (tc->setup) 242 tc->setup(); 244 TEST(fd = mq_open(qname, tc->oflag, S_IRWXU, tc->rq)); 246 if (fd > 0 && tc->rq) { 252 if (oldattr.mq_maxmsg != tc->rq->mq_maxmsg 253 || oldattr.mq_msgsize != tc->rq->mq_msgsize) { 257 tc->rq->mq_maxmsg, oldattr.mq_maxmsg, tc->rq->mq_msgsize [all...] |
/build/kati/ |
rule_parser_test.go | 23 for _, tc := range []struct { 191 assign, err := got.parse([]byte(tc.in), tc.tsv, tc.rhs) 192 if tc.err != "" { 194 t.Errorf(`r.parse(%q, %v)=_, <nil>, want _, %q`, tc.in, tc.rhs, tc.err) 197 if got, want := err.Error(), tc.err; got != want { 198 t.Errorf(`r.parse(%q, %v)=_, %s, want %s`, tc.in, tc.rhs, got, want [all...] |
/external/ltp/testcases/kernel/syscalls/ptrace/ |
ptrace06.c | 175 struct test_case_t *tc = &test_cases[i]; local 179 ptrace(tc->request, pid, (void *)tc->addr, 180 (void *)tc->data); 185 strptrace(tc->request), tc->addr, tc->data, 190 strptrace(tc->request), tc->addr, tc->data [all...] |
/external/libnl/lib/route/cls/ |
cgroup.c | 20 #include <netlink-private/tc.h> 24 #include <netlink-private/route/tc-api.h> 42 static void cgroup_free_data(struct rtnl_tc *tc, void *data) 52 static int cgroup_msg_parser(struct rtnl_tc *tc, void *data) 58 err = tca_parse(tb, TCA_CGROUP_MAX, tc, cgroup_policy); 78 static void cgroup_dump_line(struct rtnl_tc *tc, void *data, 92 static void cgroup_dump_details(struct rtnl_tc *tc, void *data, 111 static int cgroup_fill_msg(struct rtnl_tc *tc, void *data, 119 if (!(tc->ce_mask & TCA_ATTR_HANDLE))
|
/external/ltp/testcases/kernel/syscalls/ipc/shmat/ |
shmat01.c | 111 struct test_case_t *tc = &tcases[n]; local 113 addr = shmat(shm_id, *tc->shmaddr, tc->flag); 131 if (expected_addr(*tc->shmaddr, addr) != addr) { 134 addr, expected_addr(*tc->shmaddr, addr)); 140 do_child(addr, tc->exp_status == SIGSEGV); 144 if (expected_status(status, tc->exp_status)) 145 tst_res(TFAIL, "shmat() failed to attach %s", tc->desp); 147 tst_res(TPASS, "shmat() succeeded to attach %s", tc->desp);
|
/external/ltp/testcases/kernel/syscalls/setxattr/ |
setxattr01.c | 83 struct test_case tc[] = { variable in typeref:struct:test_case 137 TEST(setxattr(FNAME, tc[i].key, *tc[i].value, tc[i].size, tc[i].flags)); 142 if (!tc[i].exp_err) { 158 if (TEST_ERRNO != tc[i].exp_err) { 160 tst_strerrno(tc[i].exp_err)); 183 .tcnt = ARRAY_SIZE(tc),
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
hugeshmat02.c | 72 struct tcase *tc = &tcases[i]; local 74 addr = shmat(*(tc->shmid), tc->addr, 0); 80 if (errno == tc->error) { 86 "got", tc->error);
|
/external/ltp/testcases/kernel/syscalls/lgetxattr/ |
lgetxattr02.c | 61 struct test_case *tc = tcase + n; local 62 char buf[tc->size]; 64 TEST(lgetxattr(tc->path, SECURITY_KEY, buf, sizeof(buf))); 70 if (TEST_ERRNO != tc->exp_err) { 72 "expected %s", tst_strerrno(tc->exp_err));
|
/external/ltp/testcases/kernel/syscalls/request_key/ |
request_key02.c | 54 struct test_case *tc = tcases + n; local 56 TEST(request_key("keyring", tc->des, NULL, *tc->id)); 62 if (TEST_ERRNO == tc->exp_err) { 68 "expected %s", tst_strerrno(tc->exp_err));
|
/external/ltp/testcases/kernel/syscalls/umount/ |
umount02.c | 56 struct tcase *tc = &tcases[n]; local 58 TEST(umount(tc->mntpoint)); 65 if (tc->exp_errno != TEST_ERRNO) { 67 tst_strerrno(tc->exp_errno)); 72 tc->err_desc);
|
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/ |
io_ops.py | 23 from tensorflow.contrib.labeled_tensor.python.ops import _typecheck as tc 61 @tc.returns(tc.Dict(string_types, parsing_ops.FixedLenFeature)) 62 @tc.accepts(tc.Mapping(string_types, FixedLenFeature)) 79 @tc.returns(tc.Dict(string_types, core.LabeledTensor)) 80 @tc.accepts(core.LabeledTensorLike, tc.Mapping(string_types, FixedLenFeature), 81 tc.Optional(string_types), object [all...] |
/external/selinux/libsepol/cil/test/unit/ |
CuTest.c | 147 CuTest* tc = CU_ALLOC(CuTest); local 148 CuTestInit(tc, name, function); 149 return tc; 159 void CuTestRun(CuTest* tc) 162 tc->jumpBuf = &buf; 165 tc->ran = 1; 166 (tc->function)(tc); 168 tc->jumpBuf = 0; 171 static void CuFailInternal(CuTest* tc, const char* file, int line, CuString* string [all...] |
test_cil_copy_ast.c | 56 void test_cil_copy_list(CuTest *tc) { 71 CuAssertIntEquals(tc, rc, SEPOL_OK); 72 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); 73 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data); 74 CuAssertIntEquals(tc, copy_list->head->flavor, cil_l->head->flavor); 75 CuAssertIntEquals(tc, copy_list->head->next->flavor, cil_l->head->next->flavor); 78 void test_cil_copy_list_sublist(CuTest *tc) { 93 CuAssertIntEquals(tc, rc, SEPOL_OK); 94 CuAssertStrEquals(tc, copy_list->head->data, cil_l->head->data); 95 CuAssertStrEquals(tc, copy_list->head->next->data, cil_l->head->next->data) [all...] |
test_cil_list.c | 36 void test_cil_list_init(CuTest *tc) { 43 CuAssertPtrNotNull(tc, test_avrule->classpermset->permset->perms_list_str); 48 void test_cil_list_append_item(CuTest *tc) { 73 CuAssertIntEquals(tc, SEPOL_OK, rc); 76 void test_cil_list_append_item_append(CuTest *tc) { 108 CuAssertIntEquals(tc, SEPOL_OK, rc); 109 CuAssertIntEquals(tc, SEPOL_OK, rc2); 112 void test_cil_list_append_item_append_extra(CuTest *tc) { 149 CuAssertIntEquals(tc, SEPOL_OK, rc); 150 CuAssertIntEquals(tc, SEPOL_OK, rc2) [all...] |
/external/ltp/testcases/kernel/syscalls/renameat/ |
renameat01.c | 197 static void renameat_verify(const struct test_case_t *tc) 199 if (tc->exp_errno == EMLINK && max_subdirs == 0) { 204 TEST(renameat(*(tc->oldfdptr), tc->oldpath, 205 *(tc->newfdptr), tc->newpath)); 207 if (tc->exp_errno && TEST_RETURN != -1) { 212 if (tc->exp_errno == 0 && TEST_RETURN != 0) { 217 if (TEST_ERRNO == tc->exp_errno) { 223 "%d - %s", tc->exp_errno [all...] |
/external/libnl/lib/cli/cls/ |
cgroup.c | 13 #include <netlink/cli/tc.h> 30 static void parse_argv(struct rtnl_tc *tc, int argc, char **argv) 32 struct rtnl_cls *cls = (struct rtnl_cls *) tc;
|