Lines Matching full:vendor
23 char vendor[8]; member
51 char *vendor; member
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, in scsi_dev_info_list_add() argument
326 return scsi_dev_info_list_add_keyed(compatible, vendor, model, in scsi_dev_info_list_add()
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, in scsi_dev_info_list_add_keyed() argument
366 scsi_strcpy_devinfo("vendor", devinfo->vendor, sizeof(devinfo->vendor), in scsi_dev_info_list_add_keyed()
367 vendor, compatible); in scsi_dev_info_list_add_keyed()
383 vendor, model, flags & __BLIST_UNUSED_MASK); in scsi_dev_info_list_add_keyed()
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, in scsi_dev_info_list_find() argument
435 vmax = sizeof(devinfo->vendor); in scsi_dev_info_list_find()
436 vskip = vendor; in scsi_dev_info_list_find()
458 * vendor strings must be an exact match in scsi_dev_info_list_find()
460 if (vmax != strnlen(devinfo->vendor, in scsi_dev_info_list_find()
461 sizeof(devinfo->vendor)) || in scsi_dev_info_list_find()
462 memcmp(devinfo->vendor, vskip, vmax)) in scsi_dev_info_list_find()
474 if (!memcmp(devinfo->vendor, vendor, in scsi_dev_info_list_find()
475 sizeof(devinfo->vendor)) && in scsi_dev_info_list_find()
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, in scsi_dev_info_list_del_keyed() argument
502 found = scsi_dev_info_list_find(vendor, model, key); in scsi_dev_info_list_del_keyed()
518 * dev_list is of the form "vendor:product:flag,vendor:product:flag".
526 char *vendor, *model, *strflags, *next; in scsi_dev_info_list_add_str() local
543 * through the last time with vendor[0] == '\0'. in scsi_dev_info_list_add_str()
545 for (vendor = strsep(&next, ":"); vendor && (vendor[0] != '\0') in scsi_dev_info_list_add_str()
546 && (res == 0); vendor = strsep(&next, ":")) { in scsi_dev_info_list_add_str()
553 " '%s'\n", __func__, vendor, model, in scsi_dev_info_list_add_str()
557 res = scsi_dev_info_list_add(0 /* compatible */, vendor, in scsi_dev_info_list_add_str()
567 * @vendor: vendor name
572 * for an entry matching @vendor and @model, if found, return the
577 const unsigned char *vendor, in scsi_get_device_flags() argument
580 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags()
588 * @vendor: vendor name
594 * matching @vendor and @model, if found, return the matching
599 const unsigned char *vendor, in scsi_get_device_flags_keyed() argument
605 devinfo = scsi_dev_info_list_find(vendor, model, key); in scsi_get_device_flags_keyed()
641 devinfo->vendor, devinfo->model, devinfo->flags); in devinfo_seq_show()
709 * Description: Adds a black/white list entry for vendor and model with an
711 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
754 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
755 " list entries for vendor and model with an integer value of flags"
862 for (i = 0; scsi_static_device_list[i].vendor; i++) { in scsi_init_devinfo()
864 scsi_static_device_list[i].vendor, in scsi_init_devinfo()