Lines Matching refs:ret

146 	int ret;  in dm_test_ofnode_get_by_phandle_ot()  local
151 ret = ofnode_read_u32(node, "other-phandle", &idx); in dm_test_ofnode_get_by_phandle_ot()
152 ut_assertok(ret); in dm_test_ofnode_get_by_phandle_ot()
289 int ret; in dm_test_ofnode_phandle() local
299 ret = ofnode_count_phandle_with_args(node, "missing", cell, 0); in dm_test_ofnode_phandle()
300 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle()
301 ret = ofnode_count_phandle_with_args(node, prop, "#invalid", 0); in dm_test_ofnode_phandle()
302 ut_asserteq(-EINVAL, ret); in dm_test_ofnode_phandle()
303 ret = ofnode_count_phandle_with_args(node, prop, cell, 0); in dm_test_ofnode_phandle()
304 ut_asserteq(5, ret); in dm_test_ofnode_phandle()
307 ret = ofnode_parse_phandle_with_args(node, "missing", cell, 0, 0, in dm_test_ofnode_phandle()
309 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle()
310 ret = ofnode_parse_phandle_with_args(node, prop, "#invalid", 0, 0, in dm_test_ofnode_phandle()
312 ut_asserteq(-EINVAL, ret); in dm_test_ofnode_phandle()
313 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 0, &args); in dm_test_ofnode_phandle()
314 ut_assertok(ret); in dm_test_ofnode_phandle()
317 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 1, &args); in dm_test_ofnode_phandle()
318 ut_assertok(ret); in dm_test_ofnode_phandle()
321 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 2, &args); in dm_test_ofnode_phandle()
322 ut_assertok(ret); in dm_test_ofnode_phandle()
326 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 3, &args); in dm_test_ofnode_phandle()
327 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle()
328 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 4, &args); in dm_test_ofnode_phandle()
329 ut_assertok(ret); in dm_test_ofnode_phandle()
332 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 5, &args); in dm_test_ofnode_phandle()
333 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle()
336 ret = ofnode_count_phandle_with_args(node, "missing", NULL, 2); in dm_test_ofnode_phandle()
337 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle()
338 ret = ofnode_count_phandle_with_args(node, prop2, NULL, 1); in dm_test_ofnode_phandle()
339 ut_asserteq(3, ret); in dm_test_ofnode_phandle()
342 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 0, &args); in dm_test_ofnode_phandle()
343 ut_assertok(ret); in dm_test_ofnode_phandle()
347 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 1, &args); in dm_test_ofnode_phandle()
348 ut_asserteq(-EINVAL, ret); in dm_test_ofnode_phandle()
349 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 2, &args); in dm_test_ofnode_phandle()
350 ut_assertok(ret); in dm_test_ofnode_phandle()
354 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 3, &args); in dm_test_ofnode_phandle()
355 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle()
384 int ret; in dm_test_ofnode_phandle_ot() local
394 ret = oftree_count_phandle_with_args(otree, node, "missing", cell, 0); in dm_test_ofnode_phandle_ot()
395 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle_ot()
396 ret = oftree_count_phandle_with_args(otree, node, prop, "#invalid", 0); in dm_test_ofnode_phandle_ot()
397 ut_asserteq(-EINVAL, ret); in dm_test_ofnode_phandle_ot()
398 ret = oftree_count_phandle_with_args(otree, node, prop, cell, 0); in dm_test_ofnode_phandle_ot()
399 ut_asserteq(5, ret); in dm_test_ofnode_phandle_ot()
402 ret = oftree_parse_phandle_with_args(otree, node, "missing", cell, 0, 0, in dm_test_ofnode_phandle_ot()
404 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle_ot()
405 ret = oftree_parse_phandle_with_args(otree, node, prop, "#invalid", 0, 0, in dm_test_ofnode_phandle_ot()
407 ut_asserteq(-EINVAL, ret); in dm_test_ofnode_phandle_ot()
408 ret = oftree_parse_phandle_with_args(otree, node, prop, cell, 0, 0, &args); in dm_test_ofnode_phandle_ot()
409 ut_assertok(ret); in dm_test_ofnode_phandle_ot()
412 ret = oftree_parse_phandle_with_args(otree, node, prop, cell, 0, 1, &args); in dm_test_ofnode_phandle_ot()
413 ut_assertok(ret); in dm_test_ofnode_phandle_ot()
416 ret = oftree_parse_phandle_with_args(otree, node, prop, cell, 0, 2, &args); in dm_test_ofnode_phandle_ot()
417 ut_assertok(ret); in dm_test_ofnode_phandle_ot()
421 ret = oftree_parse_phandle_with_args(otree, node, prop, cell, 0, 3, &args); in dm_test_ofnode_phandle_ot()
422 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle_ot()
423 ret = oftree_parse_phandle_with_args(otree, node, prop, cell, 0, 4, &args); in dm_test_ofnode_phandle_ot()
424 ut_assertok(ret); in dm_test_ofnode_phandle_ot()
427 ret = oftree_parse_phandle_with_args(otree, node, prop, cell, 0, 5, &args); in dm_test_ofnode_phandle_ot()
428 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle_ot()
431 ret = oftree_count_phandle_with_args(otree, node, "missing", NULL, 2); in dm_test_ofnode_phandle_ot()
432 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle_ot()
433 ret = oftree_count_phandle_with_args(otree, node, prop2, NULL, 1); in dm_test_ofnode_phandle_ot()
434 ut_asserteq(3, ret); in dm_test_ofnode_phandle_ot()
437 ret = oftree_parse_phandle_with_args(otree, node, prop2, NULL, 1, 0, &args); in dm_test_ofnode_phandle_ot()
438 ut_assertok(ret); in dm_test_ofnode_phandle_ot()
442 ret = oftree_parse_phandle_with_args(otree, node, prop2, NULL, 1, 1, &args); in dm_test_ofnode_phandle_ot()
443 ut_asserteq(-EINVAL, ret); in dm_test_ofnode_phandle_ot()
444 ret = oftree_parse_phandle_with_args(otree, node, prop2, NULL, 1, 2, &args); in dm_test_ofnode_phandle_ot()
445 ut_assertok(ret); in dm_test_ofnode_phandle_ot()
449 ret = oftree_parse_phandle_with_args(otree, node, prop2, NULL, 1, 3, &args); in dm_test_ofnode_phandle_ot()
450 ut_asserteq(-ENOENT, ret); in dm_test_ofnode_phandle_ot()
1370 int ret; in dm_test_ofnode_too_many() local
1373 ret = get_oftree(uts, fdt[i], &tree); in dm_test_ofnode_too_many()
1381 ut_assertok(ret); in dm_test_ofnode_too_many()
1387 ut_asserteq(-EOVERFLOW, ret); in dm_test_ofnode_too_many()