Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 3205) sorted by relevance

12345678910>>...129

/external/libxml2/doc/examples/
DtestWriter.c71 int rc; in testXmlwriterFilename() local
85 rc = xmlTextWriterStartDocument(writer, NULL, MY_ENCODING, NULL); in testXmlwriterFilename()
86 if (rc < 0) { in testXmlwriterFilename()
94 rc = xmlTextWriterStartElement(writer, BAD_CAST "EXAMPLE"); in testXmlwriterFilename()
95 if (rc < 0) { in testXmlwriterFilename()
107 rc = xmlTextWriterWriteComment(writer, tmp); in testXmlwriterFilename()
108 if (rc < 0) { in testXmlwriterFilename()
116 rc = xmlTextWriterStartElement(writer, BAD_CAST "ORDER"); in testXmlwriterFilename()
117 if (rc < 0) { in testXmlwriterFilename()
124 rc = xmlTextWriterWriteAttribute(writer, BAD_CAST "version", in testXmlwriterFilename()
[all …]
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_attr_setschedpolicy/
D2-1.c47 #define FAIL_AND_EXIT(f, rc) { \ argument
48 printf("Failed: function: %s status: %s(%u)\n", f, strerror(rc), rc); \
56 int rc; in thread_func() local
58 rc = pthread_getschedparam(pthread_self(), &policy, &sp); in thread_func()
59 if (rc) in thread_func()
60 FAIL_AND_EXIT("pthread_getschedparam()", rc); in thread_func()
62 rc = pthread_mutex_lock(&c_mutex); in thread_func()
63 if (rc) in thread_func()
64 FAIL_AND_EXIT("pthread_mutex_lock()", rc); in thread_func()
66 rc = pthread_cond_signal(&cond); in thread_func()
[all …]
/external/libaom/libaom/av1/encoder/
Dratectrl.c176 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_pframe_target_size() local
179 AOMMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in av1_rc_clamp_pframe_target_size()
193 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in av1_rc_clamp_pframe_target_size()
196 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; in av1_rc_clamp_pframe_target_size()
204 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_iframe_target_size() local
208 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; in av1_rc_clamp_iframe_target_size()
211 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in av1_rc_clamp_iframe_target_size()
218 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level() local
222 rc->bits_off_target -= encoded_frame_size; in update_buffer_level()
224 rc->bits_off_target += rc->avg_frame_bandwidth - encoded_frame_size; in update_buffer_level()
[all …]
/external/ltp/testcases/kernel/controllers/freezer/
Dlibcgroup_freezer91 local rc=0
94 rc=$?
100 result=${result:-$rc}
106 rc=$?
107 if [ $rc -ne 0 ]; then
108 result=${result:-$rc}
111 return $rc
116 rc=$?
117 if [ $rc -ne 0 ]; then
118 result=${result:-$rc}
[all …]
/external/libvpx/libvpx/vp9/encoder/
Dvp9_ratectrl.c211 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_pframe_target_size() local
216 VPXMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in vp9_rc_clamp_pframe_target_size()
218 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size()
228 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in vp9_rc_clamp_pframe_target_size()
232 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; in vp9_rc_clamp_pframe_target_size()
239 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_iframe_target_size() local
243 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size()
246 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in vp9_rc_clamp_iframe_target_size()
252 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level_preencode() local
253 rc->bits_off_target += rc->avg_frame_bandwidth; in update_buffer_level_preencode()
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dparse_number_test.cpp286 EncodeNumberStatus rc = EncodeNumberStatus::kSuccess; in TEST() local
290 rc = ParseAndEncodeIntegerNumber(nullptr, type, AssertEmitFunc, &err_msg); in TEST()
291 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
293 rc = ParseAndEncodeIntegerNumber("", type, AssertEmitFunc, &err_msg); in TEST()
294 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
296 rc = ParseAndEncodeIntegerNumber("=", type, AssertEmitFunc, &err_msg); in TEST()
297 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
299 rc = ParseAndEncodeIntegerNumber("-", type, AssertEmitFunc, &err_msg); in TEST()
300 EXPECT_EQ(EncodeNumberStatus::kInvalidText, rc); in TEST()
302 rc = ParseAndEncodeIntegerNumber("0=", type, AssertEmitFunc, &err_msg); in TEST()
[all …]
/external/vboot_reference/tests/bitmaps/
DTestBmpBlock.py26 rc, out, err = runprog(prog)
27 self.assertNotEqual(0, rc)
33 rc, out, err = runprog(prog, '-c', 'case_nobmp.yaml', 'FOO')
34 self.assertNotEqual(0, rc)
39 rc, out, err = runprog(prog, '-c', 'case_badbmp.yaml', 'FOO')
40 self.assertNotEqual(0, rc)
45 rc, out, err = runprog(prog, '-z', '99', '-c', 'case_simple.yaml', 'FOO')
46 self.assertNotEqual(0, rc)
53 rc, out, err = runprog('/bin/rm', '-rf', './FOO_DIR', 'FOO')
54 self.assertEqual(0, rc)
[all …]
/external/rmi4utils/rmi4update/
Drmi4update.cpp92 int rc; in UpdateFirmware() local
95 rc = FindUpdateFunctions(); in UpdateFirmware()
96 if (rc != UPDATE_SUCCESS) in UpdateFirmware()
97 return rc; in UpdateFirmware()
99 rc = m_device.QueryBasicProperties(); in UpdateFirmware()
100 if (rc < 0) in UpdateFirmware()
107 rc = UPDATE_FAIL_FIRMWARE_IMAGE_IS_OLDER; in UpdateFirmware()
108 return rc; in UpdateFirmware()
115 rc = DisableNonessentialInterupts(); in UpdateFirmware()
116 if (rc != UPDATE_SUCCESS) in UpdateFirmware()
[all …]
/external/u-boot/drivers/power/
Daxp209.c24 int rc; in axp_set_dcdc2() local
31 rc = pmic_bus_setbits(AXP209_OUTPUT_CTRL, AXP209_OUTPUT_CTRL_DCDC2); in axp_set_dcdc2()
32 if (rc) in axp_set_dcdc2()
33 return rc; in axp_set_dcdc2()
38 while ((rc = pmic_bus_read(AXP209_DCDC2_VOLTAGE, &current)) == 0 && in axp_set_dcdc2()
45 rc = pmic_bus_write(AXP209_DCDC2_VOLTAGE, current); in axp_set_dcdc2()
46 if (rc) in axp_set_dcdc2()
50 return rc; in axp_set_dcdc2()
56 int rc; in axp_set_dcdc3() local
62 rc = pmic_bus_write(AXP209_DCDC3_VOLTAGE, cfg); in axp_set_dcdc3()
[all …]
/external/selinux/libsepol/src/
Dkernel_to_cil.c37 int rc; in cond_expr_to_str() local
39 rc = strs_stack_init(&stack); in cond_expr_to_str()
40 if (rc != 0) { in cond_expr_to_str()
92 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
93 if (rc != 0) { in cond_expr_to_str()
126 int rc; in constraint_expr_to_str() local
130 rc = strs_stack_init(&stack); in constraint_expr_to_str()
131 if (rc != 0) { in constraint_expr_to_str()
234 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
235 if (rc != 0) { in constraint_expr_to_str()
[all …]
Dkernel_to_conf.c36 int rc; in cond_expr_to_str() local
38 rc = strs_stack_init(&stack); in cond_expr_to_str()
39 if (rc != 0) { in cond_expr_to_str()
90 rc = strs_stack_push(stack, new_val); in cond_expr_to_str()
91 if (rc != 0) { in cond_expr_to_str()
124 int rc; in constraint_expr_to_str() local
128 rc = strs_stack_init(&stack); in constraint_expr_to_str()
129 if (rc != 0) { in constraint_expr_to_str()
230 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
231 if (rc != 0) { in constraint_expr_to_str()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_write_ast.c53 int rc = SEPOL_ERR; in __cil_unfill_expr_helper() local
60 rc = cil_unfill_expr((struct cil_list *)curr->data, &str, paren); in __cil_unfill_expr_helper()
61 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
70 rc = SEPOL_ERR; in __cil_unfill_expr_helper()
80 rc = SEPOL_ERR; in __cil_unfill_expr_helper()
137 rc = __cil_unfill_expr_helper(curr->next, next, &operand1, paren); in __cil_unfill_expr_helper()
138 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
145 rc = __cil_unfill_expr_helper(curr->next, next, &operand1, paren); in __cil_unfill_expr_helper()
146 if (rc != SEPOL_OK) in __cil_unfill_expr_helper()
150 rc = __cil_unfill_expr_helper(*next, next, &operand2, paren); in __cil_unfill_expr_helper()
[all …]
Dcil_resolve_ast.c111 int rc = SEPOL_ERR; in __cil_resolve_perms() local
119 rc = __cil_resolve_perms(class_symtab, common_symtab, curr->data, &sub_list, class_flavor); in __cil_resolve_perms()
120 if (rc != SEPOL_OK) { in __cil_resolve_perms()
127 rc = cil_symtab_get_datum(class_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
128 if (rc == SEPOL_ENOENT) { in __cil_resolve_perms()
130 rc = cil_symtab_get_datum(common_symtab, curr->data, &perm_datum); in __cil_resolve_perms()
133 if (rc != SEPOL_OK) { in __cil_resolve_perms()
154 return rc; in __cil_resolve_perms()
159 int rc = SEPOL_ERR; in cil_resolve_classperms() local
164 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
[all …]
Dcil_verify.c52 int rc = SEPOL_ERR; in __cil_verify_name() local
65 rc = SEPOL_ERR; in __cil_verify_name()
84 return rc; in __cil_verify_name()
89 int rc = SEPOL_ERR; in __cil_verify_syntax() local
150 return rc; in __cil_verify_syntax()
155 int rc; in cil_verify_expr_syntax() local
206 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_expr_syntax()
207 if (rc != SEPOL_OK) { in cil_verify_expr_syntax()
277 int rc; in cil_verify_constraint_expr_syntax() local
312 rc = __cil_verify_syntax(current, syntax, syntax_len); in cil_verify_constraint_expr_syntax()
[all …]
Dcil_post.c59 int rc; in cats_compare() local
68 rc = strcmp(DATUM(i->data)->fqn, DATUM(j->data)->fqn); in cats_compare()
69 if (!rc) return rc; in cats_compare()
77 int rc; in level_compare() local
84 rc = strcmp(DATUM(a->sens)->fqn, DATUM(b->sens)->fqn); in level_compare()
85 if (rc != 0) return rc; in level_compare()
95 int rc; in range_compare() local
102 rc = level_compare(a->low, b->low); in range_compare()
103 if (rc != 0) return rc; in range_compare()
113 int rc; in context_compare() local
[all …]
/external/mesa3d/src/mesa/drivers/dri/nouveau/
Dnv10_state_frag.c81 #define INIT_COMBINER(chan, ctx, rc, i) do { \ argument
84 (rc)->ctx = ctx; \
85 (rc)->unit = i; \
86 (rc)->premodulate = c->_NumArgs##chan == 4; \
87 (rc)->mode = c->Mode##chan; \
88 (rc)->source = c->Source##chan; \
89 (rc)->operand = c->Operand##chan; \
90 (rc)->logscale = c->ScaleShift##chan; \
91 (rc)->in = (rc)->out = 0; \
97 get_input_source(struct combiner_state *rc, int source) in get_input_source() argument
[all …]
Dnv04_state_frag.c65 #define INIT_COMBINER(chan, ctx, rc, i) do { \ argument
68 (rc)->ctx = ctx; \
69 (rc)->unit = i; \
70 (rc)->alpha = __INIT_COMBINER_ALPHA_##chan; \
71 (rc)->premodulate = c->_NumArgs##chan == 4; \
72 (rc)->mode = c->Mode##chan; \
73 (rc)->source = c->Source##chan; \
74 (rc)->operand = c->Operand##chan; \
75 (rc)->logscale = c->ScaleShift##chan; \
76 (rc)->hw = 0; \
[all …]
/external/adhd/cras/src/tests/
Drstream_unittest.cc24 int rc; in SetUp() local
41 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, sock); in SetUp()
42 ASSERT_EQ(0, rc); in SetUp()
61 int rc; in stub_client_reply() local
69 rc = write(client_fd_, &aud_msg, sizeof(aud_msg)); in stub_client_reply()
70 EXPECT_EQ(sizeof(aud_msg), rc); in stub_client_reply()
81 int rc; in TEST_F() local
84 rc = cras_rstream_create(&config_, &s); in TEST_F()
85 EXPECT_NE(0, rc); in TEST_F()
90 int rc; in TEST_F() local
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp180 #define rc(i) RegisterCell::ref(getCell(Reg[i], Inputs)) in evaluate() macro
202 return rc(N); in evaluate()
273 return rr0(rc(1), Outputs); in evaluate()
278 RegisterCell PC = eXTR(rc(1), 0, PW); in evaluate()
286 return rr0(eINS(RC, eXTR(rc(1), 0, W0), 0), Outputs); in evaluate()
299 RegisterCell CW = RegisterCell(W0).insert(rc(1), BT::BitMask(0, W1-1)); in evaluate()
300 RegisterCell RC = eADD(eSXT(CW, W1), rc(2)); in evaluate()
305 return rr0(eADD(rc(1), rc(2)), Outputs); in evaluate()
307 return rr0(eADD(rc(1), eIMM(im(2), W0)), Outputs); in evaluate()
309 RegisterCell RC = eADD(eIMM(im(1), W0), eASL(rc(2), im(3))); in evaluate()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/Hexagon/
DHexagonBitTracker.cpp246 #define rc(i) RegisterCell::ref(getCell(Reg[i], Inputs)) in evaluate() macro
268 return rc(N); in evaluate()
339 return rr0(rc(1), Outputs); in evaluate()
344 RegisterCell PC = eXTR(rc(1), 0, PW); in evaluate()
354 return rr0(eINS(RC, eXTR(rc(1), 0, PW), 0), Outputs); in evaluate()
367 RegisterCell CW = RegisterCell(W0).insert(rc(1), BT::BitMask(0, W1-1)); in evaluate()
368 RegisterCell RC = eADD(eSXT(CW, W1), rc(2)); in evaluate()
373 return rr0(eADD(rc(1), rc(2)), Outputs); in evaluate()
375 return rr0(eADD(rc(1), eIMM(im(2), W0)), Outputs); in evaluate()
377 RegisterCell RC = eADD(eIMM(im(1), W0), eASL(rc(2), im(3))); in evaluate()
[all …]
/external/strace/tests-mx32/
Dxattr.c51 long rc; in main() local
54 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
56 sprintrc(rc)); in main()
58 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
60 sprintrc(rc)); in main()
62 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
64 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
66 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
68 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
70 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]
/external/strace/tests-m32/
Dxattr.c51 long rc; in main() local
54 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
56 sprintrc(rc)); in main()
58 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
60 sprintrc(rc)); in main()
62 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
64 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
66 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
68 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
70 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]
/external/strace/tests/
Dxattr.c51 long rc; in main() local
54 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
56 sprintrc(rc)); in main()
58 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
60 sprintrc(rc)); in main()
62 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
64 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
66 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
68 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
70 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]
Dfutex.c59 int *uaddr2, unsigned long val3, int rc, const char *func, int line) in futex_error() argument
63 (unsigned) val3, rc); in futex_error()
70 rc = syscall(__NR_futex, (uaddr), (op), (val), (timeout), \
73 if ((rc == -1) && (errno == EPERM)) \
75 if (enosys && (rc == -1) && (errno == ENOSYS)) \
80 (val3), rc, __func__, __LINE__); \
114 int rc; in invalid_op() local
120 args[3], (rc == -1) && (errno == ENOSYS)); in invalid_op()
177 int rc; in main() local
200 (rc == -1) && (errno == EFAULT)); in main()
[all …]

12345678910>>...129