Home
last modified time | relevance | path

Searched refs:t10_wwn (Results 1 – 9 of 9) sorted by relevance

/Linux-v4.19/drivers/target/
Dtarget_core_stat.c242 (strlen(dev->t10_wwn.unit_serial)) ? in target_stat_lu_lu_name_show()
243 dev->t10_wwn.unit_serial : "None"); in target_stat_lu_lu_name_show()
250 char str[sizeof(dev->t10_wwn.vendor)+1]; in target_stat_lu_vend_show()
253 for (i = 0; i < sizeof(dev->t10_wwn.vendor); i++) in target_stat_lu_vend_show()
254 str[i] = ISPRINT(dev->t10_wwn.vendor[i]) ? in target_stat_lu_vend_show()
255 dev->t10_wwn.vendor[i] : ' '; in target_stat_lu_vend_show()
264 char str[sizeof(dev->t10_wwn.model)+1]; in target_stat_lu_prod_show()
267 for (i = 0; i < sizeof(dev->t10_wwn.model); i++) in target_stat_lu_prod_show()
268 str[i] = ISPRINT(dev->t10_wwn.model[i]) ? in target_stat_lu_prod_show()
269 dev->t10_wwn.model[i] : ' '; in target_stat_lu_prod_show()
[all …]
Dtarget_core_device.c535 spin_lock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
537 &dev->t10_wwn.t10_vpd_list, vpd_list) { in se_release_vpd_for_dev()
541 spin_unlock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev()
722 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry()
782 INIT_LIST_HEAD(&dev->t10_wwn.t10_vpd_list); in target_alloc_device()
783 spin_lock_init(&dev->t10_wwn.t10_vpd_lock); in target_alloc_device()
793 dev->t10_wwn.t10_dev = dev; in target_alloc_device()
1012 strncpy(&dev->t10_wwn.vendor[0], "LIO-ORG", 8); in target_configure_device()
1013 strncpy(&dev->t10_wwn.model[0], in target_configure_device()
1015 strncpy(&dev->t10_wwn.revision[0], in target_configure_device()
Dtarget_core_spc.c113 memcpy(&buf[16], dev->t10_wwn.model, in spc_emulate_inquiry_std()
114 min_t(size_t, strlen(dev->t10_wwn.model), 16)); in spc_emulate_inquiry_std()
115 memcpy(&buf[32], dev->t10_wwn.revision, in spc_emulate_inquiry_std()
116 min_t(size_t, strlen(dev->t10_wwn.revision), 4)); in spc_emulate_inquiry_std()
131 len = sprintf(&buf[4], "%s", dev->t10_wwn.unit_serial); in spc_emulate_evpd_80()
141 unsigned char *p = &dev->t10_wwn.unit_serial[0]; in spc_parse_naa_6h_vendor_specific()
181 unsigned char *prod = &dev->t10_wwn.model[0]; in spc_emulate_evpd_83()
245 unit_serial_len = strlen(&dev->t10_wwn.unit_serial[0]); in spc_emulate_evpd_83()
249 &dev->t10_wwn.unit_serial[0]); in spc_emulate_evpd_83()
Dtarget_core_configfs.c621 snprintf(&dev->t10_wwn.model[0], 16, "%s", configname); in dev_set_t10_wwn_model_alias()
646 strncpy(&dev->t10_wwn.model[0], in emulate_model_alias_store()
1208 static struct t10_wwn *to_t10_wwn(struct config_item *item) in to_t10_wwn()
1210 return container_of(to_config_group(item), struct t10_wwn, t10_wwn_group); in to_t10_wwn()
1226 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_unit_serial_store() local
1227 struct se_device *dev = t10_wwn->t10_dev; in target_wwn_vpd_unit_serial_store()
1272 snprintf(dev->t10_wwn.unit_serial, INQUIRY_VPD_SERIAL_LEN, in target_wwn_vpd_unit_serial_store()
1277 " %s\n", dev->t10_wwn.unit_serial); in target_wwn_vpd_unit_serial_store()
1288 struct t10_wwn *t10_wwn = to_t10_wwn(item); in target_wwn_vpd_protocol_identifier_show() local
1295 spin_lock(&t10_wwn->t10_vpd_lock); in target_wwn_vpd_protocol_identifier_show()
[all …]
Dtarget_core_pscsi.c180 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info()
199 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial()
233 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident()
325 pscsi_set_inquiry_info(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
331 if (!pscsi_get_inquiry_vpd_serial(sd, &dev->t10_wwn)) { in pscsi_add_device_to_list()
336 pscsi_get_inquiry_vpd_device_ident(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
Dtarget_core_alua.c920 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata()
Dtarget_core_sbc.c984 dev->t10_wwn.unit_serial); in sbc_parse_cdb()
Dtarget_core_pr.c1975 struct t10_wwn *wwn = &dev->t10_wwn; in __core_scsi3_write_aptpl_to_file()
/Linux-v4.19/include/target/
Dtarget_core_base.h317 struct t10_wwn { struct
806 struct t10_wwn t10_wwn; member