Lines Matching refs:item

57 static struct se_device *to_stat_dev(struct config_item *item)  in to_stat_dev()  argument
59 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_dev()
64 static ssize_t target_stat_inst_show(struct config_item *item, char *page) in target_stat_inst_show() argument
66 struct se_hba *hba = to_stat_dev(item)->se_hba; in target_stat_inst_show()
71 static ssize_t target_stat_indx_show(struct config_item *item, char *page) in target_stat_indx_show() argument
73 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->dev_index); in target_stat_indx_show()
76 static ssize_t target_stat_role_show(struct config_item *item, char *page) in target_stat_role_show() argument
81 static ssize_t target_stat_ports_show(struct config_item *item, char *page) in target_stat_ports_show() argument
83 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_dev(item)->export_count); in target_stat_ports_show()
107 static struct se_device *to_stat_tgt_dev(struct config_item *item) in to_stat_tgt_dev() argument
109 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_tgt_dev()
114 static ssize_t target_stat_tgt_inst_show(struct config_item *item, char *page) in target_stat_tgt_inst_show() argument
116 struct se_hba *hba = to_stat_tgt_dev(item)->se_hba; in target_stat_tgt_inst_show()
121 static ssize_t target_stat_tgt_indx_show(struct config_item *item, char *page) in target_stat_tgt_indx_show() argument
123 return snprintf(page, PAGE_SIZE, "%u\n", to_stat_tgt_dev(item)->dev_index); in target_stat_tgt_indx_show()
126 static ssize_t target_stat_tgt_num_lus_show(struct config_item *item, in target_stat_tgt_num_lus_show() argument
132 static ssize_t target_stat_tgt_status_show(struct config_item *item, in target_stat_tgt_status_show() argument
135 if (to_stat_tgt_dev(item)->export_count) in target_stat_tgt_status_show()
141 static ssize_t target_stat_tgt_non_access_lus_show(struct config_item *item, in target_stat_tgt_non_access_lus_show() argument
146 if (to_stat_tgt_dev(item)->export_count) in target_stat_tgt_non_access_lus_show()
154 static ssize_t target_stat_tgt_resets_show(struct config_item *item, in target_stat_tgt_resets_show() argument
158 atomic_long_read(&to_stat_tgt_dev(item)->num_resets)); in target_stat_tgt_resets_show()
187 static struct se_device *to_stat_lu_dev(struct config_item *item) in to_stat_lu_dev() argument
189 struct se_dev_stat_grps *sgrps = container_of(to_config_group(item), in to_stat_lu_dev()
194 static ssize_t target_stat_lu_inst_show(struct config_item *item, char *page) in target_stat_lu_inst_show() argument
196 struct se_hba *hba = to_stat_lu_dev(item)->se_hba; in target_stat_lu_inst_show()
201 static ssize_t target_stat_lu_dev_show(struct config_item *item, char *page) in target_stat_lu_dev_show() argument
204 to_stat_lu_dev(item)->dev_index); in target_stat_lu_dev_show()
207 static ssize_t target_stat_lu_indx_show(struct config_item *item, char *page) in target_stat_lu_indx_show() argument
212 static ssize_t target_stat_lu_lun_show(struct config_item *item, char *page) in target_stat_lu_lun_show() argument
218 static ssize_t target_stat_lu_lu_name_show(struct config_item *item, char *page) in target_stat_lu_lu_name_show() argument
220 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_lu_name_show()
228 static ssize_t target_stat_lu_vend_show(struct config_item *item, char *page) in target_stat_lu_vend_show() argument
230 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_vend_show()
242 static ssize_t target_stat_lu_prod_show(struct config_item *item, char *page) in target_stat_lu_prod_show() argument
244 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_prod_show()
256 static ssize_t target_stat_lu_rev_show(struct config_item *item, char *page) in target_stat_lu_rev_show() argument
258 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_rev_show()
270 static ssize_t target_stat_lu_dev_type_show(struct config_item *item, char *page) in target_stat_lu_dev_type_show() argument
272 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_dev_type_show()
279 static ssize_t target_stat_lu_status_show(struct config_item *item, char *page) in target_stat_lu_status_show() argument
281 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_status_show()
288 static ssize_t target_stat_lu_state_bit_show(struct config_item *item, in target_stat_lu_state_bit_show() argument
295 static ssize_t target_stat_lu_num_cmds_show(struct config_item *item, in target_stat_lu_num_cmds_show() argument
298 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_num_cmds_show()
305 static ssize_t target_stat_lu_read_mbytes_show(struct config_item *item, in target_stat_lu_read_mbytes_show() argument
308 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_read_mbytes_show()
315 static ssize_t target_stat_lu_write_mbytes_show(struct config_item *item, in target_stat_lu_write_mbytes_show() argument
318 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_write_mbytes_show()
325 static ssize_t target_stat_lu_resets_show(struct config_item *item, char *page) in target_stat_lu_resets_show() argument
327 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_resets_show()
334 static ssize_t target_stat_lu_full_stat_show(struct config_item *item, in target_stat_lu_full_stat_show() argument
341 static ssize_t target_stat_lu_hs_num_cmds_show(struct config_item *item, in target_stat_lu_hs_num_cmds_show() argument
348 static ssize_t target_stat_lu_creation_time_show(struct config_item *item, in target_stat_lu_creation_time_show() argument
351 struct se_device *dev = to_stat_lu_dev(item); in target_stat_lu_creation_time_show()
429 static struct se_lun *to_stat_port(struct config_item *item) in to_stat_port() argument
431 struct se_port_stat_grps *pgrps = container_of(to_config_group(item), in to_stat_port()
436 static ssize_t target_stat_port_inst_show(struct config_item *item, char *page) in target_stat_port_inst_show() argument
438 struct se_lun *lun = to_stat_port(item); in target_stat_port_inst_show()
450 static ssize_t target_stat_port_dev_show(struct config_item *item, char *page) in target_stat_port_dev_show() argument
452 struct se_lun *lun = to_stat_port(item); in target_stat_port_dev_show()
464 static ssize_t target_stat_port_indx_show(struct config_item *item, char *page) in target_stat_port_indx_show() argument
466 struct se_lun *lun = to_stat_port(item); in target_stat_port_indx_show()
478 static ssize_t target_stat_port_role_show(struct config_item *item, char *page) in target_stat_port_role_show() argument
480 struct se_lun *lun = to_stat_port(item); in target_stat_port_role_show()
492 static ssize_t target_stat_port_busy_count_show(struct config_item *item, in target_stat_port_busy_count_show() argument
495 struct se_lun *lun = to_stat_port(item); in target_stat_port_busy_count_show()
532 static struct se_lun *to_stat_tgt_port(struct config_item *item) in to_stat_tgt_port() argument
534 struct se_port_stat_grps *pgrps = container_of(to_config_group(item), in to_stat_tgt_port()
539 static ssize_t target_stat_tgt_port_inst_show(struct config_item *item, in target_stat_tgt_port_inst_show() argument
542 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_inst_show()
554 static ssize_t target_stat_tgt_port_dev_show(struct config_item *item, in target_stat_tgt_port_dev_show() argument
557 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_dev_show()
569 static ssize_t target_stat_tgt_port_indx_show(struct config_item *item, in target_stat_tgt_port_indx_show() argument
572 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_indx_show()
584 static ssize_t target_stat_tgt_port_name_show(struct config_item *item, in target_stat_tgt_port_name_show() argument
587 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_name_show()
602 static ssize_t target_stat_tgt_port_port_index_show(struct config_item *item, in target_stat_tgt_port_port_index_show() argument
605 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_port_index_show()
620 static ssize_t target_stat_tgt_port_in_cmds_show(struct config_item *item, in target_stat_tgt_port_in_cmds_show() argument
623 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_in_cmds_show()
636 static ssize_t target_stat_tgt_port_write_mbytes_show(struct config_item *item, in target_stat_tgt_port_write_mbytes_show() argument
639 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_write_mbytes_show()
652 static ssize_t target_stat_tgt_port_read_mbytes_show(struct config_item *item, in target_stat_tgt_port_read_mbytes_show() argument
655 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_read_mbytes_show()
668 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
671 struct se_lun *lun = to_stat_tgt_port(item); in target_stat_tgt_port_hs_in_cmds_show()
716 static struct se_lun *to_transport_stat(struct config_item *item) in to_transport_stat() argument
718 struct se_port_stat_grps *pgrps = container_of(to_config_group(item), in to_transport_stat()
723 static ssize_t target_stat_transport_inst_show(struct config_item *item, in target_stat_transport_inst_show() argument
726 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_inst_show()
738 static ssize_t target_stat_transport_device_show(struct config_item *item, in target_stat_transport_device_show() argument
741 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_device_show()
757 static ssize_t target_stat_transport_indx_show(struct config_item *item, in target_stat_transport_indx_show() argument
760 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_indx_show()
774 static ssize_t target_stat_transport_dev_name_show(struct config_item *item, in target_stat_transport_dev_name_show() argument
777 struct se_lun *lun = to_transport_stat(item); in target_stat_transport_dev_name_show()
840 static struct se_lun_acl *auth_to_lacl(struct config_item *item) in auth_to_lacl() argument
842 struct se_ml_stat_grps *lgrps = container_of(to_config_group(item), in auth_to_lacl()
847 static ssize_t target_stat_auth_inst_show(struct config_item *item, in target_stat_auth_inst_show() argument
850 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_inst_show()
870 static ssize_t target_stat_auth_dev_show(struct config_item *item, in target_stat_auth_dev_show() argument
873 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_dev_show()
892 static ssize_t target_stat_auth_port_show(struct config_item *item, in target_stat_auth_port_show() argument
895 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_port_show()
914 static ssize_t target_stat_auth_indx_show(struct config_item *item, in target_stat_auth_indx_show() argument
917 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_indx_show()
934 static ssize_t target_stat_auth_dev_or_port_show(struct config_item *item, in target_stat_auth_dev_or_port_show() argument
937 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_dev_or_port_show()
954 static ssize_t target_stat_auth_intr_name_show(struct config_item *item, in target_stat_auth_intr_name_show() argument
957 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_intr_name_show()
974 static ssize_t target_stat_auth_map_indx_show(struct config_item *item, in target_stat_auth_map_indx_show() argument
977 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_map_indx_show()
994 static ssize_t target_stat_auth_att_count_show(struct config_item *item, in target_stat_auth_att_count_show() argument
997 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_att_count_show()
1014 static ssize_t target_stat_auth_num_cmds_show(struct config_item *item, in target_stat_auth_num_cmds_show() argument
1017 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_num_cmds_show()
1035 static ssize_t target_stat_auth_read_mbytes_show(struct config_item *item, in target_stat_auth_read_mbytes_show() argument
1038 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_read_mbytes_show()
1056 static ssize_t target_stat_auth_write_mbytes_show(struct config_item *item, in target_stat_auth_write_mbytes_show() argument
1059 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_write_mbytes_show()
1077 static ssize_t target_stat_auth_hs_num_cmds_show(struct config_item *item, in target_stat_auth_hs_num_cmds_show() argument
1080 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_hs_num_cmds_show()
1097 static ssize_t target_stat_auth_creation_time_show(struct config_item *item, in target_stat_auth_creation_time_show() argument
1100 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_creation_time_show()
1118 static ssize_t target_stat_auth_row_status_show(struct config_item *item, in target_stat_auth_row_status_show() argument
1121 struct se_lun_acl *lacl = auth_to_lacl(item); in target_stat_auth_row_status_show()
1180 static struct se_lun_acl *iport_to_lacl(struct config_item *item) in iport_to_lacl() argument
1182 struct se_ml_stat_grps *lgrps = container_of(to_config_group(item), in iport_to_lacl()
1187 static ssize_t target_stat_iport_inst_show(struct config_item *item, in target_stat_iport_inst_show() argument
1190 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_inst_show()
1210 static ssize_t target_stat_iport_dev_show(struct config_item *item, in target_stat_iport_dev_show() argument
1213 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_dev_show()
1232 static ssize_t target_stat_iport_port_show(struct config_item *item, in target_stat_iport_port_show() argument
1235 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_port_show()
1254 static ssize_t target_stat_iport_indx_show(struct config_item *item, in target_stat_iport_indx_show() argument
1257 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_indx_show()
1278 static ssize_t target_stat_iport_port_auth_indx_show(struct config_item *item, in target_stat_iport_port_auth_indx_show() argument
1281 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_port_auth_indx_show()
1298 static ssize_t target_stat_iport_port_ident_show(struct config_item *item, in target_stat_iport_port_ident_show() argument
1301 struct se_lun_acl *lacl = iport_to_lacl(item); in target_stat_iport_port_ident_show()