Lines Matching refs:phandle_cache
116 static struct device_node **phandle_cache; variable
136 kfree(phandle_cache); in of_populate_phandle_cache()
137 phandle_cache = NULL; in of_populate_phandle_cache()
149 phandle_cache = kcalloc(cache_entries, sizeof(*phandle_cache), in of_populate_phandle_cache()
151 if (!phandle_cache) in of_populate_phandle_cache()
156 phandle_cache[np->phandle & phandle_cache_mask] = np; in of_populate_phandle_cache()
168 kfree(phandle_cache); in of_free_phandle_cache()
169 phandle_cache = NULL; in of_free_phandle_cache()
1147 if (phandle_cache) { in of_find_node_by_phandle()
1148 if (phandle_cache[masked_handle] && in of_find_node_by_phandle()
1149 handle == phandle_cache[masked_handle]->phandle) in of_find_node_by_phandle()
1150 np = phandle_cache[masked_handle]; in of_find_node_by_phandle()
1156 if (phandle_cache) in of_find_node_by_phandle()
1157 phandle_cache[masked_handle] = np; in of_find_node_by_phandle()