Lines Matching refs:lun
348 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
426 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local
431 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
440 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local
445 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
454 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local
459 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
461 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show()
468 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local
473 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show()
483 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show() local
488 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show()
530 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show() local
535 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_show()
545 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show() local
550 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_dev_show()
560 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show() local
565 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_indx_show()
567 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_tgt_port_indx_show()
575 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show() local
576 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show()
581 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_name_show()
585 lun->lun_rtpi); in target_stat_tgt_port_name_show()
593 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show() local
594 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show()
599 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_port_index_show()
611 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_in_cmds_show() local
616 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_in_cmds_show()
619 atomic_long_read(&lun->lun_stats.cmd_pdus)); in target_stat_tgt_port_in_cmds_show()
627 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_write_mbytes_show() local
632 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_write_mbytes_show()
635 (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); in target_stat_tgt_port_write_mbytes_show()
643 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_read_mbytes_show() local
648 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_read_mbytes_show()
651 (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); in target_stat_tgt_port_read_mbytes_show()
659 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_hs_in_cmds_show() local
664 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_hs_in_cmds_show()
714 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_inst_show() local
719 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_inst_show()
729 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_device_show() local
731 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show()
735 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_device_show()
748 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_indx_show() local
750 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show()
754 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_indx_show()
765 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_dev_name_show() local
767 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show()
772 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_dev_name_show()
788 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_proto_id_show() local
790 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_proto_id_show()
794 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_proto_id_show()
825 void target_stat_setup_port_default_groups(struct se_lun *lun) in target_stat_setup_port_default_groups() argument
827 config_group_init_type_name(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
829 configfs_add_default_group(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
830 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
832 config_group_init_type_name(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
834 configfs_add_default_group(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
835 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
837 config_group_init_type_name(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
839 configfs_add_default_group(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
840 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
883 struct se_lun *lun; in target_stat_auth_dev_show() local
892 lun = rcu_dereference(deve->se_lun); in target_stat_auth_dev_show()
894 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_auth_dev_show()
1223 struct se_lun *lun; in target_stat_iport_dev_show() local
1232 lun = rcu_dereference(deve->se_lun); in target_stat_iport_dev_show()
1234 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_index); in target_stat_iport_dev_show()