Lines Matching refs:item
41 static struct se_device *to_stat_dev(struct config_item *item) in to_stat_dev() argument
43 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_dev()
48 static ssize_t target_stat_inst_show(struct config_item *item, char *page) in target_stat_inst_show() argument
50 struct se_hba *hba = to_stat_dev(item)->se_hba; in target_stat_inst_show()
55 static ssize_t target_stat_indx_show(struct config_item *item, char *page) in target_stat_indx_show() argument
57 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
60 static ssize_t target_stat_role_show(struct config_item *item, char *page) in target_stat_role_show() argument
65 static ssize_t target_stat_ports_show(struct config_item *item, char *page) in target_stat_ports_show() argument
67 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
91 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev() argument
93 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_tgt_dev()
98 static ssize_t target_stat_tgt_inst_show(struct config_item *item, char *page) in target_stat_tgt_inst_show() argument
100 struct se_hba *hba = to_stat_tgt_dev(item)->se_hba; in target_stat_tgt_inst_show()
105 static ssize_t target_stat_tgt_indx_show(struct config_item *item, char *page) in target_stat_tgt_indx_show() argument
107 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show()
110 static ssize_t target_stat_tgt_num_lus_show(struct config_item *item, in target_stat_tgt_num_lus_show() argument
116 static ssize_t target_stat_tgt_status_show(struct config_item *item, in target_stat_tgt_status_show() argument
119 if (to_stat_tgt_dev(item)->export_count) in target_stat_tgt_status_show()
125 static ssize_t target_stat_tgt_non_access_lus_show(struct config_item *item, in target_stat_tgt_non_access_lus_show() argument
130 if (to_stat_tgt_dev(item)->export_count) in target_stat_tgt_non_access_lus_show()
138 static ssize_t target_stat_tgt_resets_show(struct config_item *item, in target_stat_tgt_resets_show() argument
142 atomic_long_read(&to_stat_tgt_dev(item)->num_resets)); in target_stat_tgt_resets_show()
145 static ssize_t target_stat_tgt_aborts_complete_show(struct config_item *item, in target_stat_tgt_aborts_complete_show() argument
149 atomic_long_read(&to_stat_tgt_dev(item)->aborts_complete)); in target_stat_tgt_aborts_complete_show()
152 static ssize_t target_stat_tgt_aborts_no_task_show(struct config_item *item, in target_stat_tgt_aborts_no_task_show() argument
156 atomic_long_read(&to_stat_tgt_dev(item)->aborts_no_task)); in target_stat_tgt_aborts_no_task_show()
189 static struct se_device *to_stat_lu_dev(struct config_item *item) in to_stat_lu_dev() argument
191 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_lu_dev()
196 static ssize_t target_stat_lu_inst_show(struct config_item *item, char *page) in target_stat_lu_inst_show() argument
198 struct se_hba *hba = to_stat_lu_dev(item)->se_hba; in target_stat_lu_inst_show()
203 static ssize_t target_stat_lu_dev_show(struct config_item *item, char *page) in target_stat_lu_dev_show() argument
206 to_stat_lu_dev(item)->dev_index); in target_stat_lu_dev_show()
209 static ssize_t target_stat_lu_indx_show(struct config_item *item, char *page) in target_stat_lu_indx_show() argument
214 static ssize_t target_stat_lu_lun_show(struct config_item *item, char *page) in target_stat_lu_lun_show() argument
220 static ssize_t target_stat_lu_lu_name_show(struct config_item *item, char *page) in target_stat_lu_lu_name_show() argument
222 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_lu_name_show()
230 static ssize_t target_stat_lu_vend_show(struct config_item *item, char *page) in target_stat_lu_vend_show() argument
232 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_vend_show()
238 static ssize_t target_stat_lu_prod_show(struct config_item *item, char *page) in target_stat_lu_prod_show() argument
240 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_prod_show()
246 static ssize_t target_stat_lu_rev_show(struct config_item *item, char *page) in target_stat_lu_rev_show() argument
248 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_rev_show()
254 static ssize_t target_stat_lu_dev_type_show(struct config_item *item, char *page) in target_stat_lu_dev_type_show() argument
256 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_dev_type_show()
263 static ssize_t target_stat_lu_status_show(struct config_item *item, char *page) in target_stat_lu_status_show() argument
265 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_status_show()
272 static ssize_t target_stat_lu_state_bit_show(struct config_item *item, in target_stat_lu_state_bit_show() argument
279 static ssize_t target_stat_lu_num_cmds_show(struct config_item *item, in target_stat_lu_num_cmds_show() argument
282 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_num_cmds_show()
289 static ssize_t target_stat_lu_read_mbytes_show(struct config_item *item, in target_stat_lu_read_mbytes_show() argument
292 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_read_mbytes_show()
299 static ssize_t target_stat_lu_write_mbytes_show(struct config_item *item, in target_stat_lu_write_mbytes_show() argument
302 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_write_mbytes_show()
309 static ssize_t target_stat_lu_resets_show(struct config_item *item, char *page) in target_stat_lu_resets_show() argument
311 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_resets_show()
318 static ssize_t target_stat_lu_full_stat_show(struct config_item *item, in target_stat_lu_full_stat_show() argument
325 static ssize_t target_stat_lu_hs_num_cmds_show(struct config_item *item, in target_stat_lu_hs_num_cmds_show() argument
332 static ssize_t target_stat_lu_creation_time_show(struct config_item *item, in target_stat_lu_creation_time_show() argument
335 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_creation_time_show()
414 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port() argument
416 struct se_port_stat_grps *pgrps = container_of(to_config_group(item), in to_stat_port()
421 static ssize_t target_stat_port_inst_show(struct config_item *item, char *page) in target_stat_port_inst_show() argument
423 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show()
435 static ssize_t target_stat_port_dev_show(struct config_item *item, char *page) in target_stat_port_dev_show() argument
437 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show()
449 static ssize_t target_stat_port_indx_show(struct config_item *item, char *page) in target_stat_port_indx_show() argument
451 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show()
463 static ssize_t target_stat_port_role_show(struct config_item *item, char *page) in target_stat_port_role_show() argument
465 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show()
477 static ssize_t target_stat_port_busy_count_show(struct config_item *item, in target_stat_port_busy_count_show() argument
480 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show()
517 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port() argument
519 struct se_port_stat_grps *pgrps = container_of(to_config_group(item), in to_stat_tgt_port()
524 static ssize_t target_stat_tgt_port_inst_show(struct config_item *item, in target_stat_tgt_port_inst_show() argument
527 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show()
539 static ssize_t target_stat_tgt_port_dev_show(struct config_item *item, in target_stat_tgt_port_dev_show() argument
542 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show()
554 static ssize_t target_stat_tgt_port_indx_show(struct config_item *item, in target_stat_tgt_port_indx_show() argument
557 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show()
569 static ssize_t target_stat_tgt_port_name_show(struct config_item *item, in target_stat_tgt_port_name_show() argument
572 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show()
587 static ssize_t target_stat_tgt_port_port_index_show(struct config_item *item, in target_stat_tgt_port_port_index_show() argument
590 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show()
605 static ssize_t target_stat_tgt_port_in_cmds_show(struct config_item *item, in target_stat_tgt_port_in_cmds_show() argument
608 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_in_cmds_show()
621 static ssize_t target_stat_tgt_port_write_mbytes_show(struct config_item *item, in target_stat_tgt_port_write_mbytes_show() argument
624 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_write_mbytes_show()
637 static ssize_t target_stat_tgt_port_read_mbytes_show(struct config_item *item, in target_stat_tgt_port_read_mbytes_show() argument
640 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_read_mbytes_show()
653 static ssize_t target_stat_tgt_port_hs_in_cmds_show(struct config_item *item, in target_stat_tgt_port_hs_in_cmds_show() argument
656 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_hs_in_cmds_show()
701 static struct se_lun *to_transport_stat(struct config_item *item) in to_transport_stat() argument
703 struct se_port_stat_grps *pgrps = container_of(to_config_group(item), in to_transport_stat()
708 static ssize_t target_stat_transport_inst_show(struct config_item *item, in target_stat_transport_inst_show() argument
711 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_inst_show()
723 static ssize_t target_stat_transport_device_show(struct config_item *item, in target_stat_transport_device_show() argument
726 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_device_show()
742 static ssize_t target_stat_transport_indx_show(struct config_item *item, in target_stat_transport_indx_show() argument
745 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_indx_show()
759 static ssize_t target_stat_transport_dev_name_show(struct config_item *item, in target_stat_transport_dev_name_show() argument
762 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_dev_name_show()
782 static ssize_t target_stat_transport_proto_id_show(struct config_item *item, in target_stat_transport_proto_id_show() argument
785 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_proto_id_show()
844 static struct se_lun_acl *auth_to_lacl(struct config_item *item) in auth_to_lacl() argument
846 struct se_ml_stat_grps *lgrps = container_of(to_config_group(item), in auth_to_lacl()
851 static ssize_t target_stat_auth_inst_show(struct config_item *item, in target_stat_auth_inst_show() argument
854 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_inst_show()
874 static ssize_t target_stat_auth_dev_show(struct config_item *item, in target_stat_auth_dev_show() argument
877 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_dev_show()
895 static ssize_t target_stat_auth_port_show(struct config_item *item, in target_stat_auth_port_show() argument
898 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_port_show()
917 static ssize_t target_stat_auth_indx_show(struct config_item *item, in target_stat_auth_indx_show() argument
920 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_indx_show()
937 static ssize_t target_stat_auth_dev_or_port_show(struct config_item *item, in target_stat_auth_dev_or_port_show() argument
940 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_dev_or_port_show()
957 static ssize_t target_stat_auth_intr_name_show(struct config_item *item, in target_stat_auth_intr_name_show() argument
960 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_intr_name_show()
977 static ssize_t target_stat_auth_map_indx_show(struct config_item *item, in target_stat_auth_map_indx_show() argument
980 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_map_indx_show()
997 static ssize_t target_stat_auth_att_count_show(struct config_item *item, in target_stat_auth_att_count_show() argument
1000 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_att_count_show()
1017 static ssize_t target_stat_auth_num_cmds_show(struct config_item *item, in target_stat_auth_num_cmds_show() argument
1020 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_num_cmds_show()
1038 static ssize_t target_stat_auth_read_mbytes_show(struct config_item *item, in target_stat_auth_read_mbytes_show() argument
1041 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_read_mbytes_show()
1059 static ssize_t target_stat_auth_write_mbytes_show(struct config_item *item, in target_stat_auth_write_mbytes_show() argument
1062 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_write_mbytes_show()
1080 static ssize_t target_stat_auth_hs_num_cmds_show(struct config_item *item, in target_stat_auth_hs_num_cmds_show() argument
1083 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_hs_num_cmds_show()
1100 static ssize_t target_stat_auth_creation_time_show(struct config_item *item, in target_stat_auth_creation_time_show() argument
1103 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_creation_time_show()
1121 static ssize_t target_stat_auth_row_status_show(struct config_item *item, in target_stat_auth_row_status_show() argument
1124 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_row_status_show()
1183 static struct se_lun_acl *iport_to_lacl(struct config_item *item) in iport_to_lacl() argument
1185 struct se_ml_stat_grps *lgrps = container_of(to_config_group(item), in iport_to_lacl()
1190 static ssize_t target_stat_iport_inst_show(struct config_item *item, in target_stat_iport_inst_show() argument
1193 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_inst_show()
1213 static ssize_t target_stat_iport_dev_show(struct config_item *item, in target_stat_iport_dev_show() argument
1216 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_dev_show()
1234 static ssize_t target_stat_iport_port_show(struct config_item *item, in target_stat_iport_port_show() argument
1237 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_port_show()
1256 static ssize_t target_stat_iport_indx_show(struct config_item *item, in target_stat_iport_indx_show() argument
1259 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_indx_show()
1280 static ssize_t target_stat_iport_port_auth_indx_show(struct config_item *item, in target_stat_iport_port_auth_indx_show() argument
1283 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_port_auth_indx_show()
1300 static ssize_t target_stat_iport_port_ident_show(struct config_item *item, in target_stat_iport_port_ident_show() argument
1303 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_port_ident_show()