Lines Matching refs:model

23 	char model[16];
52 char *model;
281 * 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,
369 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model),
370 model, compatible);
393 * @model: model (product) string
397 * Remove and destroy one dev_info entry for @vendor, @model
402 int scsi_dev_info_list_del_keyed(char *vendor, char *model, int key)
445 max = 16; /* max length of model */
446 while ((max > 0) && *model == ' ') {
448 model++;
450 if (memcmp(devinfo->model, model,
451 min(max, strlen(devinfo->model))))
457 !memcmp(devinfo->model, model,
458 sizeof(devinfo->model)))
489 char *vendor, *model, *strflags, *next;
511 model = strsep(&next, ":");
512 if (model)
514 if (!model || !strflags) {
516 " '%s'\n", __func__, vendor, model,
521 model, strflags, 0);
530 * @model: model name
534 * for an entry matching @vendor and @model, if found, return the
540 const unsigned char *model)
542 return scsi_get_device_flags_keyed(sdev, vendor, model,
551 * @model: model name
556 * matching @vendor and @model, if found, return the matching
562 const unsigned char *model,
607 max = 16; /* max length of model */
608 while ((max > 0) && *model == ' ') {
610 model++;
612 if (memcmp(devinfo->model, model,
613 min(max, strlen(devinfo->model))))
619 !memcmp(devinfo->model, model,
620 sizeof(devinfo->model)))
656 devinfo->vendor, devinfo->model, devinfo->flags);
724 * Description: Adds a black/white list entry for vendor and model with an
726 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
770 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
771 " list entries for vendor and model with an integer value of flags"
881 scsi_static_device_list[i].model,