Lines Matching refs:tgt_node

1058 	struct efct_node *tgt_node = container_of(arg, struct efct_node, ref);  in _efct_tgt_node_free()  local
1059 struct efc_node *node = tgt_node->node; in _efct_tgt_node_free()
1062 kfree(tgt_node); in _efct_tgt_node_free()
1069 struct efct_node *tgt_node; in efct_session_cb() local
1072 tgt_node = kzalloc(sizeof(*tgt_node), GFP_KERNEL); in efct_session_cb()
1073 if (!tgt_node) in efct_session_cb()
1076 kref_init(&tgt_node->ref); in efct_session_cb()
1077 tgt_node->release = _efct_tgt_node_free; in efct_session_cb()
1079 tgt_node->session = se_sess; in efct_session_cb()
1080 node->tgt_node = tgt_node; in efct_session_cb()
1081 tgt_node->efct = efct; in efct_session_cb()
1083 tgt_node->node = node; in efct_session_cb()
1085 tgt_node->node_fc_id = node->rnode.fc_id; in efct_session_cb()
1086 tgt_node->port_fc_id = node->nport->fc_id; in efct_session_cb()
1087 tgt_node->vpi = node->nport->indicator; in efct_session_cb()
1088 tgt_node->rpi = node->rnode.indicator; in efct_session_cb()
1090 spin_lock_init(&tgt_node->active_ios_lock); in efct_session_cb()
1091 INIT_LIST_HEAD(&tgt_node->active_ios); in efct_session_cb()
1162 struct efct_node *tgt_node; in efct_lio_setup_session() local
1199 tgt_node = node->tgt_node; in efct_lio_setup_session()
1200 id = (u64) tgt_node->port_fc_id << 32 | tgt_node->node_fc_id; in efct_lio_setup_session()
1205 if (xa_err(xa_store(&efct->lookup, id, tgt_node, GFP_KERNEL))) in efct_lio_setup_session()
1247 struct efct_node *tgt_node; in efct_lio_remove_session() local
1250 tgt_node = node->tgt_node; in efct_lio_remove_session()
1251 if (!tgt_node) { in efct_lio_remove_session()
1261 se_sess = tgt_node->session; in efct_lio_remove_session()
1271 tgt_node->session = NULL; in efct_lio_remove_session()
1272 node->tgt_node = NULL; in efct_lio_remove_session()
1273 kref_put(&tgt_node->ref, tgt_node->release); in efct_lio_remove_session()
1281 struct efct_node *tgt_node = node->tgt_node; in efct_scsi_del_initiator() local
1290 if (!tgt_node) { in efct_scsi_del_initiator()
1299 id = (u64) tgt_node->port_fc_id << 32 | tgt_node->node_fc_id; in efct_scsi_del_initiator()
1328 struct efct_node *tgt_node; in efct_scsi_recv_cmd() local
1371 tgt_node = io->node; in efct_scsi_recv_cmd()
1372 se_sess = tgt_node->session; in efct_scsi_recv_cmd()
1404 struct efct_node *tgt_node; in efct_scsi_recv_tmf() local
1443 tgt_node = tmfio->node; in efct_scsi_recv_tmf()
1445 se_sess = tgt_node->session; in efct_scsi_recv_tmf()