Lines Matching defs:env
910 usb_quirk_add_entry_from_str(const char *name, const char *env)
919 if (name == NULL || env == NULL)
923 printf("Adding USB QUIRK '%s' = '%s'\n", name, env);
926 entry.vid = usb_quirk_strtou16(&env, name, "Vendor ID");
927 entry.pid = usb_quirk_strtou16(&env, name, "Product ID");
928 entry.lo_rev = usb_quirk_strtou16(&env, name, "Low revision");
929 entry.hi_rev = usb_quirk_strtou16(&env, name, "High revision");
933 while (*env != 0 && quirk_idx != USB_SUB_QUIRKS_MAX) {
935 while (*env == ' ' || *env == '\t')
936 env++;
939 end = strchr(env, ',');
941 end = env + strlen(env);
944 quirk = usb_strquirk(env, end - env);
949 name, (int)(end - env), env);
951 env = end;
954 if (*env != 0)
955 env++;
960 if (*env != 0) {