Lines Matching full:vendor

23 	char vendor[8];  member
51 char *vendor; member
283 * devinfo vendor and model strings.
307 * @vendor: vendor string
313 * Create and add one dev_info entry for @vendor, @model, @strflags or
320 static int scsi_dev_info_list_add(int compatible, char *vendor, char *model, in scsi_dev_info_list_add() argument
323 return scsi_dev_info_list_add_keyed(compatible, vendor, model, in scsi_dev_info_list_add()
331 * @vendor: vendor string
338 * Create and add one dev_info entry for @vendor, @model,
346 int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model, in scsi_dev_info_list_add_keyed() argument
363 scsi_strcpy_devinfo("vendor", devinfo->vendor, sizeof(devinfo->vendor), in scsi_dev_info_list_add_keyed()
364 vendor, compatible); in scsi_dev_info_list_add_keyed()
380 vendor, model, flags & __BLIST_UNUSED_MASK); in scsi_dev_info_list_add_keyed()
400 * @vendor: full vendor string
405 * Finds the first dev_info entry matching @vendor, @model
410 static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor, in scsi_dev_info_list_find() argument
432 vmax = sizeof(devinfo->vendor); in scsi_dev_info_list_find()
433 vskip = vendor; in scsi_dev_info_list_find()
455 * vendor strings must be an exact match in scsi_dev_info_list_find()
457 if (vmax != strnlen(devinfo->vendor, in scsi_dev_info_list_find()
458 sizeof(devinfo->vendor)) || in scsi_dev_info_list_find()
459 memcmp(devinfo->vendor, vskip, vmax)) in scsi_dev_info_list_find()
471 if (!memcmp(devinfo->vendor, vendor, in scsi_dev_info_list_find()
472 sizeof(devinfo->vendor)) && in scsi_dev_info_list_find()
484 * @vendor: vendor string
489 * Remove and destroy one dev_info entry for @vendor, @model
494 int scsi_dev_info_list_del_keyed(char *vendor, char *model, in scsi_dev_info_list_del_keyed() argument
499 found = scsi_dev_info_list_find(vendor, model, key); in scsi_dev_info_list_del_keyed()
515 * dev_list is of the form "vendor:product:flag,vendor:product:flag".
523 char *vendor, *model, *strflags, *next; in scsi_dev_info_list_add_str() local
540 * through the last time with vendor[0] == '\0'. in scsi_dev_info_list_add_str()
542 for (vendor = strsep(&next, ":"); vendor && (vendor[0] != '\0') in scsi_dev_info_list_add_str()
543 && (res == 0); vendor = strsep(&next, ":")) { in scsi_dev_info_list_add_str()
550 " '%s'\n", __func__, vendor, model, in scsi_dev_info_list_add_str()
554 res = scsi_dev_info_list_add(0 /* compatible */, vendor, in scsi_dev_info_list_add_str()
563 * @vendor: vendor name
568 * for an entry matching @vendor and @model, if found, return the
573 const unsigned char *vendor, in scsi_get_device_flags() argument
576 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags()
584 * @vendor: vendor name
590 * matching @vendor and @model, if found, return the matching
595 const unsigned char *vendor, in scsi_get_device_flags_keyed() argument
601 devinfo = scsi_dev_info_list_find(vendor, model, key); in scsi_get_device_flags_keyed()
637 devinfo->vendor, devinfo->model, devinfo->flags); in devinfo_seq_show()
705 * Description: Adds a black/white list entry for vendor and model with an
707 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
751 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
752 " list entries for vendor and model with an integer value of flags"
859 for (i = 0; scsi_static_device_list[i].vendor; i++) { in scsi_init_devinfo()
861 scsi_static_device_list[i].vendor, in scsi_init_devinfo()