Lines Matching refs:np

267 static struct rt_reset_control *ofw_get_reset_control(struct rt_ofw_node *np, int index,  in ofw_get_reset_control()  argument
280 rstc_nr = rt_ofw_count_phandle_cells(np, "resets", "#reset-cells"); in ofw_get_reset_control()
292 rt_ofw_node_full_name(np), index); in ofw_get_reset_control()
301 rstc_arr->rstcs[i] = ofw_get_reset_control(np, i + 1, RT_NULL, RT_FALSE); in ofw_get_reset_control()
328 rt_ofw_node_full_name(np), index); in ofw_get_reset_control()
334 if (!rt_ofw_parse_phandle_cells(np, "resets", "#reset-cells", index, &reset_args)) in ofw_get_reset_control()
367 if (!name && rt_ofw_prop_read_bool(np, "reset-names")) in ofw_get_reset_control()
369 rt_ofw_prop_read_string_index(np, "reset-names", index, &name); in ofw_get_reset_control()
382 rt_ofw_node_full_name(np), rt_strerror(err)); in ofw_get_reset_control()
409 struct rt_reset_control *rt_ofw_get_reset_control_array(struct rt_ofw_node *np) in rt_ofw_get_reset_control_array() argument
411 return ofw_get_reset_control(np, 0, RT_NULL, RT_TRUE); in rt_ofw_get_reset_control_array()
414 struct rt_reset_control *rt_ofw_get_reset_control_by_index(struct rt_ofw_node *np, int index) in rt_ofw_get_reset_control_by_index() argument
416 return ofw_get_reset_control(np, index, RT_NULL, RT_FALSE); in rt_ofw_get_reset_control_by_index()
419 struct rt_reset_control *rt_ofw_get_reset_control_by_name(struct rt_ofw_node *np, const char *name) in rt_ofw_get_reset_control_by_name() argument
421 if (np) in rt_ofw_get_reset_control_by_name()
423 int index = rt_ofw_prop_index_of_string(np, "reset-names", name); in rt_ofw_get_reset_control_by_name()
427 return ofw_get_reset_control(np, index, name, RT_FALSE); in rt_ofw_get_reset_control_by_name()