Lines Matching refs:tmpstr
586 char *tmpstr; in usb_get_ifc_mode() local
590 rv = OF_getprop_alloc(node, name, (void **)&tmpstr); in usb_get_ifc_mode()
595 if (strcmp(tmpstr, "utmi") == 0) in usb_get_ifc_mode()
597 else if (strcmp(tmpstr, "ulpi") == 0) in usb_get_ifc_mode()
600 device_printf(dev, "Unsupported phy type: %s\n", tmpstr); in usb_get_ifc_mode()
601 OF_prop_free(tmpstr); in usb_get_ifc_mode()
608 char *tmpstr; in usb_get_dr_mode() local
612 rv = OF_getprop_alloc(node, name, (void **)&tmpstr); in usb_get_dr_mode()
617 if (strcmp(tmpstr, "device") == 0) in usb_get_dr_mode()
619 else if (strcmp(tmpstr, "host") == 0) in usb_get_dr_mode()
621 else if (strcmp(tmpstr, "otg") == 0) in usb_get_dr_mode()
624 device_printf(dev, "Unknown dr mode: %s\n", tmpstr); in usb_get_dr_mode()
625 OF_prop_free(tmpstr); in usb_get_dr_mode()