Lines Matching refs:elt

293 	struct dt_driver_probe *elt = NULL;  in print_probe_list()  local
296 TAILQ_FOREACH(elt, &dt_driver_probe_list, link) in print_probe_list()
300 TAILQ_FOREACH(elt, &dt_driver_probe_list, link) in print_probe_list()
302 elt->dt_drv->name, in print_probe_list()
303 fdt_get_name(fdt, elt->nodeoffset, NULL)); in print_probe_list()
308 TAILQ_FOREACH(elt, &dt_driver_failed_list, link) in print_probe_list()
312 TAILQ_FOREACH(elt, &dt_driver_failed_list, link) in print_probe_list()
313 EMSG("|- Driver %s on node %s failed", elt->dt_drv->name, in print_probe_list()
314 fdt_get_name(fdt, elt->nodeoffset, NULL)); in print_probe_list()
324 struct dt_driver_probe *elt) in probe_driver_node() argument
330 node_name = fdt_get_name(fdt, elt->nodeoffset, NULL); in probe_driver_node()
331 drv_name = elt->dt_drv->name; in probe_driver_node()
333 if (!elt->dt_drv->probe) { in probe_driver_node()
340 res = elt->dt_drv->probe(fdt, elt->nodeoffset, elt->dm->compat_data); in probe_driver_node()
343 TAILQ_INSERT_HEAD(&dt_driver_ready_list, elt, link); in probe_driver_node()
348 elt->deferrals++; in probe_driver_node()
349 TAILQ_INSERT_TAIL(&dt_driver_probe_list, elt, link); in probe_driver_node()
352 node_name, elt->deferrals); in probe_driver_node()
355 TAILQ_INSERT_HEAD(&dt_driver_failed_list, elt, link); in probe_driver_node()
369 struct dt_driver_probe *elt = NULL; in alloc_elt_and_probe() local
372 elt = calloc(1, sizeof(*elt)); in alloc_elt_and_probe()
373 if (!elt) in alloc_elt_and_probe()
376 elt->nodeoffset = node; in alloc_elt_and_probe()
377 elt->dt_drv = dt_drv; in alloc_elt_and_probe()
378 elt->dm = dm; in alloc_elt_and_probe()
379 elt->type = dt_drv->type; in alloc_elt_and_probe()
381 return probe_driver_node(fdt, elt); in alloc_elt_and_probe()
440 struct dt_driver_probe *elt = NULL; in process_probe_list() local
468 TAILQ_FOREACH_REVERSE_SAFE(elt, &dt_driver_probe_list, in process_probe_list()
470 TAILQ_REMOVE(&dt_driver_probe_list, elt, link); in process_probe_list()
472 switch (probe_driver_node(fdt, elt)) { in process_probe_list()
499 struct dt_driver_probe *elt) in driver_probe_compare() argument
501 if (candidate->nodeoffset != elt->nodeoffset || in driver_probe_compare()
502 candidate->type != elt->type) in driver_probe_compare()
505 assert(elt->dt_drv == candidate->dt_drv); in driver_probe_compare()
519 struct dt_driver_probe *elt = NULL; in add_node_to_probe() local
528 TAILQ_FOREACH(elt, &dt_driver_probe_list, link) in add_node_to_probe()
529 if (!driver_probe_compare(&elt_new, elt)) in add_node_to_probe()
532 TAILQ_FOREACH(elt, &dt_driver_ready_list, link) in add_node_to_probe()
533 if (!driver_probe_compare(&elt_new, elt)) in add_node_to_probe()
536 elt = malloc(sizeof(*elt)); in add_node_to_probe()
537 if (!elt) in add_node_to_probe()
542 memcpy(elt, &elt_new, sizeof(*elt)); in add_node_to_probe()
546 TAILQ_INSERT_TAIL(&dt_driver_probe_list, elt, link); in add_node_to_probe()
712 struct dt_driver_probe *elt = NULL; in release_probe_lists() local
725 TAILQ_FOREACH_SAFE(elt, &dt_driver_ready_list, link, next) in release_probe_lists()
726 free(elt); in release_probe_lists()
728 TAILQ_FOREACH_SAFE(elt, &dt_driver_failed_list, link, next) in release_probe_lists()
729 free(elt); in release_probe_lists()