Lines Matching refs:phandle_cache
135 static struct device_node **phandle_cache; variable
146 if (!phandle_cache) in __of_free_phandle_cache()
150 of_node_put(phandle_cache[k]); in __of_free_phandle_cache()
152 kfree(phandle_cache); in __of_free_phandle_cache()
153 phandle_cache = NULL; in __of_free_phandle_cache()
185 if (phandle_cache) { in __of_free_phandle_cache_entry()
186 np = phandle_cache[masked_handle]; in __of_free_phandle_cache_entry()
189 phandle_cache[masked_handle] = NULL; in __of_free_phandle_cache_entry()
215 phandle_cache = kcalloc(cache_entries, sizeof(*phandle_cache), in of_populate_phandle_cache()
217 if (!phandle_cache) in of_populate_phandle_cache()
223 phandle_cache[np->phandle & phandle_cache_mask] = np; in of_populate_phandle_cache()
1235 if (phandle_cache) { in of_find_node_by_phandle()
1236 if (phandle_cache[masked_handle] && in of_find_node_by_phandle()
1237 handle == phandle_cache[masked_handle]->phandle) in of_find_node_by_phandle()
1238 np = phandle_cache[masked_handle]; in of_find_node_by_phandle()
1242 phandle_cache[masked_handle] = NULL; in of_find_node_by_phandle()
1251 if (phandle_cache) { in of_find_node_by_phandle()
1254 phandle_cache[masked_handle] = np; in of_find_node_by_phandle()