Home
last modified time | relevance | path

Searched refs:nacl (Results 1 – 18 of 18) sorted by relevance

/drivers/target/
Dtarget_core_ua.c45 struct se_node_acl *nacl; in target_scsi3_ua_check() local
50 nacl = sess->se_node_acl; in target_scsi3_ua_check()
51 if (!nacl) in target_scsi3_ua_check()
54 deve = nacl->device_list[cmd->orig_fe_lun]; in target_scsi3_ua_check()
83 struct se_node_acl *nacl, in core_scsi3_ua_allocate() argument
93 if (!nacl) in core_scsi3_ua_allocate()
103 ua->ua_nacl = nacl; in core_scsi3_ua_allocate()
107 spin_lock_irq(&nacl->device_list_lock); in core_scsi3_ua_allocate()
108 deve = nacl->device_list[unpacked_lun]; in core_scsi3_ua_allocate()
117 spin_unlock_irq(&nacl->device_list_lock); in core_scsi3_ua_allocate()
[all …]
Dtarget_core_stat.c1083 struct se_node_acl *nacl = lacl->se_lun_nacl; in target_stat_scsi_auth_intr_show_attr_inst() local
1088 spin_lock_irq(&nacl->device_list_lock); in target_stat_scsi_auth_intr_show_attr_inst()
1089 deve = nacl->device_list[lacl->mapped_lun]; in target_stat_scsi_auth_intr_show_attr_inst()
1091 spin_unlock_irq(&nacl->device_list_lock); in target_stat_scsi_auth_intr_show_attr_inst()
1094 tpg = nacl->se_tpg; in target_stat_scsi_auth_intr_show_attr_inst()
1098 spin_unlock_irq(&nacl->device_list_lock); in target_stat_scsi_auth_intr_show_attr_inst()
1108 struct se_node_acl *nacl = lacl->se_lun_nacl; in target_stat_scsi_auth_intr_show_attr_dev() local
1113 spin_lock_irq(&nacl->device_list_lock); in target_stat_scsi_auth_intr_show_attr_dev()
1114 deve = nacl->device_list[lacl->mapped_lun]; in target_stat_scsi_auth_intr_show_attr_dev()
1116 spin_unlock_irq(&nacl->device_list_lock); in target_stat_scsi_auth_intr_show_attr_dev()
[all …]
Dtarget_core_device.c194 struct se_node_acl *nacl, in core_get_se_deve_from_rtpi() argument
200 struct se_portal_group *tpg = nacl->se_tpg; in core_get_se_deve_from_rtpi()
203 spin_lock_irq(&nacl->device_list_lock); in core_get_se_deve_from_rtpi()
205 deve = nacl->device_list[i]; in core_get_se_deve_from_rtpi()
228 spin_unlock_irq(&nacl->device_list_lock); in core_get_se_deve_from_rtpi()
232 spin_unlock_irq(&nacl->device_list_lock); in core_get_se_deve_from_rtpi()
238 struct se_node_acl *nacl, in core_free_device_list_for_node() argument
245 if (!nacl->device_list) in core_free_device_list_for_node()
248 spin_lock_irq(&nacl->device_list_lock); in core_free_device_list_for_node()
250 deve = nacl->device_list[i]; in core_free_device_list_for_node()
[all …]
Dtarget_core_tpg.c55 struct se_node_acl *nacl, in core_clear_initiator_node_from_tpg() argument
62 spin_lock_irq(&nacl->device_list_lock); in core_clear_initiator_node_from_tpg()
64 deve = nacl->device_list[i]; in core_clear_initiator_node_from_tpg()
77 spin_unlock_irq(&nacl->device_list_lock); in core_clear_initiator_node_from_tpg()
79 TRANSPORT_LUNFLAGS_NO_ACCESS, nacl, tpg); in core_clear_initiator_node_from_tpg()
81 spin_lock_irq(&nacl->device_list_lock); in core_clear_initiator_node_from_tpg()
83 spin_unlock_irq(&nacl->device_list_lock); in core_clear_initiator_node_from_tpg()
232 static int core_create_device_list_for_node(struct se_node_acl *nacl) in core_create_device_list_for_node() argument
237 nacl->device_list = array_zalloc(TRANSPORT_MAX_LUNS_PER_TPG, in core_create_device_list_for_node()
239 if (!nacl->device_list) { in core_create_device_list_for_node()
[all …]
Dtarget_core_pr.c596 struct se_node_acl *nacl, in __core_scsi3_do_alloc_registration() argument
617 pr_reg->pr_reg_nacl = nacl; in __core_scsi3_do_alloc_registration()
647 struct se_node_acl *nacl, in __core_scsi3_alloc_registration() argument
657 struct target_core_fabric_ops *tfo = nacl->se_tpg->se_tpg_tfo; in __core_scsi3_alloc_registration()
664 pr_reg = __core_scsi3_do_alloc_registration(dev, nacl, deve, isid, in __core_scsi3_alloc_registration()
698 if (nacl == nacl_tmp) in __core_scsi3_alloc_registration()
710 if (strcmp(nacl->initiatorname, nacl_tmp->initiatorname)) in __core_scsi3_alloc_registration()
873 struct se_node_acl *nacl, in __core_scsi3_check_aptpl_registration() argument
887 snprintf(i_port, PR_APTPL_MAX_IPORT_LEN, "%s", nacl->initiatorname); in __core_scsi3_check_aptpl_registration()
907 pr_reg->pr_reg_nacl = nacl; in __core_scsi3_check_aptpl_registration()
[all …]
Dtarget_core_transport.c409 struct se_node_acl *nacl = container_of(kref, in target_complete_nacl() local
412 complete(&nacl->acl_free_comp); in target_complete_nacl()
415 void target_put_nacl(struct se_node_acl *nacl) in target_put_nacl() argument
417 kref_put(&nacl->acl_kref, target_complete_nacl); in target_put_nacl()
Dtarget_core_fabric_configfs.c148 struct se_node_acl *nacl = lacl->se_lun_nacl; in target_fabric_mappedlun_unlink() local
149 struct se_dev_entry *deve = nacl->device_list[lacl->mapped_lun]; in target_fabric_mappedlun_unlink()
Dtarget_core_alua.c289 struct se_node_acl *nacl = cmd->se_sess->se_node_acl; in target_emulate_set_target_port_groups() local
400 dev, l_port, nacl, in target_emulate_set_target_port_groups()
/drivers/scsi/qla2xxx/
Dtcm_qla2xxx.c342 struct tcm_qla2xxx_nacl *nacl; in tcm_qla2xxx_alloc_fabric_acl() local
344 nacl = kzalloc(sizeof(struct tcm_qla2xxx_nacl), GFP_KERNEL); in tcm_qla2xxx_alloc_fabric_acl()
345 if (!nacl) { in tcm_qla2xxx_alloc_fabric_acl()
350 return &nacl->se_node_acl; in tcm_qla2xxx_alloc_fabric_acl()
357 struct tcm_qla2xxx_nacl *nacl = container_of(se_nacl, in tcm_qla2xxx_release_fabric_acl() local
359 kfree(nacl); in tcm_qla2xxx_release_fabric_acl()
524 static void tcm_qla2xxx_set_default_node_attrs(struct se_node_acl *nacl) in tcm_qla2xxx_set_default_node_attrs() argument
773 struct tcm_qla2xxx_nacl *nacl = container_of(se_nacl, in tcm_qla2xxx_clear_nacl_from_fcport_map() local
777 pr_debug("fc_rport domain: port_id 0x%06x\n", nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map()
779 node = btree_remove32(&lport->lport_fcport_map, nacl->nport_id); in tcm_qla2xxx_clear_nacl_from_fcport_map()
[all …]
/drivers/infiniband/ulp/srpt/
Dib_srpt.c2327 struct srpt_node_acl *nacl; in __srpt_lookup_acl() local
2329 list_for_each_entry(nacl, &sport->port_acl_list, list) in __srpt_lookup_acl()
2330 if (memcmp(nacl->i_port_id, i_port_id, in __srpt_lookup_acl()
2331 sizeof(nacl->i_port_id)) == 0) in __srpt_lookup_acl()
2332 return nacl; in __srpt_lookup_acl()
2340 struct srpt_node_acl *nacl; in srpt_lookup_acl() local
2343 nacl = __srpt_lookup_acl(sport, i_port_id); in srpt_lookup_acl()
2346 return nacl; in srpt_lookup_acl()
2366 struct srpt_node_acl *nacl; in srpt_cm_req_recv() local
2529 nacl = srpt_lookup_acl(sport, ch->i_port_id); in srpt_cm_req_recv()
[all …]
Dib_srpt.h421 struct se_node_acl nacl; member
/drivers/target/iscsi/
Discsi_target_nodeattrib.c28 struct iscsi_node_acl *nacl) in iscsit_na_get_initiatorname() argument
30 struct se_node_acl *se_nacl = &nacl->se_node_acl; in iscsit_na_get_initiatorname()
109 struct se_node_acl *se_nacl = &a->nacl->se_node_acl; in iscsit_na_nopin_timeout()
Discsi_target_configfs.c372 struct iscsi_node_acl *nacl = container_of(se_nacl, struct iscsi_node_acl, \
375 return sprintf(page, "%u\n", nacl->node_attrib.name); \
383 struct iscsi_node_acl *nacl = container_of(se_nacl, struct iscsi_node_acl, \
391 ret = iscsit_na_##name(nacl, val); \
458 struct iscsi_node_acl *nacl, \
461 struct iscsi_node_auth *auth = &nacl->node_auth; \
469 struct iscsi_node_acl *nacl, \
473 struct iscsi_node_auth *auth = &nacl->node_auth; \
496 struct iscsi_node_acl *nacl, \
499 struct iscsi_node_auth *auth = &nacl->node_auth; \
[all …]
Discsi_target_core.h732 struct iscsi_node_acl *nacl; member
/drivers/vhost/
Dscsi.c433 struct tcm_vhost_nacl *nacl; in tcm_vhost_alloc_fabric_acl() local
435 nacl = kzalloc(sizeof(struct tcm_vhost_nacl), GFP_KERNEL); in tcm_vhost_alloc_fabric_acl()
436 if (!nacl) { in tcm_vhost_alloc_fabric_acl()
441 return &nacl->se_node_acl; in tcm_vhost_alloc_fabric_acl()
448 struct tcm_vhost_nacl *nacl = container_of(se_nacl, in tcm_vhost_release_fabric_acl() local
450 kfree(nacl); in tcm_vhost_release_fabric_acl()
505 static void tcm_vhost_set_default_node_attrs(struct se_node_acl *nacl) in tcm_vhost_set_default_node_attrs() argument
1809 struct tcm_vhost_nacl *nacl; in tcm_vhost_make_nodeacl() local
1833 nacl = container_of(se_nacl, struct tcm_vhost_nacl, se_node_acl); in tcm_vhost_make_nodeacl()
1834 nacl->iport_wwpn = wwpn; in tcm_vhost_make_nodeacl()
[all …]
/drivers/usb/gadget/legacy/
Dtcm_usb_gadget.c1383 struct usbg_nacl *nacl; in usbg_alloc_fabric_acl() local
1385 nacl = kzalloc(sizeof(struct usbg_nacl), GFP_KERNEL); in usbg_alloc_fabric_acl()
1386 if (!nacl) in usbg_alloc_fabric_acl()
1389 return &nacl->se_node_acl; in usbg_alloc_fabric_acl()
1396 struct usbg_nacl *nacl = container_of(se_nacl, in usbg_release_fabric_acl() local
1398 kfree(nacl); in usbg_release_fabric_acl()
1446 static void usbg_set_default_node_attrs(struct se_node_acl *nacl) in usbg_set_default_node_attrs() argument
1498 struct usbg_nacl *nacl; in usbg_make_nodeacl() local
1524 nacl = container_of(se_nacl, struct usbg_nacl, se_node_acl); in usbg_make_nodeacl()
1525 nacl->iport_wwpn = wwpn; in usbg_make_nodeacl()
[all …]
/drivers/target/sbp/
Dsbp_target.c1718 struct sbp_nacl *nacl; in sbp_alloc_fabric_acl() local
1720 nacl = kzalloc(sizeof(struct sbp_nacl), GFP_KERNEL); in sbp_alloc_fabric_acl()
1721 if (!nacl) { in sbp_alloc_fabric_acl()
1726 return &nacl->se_node_acl; in sbp_alloc_fabric_acl()
1733 struct sbp_nacl *nacl = in sbp_release_fabric_acl() local
1735 kfree(nacl); in sbp_release_fabric_acl()
1794 static void sbp_set_default_node_attrs(struct se_node_acl *nacl) in sbp_set_default_node_attrs() argument
2110 struct sbp_nacl *nacl; in sbp_make_nodeacl() local
2132 nacl = container_of(se_nacl, struct sbp_nacl, se_node_acl); in sbp_make_nodeacl()
2133 nacl->guid = guid; in sbp_make_nodeacl()
[all …]
/drivers/xen/
Dxen-scsiback.c1522 static void scsiback_set_default_node_attrs(struct se_node_acl *nacl) in scsiback_set_default_node_attrs() argument