Searched refs:deve (Results 1 – 8 of 8) sorted by relevance
/drivers/target/ |
D | target_core_ua.c | 41 struct se_dev_entry *deve; in target_scsi3_ua_check() local 53 deve = target_nacl_find_deve(nacl, cmd->orig_fe_lun); in target_scsi3_ua_check() 54 if (!deve) { in target_scsi3_ua_check() 58 if (!atomic_read(&deve->ua_count)) { in target_scsi3_ua_check() 89 struct se_dev_entry *deve, in core_scsi3_ua_allocate() argument 105 spin_lock(&deve->ua_lock); in core_scsi3_ua_allocate() 106 list_for_each_entry_safe(ua_p, ua_tmp, &deve->ua_list, ua_nacl_list) { in core_scsi3_ua_allocate() 111 spin_unlock(&deve->ua_lock); in core_scsi3_ua_allocate() 137 &deve->ua_list); in core_scsi3_ua_allocate() 140 &deve->ua_list); in core_scsi3_ua_allocate() [all …]
|
D | target_core_stat.c | 852 struct se_dev_entry *deve; in target_stat_auth_inst_show() local 857 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_inst_show() 858 if (!deve) { in target_stat_auth_inst_show() 875 struct se_dev_entry *deve; in target_stat_auth_dev_show() local 880 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_dev_show() 881 if (!deve) { in target_stat_auth_dev_show() 885 lun = rcu_dereference(deve->se_lun); in target_stat_auth_dev_show() 897 struct se_dev_entry *deve; in target_stat_auth_port_show() local 902 deve = target_nacl_find_deve(nacl, lacl->mapped_lun); in target_stat_auth_port_show() 903 if (!deve) { in target_stat_auth_port_show() [all …]
|
D | target_core_device.c | 64 struct se_dev_entry *deve; in transport_lookup_cmd_lun() local 68 deve = target_nacl_find_deve(nacl, unpacked_lun); in transport_lookup_cmd_lun() 69 if (deve) { in transport_lookup_cmd_lun() 70 atomic_long_inc(&deve->total_cmds); in transport_lookup_cmd_lun() 74 &deve->write_bytes); in transport_lookup_cmd_lun() 77 &deve->read_bytes); in transport_lookup_cmd_lun() 79 se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun() 86 se_cmd->se_lun = rcu_dereference(deve->se_lun); in transport_lookup_cmd_lun() 87 se_cmd->pr_res_key = deve->pr_res_key; in transport_lookup_cmd_lun() 93 (deve->lun_flags & TRANSPORT_LUNFLAGS_READ_ONLY)) { in transport_lookup_cmd_lun() [all …]
|
D | target_core_fabric_configfs.c | 74 struct se_dev_entry *deve; in target_fabric_mappedlun_link() local 128 deve = target_nacl_find_deve(lacl->se_lun_nacl, lacl->mapped_lun); in target_fabric_mappedlun_link() 129 if (deve) in target_fabric_mappedlun_link() 130 lun_access = deve->lun_flags; in target_fabric_mappedlun_link() 169 struct se_dev_entry *deve; in target_fabric_mappedlun_write_protect_show() local 173 deve = target_nacl_find_deve(se_nacl, lacl->mapped_lun); in target_fabric_mappedlun_write_protect_show() 174 if (deve) { in target_fabric_mappedlun_write_protect_show() 176 (deve->lun_flags & TRANSPORT_LUNFLAGS_READ_ONLY) ? 1 : 0); in target_fabric_mappedlun_write_protect_show()
|
D | target_core_pr.c | 698 struct se_dev_entry *deve, in __core_scsi3_alloc_registration() argument 716 pr_reg = __core_scsi3_do_alloc_registration(dev, nacl, lun, deve, mapped_lun, in __core_scsi3_alloc_registration() 1063 struct se_dev_entry *deve; in __core_scsi3_add_registration() local 1112 deve = pr_reg_tmp->pr_reg_deve; in __core_scsi3_add_registration() 1113 if (deve) { in __core_scsi3_add_registration() 1114 set_bit(DEF_PR_REG_ACTIVE, &deve->deve_flags); in __core_scsi3_add_registration() 1115 core_scsi3_lunacl_undepend_item(deve); in __core_scsi3_add_registration() 1125 deve = pr_reg->pr_reg_deve; in __core_scsi3_add_registration() 1126 if (deve) { in __core_scsi3_add_registration() 1127 set_bit(DEF_PR_REG_ACTIVE, &deve->deve_flags); in __core_scsi3_add_registration() [all …]
|
D | target_core_tpg.c | 102 struct se_dev_entry *deve; in core_allocate_nexus_loss_ua() local 108 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) in core_allocate_nexus_loss_ua() 109 core_scsi3_ua_allocate(deve, 0x29, in core_allocate_nexus_loss_ua()
|
D | target_core_xcopy.c | 92 struct se_dev_entry *deve; in target_xcopy_locate_se_dev_e4() local 106 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) { in target_xcopy_locate_se_dev_e4() 110 this_lun = rcu_dereference(deve->se_lun); in target_xcopy_locate_se_dev_e4()
|
D | target_core_spc.c | 1202 struct se_dev_entry *deve; in spc_emulate_report_luns() local 1225 hlist_for_each_entry_rcu(deve, &nacl->lun_entry_hlist, link) { in spc_emulate_report_luns() 1235 int_to_scsilun(deve->mapped_lun, &slun); in spc_emulate_report_luns()
|