• Home
  • Raw
  • Download

Lines Matching full:model

24 	char model[16];  member
52 char *model; member
257 {"WangDAT", "Model 2600", "01.7", BLIST_SELECT_NO_ATN},
258 {"WangDAT", "Model 3200", "02.2", BLIST_SELECT_NO_ATN},
259 {"WangDAT", "Model 1300", "02.4", BLIST_SELECT_NO_ATN},
285 * devinfo vendor and model strings.
310 * @model: model (product) string
315 * Create and add one dev_info entry for @vendor, @model, @strflags or
322 static int scsi_dev_info_list_add(int compatible, char *vendor, char *model, in scsi_dev_info_list_add() argument
325 return scsi_dev_info_list_add_keyed(compatible, vendor, model, in scsi_dev_info_list_add()
334 * @model: model (product) string
340 * Create and add one dev_info entry for @vendor, @model,
348 int scsi_dev_info_list_add_keyed(int compatible, char *vendor, char *model, in scsi_dev_info_list_add_keyed() argument
367 scsi_strcpy_devinfo("model", devinfo->model, sizeof(devinfo->model), in scsi_dev_info_list_add_keyed()
368 model, compatible); in scsi_dev_info_list_add_keyed()
382 vendor, model, flags & __BLIST_UNUSED_MASK); in scsi_dev_info_list_add_keyed()
403 * @model: full model (product) string
407 * Finds the first dev_info entry matching @vendor, @model
413 const char *model, enum scsi_devinfo_key key) in scsi_dev_info_list_find() argument
444 mmax = sizeof(devinfo->model); in scsi_dev_info_list_find()
445 mskip = model; in scsi_dev_info_list_find()
465 * @model specifies the full string, and in scsi_dev_info_list_find()
466 * must be larger or equal to devinfo->model in scsi_dev_info_list_find()
468 mlen = strnlen(devinfo->model, sizeof(devinfo->model)); in scsi_dev_info_list_find()
469 if (mmax < mlen || memcmp(devinfo->model, mskip, mlen)) in scsi_dev_info_list_find()
475 !memcmp(devinfo->model, model, in scsi_dev_info_list_find()
476 sizeof(devinfo->model))) in scsi_dev_info_list_find()
487 * @model: model (product) string
491 * Remove and destroy one dev_info entry for @vendor, @model
496 int scsi_dev_info_list_del_keyed(char *vendor, char *model, in scsi_dev_info_list_del_keyed() argument
501 found = scsi_dev_info_list_find(vendor, model, key); in scsi_dev_info_list_del_keyed()
525 char *vendor, *model, *strflags, *next; in scsi_dev_info_list_add_str() local
547 model = strsep(&next, ":"); in scsi_dev_info_list_add_str()
548 if (model) in scsi_dev_info_list_add_str()
550 if (!model || !strflags) { in scsi_dev_info_list_add_str()
552 " '%s'\n", __func__, vendor, model, in scsi_dev_info_list_add_str()
557 model, strflags, 0); in scsi_dev_info_list_add_str()
566 * @model: model name
570 * for an entry matching @vendor and @model, if found, return the
576 const unsigned char *model) in scsi_get_device_flags() argument
578 return scsi_get_device_flags_keyed(sdev, vendor, model, in scsi_get_device_flags()
587 * @model: model name
592 * matching @vendor and @model, if found, return the matching
598 const unsigned char *model, in scsi_get_device_flags_keyed() argument
603 devinfo = scsi_dev_info_list_find(vendor, model, key); in scsi_get_device_flags_keyed()
639 devinfo->vendor, devinfo->model, devinfo->flags); in devinfo_seq_show()
707 * Description: Adds a black/white list entry for vendor and model with an
709 * To use, echo "vendor:model:flag" > /proc/scsi/device_info
752 "Given scsi_dev_flags=vendor:model:flags[,v:m:f] add black/white"
753 " list entries for vendor and model with an integer value of flags"
863 scsi_static_device_list[i].model, in scsi_init_devinfo()