Searched refs:t10_wwn (Results 1 – 8 of 8) sorted by relevance
/linux-4.1.27/drivers/target/ |
D | target_core_configfs.c | 523 CONFIGFS_EATTR_STRUCT(target_core_dev_wwn, t10_wwn); 542 struct t10_wwn *t10_wwn, in target_core_dev_wwn_show_attr_vpd_unit_serial() argument 546 &t10_wwn->unit_serial[0]); in target_core_dev_wwn_show_attr_vpd_unit_serial() 550 struct t10_wwn *t10_wwn, in target_core_dev_wwn_store_attr_vpd_unit_serial() argument 554 struct se_device *dev = t10_wwn->t10_dev; in target_core_dev_wwn_store_attr_vpd_unit_serial() 599 snprintf(dev->t10_wwn.unit_serial, INQUIRY_VPD_SERIAL_LEN, in target_core_dev_wwn_store_attr_vpd_unit_serial() 604 " %s\n", dev->t10_wwn.unit_serial); in target_core_dev_wwn_store_attr_vpd_unit_serial() 615 struct t10_wwn *t10_wwn, in target_core_dev_wwn_show_attr_vpd_protocol_identifier() argument 624 spin_lock(&t10_wwn->t10_vpd_lock); in target_core_dev_wwn_show_attr_vpd_protocol_identifier() 625 list_for_each_entry(vpd, &t10_wwn->t10_vpd_list, vpd_list) { in target_core_dev_wwn_show_attr_vpd_protocol_identifier() [all …]
|
D | target_core_stat.c | 305 (strlen(dev->t10_wwn.unit_serial)) ? in target_stat_scsi_lu_show_attr_lu_name() 306 dev->t10_wwn.unit_serial : "None"); in target_stat_scsi_lu_show_attr_lu_name() 316 char str[sizeof(dev->t10_wwn.vendor)+1]; in target_stat_scsi_lu_show_attr_vend() 319 for (i = 0; i < sizeof(dev->t10_wwn.vendor); i++) in target_stat_scsi_lu_show_attr_vend() 320 str[i] = ISPRINT(dev->t10_wwn.vendor[i]) ? in target_stat_scsi_lu_show_attr_vend() 321 dev->t10_wwn.vendor[i] : ' '; in target_stat_scsi_lu_show_attr_vend() 333 char str[sizeof(dev->t10_wwn.model)+1]; in target_stat_scsi_lu_show_attr_prod() 336 for (i = 0; i < sizeof(dev->t10_wwn.vendor); i++) in target_stat_scsi_lu_show_attr_prod() 337 str[i] = ISPRINT(dev->t10_wwn.model[i]) ? in target_stat_scsi_lu_show_attr_prod() 338 dev->t10_wwn.model[i] : ' '; in target_stat_scsi_lu_show_attr_prod() [all …]
|
D | target_core_spc.c | 119 memcpy(&buf[16], dev->t10_wwn.model, in spc_emulate_inquiry_std() 120 min_t(size_t, strlen(dev->t10_wwn.model), 16)); in spc_emulate_inquiry_std() 121 memcpy(&buf[32], dev->t10_wwn.revision, in spc_emulate_inquiry_std() 122 min_t(size_t, strlen(dev->t10_wwn.revision), 4)); in spc_emulate_inquiry_std() 137 len = sprintf(&buf[4], "%s", dev->t10_wwn.unit_serial); in spc_emulate_evpd_80() 147 unsigned char *p = &dev->t10_wwn.unit_serial[0]; in spc_parse_naa_6h_vendor_specific() 189 unsigned char *prod = &dev->t10_wwn.model[0]; in spc_emulate_evpd_83() 253 unit_serial_len = strlen(&dev->t10_wwn.unit_serial[0]); in spc_emulate_evpd_83() 257 &dev->t10_wwn.unit_serial[0]); in spc_emulate_evpd_83()
|
D | target_core_device.c | 627 spin_lock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev() 629 &dev->t10_wwn.t10_vpd_list, vpd_list) { in se_release_vpd_for_dev() 633 spin_unlock(&dev->t10_wwn.t10_vpd_lock); in se_release_vpd_for_dev() 732 snprintf(&dev->t10_wwn.model[0], 16, "%s", configname); in dev_set_t10_wwn_model_alias() 752 strncpy(&dev->t10_wwn.model[0], in se_dev_set_emulate_model_alias() 1437 struct t10_wwn *wwn = &dev->t10_wwn; in scsi_dump_inquiry() 1500 INIT_LIST_HEAD(&dev->t10_wwn.t10_vpd_list); in target_alloc_device() 1501 spin_lock_init(&dev->t10_wwn.t10_vpd_lock); in target_alloc_device() 1511 dev->t10_wwn.t10_dev = dev; in target_alloc_device() 1608 strncpy(&dev->t10_wwn.vendor[0], "LIO-ORG", 8); in target_configure_device() [all …]
|
D | target_core_pscsi.c | 183 pscsi_set_inquiry_info(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_set_inquiry_info() 202 pscsi_get_inquiry_vpd_serial(struct scsi_device *sdev, struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_serial() 237 struct t10_wwn *wwn) in pscsi_get_inquiry_vpd_device_ident() 329 pscsi_set_inquiry_info(sd, &dev->t10_wwn); in pscsi_add_device_to_list() 335 if (!pscsi_get_inquiry_vpd_serial(sd, &dev->t10_wwn)) { in pscsi_add_device_to_list() 340 pscsi_get_inquiry_vpd_device_ident(sd, &dev->t10_wwn); in pscsi_add_device_to_list()
|
D | target_core_alua.c | 940 struct t10_wwn *wwn = &tg_pt_gp->tg_pt_gp_dev->t10_wwn; in core_alua_update_tpg_primary_metadata()
|
D | target_core_pr.c | 1921 struct t10_wwn *wwn = &dev->t10_wwn; in __core_scsi3_write_aptpl_to_file()
|
/linux-4.1.27/include/target/ |
D | target_core_base.h | 353 struct t10_wwn { struct 804 struct t10_wwn t10_wwn; member
|