Home
last modified time | relevance | path

Searched refs:err (Results 1 – 25 of 41) sorted by relevance

12

/lib/
Dtest_overflow.c227 err = 1; \
233 err = 1; \
240 int err = 0; \
248 return err; \
252 int err = 0; \
258 err |= do_test_ ## t(&t ## _tests[i]); \
259 return err; \
275 int err = 0; in test_overflow_calculation() local
277 err |= test_u8_overflow(); in test_overflow_calculation()
278 err |= test_s8_overflow(); in test_overflow_calculation()
[all …]
Dtest_rhashtable.c118 int err, retries = -1, enomem_retries = 0; in insert_retry() local
123 err = rhashtable_insert_fast(ht, &obj->node, params); in insert_retry()
124 if (err == -ENOMEM && enomem_retry) { in insert_retry()
126 err = -EBUSY; in insert_retry()
128 } while (err == -EBUSY); in insert_retry()
134 return err ? : retries; in insert_retry()
212 int err; in test_rhashtable() local
226 err = insert_retry(ht, obj, test_rht_params); in test_rhashtable()
227 if (err > 0) in test_rhashtable()
228 insert_retries += err; in test_rhashtable()
[all …]
Dtest_objagg.c52 int err; in world_obj_get() local
65 err = -EINVAL; in world_obj_get()
73 return ERR_PTR(err); in world_obj_get()
157 int err; in test_nodelta_obj_get() local
171 err = -EINVAL; in test_nodelta_obj_get()
178 err = -EINVAL; in test_nodelta_obj_get()
185 err = -EINVAL; in test_nodelta_obj_get()
192 err = -EINVAL; in test_nodelta_obj_get()
201 return err; in test_nodelta_obj_get()
229 int err = 0; in check_stats_zero() local
[all …]
Ddigsig.c71 int err = -EINVAL; in digsig_verify_rsa() local
89 err = -EKEYREVOKED; in digsig_verify_rsa()
114 err = PTR_ERR(pkey[i]); in digsig_verify_rsa()
115 goto err; in digsig_verify_rsa()
124 err = -EINVAL; in digsig_verify_rsa()
125 goto err; in digsig_verify_rsa()
128 err = -ENOMEM; in digsig_verify_rsa()
132 goto err; in digsig_verify_rsa()
137 err = PTR_ERR(in); in digsig_verify_rsa()
138 goto err; in digsig_verify_rsa()
[all …]
Derrseq.c58 errseq_t errseq_set(errseq_t *eseq, int err) in errseq_set() argument
73 if (WARN(unlikely(err == 0 || (unsigned int)-err > MAX_ERRNO), in errseq_set()
74 "err = %d\n", err)) in errseq_set()
81 new = (old & ~(MAX_ERRNO|ERRSEQ_SEEN)) | -err; in errseq_set()
176 int err = 0; in errseq_check_and_advance() local
202 err = -(new & MAX_ERRNO); in errseq_check_and_advance()
204 return err; in errseq_check_and_advance()
Dobjagg.c192 int err; in objagg_obj_parent_lookup_assign() local
200 err = objagg_obj_parent_assign(objagg, objagg_obj, in objagg_obj_parent_lookup_assign()
202 if (!err) in objagg_obj_parent_lookup_assign()
265 int err; in objagg_obj_root_create() local
267 err = objagg_obj_root_id_alloc(objagg, objagg_obj, hnode); in objagg_obj_root_create()
268 if (err) in objagg_obj_root_create()
269 return err; in objagg_obj_root_create()
274 err = PTR_ERR(objagg_obj->root_priv); in objagg_obj_root_create()
282 return err; in objagg_obj_root_create()
301 int err; in objagg_obj_init_with_hints() local
[all …]
Dtextsearch.c145 int err = -EEXIST; in textsearch_register() local
159 err = 0; in textsearch_register()
162 return err; in textsearch_register()
180 int err = 0; in textsearch_unregister() local
191 err = -ENOENT; in textsearch_unregister()
194 return err; in textsearch_unregister()
266 int err = -ENOENT; in textsearch_prepare() local
291 err = PTR_ERR(conf); in textsearch_prepare()
302 return ERR_PTR(err); in textsearch_prepare()
Dtest_parman.c220 int err; in test_parman_create() local
225 err = test_parman_resize(test_parman, TEST_PARMAN_BASE_COUNT); in test_parman_create()
226 if (err) in test_parman_create()
230 err = -ENOMEM; in test_parman_create()
243 return ERR_PTR(err); in test_parman_create()
271 int err; in test_parman_run() local
281 err = parman_item_add(test_parman->parman, in test_parman_run()
284 if (err) in test_parman_run()
285 return err; in test_parman_run()
363 int err; in test_parman_lsort() local
[all …]
Dtest_sort.c17 int *a, i, r = 1, err = -ENOMEM; in test_sort_init() local
21 return err; in test_sort_init()
30 err = -EINVAL; in test_sort_init()
36 err = 0; in test_sort_init()
40 return err; in test_sort_init()
Drhashtable.c221 int err = -EAGAIN; in rhashtable_rehash_one() local
229 err = -ENOENT; in rhashtable_rehash_one()
233 err = 0; in rhashtable_rehash_one()
242 if (err) in rhashtable_rehash_one()
262 return err; in rhashtable_rehash_one()
270 int err; in rhashtable_rehash_chain() local
276 while (!(err = rhashtable_rehash_one(ht, bkt, old_hash))) in rhashtable_rehash_chain()
279 if (err == -ENOENT) in rhashtable_rehash_chain()
280 err = 0; in rhashtable_rehash_chain()
283 return err; in rhashtable_rehash_chain()
[all …]
Dparman.c63 int err; in parman_enlarge() local
65 err = parman->ops->resize(parman->priv, new_count); in parman_enlarge()
66 if (err) in parman_enlarge()
67 return err; in parman_enlarge()
76 int err; in parman_shrink() local
80 err = parman->ops->resize(parman->priv, new_count); in parman_shrink()
81 if (err) in parman_shrink()
82 return err; in parman_shrink()
188 int err; in parman_lsort_item_add() local
191 err = parman_enlarge(parman); in parman_lsort_item_add()
[all …]
Dnlattr.c164 int err = -ERANGE; in validate_nla() local
214 err = -EINVAL; in validate_nla()
226 err = validate_nla_bitfield32(nla, pt->validation_data); in validate_nla()
227 if (err) in validate_nla()
238 err = -EINVAL; in validate_nla()
272 err = __nla_validate(nla_data(nla), nla_len(nla), pt->len, in validate_nla()
275 if (err < 0) { in validate_nla()
280 return err; in validate_nla()
293 int err; in validate_nla() local
295 err = nla_validate_array(nla_data(nla), nla_len(nla), in validate_nla()
[all …]
Dmemory-notifier-error-inject.c24 int err; in err_inject_init() local
31 err = register_memory_notifier(&memory_notifier_err_inject.nb); in err_inject_init()
32 if (err) in err_inject_init()
35 return err; in err_inject_init()
Dpm-notifier-error-inject.c25 int err; in err_inject_init() local
32 err = register_pm_notifier(&pm_notifier_err_inject.nb); in err_inject_init()
33 if (err) in err_inject_init()
36 return err; in err_inject_init()
Dof-reconfig-notifier-error-inject.c27 int err; in err_inject_init() local
34 err = of_reconfig_notifier_register(&reconfig_err_inject.nb); in err_inject_init()
35 if (err) in err_inject_init()
38 return err; in err_inject_init()
Dnetdev-notifier-error-inject.c31 int err; in netdev_err_inject_init() local
38 err = register_netdevice_notifier(&netdev_notifier_err_inject.nb); in netdev_err_inject_init()
39 if (err) in netdev_err_inject_init()
42 return err; in netdev_err_inject_init()
Dflex_proportions.c40 int err; in fprop_global_init() local
44 err = percpu_counter_init(&p->events, 1, gfp); in fprop_global_init()
45 if (err) in fprop_global_init()
46 return err; in fprop_global_init()
174 int err; in fprop_local_init_percpu() local
176 err = percpu_counter_init(&pl->events, 0, gfp); in fprop_local_init_percpu()
177 if (err) in fprop_local_init_percpu()
178 return err; in fprop_local_init_percpu()
Dnotifier-error-inject.c30 int err = 0; in notifier_err_inject_callback() local
37 err = action->error; in notifier_err_inject_callback()
41 if (err) in notifier_err_inject_callback()
42 pr_info("Injecting error (%d) to %s\n", err, action->name); in notifier_err_inject_callback()
44 return notifier_from_errno(err); in notifier_err_inject_callback()
Dtest_memcat_p.c25 int err = -ENOMEM, i, r, total = 0; in test_memcat_p_init() local
29 return err; in test_memcat_p_init()
60 err = -EINVAL; in test_memcat_p_init()
88 err = 0; in test_memcat_p_init()
105 return err; in test_memcat_p_init()
Dlibcrc32c.c42 int err; in crc32c() local
47 err = crypto_shash_update(shash, address, length); in crc32c()
48 BUG_ON(err); in crc32c()
Dbch.c1002 int i, err, nroots; in decode_bch() local
1036 err = compute_error_locator_polynomial(bch, syn); in decode_bch()
1037 if (err > 0) { in decode_bch()
1039 if (err != nroots) in decode_bch()
1040 err = -1; in decode_bch()
1042 if (err > 0) { in decode_bch()
1045 for (i = 0; i < err; i++) { in decode_bch()
1047 err = -1; in decode_bch()
1054 return (err >= 0) ? err : -EBADMSG; in decode_bch()
1161 static void *bch_alloc(size_t size, int *err) in bch_alloc() argument
[all …]
Dtest_list_sort.c72 int i, count = 1, err = -ENOMEM; in list_sort_test() local
81 return err; in list_sort_test()
99 err = -EINVAL; in list_sort_test()
140 err = 0; in list_sort_test()
145 return err; in list_sort_test()
Didr.c120 int err, max = end > 0 ? end - 1 : INT_MAX; in idr_alloc_cyclic() local
125 err = idr_alloc_u32(idr, ptr, &id, max, gfp); in idr_alloc_cyclic()
126 if ((err == -ENOSPC) && (id > start)) { in idr_alloc_cyclic()
128 err = idr_alloc_u32(idr, ptr, &id, max, gfp); in idr_alloc_cyclic()
130 if (err) in idr_alloc_cyclic()
131 return err; in idr_alloc_cyclic()
499 goto err; in ida_free()
501 goto err; in ida_free()
508 goto err; in ida_free()
519 err: in ida_free()
Dcrc-t10dif.c63 int err; in crc_t10dif_update() local
72 err = crypto_shash_update(&desc.shash, buffer, len); in crc_t10dif_update()
75 BUG_ON(err); in crc_t10dif_update()
/lib/raid6/test/
Dtest.c93 int err = 0; in main() local
121 err += test_disks(i, j); in main()
138 err += test_disks(i, j); in main()
149 if (err) in main()
152 return err; in main()

12