Lines Matching refs:model
24 char model[16];
52 char *model;
286 * devinfo vendor and model strings.
311 * @model: model (product) 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,
335 * @model: model (product) 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,
368 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model),
369 model, compatible);
383 vendor, model, flags & __BLIST_UNUSED_MASK);
404 * @model: full model (product) string
408 * Finds the first dev_info entry matching @vendor, @model
414 const char *model, enum scsi_devinfo_key key)
445 mmax = sizeof(devinfo->model);
446 mskip = model;
466 * @model specifies the full string, and
467 * must be larger or equal to devinfo->model
469 mlen = strnlen(devinfo->model, sizeof(devinfo->model));
470 if (mmax < mlen || memcmp(devinfo->model, mskip, mlen))
476 !memcmp(devinfo->model, model,
477 sizeof(devinfo->model)))
488 * @model: model (product) 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);
526 char *vendor, *model, *strflags, *next;
548 model = strsep(&next, ":");
549 if (model)
551 if (!model || !strflags) {
553 " '%s'\n", __func__, vendor, model,
558 model, strflags, 0);
567 * @model: model name
571 * for an entry matching @vendor and @model, if found, return the
577 const unsigned char *model)
579 return scsi_get_device_flags_keyed(sdev, vendor, model,
588 * @model: model name
593 * matching @vendor and @model, if found, return the matching
599 const unsigned char *model,
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"
864 scsi_static_device_list[i].model,