Home
last modified time | relevance | path

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

12345678910>>...110

/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/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()
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/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/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/src/
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 …]
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 …]
/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 …]
Dcil_binary.c246 int rc = SEPOL_ERR; in cil_common_to_policydb() local
255 rc = symtab_insert(pdb, SYM_COMMONS, key, sepol_common, SCOPE_DECL, 0, &value); in cil_common_to_policydb()
256 if (rc != SEPOL_OK) { in cil_common_to_policydb()
262 rc = symtab_init(&sepol_common->permissions, PERM_SYMTAB_SIZE); in cil_common_to_policydb()
263 if (rc != SEPOL_OK) { in cil_common_to_policydb()
273 rc = hashtab_insert(sepol_common->permissions.table, key, sepol_perm); in cil_common_to_policydb()
274 if (rc != SEPOL_OK) { in cil_common_to_policydb()
289 return rc; in cil_common_to_policydb()
294 int rc = SEPOL_ERR; in cil_classorder_to_policydb() local
308 rc = symtab_insert(pdb, SYM_CLASSES, key, sepol_class, SCOPE_DECL, 0, &value); in cil_classorder_to_policydb()
[all …]
Dandroid.c76 int rc = SEPOL_ERR; in __extract_attributees_helper() local
89 rc = SEPOL_ERR; in __extract_attributees_helper()
105 rc = hashtab_insert(args->vers_map, (hashtab_key_t) key, (hashtab_datum_t) datum); in __extract_attributees_helper()
106 if (rc != SEPOL_OK) { in __extract_attributees_helper()
132 return rc; in __extract_attributees_helper()
145 int rc = SEPOL_ERR; in cil_extract_attributees() local
150 rc = cil_tree_walk(db->ast->root, __extract_attributees_helper, NULL, NULL, &extra_args); in cil_extract_attributees()
151 if (rc != SEPOL_OK) { in cil_extract_attributees()
157 return rc; in cil_extract_attributees()
162 enum plat_flavor rc; in __cil_get_plat_flavor() 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/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/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 …]
Dfutex.c60 int *uaddr2, unsigned long val3, int rc, const char *func, int line) in futex_error() argument
64 (unsigned) val3, rc); in futex_error()
71 rc = syscall(__NR_futex, (uaddr), (op), (val), (timeout), \
74 if ((rc == -1) && (errno == EPERM)) \
76 if (enosys && (rc == -1) && (errno == ENOSYS)) \
81 (val3), rc, __func__, __LINE__); \
115 int rc; in invalid_op() local
121 args[3], (rc == -1) && (errno == ENOSYS)); in invalid_op()
175 int rc; in main() local
198 (rc == -1) && (errno == EFAULT)); in main()
[all …]
Dsetgroups.c76 long rc = syscall(SYSCALL_NR, 0, 0); in main() local
77 printf("%s(0, NULL) = %s\n", SYSCALL_NAME, sprintrc(rc)); in main()
79 rc = syscall(SYSCALL_NR, F8ILL_KULONG_MASK, 0); in main()
80 printf("%s(0, NULL) = %s\n", SYSCALL_NAME, sprintrc(rc)); in main()
82 rc = syscall(SYSCALL_NR, 1, 0); in main()
83 printf("%s(1, NULL) = %s\n", SYSCALL_NAME, sprintrc(rc)); in main()
85 rc = syscall(SYSCALL_NR, (long) 0xffffffff00000001ULL, 0); in main()
86 printf("%s(1, NULL) = %s\n", SYSCALL_NAME, sprintrc(rc)); in main()
88 rc = syscall(SYSCALL_NR, -1U, 0); in main()
89 printf("%s(%d, NULL) = %s\n", SYSCALL_NAME, -1, sprintrc(rc)); 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.c60 int *uaddr2, unsigned long val3, int rc, const char *func, int line) in futex_error() argument
64 (unsigned) val3, rc); in futex_error()
71 rc = syscall(__NR_futex, (uaddr), (op), (val), (timeout), \
74 if ((rc == -1) && (errno == EPERM)) \
76 if (enosys && (rc == -1) && (errno == ENOSYS)) \
81 (val3), rc, __func__, __LINE__); \
115 int rc; in invalid_op() local
121 args[3], (rc == -1) && (errno == ENOSYS)); in invalid_op()
175 int rc; in main() local
198 (rc == -1) && (errno == EFAULT)); 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 …]
Dfutex.c60 int *uaddr2, unsigned long val3, int rc, const char *func, int line) in futex_error() argument
64 (unsigned) val3, rc); in futex_error()
71 rc = syscall(__NR_futex, (uaddr), (op), (val), (timeout), \
74 if ((rc == -1) && (errno == EPERM)) \
76 if (enosys && (rc == -1) && (errno == ENOSYS)) \
81 (val3), rc, __func__, __LINE__); \
115 int rc; in invalid_op() local
121 args[3], (rc == -1) && (errno == ENOSYS)); in invalid_op()
175 int rc; in main() local
198 (rc == -1) && (errno == EFAULT)); in main()
[all …]
/external/syslinux/gpxe/src/arch/i386/interface/pxe/
Dpxe_tftp.c58 int rc; member
71 static void pxe_tftp_close ( int rc ) { in pxe_tftp_close() argument
73 xfer_close ( &pxe_tftp.xfer, rc ); in pxe_tftp_close()
74 pxe_tftp.rc = rc; in pxe_tftp_close()
89 int rc = 0; in pxe_tftp_xfer_deliver_iob() local
102 rc = -ENOBUFS; in pxe_tftp_xfer_deliver_iob()
108 rc = -ENOBUFS; in pxe_tftp_xfer_deliver_iob()
123 if ( rc != 0 ) in pxe_tftp_xfer_deliver_iob()
124 pxe_tftp_close ( rc ); in pxe_tftp_xfer_deliver_iob()
127 return rc; in pxe_tftp_xfer_deliver_iob()
[all …]

12345678910>>...110