Lines Matching refs:model
24 char model[16];
52 char *model;
288 * devinfo vendor and model strings.
313 * @model: model (product) string
318 * Create and add one dev_info entry for @vendor, @model, @strflags or
325 static int scsi_dev_info_list_add(int compatible, char *vendor, char *model,
328 return scsi_dev_info_list_add_keyed(compatible, vendor, model,
337 * @model: model (product) string
343 * Create and add one dev_info entry for @vendor, @model,
351 int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model,
370 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model),
371 model, compatible);
385 vendor, model, flags & __BLIST_UNUSED_MASK);
406 * @model: full model (product) string
410 * Finds the first dev_info entry matching @vendor, @model
416 const char *model, enum scsi_devinfo_key key)
447 mmax = sizeof(devinfo->model);
448 mskip = model;
468 * @model specifies the full string, and
469 * must be larger or equal to devinfo->model
471 mlen = strnlen(devinfo->model, sizeof(devinfo->model));
472 if (mmax < mlen || memcmp(devinfo->model, mskip, mlen))
478 !memcmp(devinfo->model, model,
479 sizeof(devinfo->model)))
490 * @model: model (product) string
494 * Remove and destroy one dev_info entry for @vendor, @model
499 int scsi_dev_info_list_del_keyed(char *vendor, char *model,
504 found = scsi_dev_info_list_find(vendor, model, key);
528 char *vendor, *model, *strflags, *next;
550 model = strsep(&next, ":");
551 if (model)
553 if (!model || !strflags) {
555 " '%s'\n", __func__, vendor, model,
560 model, strflags, 0);
570 * @model: model name
574 * for an entry matching @vendor and @model, if found, return the
580 const unsigned char *model)
582 return scsi_get_device_flags_keyed(sdev, vendor, model,
591 * @model: model name
596 * matching @vendor and @model, if found, return the matching
602 const unsigned char *model,
607 devinfo = scsi_dev_info_list_find(vendor, model, key);
643 devinfo->vendor, devinfo->model, devinfo->flags);
711 * Description: Adds a black/white list entry for vendor and model with an
713 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
756 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
757 " list entries for vendor and model with an integer value of flags"
867 scsi_static_device_list[i].model,