Lines Matching refs:args
287 struct ofnode_phandle_args args; in dm_test_ofnode_phandle() local
308 &args); in dm_test_ofnode_phandle()
311 &args); in dm_test_ofnode_phandle()
313 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 0, &args); in dm_test_ofnode_phandle()
315 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle()
316 ut_asserteq(1, args.args[0]); in dm_test_ofnode_phandle()
317 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 1, &args); in dm_test_ofnode_phandle()
319 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle()
320 ut_asserteq(4, args.args[0]); in dm_test_ofnode_phandle()
321 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 2, &args); in dm_test_ofnode_phandle()
323 ut_asserteq(5, args.args_count); in dm_test_ofnode_phandle()
324 ut_asserteq(5, args.args[0]); in dm_test_ofnode_phandle()
325 ut_asserteq(1, args.args[4]); in dm_test_ofnode_phandle()
326 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 3, &args); in dm_test_ofnode_phandle()
328 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 4, &args); in dm_test_ofnode_phandle()
330 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle()
331 ut_asserteq(12, args.args[0]); in dm_test_ofnode_phandle()
332 ret = ofnode_parse_phandle_with_args(node, prop, cell, 0, 5, &args); in dm_test_ofnode_phandle()
342 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 0, &args); in dm_test_ofnode_phandle()
344 ut_asserteq(1, ofnode_valid(args.node)); in dm_test_ofnode_phandle()
345 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle()
346 ut_asserteq(10, args.args[0]); in dm_test_ofnode_phandle()
347 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 1, &args); in dm_test_ofnode_phandle()
349 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 2, &args); in dm_test_ofnode_phandle()
351 ut_asserteq(1, ofnode_valid(args.node)); in dm_test_ofnode_phandle()
352 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle()
353 ut_asserteq(30, args.args[0]); in dm_test_ofnode_phandle()
354 ret = ofnode_parse_phandle_with_args(node, prop2, NULL, 1, 3, &args); in dm_test_ofnode_phandle()
382 struct ofnode_phandle_args args; in dm_test_ofnode_phandle_ot() local
403 &args); in dm_test_ofnode_phandle_ot()
406 &args); 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()
410 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle_ot()
411 ut_asserteq(1, args.args[0]); 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()
414 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle_ot()
415 ut_asserteq(4, args.args[0]); 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()
418 ut_asserteq(5, args.args_count); in dm_test_ofnode_phandle_ot()
419 ut_asserteq(5, args.args[0]); in dm_test_ofnode_phandle_ot()
420 ut_asserteq(1, args.args[4]); 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()
423 ret = oftree_parse_phandle_with_args(otree, node, prop, cell, 0, 4, &args); in dm_test_ofnode_phandle_ot()
425 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle_ot()
426 ut_asserteq(12, args.args[0]); 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()
437 ret = oftree_parse_phandle_with_args(otree, node, prop2, NULL, 1, 0, &args); in dm_test_ofnode_phandle_ot()
439 ut_asserteq(1, ofnode_valid(args.node)); in dm_test_ofnode_phandle_ot()
440 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle_ot()
441 ut_asserteq(10, args.args[0]); 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()
444 ret = oftree_parse_phandle_with_args(otree, node, prop2, NULL, 1, 2, &args); in dm_test_ofnode_phandle_ot()
446 ut_asserteq(1, ofnode_valid(args.node)); in dm_test_ofnode_phandle_ot()
447 ut_asserteq(1, args.args_count); in dm_test_ofnode_phandle_ot()
448 ut_asserteq(30, args.args[0]); 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()