Lines Matching refs:vendor

23 	char vendor[8];
51 char *vendor;
286 * devinfo vendor and model strings.
310 * @vendor: vendor string
316 * Create and add one dev_info entry for @vendor, @model, @strflags or
323 static int scsi_dev_info_list_add(int compatible, char *vendor, char *model,
326 return scsi_dev_info_list_add_keyed(compatible, vendor, model,
334 * @vendor: vendor string
341 * Create and add one dev_info entry for @vendor, @model,
349 int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model,
366 scsi_strcpy_devinfo("vendor", devinfo->vendor, sizeof(devinfo->vendor),
367 vendor, compatible);
383 vendor, model, flags & __BLIST_UNUSED_MASK);
403 * @vendor: full vendor string
408 * Finds the first dev_info entry matching @vendor, @model
413 static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor,
435 vmax = sizeof(devinfo->vendor);
436 vskip = vendor;
458 * vendor strings must be an exact match
460 if (vmax != strnlen(devinfo->vendor,
461 sizeof(devinfo->vendor)) ||
462 memcmp(devinfo->vendor, vskip, vmax))
474 if (!memcmp(devinfo->vendor, vendor,
475 sizeof(devinfo->vendor)) &&
487 * @vendor: vendor string
492 * Remove and destroy one dev_info entry for @vendor, @model
497 int scsi_dev_info_list_del_keyed(char *vendor, char *model,
502 found = scsi_dev_info_list_find(vendor, model, key);
518 * dev_list is of the form "vendor:product:flag,vendor:product:flag".
526 char *vendor, *model, *strflags, *next;
543 * through the last time with vendor[0] == '\0'.
545 for (vendor = strsep(&next, ":"); vendor && (vendor[0] != '\0')
546 && (res == 0); vendor = strsep(&next, ":")) {
553 " '%s'\n", __func__, vendor, model,
557 res = scsi_dev_info_list_add(0 /* compatible */, vendor,
566 * @vendor: vendor name
571 * for an entry matching @vendor and @model, if found, return the
576 const unsigned char *vendor,
579 return scsi_get_device_flags_keyed(sdev, vendor, model,
587 * @vendor: vendor name
593 * matching @vendor and @model, if found, return the matching
598 const unsigned char *vendor,
604 devinfo = scsi_dev_info_list_find(vendor, model, key);
640 devinfo->vendor, devinfo->model, devinfo->flags);
708 * Description: Adds a black/white list entry for vendor and model with an
710 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
753 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
754 " list entries for vendor and model with an integer value of flags"
861 for (i = 0; scsi_static_device_list[i].vendor; i++) {
863 scsi_static_device_list[i].vendor,