Lines Matching defs:controller
102 * controller.
103 * @dev: Pointer to the given USB controller device
129 * @dev: Pointer to the given USB controller device
267 * of_usb_get_dr_mode_by_phy - Get dual role mode for the controller device
273 * In dts a usb controller associates with phy devices. The function gets
274 * the string from property 'dr_mode' of the controller associated with the
279 struct device_node *controller = NULL;
286 controller = of_find_node_with_property(controller, "phys");
287 if (!of_device_is_available(controller))
292 args.np = of_parse_phandle(controller, "phys",
296 err = of_parse_phandle_with_args(controller,
309 } while (controller);
312 err = of_property_read_string(controller, "dr_mode", &dr_mode);
313 of_node_put(controller);