Home
last modified time | relevance | path

Searched refs:rc (Results 1 – 25 of 3210) 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/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
215 VPXMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in vp9_rc_clamp_pframe_target_size()
217 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size()
226 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in vp9_rc_clamp_pframe_target_size()
230 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; in vp9_rc_clamp_pframe_target_size()
237 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_iframe_target_size() local
241 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; in vp9_rc_clamp_iframe_target_size()
244 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in vp9_rc_clamp_iframe_target_size()
253 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level_preencode() local
254 rc->bits_off_target += rc->avg_frame_bandwidth; in update_buffer_level_preencode()
[all …]
/external/u-boot/drivers/power/
Daxp209.c34 int rc; in axp_set_dcdc2() local
41 rc = pmic_bus_setbits(AXP209_OUTPUT_CTRL, AXP209_OUTPUT_CTRL_DCDC2); in axp_set_dcdc2()
42 if (rc) in axp_set_dcdc2()
43 return rc; in axp_set_dcdc2()
48 while ((rc = pmic_bus_read(AXP209_DCDC2_VOLTAGE, &current)) == 0 && in axp_set_dcdc2()
55 rc = pmic_bus_write(AXP209_DCDC2_VOLTAGE, current); in axp_set_dcdc2()
56 if (rc) in axp_set_dcdc2()
60 return rc; in axp_set_dcdc2()
66 int rc; in axp_set_dcdc3() local
72 rc = pmic_bus_write(AXP209_DCDC3_VOLTAGE, cfg); in axp_set_dcdc3()
[all …]
/external/libaom/libaom/av1/encoder/
Dratectrl.c182 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_pframe_target_size() local
185 AOMMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in av1_rc_clamp_pframe_target_size()
199 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in av1_rc_clamp_pframe_target_size()
202 rc->avg_frame_bandwidth * oxcf->rc_max_inter_bitrate_pct / 100; in av1_rc_clamp_pframe_target_size()
210 const RATE_CONTROL *rc = &cpi->rc; in av1_rc_clamp_iframe_target_size() local
214 rc->avg_frame_bandwidth * oxcf->rc_max_intra_bitrate_pct / 100; in av1_rc_clamp_iframe_target_size()
217 if (target > rc->max_frame_bandwidth) target = rc->max_frame_bandwidth; in av1_rc_clamp_iframe_target_size()
230 RATE_CONTROL *lrc = &lc->rc; in update_layer_buffer_level()
242 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level() local
246 rc->bits_off_target -= encoded_frame_size; in update_buffer_level()
[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/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/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/angle/third_party/spirv-tools/src/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/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/linux-kselftest/tools/testing/selftests/rtc/
Drtctest.c40 int rc; in TEST_F() local
44 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F()
45 ASSERT_NE(-1, rc); in TEST_F()
54 int i, rc, irq = 0; variable
58 rc = ioctl(self->fd, RTC_UIE_ON, 0);
59 if (rc == -1) {
67 rc = read(self->fd, &data, sizeof(data));
68 ASSERT_NE(-1, rc);
74 rc = ioctl(self->fd, RTC_UIE_OFF, 0);
75 ASSERT_NE(-1, rc);
[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()
150 return rc; in __cil_resolve_perms()
155 int rc = SEPOL_ERR; in cil_resolve_classperms() local
160 rc = cil_resolve_name(current, cp->class_str, CIL_SYM_CLASSES, extra_args, &datum); in cil_resolve_classperms()
[all …]
/external/selinux/libsepol/src/
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()
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()
232 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
233 if (rc != 0) { in constraint_expr_to_str()
[all …]
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()
128 int rc; in constraint_expr_to_str() local
132 rc = strs_stack_init(&stack); in constraint_expr_to_str()
133 if (rc != 0) { in constraint_expr_to_str()
236 rc = strs_stack_push(stack, new_val); in constraint_expr_to_str()
237 if (rc != 0) { in constraint_expr_to_str()
[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/u-boot/arch/arm/mach-omap2/am33xx/
Dclk_synthesizer.c27 int rc; in clk_synthesizer_reg_read() local
34 rc = i2c_write(CLK_SYNTHESIZER_I2C_ADDR, addr, 1, buf, 1); in clk_synthesizer_reg_read()
35 if (rc) in clk_synthesizer_reg_read()
42 rc = dm_i2c_reg_write(dev, addr, *buf); in clk_synthesizer_reg_read()
43 if (rc) in clk_synthesizer_reg_read()
47 rc = dm_i2c_reg_read(dev, addr); in clk_synthesizer_reg_read()
48 if (rc < 0) in clk_synthesizer_reg_read()
49 return rc; in clk_synthesizer_reg_read()
51 *buf = (u8)rc; in clk_synthesizer_reg_read()
69 int rc = 0; in clk_synthesizer_reg_write() local
[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 …]
/external/adhd/cras/src/tests/
Drstream_unittest.cc24 int rc; in SetUp() local
43 rc = socketpair(AF_UNIX, SOCK_STREAM, 0, sock); in SetUp()
44 ASSERT_EQ(0, rc); in SetUp()
63 int rc; in stub_client_reply() local
71 rc = write(client_fd_, &aud_msg, sizeof(aud_msg)); in stub_client_reply()
72 EXPECT_EQ(sizeof(aud_msg), rc); in stub_client_reply()
83 int rc; in TEST_F() local
86 rc = cras_rstream_create(&config_, &s); in TEST_F()
87 EXPECT_NE(0, rc); in TEST_F()
92 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 …]

12345678910>>...129