Lines Matching refs:itnim

30 				struct bfad_itnim_s *itnim);
40 struct bfad_itnim_s *itnim; in bfa_cb_ioim_done() local
88 itnim = itnim_data->itnim; in bfa_cb_ioim_done()
89 if (!cmnd->result && itnim && in bfa_cb_ioim_done()
92 bfad_ramp_up_qdepth(itnim, cmnd->device); in bfa_cb_ioim_done()
93 } else if (cmnd->result == SAM_STAT_TASK_SET_FULL && itnim) { in bfa_cb_ioim_done()
95 bfad_handle_qfull(itnim, cmnd->device); in bfa_cb_ioim_done()
107 struct bfad_itnim_s *itnim; in bfa_cb_ioim_good_comp() local
121 itnim = itnim_data->itnim; in bfa_cb_ioim_good_comp()
122 if (itnim) in bfa_cb_ioim_good_comp()
123 bfad_ramp_up_qdepth(itnim, cmnd->device); in bfa_cb_ioim_good_comp()
242 struct bfad_itnim_s *itnim) in bfad_im_target_reset_send() argument
263 bfa_itnim = bfa_fcs_itnim_get_halitn(&itnim->fcs_itnim); in bfad_im_target_reset_send()
299 struct bfad_itnim_s *itnim; in bfad_im_reset_lun_handler() local
308 itnim = itnim_data->itnim; in bfad_im_reset_lun_handler()
309 if (!itnim) { in bfad_im_reset_lun_handler()
331 bfa_itnim = bfa_fcs_itnim_get_halitn(&itnim->fcs_itnim); in bfad_im_reset_lun_handler()
374 struct bfad_itnim_s *itnim; in bfad_im_reset_target_handler() local
381 itnim = bfad_get_itnim(im_port, starget->id); in bfad_im_reset_target_handler()
382 if (itnim) { in bfad_im_reset_target_handler()
384 rc = bfad_im_target_reset_send(bfad, cmnd, itnim); in bfad_im_reset_target_handler()
425 bfa_fcb_itnim_alloc(struct bfad_s *bfad, struct bfa_fcs_itnim_s **itnim, in bfa_fcb_itnim_alloc() argument
433 *itnim = &(*itnim_drv)->fcs_itnim; in bfa_fcb_itnim_alloc()
869 bfad_ramp_up_qdepth(struct bfad_itnim_s *itnim, struct scsi_device *sdev) in bfad_ramp_up_qdepth() argument
873 if (((jiffies - itnim->last_ramp_up_time) > in bfad_ramp_up_qdepth()
875 ((jiffies - itnim->last_queue_full_time) > in bfad_ramp_up_qdepth()
884 itnim->last_ramp_up_time = jiffies; in bfad_ramp_up_qdepth()
891 bfad_handle_qfull(struct bfad_itnim_s *itnim, struct scsi_device *sdev) in bfad_handle_qfull() argument
895 itnim->last_queue_full_time = jiffies; in bfad_handle_qfull()
907 struct bfad_itnim_s *itnim = NULL; in bfad_get_itnim() local
910 list_for_each_entry(itnim, &im_port->itnim_mapped_list, list_entry) { in bfad_get_itnim()
911 if (id == itnim->scsi_tgt_id) in bfad_get_itnim()
912 return itnim; in bfad_get_itnim()
932 struct bfa_s *bfa = itnim_data->itnim->bfa_itnim->bfa; in bfad_im_check_if_make_lun_visible()
933 struct bfa_rport_s *bfa_rport = itnim_data->itnim->bfa_itnim->rport; in bfad_im_check_if_make_lun_visible()
963 bfa = itnim_data->itnim->bfa_itnim->bfa; in bfad_im_slave_alloc()
1058 bfad_im_fc_rport_add(struct bfad_im_port_s *im_port, struct bfad_itnim_s *itnim) in bfad_im_fc_rport_add() argument
1065 cpu_to_be64(bfa_fcs_itnim_get_nwwn(&itnim->fcs_itnim)); in bfad_im_fc_rport_add()
1067 cpu_to_be64(bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim)); in bfad_im_fc_rport_add()
1069 bfa_hton3b(bfa_fcs_itnim_get_fcid(&itnim->fcs_itnim)); in bfad_im_fc_rport_add()
1072 itnim->fc_rport = fc_rport = in bfad_im_fc_rport_add()
1079 bfa_fcs_itnim_get_maxfrsize(&itnim->fcs_itnim); in bfad_im_fc_rport_add()
1080 fc_rport->supported_classes = bfa_fcs_itnim_get_cos(&itnim->fcs_itnim); in bfad_im_fc_rport_add()
1083 itnim_data->itnim = itnim; in bfad_im_fc_rport_add()
1092 itnim->scsi_tgt_id = fc_rport->scsi_target_id; in bfad_im_fc_rport_add()
1094 itnim->channel = fc_rport->channel; in bfad_im_fc_rport_add()
1106 struct bfad_itnim_s *itnim = container_of(work, struct bfad_itnim_s, in bfad_im_itnim_work_handler() local
1108 struct bfad_im_s *im = itnim->im; in bfad_im_itnim_work_handler()
1118 im_port = itnim->im_port; in bfad_im_itnim_work_handler()
1119 bfa_trc(bfad, itnim->state); in bfad_im_itnim_work_handler()
1120 switch (itnim->state) { in bfad_im_itnim_work_handler()
1122 if (!itnim->fc_rport) { in bfad_im_itnim_work_handler()
1124 bfad_im_fc_rport_add(im_port, itnim); in bfad_im_itnim_work_handler()
1126 wwpn = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim); in bfad_im_itnim_work_handler()
1127 fcid = bfa_fcs_itnim_get_fcid(&itnim->fcs_itnim); in bfad_im_itnim_work_handler()
1130 list_add_tail(&itnim->list_entry, in bfad_im_itnim_work_handler()
1136 itnim->scsi_tgt_id, in bfad_im_itnim_work_handler()
1142 bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim)); in bfad_im_itnim_work_handler()
1147 itnim->state = ITNIM_STATE_OFFLINE; in bfad_im_itnim_work_handler()
1148 if (itnim->fc_rport) { in bfad_im_itnim_work_handler()
1149 fc_rport = itnim->fc_rport; in bfad_im_itnim_work_handler()
1151 fc_rport->dd_data)->itnim = NULL; in bfad_im_itnim_work_handler()
1152 itnim->fc_rport = NULL; in bfad_im_itnim_work_handler()
1160 wwpn = bfa_fcs_itnim_get_pwwn(&itnim->fcs_itnim); in bfad_im_itnim_work_handler()
1161 fcid = bfa_fcs_itnim_get_fcid(&itnim->fcs_itnim); in bfad_im_itnim_work_handler()
1164 list_del(&itnim->list_entry); in bfad_im_itnim_work_handler()
1169 itnim->scsi_tgt_id, in bfad_im_itnim_work_handler()
1174 if (itnim->fc_rport) { in bfad_im_itnim_work_handler()
1175 fc_rport = itnim->fc_rport; in bfad_im_itnim_work_handler()
1177 fc_rport->dd_data)->itnim = NULL; in bfad_im_itnim_work_handler()
1178 itnim->fc_rport = NULL; in bfad_im_itnim_work_handler()
1186 list_del(&itnim->list_entry); in bfad_im_itnim_work_handler()
1189 kfree(itnim); in bfad_im_itnim_work_handler()
1209 struct bfad_itnim_s *itnim; in bfad_im_queuecommand_lck() local
1246 itnim = itnim_data->itnim; in bfad_im_queuecommand_lck()
1247 if (!itnim) { in bfad_im_queuecommand_lck()
1253 itnim->bfa_itnim, sg_cnt); in bfad_im_queuecommand_lck()