Lines Matching full:model
24 char model[16]; member
52 char *model; member
258 {"WangDAT", "Model 2600", "01.7", BLIST_SELECT_NO_ATN},
259 {"WangDAT", "Model 3200", "02.2", BLIST_SELECT_NO_ATN},
260 {"WangDAT", "Model 1300", "02.4", BLIST_SELECT_NO_ATN},
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, in scsi_dev_info_list_add() argument
326 return scsi_dev_info_list_add_keyed(compatible, vendor, model, in scsi_dev_info_list_add()
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, in scsi_dev_info_list_add_keyed() argument
368 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model), in scsi_dev_info_list_add_keyed()
369 model, compatible); in scsi_dev_info_list_add_keyed()
383 vendor, model, flags & __BLIST_UNUSED_MASK); in scsi_dev_info_list_add_keyed()
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) in scsi_dev_info_list_find() argument
445 mmax = sizeof(devinfo->model); in scsi_dev_info_list_find()
446 mskip = model; in scsi_dev_info_list_find()
466 * @model specifies the full string, and in scsi_dev_info_list_find()
467 * must be larger or equal to devinfo->model in scsi_dev_info_list_find()
469 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
470 if (mmax < mlen || memcmp(devinfo->model, mskip, mlen)) in scsi_dev_info_list_find()
476 !memcmp(devinfo->model, model, in scsi_dev_info_list_find()
477 sizeof(devinfo->model))) in scsi_dev_info_list_find()
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, 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()
526 char *vendor, *model, *strflags, *next; in scsi_dev_info_list_add_str() local
548 model = strsep(&next, ":"); in scsi_dev_info_list_add_str()
549 if (model) in scsi_dev_info_list_add_str()
551 if (!model || !strflags) { in scsi_dev_info_list_add_str()
553 " '%s'\n", __func__, vendor, model, in scsi_dev_info_list_add_str()
558 model, strflags, 0); in scsi_dev_info_list_add_str()
568 * @model: model name
572 * for an entry matching @vendor and @model, if found, return the
578 const unsigned char *model) in scsi_get_device_flags() argument
580 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags()
589 * @model: model name
594 * matching @vendor and @model, if found, return the matching
600 const unsigned char *model, 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"
865 scsi_static_device_list[i].model, in scsi_init_devinfo()