Lines Matching refs:itnim
47 struct bfad_itnim_s *itnim;
91 itnim = itnim_data->itnim;
92 if (!cmnd->result && itnim &&
95 bfad_os_ramp_up_qdepth(itnim, cmnd->device);
96 } else if (cmnd->result == SAM_STAT_TASK_SET_FULL && itnim) {
98 bfad_os_handle_qfull(itnim, cmnd->device);
110 struct bfad_itnim_s *itnim;
124 itnim = itnim_data->itnim;
125 if (itnim)
126 bfad_os_ramp_up_qdepth(itnim, cmnd->device);
250 struct bfad_itnim_s *itnim)
270 bfa_itnim = bfa_fcs_itnim_get_halitn(&itnim->fcs_itnim);
292 struct bfad_itnim_s *itnim;
300 itnim = itnim_data->itnim;
301 if (!itnim) {
323 bfa_itnim = bfa_fcs_itnim_get_halitn(&itnim->fcs_itnim);
353 struct bfad_itnim_s *itnim;
361 itnim = bfad_os_get_itnim(im_port, i);
362 if (itnim) {
364 rc = bfad_im_target_reset_send(bfad, cmnd, itnim);
404 * BFA FCS itnim callbacks
408 * BFA FCS itnim alloc callback, after successful PRLI
412 bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim,
420 *itnim = &(*itnim_drv)->fcs_itnim;
431 * BFA FCS itnim free callback.
464 * BFA FCS itnim online callback.
481 * BFA FCS itnim offline callback.
504 * BFA FCS itnim timeout callback.
507 void bfa_fcb_itnim_tov(struct bfad_itnim_s *itnim)
509 itnim->state = ITNIM_STATE_TIMEOUT;
878 bfad_os_ramp_up_qdepth(struct bfad_itnim_s *itnim, struct scsi_device *sdev)
882 if (((jiffies - itnim->last_ramp_up_time) >
884 ((jiffies - itnim->last_queue_full_time) >
899 itnim->last_ramp_up_time = jiffies;
906 bfad_os_handle_qfull(struct bfad_itnim_s *itnim, struct scsi_device *sdev)
910 itnim->last_queue_full_time = jiffies;
925 struct bfad_itnim_s *itnim = NULL;
928 list_for_each_entry(itnim, &im_port->itnim_mapped_list, list_entry) {
929 if (id == itnim->scsi_tgt_id)
930 return itnim;
996 bfad_im_fc_rport_add(struct bfad_im_port_s *im_port, struct bfad_itnim_s *itnim)
1003 bfa_os_htonll(bfa_fcs_itnim_get_nwwn(&itnim->fcs_itnim));
1005 bfa_os_htonll(bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim));
1007 bfa_os_hton3b(bfa_fcs_itnim_get_fcid(&itnim->fcs_itnim));
1010 itnim->fc_rport = fc_rport =
1017 bfa_fcs_itnim_get_maxfrsize(&itnim->fcs_itnim);
1018 fc_rport->supported_classes = bfa_fcs_itnim_get_cos(&itnim->fcs_itnim);
1021 itnim_data->itnim = itnim;
1030 itnim->scsi_tgt_id = fc_rport->scsi_target_id;
1042 struct bfad_itnim_s *itnim = container_of(work, struct bfad_itnim_s,
1044 struct bfad_im_s *im = itnim->im;
1054 im_port = itnim->im_port;
1055 bfa_trc(bfad, itnim->state);
1056 switch (itnim->state) {
1058 if (!itnim->fc_rport) {
1060 bfad_im_fc_rport_add(im_port, itnim);
1062 wwpn = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim);
1063 fcid = bfa_fcs_itnim_get_fcid(&itnim->fcs_itnim);
1066 list_add_tail(&itnim->list_entry,
1070 itnim->scsi_tgt_id,
1074 "%s: itnim %llx is already in online state\n",
1076 bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim));
1081 itnim->state = ITNIM_STATE_OFFLINE;
1082 if (itnim->fc_rport) {
1083 fc_rport = itnim->fc_rport;
1085 fc_rport->dd_data)->itnim = NULL;
1086 itnim->fc_rport = NULL;
1094 wwpn = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim);
1095 fcid = bfa_fcs_itnim_get_fcid(&itnim->fcs_itnim);
1098 list_del(&itnim->list_entry);
1101 itnim->scsi_tgt_id,
1106 if (itnim->fc_rport) {
1107 fc_rport = itnim->fc_rport;
1109 fc_rport->dd_data)->itnim = NULL;
1110 itnim->fc_rport = NULL;
1118 list_del(&itnim->list_entry);
1121 kfree(itnim);
1141 struct bfad_itnim_s *itnim;
1171 itnim = itnim_data->itnim;
1172 if (!itnim) {
1178 itnim->bfa_itnim, sg_cnt);