Lines Matching full:vendor
23 char vendor[8]; member
50 char *vendor; member
287 * devinfo vendor and model strings.
313 * @vendor: vendor string
319 * Create and add one dev_info entry for @vendor, @model, @strflags or
326 static int scsi_dev_info_list_add(int compatible, char *vendor, char *model, in scsi_dev_info_list_add() argument
329 return scsi_dev_info_list_add_keyed(compatible, vendor, model, in scsi_dev_info_list_add()
337 * @vendor: vendor string
344 * Create and add one dev_info entry for @vendor, @model,
352 int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model, in scsi_dev_info_list_add_keyed() argument
369 scsi_strcpy_devinfo("vendor", devinfo->vendor, sizeof(devinfo->vendor), in scsi_dev_info_list_add_keyed()
370 vendor, compatible); in scsi_dev_info_list_add_keyed()
386 vendor, model, flags & __BLIST_UNUSED_MASK); in scsi_dev_info_list_add_keyed()
406 * @vendor: full vendor string
411 * Finds the first dev_info entry matching @vendor, @model
416 static struct scsi_dev_info_list *scsi_dev_info_list_find(const char *vendor, in scsi_dev_info_list_find() argument
438 vmax = sizeof(devinfo->vendor); in scsi_dev_info_list_find()
439 vskip = vendor; in scsi_dev_info_list_find()
461 * vendor strings must be an exact match in scsi_dev_info_list_find()
463 if (vmax != strnlen(devinfo->vendor, in scsi_dev_info_list_find()
464 sizeof(devinfo->vendor)) || in scsi_dev_info_list_find()
465 memcmp(devinfo->vendor, vskip, vmax)) in scsi_dev_info_list_find()
477 if (!memcmp(devinfo->vendor, vendor, in scsi_dev_info_list_find()
478 sizeof(devinfo->vendor)) && in scsi_dev_info_list_find()
490 * @vendor: vendor string
495 * Remove and destroy one dev_info entry for @vendor, @model
500 int scsi_dev_info_list_del_keyed(char *vendor, char *model, in scsi_dev_info_list_del_keyed() argument
505 found = scsi_dev_info_list_find(vendor, model, key); in scsi_dev_info_list_del_keyed()
521 * dev_list is of the form "vendor:product:flag,vendor:product:flag".
529 char *vendor, *model, *strflags, *next; in scsi_dev_info_list_add_str() local
546 * through the last time with vendor[0] == '\0'. in scsi_dev_info_list_add_str()
548 for (vendor = strsep(&next, ":"); vendor && (vendor[0] != '\0') in scsi_dev_info_list_add_str()
549 && (res == 0); vendor = strsep(&next, ":")) { in scsi_dev_info_list_add_str()
556 __func__, vendor, model ? model : "", in scsi_dev_info_list_add_str()
560 res = scsi_dev_info_list_add(0 /* compatible */, vendor, in scsi_dev_info_list_add_str()
570 * @vendor: vendor name
575 * for an entry matching @vendor and @model, if found, return the
580 const unsigned char *vendor, in scsi_get_device_flags() argument
583 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags()
591 * @vendor: vendor name
597 * matching @vendor and @model, if found, return the matching
602 const unsigned char *vendor, in scsi_get_device_flags_keyed() argument
608 devinfo = scsi_dev_info_list_find(vendor, model, key); in scsi_get_device_flags_keyed()
644 devinfo->vendor, devinfo->model, devinfo->flags); in devinfo_seq_show()
712 * Description: Adds a black/white list entry for vendor and model with an
714 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
757 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
758 " list entries for vendor and model with an integer value of flags"
865 for (i = 0; scsi_static_device_list[i].vendor; i++) { in scsi_init_devinfo()
867 scsi_static_device_list[i].vendor, in scsi_init_devinfo()