Lines Matching refs:tgt_node

1072 	struct efct_node *tgt_node = container_of(arg, struct efct_node, ref);  in _efct_tgt_node_free()  local
1073 struct efc_node *node = tgt_node->node; in _efct_tgt_node_free()
1076 kfree(tgt_node); in _efct_tgt_node_free()
1083 struct efct_node *tgt_node; in efct_session_cb() local
1086 tgt_node = kzalloc(sizeof(*tgt_node), GFP_KERNEL); in efct_session_cb()
1087 if (!tgt_node) in efct_session_cb()
1090 kref_init(&tgt_node->ref); in efct_session_cb()
1091 tgt_node->release = _efct_tgt_node_free; in efct_session_cb()
1093 tgt_node->session = se_sess; in efct_session_cb()
1094 node->tgt_node = tgt_node; in efct_session_cb()
1095 tgt_node->efct = efct; in efct_session_cb()
1097 tgt_node->node = node; in efct_session_cb()
1099 tgt_node->node_fc_id = node->rnode.fc_id; in efct_session_cb()
1100 tgt_node->port_fc_id = node->nport->fc_id; in efct_session_cb()
1101 tgt_node->vpi = node->nport->indicator; in efct_session_cb()
1102 tgt_node->rpi = node->rnode.indicator; in efct_session_cb()
1104 spin_lock_init(&tgt_node->active_ios_lock); in efct_session_cb()
1105 INIT_LIST_HEAD(&tgt_node->active_ios); in efct_session_cb()
1175 struct efct_node *tgt_node; in efct_lio_setup_session() local
1212 tgt_node = node->tgt_node; in efct_lio_setup_session()
1213 id = (u64) tgt_node->port_fc_id << 32 | tgt_node->node_fc_id; in efct_lio_setup_session()
1218 if (xa_err(xa_store(&efct->lookup, id, tgt_node, GFP_KERNEL))) in efct_lio_setup_session()
1260 struct efct_node *tgt_node; in efct_lio_remove_session() local
1263 tgt_node = node->tgt_node; in efct_lio_remove_session()
1264 if (!tgt_node) { in efct_lio_remove_session()
1274 se_sess = tgt_node->session; in efct_lio_remove_session()
1284 tgt_node->session = NULL; in efct_lio_remove_session()
1285 node->tgt_node = NULL; in efct_lio_remove_session()
1286 kref_put(&tgt_node->ref, tgt_node->release); in efct_lio_remove_session()
1294 struct efct_node *tgt_node = node->tgt_node; in efct_scsi_del_initiator() local
1303 if (!tgt_node) { in efct_scsi_del_initiator()
1312 id = (u64) tgt_node->port_fc_id << 32 | tgt_node->node_fc_id; in efct_scsi_del_initiator()
1341 struct efct_node *tgt_node; in efct_scsi_recv_cmd() local
1384 tgt_node = io->node; in efct_scsi_recv_cmd()
1385 se_sess = tgt_node->session; in efct_scsi_recv_cmd()
1417 struct efct_node *tgt_node; in efct_scsi_recv_tmf() local
1456 tgt_node = tmfio->node; in efct_scsi_recv_tmf()
1458 se_sess = tgt_node->session; in efct_scsi_recv_tmf()