Lines Matching defs:tgt

99 static void ocs_delete_target(ocs_t *ocs, ocs_fcport *fcp, int tgt);
979 ocs_fc_target_t *tgt = NULL;
983 tgt = &fcp->tgt[i];
985 if (tgt->state == OCS_TGT_STATE_NONE)
988 if (ocs_node_get_wwpn(node) == tgt->wwpn) {
1017 ocs_fc_target_t *tgt = NULL;
1019 tgt = &fcp->tgt[tgt_id];
1021 tgt->node_id = node->instance_index;
1022 tgt->state = OCS_TGT_STATE_VALID;
1024 tgt->port_id = node->rnode.fc_id;
1025 tgt->wwpn = ocs_node_get_wwpn(node);
1026 tgt->wwnn = ocs_node_get_wwnn(node);
1038 if (fcp->tgt[i].state == OCS_TGT_STATE_NONE)
1085 ocs_delete_target(ocs_t *ocs, ocs_fcport *fcp, int tgt)
1095 tgt, CAM_LUN_WILDCARD)) {
1126 ocs_fc_target_t *tgt = NULL;
1129 tgt = &fcp->tgt[i];
1131 if (tgt->state != OCS_TGT_STATE_LOST) {
1135 if ((tgt->gone_timer != 0) && (ocs->attached)){
1136 tgt->gone_timer -= 1;
1143 tgt->state = OCS_TGT_STATE_NONE;
1182 ocs_fc_target_t *tgt = NULL;
1202 tgt = &fcp->tgt[tgt_id];
1208 tgt->state = OCS_TGT_STATE_LOST;
1209 tgt->gone_timer = 30;
1869 if (fcp->tgt[ccb_h->target_id].state == OCS_TGT_STATE_LOST) {
1875 if (fcp->tgt[ccb_h->target_id].state == OCS_TGT_STATE_NONE) {
1881 node = ocs_node_get_instance(ocs, fcp->tgt[ccb_h->target_id].node_id);
2171 ocs_fc_target_t *tgt = NULL;
2185 tgt = &fcp->tgt[cts->ccb_h.target_id];
2186 if (tgt->state == OCS_TGT_STATE_NONE) {
2204 fc->wwpn = tgt->wwpn;
2206 fc->wwnn = tgt->wwnn;
2208 fc->port = tgt->port_id;
2373 node = ocs_node_get_instance(ocs, fcp->tgt[ccb_h->target_id].node_id);
2756 node = ocs_node_get_instance(ocs, fcp->tgt[accb->ccb_h.target_id].node_id);