Lines Matching refs:lun

361 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
438 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local
443 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
452 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local
457 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
466 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local
471 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
473 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show()
480 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local
485 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show()
495 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show() local
500 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show()
542 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show() local
547 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_show()
557 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show() local
562 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_dev_show()
572 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show() local
577 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_indx_show()
579 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_tgt_port_indx_show()
587 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show() local
588 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show()
593 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_name_show()
597 lun->lun_rtpi); in target_stat_tgt_port_name_show()
605 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show() local
606 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show()
611 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_port_index_show()
623 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_in_cmds_show() local
628 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_in_cmds_show()
631 atomic_long_read(&lun->lun_stats.cmd_pdus)); in target_stat_tgt_port_in_cmds_show()
639 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_write_mbytes_show() local
644 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_write_mbytes_show()
647 (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); in target_stat_tgt_port_write_mbytes_show()
655 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_read_mbytes_show() local
660 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_read_mbytes_show()
663 (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); in target_stat_tgt_port_read_mbytes_show()
671 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_hs_in_cmds_show() local
676 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_hs_in_cmds_show()
726 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_inst_show() local
731 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_inst_show()
741 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_device_show() local
743 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show()
747 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_device_show()
760 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_indx_show() local
762 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show()
766 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_indx_show()
777 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_dev_name_show() local
779 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show()
784 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_dev_name_show()
819 void target_stat_setup_port_default_groups(struct se_lun *lun) in target_stat_setup_port_default_groups() argument
821 struct config_group *port_stat_grp = &lun->port_stat_grps.stat_group; in target_stat_setup_port_default_groups()
823 config_group_init_type_name(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
825 config_group_init_type_name(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
827 config_group_init_type_name(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
830 port_stat_grp->default_groups[0] = &lun->port_stat_grps.scsi_port_group; in target_stat_setup_port_default_groups()
831 port_stat_grp->default_groups[1] = &lun->port_stat_grps.scsi_tgt_port_group; in target_stat_setup_port_default_groups()
832 port_stat_grp->default_groups[2] = &lun->port_stat_grps.scsi_transport_group; in target_stat_setup_port_default_groups()
876 struct se_lun *lun; in target_stat_auth_dev_show() local
885 lun = rcu_dereference(deve->se_lun); in target_stat_auth_dev_show()
887 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_auth_dev_show()
1216 struct se_lun *lun; in target_stat_iport_dev_show() local
1225 lun = rcu_dereference(deve->se_lun); in target_stat_iport_dev_show()
1227 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_iport_dev_show()