Lines Matching full:dr_mode
35 enum usb_dr_mode dr_mode; member
60 dwc3->dr_mode = plat->dr_mode; in dwc3_generic_probe()
119 plat->dr_mode = usb_get_dr_mode(node); in dwc3_generic_ofdata_to_platdata()
120 if (plat->dr_mode == USB_DR_MODE_UNKNOWN) { in dwc3_generic_ofdata_to_platdata()
123 } else if (plat->dr_mode != USB_DR_MODE_HOST && in dwc3_generic_ofdata_to_platdata()
125 pr_info("Set dr_mode to HOST\n"); in dwc3_generic_ofdata_to_platdata()
126 plat->dr_mode = USB_DR_MODE_HOST; in dwc3_generic_ofdata_to_platdata()
308 enum usb_dr_mode dr_mode; in dwc3_glue_bind() local
314 dr_mode = usb_get_dr_mode(node); in dwc3_glue_bind()
316 switch (dr_mode) { in dwc3_glue_bind()
319 debug("%s: dr_mode: force to HOST\n", __func__); in dwc3_glue_bind()
325 debug("%s: dr_mode: OTG or Peripheral\n", __func__); in dwc3_glue_bind()
331 debug("%s: dr_mode: HOST\n", __func__); in dwc3_glue_bind()
336 debug("%s: unsupported dr_mode\n", __func__); in dwc3_glue_bind()
426 enum usb_dr_mode dr_mode; in dwc3_glue_probe() local
428 dr_mode = usb_get_dr_mode(child->node); in dwc3_glue_probe()
431 ops->select_dr_mode(dev, index, dr_mode); in dwc3_glue_probe()