Lines Matching refs:tmpstr
584 char *tmpstr; in usb_get_ifc_mode() local
588 rv = OF_getprop_alloc(node, name, (void **)&tmpstr); in usb_get_ifc_mode()
593 if (strcmp(tmpstr, "utmi") == 0) in usb_get_ifc_mode()
595 else if (strcmp(tmpstr, "ulpi") == 0) in usb_get_ifc_mode()
598 device_printf(dev, "Unsupported phy type: %s\n", tmpstr); in usb_get_ifc_mode()
599 OF_prop_free(tmpstr); in usb_get_ifc_mode()
606 char *tmpstr; in usb_get_dr_mode() local
610 rv = OF_getprop_alloc(node, name, (void **)&tmpstr); in usb_get_dr_mode()
615 if (strcmp(tmpstr, "device") == 0) in usb_get_dr_mode()
617 else if (strcmp(tmpstr, "host") == 0) in usb_get_dr_mode()
619 else if (strcmp(tmpstr, "otg") == 0) in usb_get_dr_mode()
622 device_printf(dev, "Unknown dr mode: %s\n", tmpstr); in usb_get_dr_mode()
623 OF_prop_free(tmpstr); in usb_get_dr_mode()