Lines Matching refs:lun

379 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
457 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local
462 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
471 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local
476 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
485 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local
490 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
492 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show()
499 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local
504 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show()
514 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show() local
519 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show()
561 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show() local
566 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_show()
576 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show() local
581 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_dev_show()
591 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show() local
596 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_indx_show()
598 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_tgt_port_indx_show()
606 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show() local
607 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show()
612 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_name_show()
616 lun->lun_rtpi); in target_stat_tgt_port_name_show()
624 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show() local
625 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show()
630 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_port_index_show()
642 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_in_cmds_show() local
647 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_in_cmds_show()
650 atomic_long_read(&lun->lun_stats.cmd_pdus)); in target_stat_tgt_port_in_cmds_show()
658 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_write_mbytes_show() local
663 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_write_mbytes_show()
666 (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); in target_stat_tgt_port_write_mbytes_show()
674 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_read_mbytes_show() local
679 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_read_mbytes_show()
682 (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); in target_stat_tgt_port_read_mbytes_show()
690 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_hs_in_cmds_show() local
695 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_hs_in_cmds_show()
745 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_inst_show() local
750 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_inst_show()
760 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_device_show() local
762 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show()
766 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_device_show()
779 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_indx_show() local
781 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show()
785 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_indx_show()
796 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_dev_name_show() local
798 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show()
803 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_dev_name_show()
819 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_proto_id_show() local
821 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_proto_id_show()
825 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_proto_id_show()
856 void target_stat_setup_port_default_groups(struct se_lun *lun) in target_stat_setup_port_default_groups() argument
858 config_group_init_type_name(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
860 configfs_add_default_group(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
861 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
863 config_group_init_type_name(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
865 configfs_add_default_group(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
866 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
868 config_group_init_type_name(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
870 configfs_add_default_group(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
871 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
914 struct se_lun *lun; in target_stat_auth_dev_show() local
923 lun = rcu_dereference(deve->se_lun); in target_stat_auth_dev_show()
925 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_auth_dev_show()
1254 struct se_lun *lun; in target_stat_iport_dev_show() local
1263 lun = rcu_dereference(deve->se_lun); in target_stat_iport_dev_show()
1265 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_iport_dev_show()