Lines Matching refs:lun

345 CONFIGFS_ATTR_RO(target_stat_lu_, lun);
423 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show() local
428 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_inst_show()
437 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show() local
442 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_dev_show()
451 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show() local
456 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_indx_show()
458 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_port_indx_show()
465 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show() local
470 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_role_show()
480 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show() local
485 dev = rcu_dereference(lun->lun_se_dev); in target_stat_port_busy_count_show()
527 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show() local
532 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_inst_show()
542 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show() local
547 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_dev_show()
557 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show() local
562 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_indx_show()
564 ret = snprintf(page, PAGE_SIZE, "%u\n", lun->lun_rtpi); in target_stat_tgt_port_indx_show()
572 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show() local
573 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_name_show()
578 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_name_show()
582 lun->lun_rtpi); in target_stat_tgt_port_name_show()
590 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show() local
591 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_tgt_port_port_index_show()
596 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_port_index_show()
608 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_in_cmds_show() local
613 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_in_cmds_show()
616 atomic_long_read(&lun->lun_stats.cmd_pdus)); in target_stat_tgt_port_in_cmds_show()
624 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_write_mbytes_show() local
629 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_write_mbytes_show()
632 (u32)(atomic_long_read(&lun->lun_stats.rx_data_octets) >> 20)); in target_stat_tgt_port_write_mbytes_show()
640 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_read_mbytes_show() local
645 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_read_mbytes_show()
648 (u32)(atomic_long_read(&lun->lun_stats.tx_data_octets) >> 20)); in target_stat_tgt_port_read_mbytes_show()
656 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_hs_in_cmds_show() local
661 dev = rcu_dereference(lun->lun_se_dev); in target_stat_tgt_port_hs_in_cmds_show()
711 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_inst_show() local
716 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_inst_show()
726 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_device_show() local
728 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_device_show()
732 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_device_show()
745 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_indx_show() local
747 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_indx_show()
751 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_indx_show()
762 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_dev_name_show() local
764 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_dev_name_show()
769 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_dev_name_show()
785 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_proto_id_show() local
787 struct se_portal_group *tpg = lun->lun_tpg; in target_stat_transport_proto_id_show()
791 dev = rcu_dereference(lun->lun_se_dev); in target_stat_transport_proto_id_show()
822 void target_stat_setup_port_default_groups(struct se_lun *lun) in target_stat_setup_port_default_groups() argument
824 config_group_init_type_name(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
826 configfs_add_default_group(&lun->port_stat_grps.scsi_port_group, in target_stat_setup_port_default_groups()
827 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
829 config_group_init_type_name(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
831 configfs_add_default_group(&lun->port_stat_grps.scsi_tgt_port_group, in target_stat_setup_port_default_groups()
832 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()
834 config_group_init_type_name(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
836 configfs_add_default_group(&lun->port_stat_grps.scsi_transport_group, in target_stat_setup_port_default_groups()
837 &lun->port_stat_grps.stat_group); in target_stat_setup_port_default_groups()