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()
60 int of_dma_controller_register(struct device_node *np, in of_dma_controller_register() argument
67 if (!np || !of_dma_xlate) { in of_dma_controller_register()
76 ofdma->of_node = np; in of_dma_controller_register()
95 void of_dma_controller_free(struct device_node *np) in of_dma_controller_free() argument
102 if (ofdma->of_node == np) { in of_dma_controller_free()
123 static int of_dma_match_channel(struct device_node *np, const char *name, in of_dma_match_channel() argument
128 if (of_property_read_string_index(np, "dma-names", index, &s)) in of_dma_match_channel()
134 if (of_parse_phandle_with_args(np, "dmas", "#dma-cells", index, in of_dma_match_channel()
148 struct dma_chan *of_dma_request_slave_channel(struct device_node *np, in of_dma_request_slave_channel() argument
157 if (!np || !name) { in of_dma_request_slave_channel()
163 if (!of_find_property(np, "dmas", NULL)) in of_dma_request_slave_channel()
166 count = of_property_count_strings(np, "dma-names"); in of_dma_request_slave_channel()
169 __func__, np->full_name); in of_dma_request_slave_channel()
174 if (of_dma_match_channel(np, name, i, &dma_spec)) in of_dma_request_slave_channel()
189 of_node_put(dma_spec.np); in of_dma_request_slave_channel()