• Home
  • Raw
  • Download

Lines Matching refs:it

1240 int of_phandle_iterator_init(struct of_phandle_iterator *it,  in of_phandle_iterator_init()  argument
1249 memset(it, 0, sizeof(*it)); in of_phandle_iterator_init()
1262 it->cells_name = cells_name; in of_phandle_iterator_init()
1263 it->cell_count = cell_count; in of_phandle_iterator_init()
1264 it->parent = np; in of_phandle_iterator_init()
1265 it->list_end = list + size / sizeof(*list); in of_phandle_iterator_init()
1266 it->phandle_end = list; in of_phandle_iterator_init()
1267 it->cur = list; in of_phandle_iterator_init()
1273 int of_phandle_iterator_next(struct of_phandle_iterator *it) in of_phandle_iterator_next() argument
1277 if (it->node) { in of_phandle_iterator_next()
1278 of_node_put(it->node); in of_phandle_iterator_next()
1279 it->node = NULL; in of_phandle_iterator_next()
1282 if (!it->cur || it->phandle_end >= it->list_end) in of_phandle_iterator_next()
1285 it->cur = it->phandle_end; in of_phandle_iterator_next()
1288 it->phandle = be32_to_cpup(it->cur++); in of_phandle_iterator_next()
1290 if (it->phandle) { in of_phandle_iterator_next()
1296 it->node = of_find_node_by_phandle(it->phandle); in of_phandle_iterator_next()
1298 if (it->cells_name) { in of_phandle_iterator_next()
1299 if (!it->node) { in of_phandle_iterator_next()
1301 it->parent); in of_phandle_iterator_next()
1305 if (of_property_read_u32(it->node, it->cells_name, in of_phandle_iterator_next()
1312 if (it->cell_count >= 0) { in of_phandle_iterator_next()
1313 count = it->cell_count; in of_phandle_iterator_next()
1316 it->parent, in of_phandle_iterator_next()
1317 it->cells_name, in of_phandle_iterator_next()
1318 it->node); in of_phandle_iterator_next()
1323 count = it->cell_count; in of_phandle_iterator_next()
1330 if (it->cur + count > it->list_end) { in of_phandle_iterator_next()
1331 if (it->cells_name) in of_phandle_iterator_next()
1333 it->parent, it->cells_name, in of_phandle_iterator_next()
1334 count, it->list_end - it->cur); in of_phandle_iterator_next()
1337 it->parent, of_node_full_name(it->node), in of_phandle_iterator_next()
1338 count, it->list_end - it->cur); in of_phandle_iterator_next()
1343 it->phandle_end = it->cur + count; in of_phandle_iterator_next()
1344 it->cur_count = count; in of_phandle_iterator_next()
1349 if (it->node) { in of_phandle_iterator_next()
1350 of_node_put(it->node); in of_phandle_iterator_next()
1351 it->node = NULL; in of_phandle_iterator_next()
1358 int of_phandle_iterator_args(struct of_phandle_iterator *it, in of_phandle_iterator_args() argument
1364 count = it->cur_count; in of_phandle_iterator_args()
1370 args[i] = be32_to_cpup(it->cur++); in of_phandle_iterator_args()
1381 struct of_phandle_iterator it; in __of_parse_phandle_with_args() local
1385 of_for_each_phandle(&it, rc, np, list_name, cells_name, cell_count) { in __of_parse_phandle_with_args()
1394 if (!it.phandle) in __of_parse_phandle_with_args()
1400 c = of_phandle_iterator_args(&it, in __of_parse_phandle_with_args()
1403 out_args->np = it.node; in __of_parse_phandle_with_args()
1406 of_node_put(it.node); in __of_parse_phandle_with_args()
1423 of_node_put(it.node); in __of_parse_phandle_with_args()
1746 struct of_phandle_iterator it; in of_count_phandle_with_args() local
1766 rc = of_phandle_iterator_init(&it, np, list_name, cells_name, -1); in of_count_phandle_with_args()
1770 while ((rc = of_phandle_iterator_next(&it)) == 0) in of_count_phandle_with_args()