/kernel/linux/linux-5.10/drivers/target/ |
H A D | target_core_ua.c | 28 struct se_dev_entry *deve; in target_scsi3_ua_check() local 40 deve = target_nacl_find_deve(nacl, cmd->orig_fe_lun); in target_scsi3_ua_check() 41 if (!deve) { in target_scsi3_ua_check() 45 if (list_empty_careful(&deve->ua_list)) { in target_scsi3_ua_check() 76 struct se_dev_entry *deve, in core_scsi3_ua_allocate() 92 spin_lock(&deve->ua_lock); in core_scsi3_ua_allocate() 93 list_for_each_entry_safe(ua_p, ua_tmp, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_allocate() 98 spin_unlock(&deve->ua_lock); in core_scsi3_ua_allocate() 124 &deve->ua_list); in core_scsi3_ua_allocate() 127 &deve in core_scsi3_ua_allocate() 75 core_scsi3_ua_allocate( struct se_dev_entry *deve, u8 asc, u8 ascq) core_scsi3_ua_allocate() argument 159 struct se_dev_entry *deve; target_ua_allocate_lun() local 175 core_scsi3_ua_release_all( struct se_dev_entry *deve) core_scsi3_ua_release_all() argument 197 struct se_dev_entry *deve; core_scsi3_ua_for_check_condition() local 271 struct se_dev_entry *deve; core_scsi3_ua_clear_for_request_sense() local [all...] |
H A D | target_core_stat.c | 859 struct se_dev_entry *deve; in target_stat_auth_inst_show() local 864 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_inst_show() 865 if (!deve) { in target_stat_auth_inst_show() 882 struct se_dev_entry *deve; in target_stat_auth_dev_show() local 887 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_dev_show() 888 if (!deve) { in target_stat_auth_dev_show() 892 lun = rcu_dereference(deve->se_lun); in target_stat_auth_dev_show() 904 struct se_dev_entry *deve; in target_stat_auth_port_show() local 909 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_port_show() 910 if (!deve) { in target_stat_auth_port_show() 926 struct se_dev_entry *deve; target_stat_auth_indx_show() local 946 struct se_dev_entry *deve; target_stat_auth_dev_or_port_show() local 966 struct se_dev_entry *deve; target_stat_auth_intr_name_show() local 986 struct se_dev_entry *deve; target_stat_auth_map_indx_show() local 1006 struct se_dev_entry *deve; target_stat_auth_att_count_show() local 1026 struct se_dev_entry *deve; target_stat_auth_num_cmds_show() local 1047 struct se_dev_entry *deve; target_stat_auth_read_mbytes_show() local 1068 struct se_dev_entry *deve; target_stat_auth_write_mbytes_show() local 1089 struct se_dev_entry *deve; target_stat_auth_hs_num_cmds_show() local 1109 struct se_dev_entry *deve; target_stat_auth_creation_time_show() local 1130 struct se_dev_entry *deve; target_stat_auth_row_status_show() local 1199 struct se_dev_entry *deve; target_stat_iport_inst_show() local 1222 struct se_dev_entry *deve; target_stat_iport_dev_show() local 1244 struct se_dev_entry *deve; target_stat_iport_port_show() local 1290 struct se_dev_entry *deve; target_stat_iport_port_auth_indx_show() local [all...] |
H A D | target_core_device.c | 53 struct se_dev_entry *deve; in transport_lookup_cmd_lun() local 57 deve = target_nacl_find_deve(nacl, se_cmd->orig_fe_lun); in transport_lookup_cmd_lun() 58 if (deve) { in transport_lookup_cmd_lun() 59 atomic_long_inc(&deve->total_cmds); in transport_lookup_cmd_lun() 63 &deve->write_bytes); in transport_lookup_cmd_lun() 66 &deve->read_bytes); in transport_lookup_cmd_lun() 68 se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun() 76 se_cmd->pr_res_key = deve->pr_res_key; in transport_lookup_cmd_lun() 81 deve->lun_access_ro) { in transport_lookup_cmd_lun() 148 struct se_dev_entry *deve; in transport_lookup_tmr_lun() local 195 struct se_dev_entry *deve; target_lun_is_rdonly() local 216 struct se_dev_entry *deve; core_get_se_deve_from_rtpi() local 246 struct se_dev_entry *deve; core_free_device_list_for_node() local 262 struct se_dev_entry *deve; core_update_device_list_access() local 276 struct se_dev_entry *deve; target_nacl_find_deve() local 288 struct se_dev_entry *deve = container_of(kref, struct se_dev_entry, target_pr_kref_release() local 456 struct se_dev_entry *deve; core_clear_lun_from_tpg() local 672 struct se_dev_entry *deve; core_dev_del_initiator_node_lun_acl() local [all...] |
H A D | target_core_fabric_configfs.c | 69 struct se_dev_entry *deve; in target_fabric_mappedlun_link() local 120 * deve->lun_access_ro value, which will be true when in target_fabric_mappedlun_link() 124 deve = target_nacl_find_deve(lacl->se_lun_nacl, lacl->mapped_lun); in target_fabric_mappedlun_link() 125 if (deve) in target_fabric_mappedlun_link() 126 lun_access_ro = deve->lun_access_ro; in target_fabric_mappedlun_link() 164 struct se_dev_entry *deve; in target_fabric_mappedlun_write_protect_show() local 168 deve = target_nacl_find_deve(se_nacl, lacl->mapped_lun); in target_fabric_mappedlun_write_protect_show() 169 if (deve) { in target_fabric_mappedlun_write_protect_show() 170 len = sprintf(page, "%d\n", deve->lun_access_ro); in target_fabric_mappedlun_write_protect_show()
|
H A D | target_core_pr.c | 655 pr_err("Unable to locate PR deve %s mapped_lun: %llu\n", in __core_scsi3_do_alloc_registration() 693 struct se_dev_entry *deve, in __core_scsi3_alloc_registration() 711 pr_reg = __core_scsi3_do_alloc_registration(dev, nacl, lun, deve, mapped_lun, in __core_scsi3_alloc_registration() 1058 struct se_dev_entry *deve; in __core_scsi3_add_registration() local 1103 * Drop configfs group dependency reference and deve->pr_kref in __core_scsi3_add_registration() 1107 deve = pr_reg_tmp->pr_reg_deve; in __core_scsi3_add_registration() 1108 if (deve) { in __core_scsi3_add_registration() 1109 set_bit(DEF_PR_REG_ACTIVE, &deve->deve_flags); in __core_scsi3_add_registration() 1110 core_scsi3_lunacl_undepend_item(deve); in __core_scsi3_add_registration() 1117 * Drop deve in __core_scsi3_add_registration() 689 __core_scsi3_alloc_registration( struct se_device *dev, struct se_node_acl *nacl, struct se_lun *lun, struct se_dev_entry *deve, u64 mapped_lun, unsigned char *isid, u64 sa_res_key, int all_tg_pt, int aptpl) __core_scsi3_alloc_registration() argument 1129 core_scsi3_alloc_registration( struct se_device *dev, struct se_node_acl *nacl, struct se_lun *lun, struct se_dev_entry *deve, u64 mapped_lun, unsigned char *isid, u64 sa_res_key, int all_tg_pt, int aptpl, enum register_type register_type, int register_move) core_scsi3_alloc_registration() argument 1286 struct se_dev_entry *deve; global() variable [all...] |
H A D | target_core_tpg.c | 86 struct se_dev_entry *deve; in core_allocate_nexus_loss_ua() local 92 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) in core_allocate_nexus_loss_ua() 93 core_scsi3_ua_allocate(deve, 0x29, in core_allocate_nexus_loss_ua()
|
H A D | target_core_xcopy.c | 86 struct se_dev_entry *deve; in target_xcopy_locate_se_dev_e4() local 100 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) { in target_xcopy_locate_se_dev_e4() 104 this_lun = rcu_dereference(deve->se_lun); in target_xcopy_locate_se_dev_e4()
|
H A D | target_core_spc.c | 1211 struct se_dev_entry *deve; in spc_emulate_report_luns() local 1234 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) { in spc_emulate_report_luns() 1244 int_to_scsilun(deve->mapped_lun, &slun); in spc_emulate_report_luns()
|
/kernel/linux/linux-6.6/drivers/target/ |
H A D | target_core_ua.c | 28 struct se_dev_entry *deve; in target_scsi3_ua_check() local 40 deve = target_nacl_find_deve(nacl, cmd->orig_fe_lun); in target_scsi3_ua_check() 41 if (!deve) { in target_scsi3_ua_check() 45 if (list_empty_careful(&deve->ua_list)) { in target_scsi3_ua_check() 76 struct se_dev_entry *deve, in core_scsi3_ua_allocate() 92 spin_lock(&deve->ua_lock); in core_scsi3_ua_allocate() 93 list_for_each_entry_safe(ua_p, ua_tmp, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_allocate() 98 spin_unlock(&deve->ua_lock); in core_scsi3_ua_allocate() 124 &deve->ua_list); in core_scsi3_ua_allocate() 127 &deve in core_scsi3_ua_allocate() 75 core_scsi3_ua_allocate( struct se_dev_entry *deve, u8 asc, u8 ascq) core_scsi3_ua_allocate() argument 159 struct se_dev_entry *deve; target_ua_allocate_lun() local 175 core_scsi3_ua_release_all( struct se_dev_entry *deve) core_scsi3_ua_release_all() argument 197 struct se_dev_entry *deve; core_scsi3_ua_for_check_condition() local 271 struct se_dev_entry *deve; core_scsi3_ua_clear_for_request_sense() local [all...] |
H A D | target_core_stat.c | 856 struct se_dev_entry *deve; in target_stat_auth_inst_show() local 861 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_inst_show() 862 if (!deve) { in target_stat_auth_inst_show() 879 struct se_dev_entry *deve; in target_stat_auth_dev_show() local 883 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_dev_show() 884 if (!deve) { in target_stat_auth_dev_show() 890 ret = snprintf(page, PAGE_SIZE, "%u\n", deve->se_lun->lun_index); in target_stat_auth_dev_show() 900 struct se_dev_entry *deve; in target_stat_auth_port_show() local 905 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_port_show() 906 if (!deve) { in target_stat_auth_port_show() 922 struct se_dev_entry *deve; target_stat_auth_indx_show() local 942 struct se_dev_entry *deve; target_stat_auth_dev_or_port_show() local 962 struct se_dev_entry *deve; target_stat_auth_intr_name_show() local 982 struct se_dev_entry *deve; target_stat_auth_map_indx_show() local 1002 struct se_dev_entry *deve; target_stat_auth_att_count_show() local 1022 struct se_dev_entry *deve; target_stat_auth_num_cmds_show() local 1043 struct se_dev_entry *deve; target_stat_auth_read_mbytes_show() local 1064 struct se_dev_entry *deve; target_stat_auth_write_mbytes_show() local 1085 struct se_dev_entry *deve; target_stat_auth_hs_num_cmds_show() local 1105 struct se_dev_entry *deve; target_stat_auth_creation_time_show() local 1126 struct se_dev_entry *deve; target_stat_auth_row_status_show() local 1195 struct se_dev_entry *deve; target_stat_iport_inst_show() local 1218 struct se_dev_entry *deve; target_stat_iport_dev_show() local 1239 struct se_dev_entry *deve; target_stat_iport_port_show() local 1285 struct se_dev_entry *deve; target_stat_iport_port_auth_indx_show() local [all...] |
H A D | target_core_device.c | 53 struct se_dev_entry *deve; in transport_lookup_cmd_lun() local 57 deve = target_nacl_find_deve(nacl, se_cmd->orig_fe_lun); in transport_lookup_cmd_lun() 58 if (deve) { in transport_lookup_cmd_lun() 59 atomic_long_inc(&deve->total_cmds); in transport_lookup_cmd_lun() 63 &deve->write_bytes); in transport_lookup_cmd_lun() 66 &deve->read_bytes); in transport_lookup_cmd_lun() 69 deve->lun_access_ro) { in transport_lookup_cmd_lun() 78 se_lun = deve->se_lun; in transport_lookup_cmd_lun() 86 se_cmd->pr_res_key = deve->pr_res_key; in transport_lookup_cmd_lun() 145 struct se_dev_entry *deve; in transport_lookup_tmr_lun() local 187 struct se_dev_entry *deve; target_lun_is_rdonly() local 208 struct se_dev_entry *deve; core_get_se_deve_from_rtpi() local 238 struct se_dev_entry *deve; core_free_device_list_for_node() local 251 struct se_dev_entry *deve; core_update_device_list_access() local 265 struct se_dev_entry *deve; target_nacl_find_deve() local 277 struct se_dev_entry *deve = container_of(kref, struct se_dev_entry, target_pr_kref_release() local 460 struct se_dev_entry *deve; core_clear_lun_from_tpg() local 632 struct se_dev_entry *deve; core_dev_del_initiator_node_lun_acl() local [all...] |
H A D | target_core_fabric_configfs.c | 70 struct se_dev_entry *deve; in target_fabric_mappedlun_link() local 121 * deve->lun_access_ro value, which will be true when in target_fabric_mappedlun_link() 125 deve = target_nacl_find_deve(lacl->se_lun_nacl, lacl->mapped_lun); in target_fabric_mappedlun_link() 126 if (deve) in target_fabric_mappedlun_link() 127 lun_access_ro = deve->lun_access_ro; in target_fabric_mappedlun_link() 165 struct se_dev_entry *deve; in target_fabric_mappedlun_write_protect_show() local 169 deve = target_nacl_find_deve(se_nacl, lacl->mapped_lun); in target_fabric_mappedlun_write_protect_show() 170 if (deve) { in target_fabric_mappedlun_write_protect_show() 171 len = sprintf(page, "%d\n", deve->lun_access_ro); in target_fabric_mappedlun_write_protect_show()
|
H A D | target_core_pr.c | 656 pr_err("Unable to locate PR deve %s mapped_lun: %llu\n", in __core_scsi3_do_alloc_registration() 694 struct se_dev_entry *deve, in __core_scsi3_alloc_registration() 712 pr_reg = __core_scsi3_do_alloc_registration(dev, nacl, lun, deve, mapped_lun, in __core_scsi3_alloc_registration() 1053 struct se_dev_entry *deve; in __core_scsi3_add_registration() local 1098 * Drop configfs group dependency reference and deve->pr_kref in __core_scsi3_add_registration() 1102 deve = pr_reg_tmp->pr_reg_deve; in __core_scsi3_add_registration() 1103 if (deve) { in __core_scsi3_add_registration() 1104 set_bit(DEF_PR_REG_ACTIVE, &deve->deve_flags); in __core_scsi3_add_registration() 1105 core_scsi3_lunacl_undepend_item(deve); in __core_scsi3_add_registration() 1112 * Drop deve in __core_scsi3_add_registration() 690 __core_scsi3_alloc_registration( struct se_device *dev, struct se_node_acl *nacl, struct se_lun *lun, struct se_dev_entry *deve, u64 mapped_lun, unsigned char *isid, u64 sa_res_key, int all_tg_pt, int aptpl) __core_scsi3_alloc_registration() argument 1124 core_scsi3_alloc_registration( struct se_device *dev, struct se_node_acl *nacl, struct se_lun *lun, struct se_dev_entry *deve, u64 mapped_lun, unsigned char *isid, u64 sa_res_key, int all_tg_pt, int aptpl, enum register_type register_type, int register_move) core_scsi3_alloc_registration() argument 1281 struct se_dev_entry *deve; global() variable [all...] |
H A D | target_core_tpg.c | 87 struct se_dev_entry *deve; in core_allocate_nexus_loss_ua() local 93 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) in core_allocate_nexus_loss_ua() 94 core_scsi3_ua_allocate(deve, 0x29, in core_allocate_nexus_loss_ua()
|
H A D | target_core_xcopy.c | 73 struct se_dev_entry *deve; in target_xcopy_locate_se_dev_e4() local 87 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) { in target_xcopy_locate_se_dev_e4() 91 this_lun = deve->se_lun; in target_xcopy_locate_se_dev_e4()
|
H A D | target_core_spc.c | 1239 struct se_dev_entry *deve; in spc_emulate_report_luns() local 1262 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) { in spc_emulate_report_luns() 1272 int_to_scsilun(deve->mapped_lun, &slun); in spc_emulate_report_luns()
|