Home
last modified time | relevance | path

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

12345678910>>...101

/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/libvpx/libvpx/vp9/encoder/
Dvp9_ratectrl.c216 const RATE_CONTROL *rc = &cpi->rc; in vp9_rc_clamp_pframe_target_size() local
219 VPXMAX(rc->min_frame_bandwidth, rc->avg_frame_bandwidth >> 5); in vp9_rc_clamp_pframe_target_size()
221 if (cpi->refresh_golden_frame && rc->is_src_frame_alt_ref) { in vp9_rc_clamp_pframe_target_size()
229 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()
259 RATE_CONTROL *lrc = &lc->rc; in update_layer_buffer_level()
274 RATE_CONTROL *const rc = &cpi->rc; in update_buffer_level() local
[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/ltp/testcases/kernel/fs/dmapi/
Dright.c57 int rc; in main() local
68 if ((rc = dm_init_service(&varstr)) != 0) { in main()
71 rc, errno); in main()
73 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
77 rc, errno); in main()
80 if ((rc = in main()
84 "dm_set_disp failed! (rc = %d, errno = %d)\n", rc, in main()
88 } else if ((rc = pthread_create(&tid, NULL, Thread, NULL)) != 0) { in main()
91 rc, errno); in main()
94 } else if ((rc = dmimpl_mount(&mountPt, &deviceNm)) == -1) { in main()
[all …]
Dhandle.c69 int rc; in main() local
87 if ((rc = dm_init_service(&varstr)) != 0) { in main()
90 rc, errno); in main()
92 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
96 rc, errno); in main()
99 if (((rc = dm_path_to_handle(mountPt, &mtpthanp, &mtpthlen)) != 0) in main()
101 ((rc = in main()
106 rc, errno); in main()
150 rc = dm_path_to_handle((char *)INVALID_ADDR, &hanp, &hlen); in main()
151 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EFAULT); in main()
[all …]
Dsession.c56 int rc; in main() local
62 if ((rc = dm_init_service(&varstr)) != 0) { in main()
65 rc, errno); in main()
69 rc = dm_getall_sessions(0, NULL, &nexist); in main()
71 if (rc == -1 && errno == E2BIG) { in main()
78 if ((rc = in main()
81 for (rc = 0, i = 0; i < nexist; i++) { in main()
85 rc |= in main()
89 if (rc == -1) { in main()
124 rc = dm_create_session(INVALID_ADDR, szSessionInfo, &newsid); in main()
[all …]
Devent.c108 int rc; in main() local
119 if ((rc = dm_init_service(&varstr)) != 0) { in main()
122 rc, errno); in main()
124 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
128 rc, errno); in main()
148 rc = dm_get_events(INVALID_ADDR, 0, 0, sizeof(buf), buf, &rlen); in main()
149 DMVAR_ENDFAILEXP(szFuncName, -1, rc, EINVAL); in main()
163 rc = pthread_create(&tid, NULL, Thread, in main()
165 if (rc == -1) { in main()
186 rc = pthread_create(&tid, NULL, Thread, in main()
[all …]
Dhole.c67 int rc; in main() local
74 if ((rc = dm_init_service(&varstr)) != 0) { in main()
77 rc, errno); in main()
79 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
83 rc, errno); in main()
94 rc = -1; in main()
99 rc = -1; in main()
101 if (rc == 0) { in main()
102 rc = close(fd); in main()
104 if (rc == -1) { in main()
[all …]
Ddisp.c61 int rc; in main() local
75 if ((rc = dm_init_service(&varstr)) != 0) { in main()
78 rc, errno); in main()
80 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
84 rc, errno); in main()
87 if ((rc = in main()
91 "dm_set_disp failed! (rc = %d, errno = %d)\n", rc, in main()
95 } else if ((rc = pthread_create(&tid, NULL, Thread, NULL)) != 0) { in main()
98 rc, errno); in main()
101 } else if ((rc = dmimpl_mount(&mountPt, &deviceNm)) == -1) { in main()
[all …]
Dattr.c191 int rc; in main() local
198 if ((rc = dm_init_service(&varstr)) != 0) { in main()
201 rc, errno); in main()
203 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
207 rc, errno); in main()
220 rc = -1; in main()
225 rc = -1; in main()
227 if (rc == 0) { in main()
228 rc = close(fd); in main()
230 if (rc == -1) { in main()
[all …]
Dobjref.c53 int rc; in main() local
64 if ((rc = dm_init_service(&varstr)) != 0) { in main()
67 rc, errno); in main()
69 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
73 rc, errno); in main()
76 if ((rc = in main()
80 "dm_set_disp failed! (rc = %d, errno = %d)\n", rc, in main()
84 } else if ((rc = pthread_create(&tid, NULL, Thread, NULL)) != 0) { in main()
87 rc, errno); in main()
90 } else if ((rc = dmimpl_mount(&mountPt, &deviceNm)) == -1) { in main()
[all …]
Devent_sd.c75 int rc; in main() local
87 if ((rc = dm_init_service(&varstr)) != 0) { in main()
90 rc, errno); in main()
92 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
96 rc, errno); in main()
99 if ((rc = in main()
103 "dm_set_disp failed! (rc = %d, errno = %d)\n", rc, in main()
107 } else if ((rc = pthread_create(&tid, NULL, Thread, NULL)) != 0) { in main()
110 rc, errno); in main()
113 } else if ((rc = dmimpl_mount(&mountPt, &deviceNm)) == -1) { in main()
[all …]
Dmount.c56 int rc; in main() local
67 if ((rc = dm_init_service(&varstr)) != 0) { in main()
70 rc, errno); in main()
72 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
76 rc, errno); in main()
79 if ((rc = in main()
83 "dm_set_disp failed! (rc = %d, errno = %d)\n", rc, in main()
87 } else if ((rc = pthread_create(&tid, NULL, Thread, NULL)) != 0) { in main()
90 rc, errno); in main()
93 } else if ((rc = dmimpl_mount(&mountPt, &deviceNm)) == -1) { in main()
[all …]
Dpmr_post.c72 int rc; in main() local
84 if ((rc = dm_init_service(&varstr)) != 0) { in main()
87 rc, errno); in main()
89 } else if ((rc = dm_create_session(DM_NO_SESSION, szSessionInfo, &sid)) in main()
93 rc, errno); in main()
96 if ((rc = in main()
100 "dm_set_disp failed! (rc = %d, errno = %d)\n", rc, in main()
104 } else if ((rc = pthread_create(&tid, NULL, Thread, NULL)) != 0) { in main()
107 rc, errno); in main()
110 } else if ((rc = dmimpl_mount(&mountPt, &deviceNm)) == -1) { in main()
[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/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 …]
/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/selinux/libsepol/src/
Dkernel_to_cil.c34 int rc; in cond_expr_to_str() local
36 rc = stack_init(&stack); in cond_expr_to_str()
37 if (rc != 0) { in cond_expr_to_str()
89 rc = stack_push(stack, new_val); in cond_expr_to_str()
90 if (rc != 0) { in cond_expr_to_str()
123 int rc; in constraint_expr_to_str() local
127 rc = stack_init(&stack); in constraint_expr_to_str()
128 if (rc != 0) { in constraint_expr_to_str()
231 rc = stack_push(stack, new_val); in constraint_expr_to_str()
232 if (rc != 0) { in constraint_expr_to_str()
[all …]
Dkernel_to_conf.c33 int rc; in cond_expr_to_str() local
35 rc = stack_init(&stack); in cond_expr_to_str()
36 if (rc != 0) { in cond_expr_to_str()
87 rc = stack_push(stack, new_val); in cond_expr_to_str()
88 if (rc != 0) { in cond_expr_to_str()
121 int rc; in constraint_expr_to_str() local
125 rc = stack_init(&stack); in constraint_expr_to_str()
126 if (rc != 0) { in constraint_expr_to_str()
227 rc = stack_push(stack, new_val); in constraint_expr_to_str()
228 if (rc != 0) { in constraint_expr_to_str()
[all …]
/external/strace/tests-m32/
Dxattr.c50 long rc; in main() local
53 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
55 sprintrc(rc)); in main()
57 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
59 sprintrc(rc)); in main()
61 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
63 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
65 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
67 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
69 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]
/external/strace/tests/
Dxattr.c50 long rc; in main() local
53 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
55 sprintrc(rc)); in main()
57 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
59 sprintrc(rc)); in main()
61 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
63 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
65 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
67 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
69 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]
/external/strace/tests-mx32/
Dxattr.c50 long rc; in main() local
53 rc = fsetxattr(-1, 0, 0, 0, XATTR_CREATE); in main()
55 sprintrc(rc)); in main()
57 rc = fsetxattr(-1, 0, z_value, 0, XATTR_CREATE); in main()
59 sprintrc(rc)); in main()
61 rc = fsetxattr(-1, name, big, XATTR_SIZE_MAX + 1, XATTR_CREATE); in main()
63 name, big, XATTR_SIZE_MAX + 1, sprintrc(rc)); in main()
65 rc = fsetxattr(-1, name, value, sizeof(c_value), XATTR_CREATE); in main()
67 name, value, (unsigned) sizeof(c_value), sprintrc(rc)); in main()
69 rc = fsetxattr(-1, name, z_value, sizeof(c_value), XATTR_REPLACE); in main()
[all …]

12345678910>>...101