Lines Matching refs:lun

366 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
444 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local
449 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
458 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local
463 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
472 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local
477 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
479 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_port_indx_show()
486 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local
491 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show()
501 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show() local
506 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show()
548 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show() local
553 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_show()
563 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show() local
568 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_dev_show()
578 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show() local
583 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_indx_show()
585 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_tpg->tpg_rtpi); in target_stat_tgt_port_indx_show()
593 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show() local
594 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show()
599 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_name_show()
603 lun->lun_tpg->tpg_rtpi); in target_stat_tgt_port_name_show()
611 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show() local
612 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show()
617 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_port_index_show()
629 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_in_cmds_show() local
634 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_in_cmds_show()
637 atomic_long_read(&lun->lun_stats.cmd_pdus)); in target_stat_tgt_port_in_cmds_show()
645 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_write_mbytes_show() local
650 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_write_mbytes_show()
653 (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); in target_stat_tgt_port_write_mbytes_show()
661 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_read_mbytes_show() local
666 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_read_mbytes_show()
669 (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); in target_stat_tgt_port_read_mbytes_show()
677 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_hs_in_cmds_show() local
682 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_hs_in_cmds_show()
732 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_inst_show() local
737 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_inst_show()
747 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_device_show() local
749 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show()
753 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_device_show()
766 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_indx_show() local
768 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show()
772 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_indx_show()
783 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_dev_name_show() local
785 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show()
790 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_dev_name_show()
806 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_proto_id_show() local
808 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_proto_id_show()
812 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_proto_id_show()
843 void target_stat_setup_port_default_groups(struct se_lun *lun) in target_stat_setup_port_default_groups() argument
845 config_group_init_type_name(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
847 configfs_add_default_group(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
848 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
850 config_group_init_type_name(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
852 configfs_add_default_group(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
853 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
855 config_group_init_type_name(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
857 configfs_add_default_group(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
858 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()