Searched refs:INQUIRY_MODEL_LEN (Results 1 - 12 of 12) sorted by relevance
/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_pscsi.c | 177 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); in pscsi_set_inquiry_info() 179 "%." __stringify(INQUIRY_MODEL_LEN) "s", sdev->model); in pscsi_set_inquiry_info() 817 __stringify(INQUIRY_MODEL_LEN) "s", sd->model); in pscsi_show_configfs_dev_params()
|
H A D | target_core_configfs.c | 611 if (strlen(configname) >= INQUIRY_MODEL_LEN) { in dev_set_t10_wwn_model_alias() 617 * XXX We can't use sizeof(dev->t10_wwn.model) (INQUIRY_MODEL_LEN + 1) in dev_set_t10_wwn_model_alias() 621 strlcpy(dev->t10_wwn.model, configname, INQUIRY_MODEL_LEN); in dev_set_t10_wwn_model_alias() 643 BUILD_BUG_ON(sizeof(dev->t10_wwn.model) != INQUIRY_MODEL_LEN + 1); in emulate_model_alias_store() 1390 unsigned char buf[INQUIRY_MODEL_LEN + 2]; in target_wwn_product_id_store() 1401 if (len > INQUIRY_MODEL_LEN) { in target_wwn_product_id_store() 1402 pr_err("Emulated T10 Vendor exceeds INQUIRY_MODEL_LEN: " in target_wwn_product_id_store() 1403 __stringify(INQUIRY_MODEL_LEN) in target_wwn_product_id_store() 1425 BUILD_BUG_ON(sizeof(dev->t10_wwn.model) != INQUIRY_MODEL_LEN + 1); in target_wwn_product_id_store()
|
H A D | target_core_spc.c | 104 INQUIRY_VENDOR_LEN + INQUIRY_MODEL_LEN + INQUIRY_REVISION_LEN); in spc_emulate_inquiry_std() 108 strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); in spc_emulate_inquiry_std()
|
H A D | target_core_stat.c | 245 return snprintf(page, PAGE_SIZE, "%-" __stringify(INQUIRY_MODEL_LEN) in target_stat_lu_prod_show()
|
H A D | target_core_device.c | 716 pr_debug(" Model: %-" __stringify(INQUIRY_MODEL_LEN) "s\n", in scsi_dump_inquiry()
|
/kernel/linux/linux-6.6/drivers/target/ |
H A D | target_core_pscsi.c | 173 BUILD_BUG_ON(sizeof(wwn->model) != INQUIRY_MODEL_LEN + 1); in pscsi_set_inquiry_info() 175 "%." __stringify(INQUIRY_MODEL_LEN) "s", sdev->model); in pscsi_set_inquiry_info() 809 __stringify(INQUIRY_MODEL_LEN) "s", sd->model); in pscsi_show_configfs_dev_params()
|
H A D | target_core_configfs.c | 642 if (strlen(configname) >= INQUIRY_MODEL_LEN) { in dev_set_t10_wwn_model_alias() 648 * XXX We can't use sizeof(dev->t10_wwn.model) (INQUIRY_MODEL_LEN + 1) in dev_set_t10_wwn_model_alias() 652 strscpy(dev->t10_wwn.model, configname, INQUIRY_MODEL_LEN); in dev_set_t10_wwn_model_alias() 674 BUILD_BUG_ON(sizeof(dev->t10_wwn.model) != INQUIRY_MODEL_LEN + 1); in emulate_model_alias_store() 1449 unsigned char buf[INQUIRY_MODEL_LEN + 2]; in target_wwn_product_id_store() 1460 if (len < 0 || len > INQUIRY_MODEL_LEN) { in target_wwn_product_id_store() 1461 pr_err("Emulated T10 Vendor exceeds INQUIRY_MODEL_LEN: " in target_wwn_product_id_store() 1462 __stringify(INQUIRY_MODEL_LEN) in target_wwn_product_id_store() 1484 BUILD_BUG_ON(sizeof(dev->t10_wwn.model) != INQUIRY_MODEL_LEN + 1); in target_wwn_product_id_store()
|
H A D | target_core_spc.c | 132 INQUIRY_VENDOR_LEN + INQUIRY_MODEL_LEN + INQUIRY_REVISION_LEN); in spc_emulate_inquiry_std() 136 strnlen(dev->t10_wwn.model, INQUIRY_MODEL_LEN)); in spc_emulate_inquiry_std()
|
H A D | target_core_stat.c | 242 return snprintf(page, PAGE_SIZE, "%-" __stringify(INQUIRY_MODEL_LEN) in target_stat_lu_prod_show()
|
H A D | target_core_device.c | 676 pr_debug(" Model: %-" __stringify(INQUIRY_MODEL_LEN) "s\n", in scsi_dump_inquiry()
|
/kernel/linux/linux-5.10/include/target/ |
H A D | target_core_base.h | 50 #define INQUIRY_MODEL_LEN 16 macro 326 char model[INQUIRY_MODEL_LEN + 1];
|
/kernel/linux/linux-6.6/include/target/ |
H A D | target_core_base.h | 50 #define INQUIRY_MODEL_LEN 16 macro 332 char model[INQUIRY_MODEL_LEN + 1];
|
Completed in 26 milliseconds