Lines Matching refs:vendor
23 char vendor[8];
51 char *vendor;
288 * devinfo vendor and model strings.
312 * @vendor: vendor string
318 * Create and add one dev_info entry for @vendor, @model, @strflags or
325 static int scsi_dev_info_list_add(int compatible, char *vendor, char *model,
328 return scsi_dev_info_list_add_keyed(compatible, vendor, model,
336 * @vendor: vendor string
343 * Create and add one dev_info entry for @vendor, @model,
351 int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model,
368 scsi_strcpy_devinfo("vendor", devinfo->vendor, sizeof(devinfo->vendor),
369 vendor, compatible);
385 vendor, model, flags & __BLIST_UNUSED_MASK);
405 * @vendor: full vendor string
410 * Finds the first dev_info entry matching @vendor, @model
415 static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor,
437 vmax = sizeof(devinfo->vendor);
438 vskip = vendor;
460 * vendor strings must be an exact match
462 if (vmax != strnlen(devinfo->vendor,
463 sizeof(devinfo->vendor)) ||
464 memcmp(devinfo->vendor, vskip, vmax))
476 if (!memcmp(devinfo->vendor, vendor,
477 sizeof(devinfo->vendor)) &&
489 * @vendor: vendor string
494 * Remove and destroy one dev_info entry for @vendor, @model
499 int scsi_dev_info_list_del_keyed(char *vendor, char *model,
504 found = scsi_dev_info_list_find(vendor, model, key);
520 * dev_list is of the form "vendor:product:flag,vendor:product:flag".
528 char *vendor, *model, *strflags, *next;
545 * through the last time with vendor[0] == '\0'.
547 for (vendor = strsep(&next, ":"); vendor && (vendor[0] != '\0')
548 && (res == 0); vendor = strsep(&next, ":")) {
555 " '%s'\n", __func__, vendor, model,
559 res = scsi_dev_info_list_add(0 /* compatible */, vendor,
569 * @vendor: vendor name
574 * for an entry matching @vendor and @model, if found, return the
579 const unsigned char *vendor,
582 return scsi_get_device_flags_keyed(sdev, vendor, model,
590 * @vendor: vendor name
596 * matching @vendor and @model, if found, return the matching
601 const unsigned char *vendor,
607 devinfo = scsi_dev_info_list_find(vendor, model, key);
643 devinfo->vendor, devinfo->model, devinfo->flags);
711 * Description: Adds a black/white list entry for vendor and model with an
713 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
756 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
757 " list entries for vendor and model with an integer value of flags"
864 for (i = 0; scsi_static_device_list[i].vendor; i++) {
866 scsi_static_device_list[i].vendor,