Lines Matching refs:lacl
71 struct se_lun_acl *lacl = container_of(to_config_group(lun_acl_ci), in target_fabric_mappedlun_link() local
124 deve = target_nacl_find_deve(lacl->se_lun_nacl, lacl->mapped_lun); in target_fabric_mappedlun_link()
138 return core_dev_add_initiator_node_lun_acl(se_tpg, lacl, lun, lun_access_ro); in target_fabric_mappedlun_link()
145 struct se_lun_acl *lacl = container_of(to_config_group(lun_acl_ci), in target_fabric_mappedlun_unlink() local
150 core_dev_del_initiator_node_lun_acl(lun, lacl); in target_fabric_mappedlun_unlink()
162 struct se_lun_acl *lacl = item_to_lun_acl(item); in target_fabric_mappedlun_write_protect_show() local
163 struct se_node_acl *se_nacl = lacl->se_lun_nacl; in target_fabric_mappedlun_write_protect_show()
168 deve = target_nacl_find_deve(se_nacl, lacl->mapped_lun); in target_fabric_mappedlun_write_protect_show()
180 struct se_lun_acl *lacl = item_to_lun_acl(item); in target_fabric_mappedlun_write_protect_store() local
181 struct se_node_acl *se_nacl = lacl->se_lun_nacl; in target_fabric_mappedlun_write_protect_store()
194 core_update_device_list_access(lacl->mapped_lun, wp, lacl->se_lun_nacl); in target_fabric_mappedlun_write_protect_store()
199 se_nacl->initiatorname, lacl->mapped_lun, (wp) ? "ON" : "OFF"); in target_fabric_mappedlun_write_protect_store()
214 struct se_lun_acl *lacl = container_of(to_config_group(item), in target_fabric_mappedlun_release() local
216 struct se_portal_group *se_tpg = lacl->se_lun_nacl->se_tpg; in target_fabric_mappedlun_release()
218 core_dev_free_initiator_node_lun_acl(se_tpg, lacl); in target_fabric_mappedlun_release()
272 struct se_lun_acl *lacl = NULL; in target_fabric_make_mappedlun() local
300 lacl = core_dev_init_initiator_node_lun_acl(se_tpg, se_nacl, in target_fabric_make_mappedlun()
302 if (!lacl) { in target_fabric_make_mappedlun()
307 config_group_init_type_name(&lacl->se_lun_group, name, in target_fabric_make_mappedlun()
310 config_group_init_type_name(&lacl->ml_stat_grps.stat_group, in target_fabric_make_mappedlun()
312 configfs_add_default_group(&lacl->ml_stat_grps.stat_group, in target_fabric_make_mappedlun()
313 &lacl->se_lun_group); in target_fabric_make_mappedlun()
315 target_stat_setup_mappedlun_default_groups(lacl); in target_fabric_make_mappedlun()
318 return &lacl->se_lun_group; in target_fabric_make_mappedlun()
320 kfree(lacl); in target_fabric_make_mappedlun()
329 struct se_lun_acl *lacl = container_of(to_config_group(item), in target_fabric_drop_mappedlun() local
332 configfs_remove_default_groups(&lacl->ml_stat_grps.stat_group); in target_fabric_drop_mappedlun()
333 configfs_remove_default_groups(&lacl->se_lun_group); in target_fabric_drop_mappedlun()