Lines Matching refs:np

38 		if (ofdma->of_node == dma_spec->np)  in of_dma_find_controller()
42 dma_spec->np->full_name); in of_dma_find_controller()
87 of_node_put(dma_spec_target.np); in of_dma_router_xlate()
104 int of_dma_controller_register(struct device_node *np, in of_dma_controller_register() argument
111 if (!np || !of_dma_xlate) { in of_dma_controller_register()
120 ofdma->of_node = np; in of_dma_controller_register()
139 void of_dma_controller_free(struct device_node *np) in of_dma_controller_free() argument
146 if (ofdma->of_node == np) { in of_dma_controller_free()
171 int of_dma_router_register(struct device_node *np, in of_dma_router_register() argument
178 if (!np || !of_dma_route_allocate || !dma_router) { in of_dma_router_register()
187 ofdma->of_node = np; in of_dma_router_register()
212 static int of_dma_match_channel(struct device_node *np, const char *name, in of_dma_match_channel() argument
217 if (of_property_read_string_index(np, "dma-names", index, &s)) in of_dma_match_channel()
223 if (of_parse_phandle_with_args(np, "dmas", "#dma-cells", index, in of_dma_match_channel()
237 struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel() argument
246 if (!np || !name) { in of_dma_request_slave_channel()
252 if (!of_find_property(np, "dmas", NULL)) in of_dma_request_slave_channel()
255 count = of_property_count_strings(np, "dma-names"); in of_dma_request_slave_channel()
258 __func__, np->full_name); in of_dma_request_slave_channel()
263 if (of_dma_match_channel(np, name, i, &dma_spec)) in of_dma_request_slave_channel()
278 of_node_put(dma_spec.np); in of_dma_request_slave_channel()