Lines Matching full:model
24 char model[16]; member
51 char *model; member
259 {"WangDAT", "Model 2600", "01.7", BLIST_SELECT_NO_ATN},
260 {"WangDAT", "Model 3200", "02.2", BLIST_SELECT_NO_ATN},
261 {"WangDAT", "Model 1300", "02.4", BLIST_SELECT_NO_ATN},
287 * devinfo vendor and model strings.
314 * @model: model (product) 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()
338 * @model: model (product) 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
371 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model), in scsi_dev_info_list_add_keyed()
372 model, compatible); in scsi_dev_info_list_add_keyed()
386 vendor, model, flags & __BLIST_UNUSED_MASK); in scsi_dev_info_list_add_keyed()
407 * @model: full model (product) string
411 * Finds the first dev_info entry matching @vendor, @model
417 const char *model, enum scsi_devinfo_key key) in scsi_dev_info_list_find() argument
448 mmax = sizeof(devinfo->model); in scsi_dev_info_list_find()
449 mskip = model; in scsi_dev_info_list_find()
469 * @model specifies the full string, and in scsi_dev_info_list_find()
470 * must be larger or equal to devinfo->model in scsi_dev_info_list_find()
472 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
473 if (mmax < mlen || memcmp(devinfo->model, mskip, mlen)) in scsi_dev_info_list_find()
479 !memcmp(devinfo->model, model, in scsi_dev_info_list_find()
480 sizeof(devinfo->model))) in scsi_dev_info_list_find()
491 * @model: model (product) 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()
529 char *vendor, *model, *strflags, *next; in scsi_dev_info_list_add_str() local
551 model = strsep(&next, ":"); in scsi_dev_info_list_add_str()
552 if (model) in scsi_dev_info_list_add_str()
554 if (!model || !strflags) { in scsi_dev_info_list_add_str()
556 __func__, vendor, model ? model : "", in scsi_dev_info_list_add_str()
561 model, strflags, 0); in scsi_dev_info_list_add_str()
571 * @model: model name
575 * for an entry matching @vendor and @model, if found, return the
581 const unsigned char *model) in scsi_get_device_flags() argument
583 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags()
592 * @model: model name
597 * matching @vendor and @model, if found, return the matching
603 const unsigned char *model, 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"
868 scsi_static_device_list[i].model, in scsi_init_devinfo()