Lines Matching refs:icmd
418 static void fcp_ipkt_sema_init(struct fcp_ipkt *icmd);
419 static int fcp_ipkt_sema_wait(struct fcp_ipkt *icmd);
421 static void fcp_ipkt_sema_cleanup(struct fcp_ipkt *icmd);
431 struct fcp_ipkt *icmd, uchar_t opcode, int lcount, int tcount, int cause);
444 static void fcp_icmd_free(struct fcp_port *pptr, struct fcp_ipkt *icmd);
445 static int fcp_alloc_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd,
447 static void fcp_free_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd);
458 static void fcp_handle_inquiry(fc_packet_t *fpkt, struct fcp_ipkt *icmd);
459 static void fcp_handle_reportlun(fc_packet_t *fpkt, struct fcp_ipkt *icmd);
572 static int fcp_is_retryable(struct fcp_ipkt *icmd);
578 struct fcp_tgt *ptgt, struct fcp_ipkt *icmd, int rval, caddr_t op);
2293 struct fcp_ipkt *icmd = NULL;
2542 * Allocate internal packet (icmd)
2551 icmd = fcp_icmd_alloc(pptr, ptgt,
2561 if (icmd == NULL) {
2567 fcp_ipkt_sema_init(icmd);
2576 fpkt = icmd->ipkt_fpkt;
2606 * Setup internal packet(icmd)
2608 icmd->ipkt_lun = plun;
2609 icmd->ipkt_restart = 0;
2610 icmd->ipkt_retries = 0;
2611 icmd->ipkt_opcode = 0;
2651 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
2672 ret = fcp_ipkt_sema_wait(icmd);
2823 * Cleanup transport data structures if icmd was alloc-ed
2824 * So, cleanup happens in the same thread that icmd was alloc-ed
2826 if (icmd != NULL) {
2827 fcp_ipkt_sema_cleanup(icmd);
3277 struct fcp_ipkt *icmd;
3293 icmd = fcp_icmd_alloc(pptr, ptgt, sizeof (la_els_logi_t),
3298 if (icmd == NULL) {
3304 fcp_ipkt_sema_init(icmd);
3307 * Setup internal packet (icmd)
3309 icmd->ipkt_lun = NULL;
3310 icmd->ipkt_restart = 0;
3311 icmd->ipkt_retries = 0;
3312 icmd->ipkt_opcode = LA_ELS_PLOGI;
3317 fpkt = icmd->ipkt_fpkt;
3364 ret = fcp_ipkt_sema_wait(icmd);
3372 * Cleanup transport data structures if icmd was alloc-ed AND if there
3376 if (icmd != NULL) {
3377 fcp_ipkt_sema_cleanup(icmd);
3409 * Argument: icmd Internal packet the semaphore of which must be
3417 fcp_ipkt_sema_init(struct fcp_ipkt *icmd)
3421 fpkt = icmd->ipkt_fpkt;
3424 sema_init(&(icmd->ipkt_sema), 0, NULL, SEMA_DRIVER, NULL);
3436 * Argument: icmd Internal packet to wait on for completion.
3446 * embedded in the internal packet (icmd) and the code it returns.
3449 fcp_ipkt_sema_wait(struct fcp_ipkt *icmd)
3455 fpkt = icmd->ipkt_fpkt;
3460 sema_p(&(icmd->ipkt_sema));
3517 * Argument: fpkt FC packet (points to the icmd)
3526 struct fcp_ipkt *icmd;
3528 icmd = (struct fcp_ipkt *)fpkt->pkt_ulp_private;
3533 sema_v(&(icmd->ipkt_sema));
3544 * Argument: icmd Internal command packet
3551 fcp_ipkt_sema_cleanup(struct fcp_ipkt *icmd)
3556 ptgt = icmd->ipkt_tgt;
3557 pptr = icmd->ipkt_port;
3567 sema_destroy(&(icmd->ipkt_sema));
3573 fcp_icmd_free(pptr, icmd);
4938 struct fcp_ipkt *icmd;
5096 icmd = fcp_icmd_alloc(pptr, ptgt, alloc, alloc, 0,
5100 if (icmd == NULL) {
5113 if ((fcp_send_els(pptr, ptgt, icmd, opcode,
5117 fcp_icmd_free(pptr, icmd);
5133 * *icmd Internal packet
5144 struct fcp_ipkt *icmd, uchar_t opcode, int lcount, int tcount, int cause)
5172 if (icmd == NULL) {
5175 icmd = fcp_icmd_alloc(pptr, ptgt, alloc, alloc, 0,
5178 if (icmd == NULL) {
5184 fpkt = icmd->ipkt_fpkt;
5189 icmd->ipkt_retries = 0;
5238 icmd->ipkt_opcode = LA_ELS_PLOGI;
5241 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
5253 res = fcp_handle_ipkt_errors(pptr, ptgt, icmd,
5280 icmd->ipkt_opcode = LA_ELS_PRLI;
5315 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
5327 res = fcp_handle_ipkt_errors(pptr, ptgt, icmd,
5347 fcp_icmd_free(pptr, icmd);
5547 struct fcp_ipkt *icmd = (struct fcp_ipkt *)fpkt->pkt_ulp_private;
5548 struct fcp_port *pptr = icmd->ipkt_port;
5562 fcp_icmd_free(pptr, icmd);
5598 struct fcp_ipkt *icmd;
5618 if ((icmd = fcp_icmd_alloc(pptr, ptgt, sizeof (la_els_prli_t),
5625 fpkt = icmd->ipkt_fpkt;
5633 icmd->ipkt_opcode = LA_ELS_PRLI;
5676 if (!FCP_LINK_STATE_CHANGED(pptr, icmd)) {
5688 fcp_icmd_free(pptr, icmd);
5693 fcp_icmd_free(pptr, icmd);
5735 struct fcp_ipkt *icmd = NULL;
5737 icmd = kmem_zalloc(sizeof (struct fcp_ipkt) +
5740 if (icmd == NULL) {
5749 icmd->ipkt_nodma = nodma;
5750 icmd->ipkt_next = icmd->ipkt_prev = NULL;
5751 icmd->ipkt_lun = NULL;
5753 icmd->ipkt_link_cnt = lcount;
5754 icmd->ipkt_change_cnt = tcount;
5755 icmd->ipkt_cause = cause;
5758 icmd->ipkt_port = pptr;
5762 icmd->ipkt_cmdlen = cmd_len;
5763 icmd->ipkt_resplen = resp_len;
5764 icmd->ipkt_datalen = data_len;
5767 icmd->ipkt_fpkt = (fc_packet_t *)(&icmd->ipkt_fc_packet);
5770 icmd->ipkt_fpkt->pkt_ulp_private = (opaque_t)icmd;
5773 icmd->ipkt_fpkt->pkt_fca_private = (opaque_t)
5774 ((char *)icmd + sizeof (struct fcp_ipkt) +
5778 fpkt = icmd->ipkt_fpkt;
5779 fpkt->pkt_data_cookie = (ddi_dma_cookie_t *)((caddr_t)icmd +
5783 icmd->ipkt_tgt = ptgt;
5824 if (fcp_alloc_dma(pptr, icmd, nodma, KM_NOSLEEP) != FC_SUCCESS) {
5881 return (icmd);
5891 fcp_free_dma(pptr, icmd);
5893 kmem_free(icmd, sizeof (struct fcp_ipkt) + pptr->port_priv_pkt_len +
5905 * *icmd Internal packet to free.
5910 fcp_icmd_free(struct fcp_port *pptr, struct fcp_ipkt *icmd)
5912 struct fcp_tgt *ptgt = icmd->ipkt_tgt;
5916 icmd->ipkt_fpkt);
5918 if (icmd->ipkt_fpkt->pkt_ulp_rscn_infop) {
5919 kmem_free(icmd->ipkt_fpkt->pkt_ulp_rscn_infop,
5923 fcp_free_dma(pptr, icmd);
5925 kmem_free(icmd, sizeof (struct fcp_ipkt) + pptr->port_priv_pkt_len +
5947 * *icmd Internal FCP packet.
5955 fcp_alloc_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd,
5968 fpkt = &icmd->ipkt_fc_packet;
5973 icmd->ipkt_nodma = nodma;
6093 fcp_free_dma(struct fcp_port *pptr, struct fcp_ipkt *icmd)
6095 fc_packet_t *fpkt = icmd->ipkt_fpkt;
6112 if (icmd->ipkt_nodma) {
6114 kmem_free(fpkt->pkt_cmd, icmd->ipkt_cmdlen);
6117 kmem_free(fpkt->pkt_resp, icmd->ipkt_resplen);
6198 struct fcp_ipkt *icmd;
6212 icmd = (struct fcp_ipkt *)fpkt->pkt_ulp_private;
6215 pptr = icmd->ipkt_port;
6216 ptgt = icmd->ipkt_tgt;
6220 if (icmd->ipkt_opcode == LA_ELS_PRLI) {
6229 icmd->ipkt_opcode, fpkt->pkt_state, fpkt->pkt_reason,
6250 switch (icmd->ipkt_opcode) {
6259 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt,
6262 /* Note that we are not allocating a new icmd */
6263 if (fcp_send_els(pptr, ptgt, icmd, LA_ELS_PRLI,
6264 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
6265 icmd->ipkt_cause) != DDI_SUCCESS) {
6266 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt,
6277 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt,
6296 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt,
6308 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
6365 if (icmd->ipkt_fpkt->pkt_ulp_rscn_infop != NULL) {
6367 (icmd->ipkt_fpkt->pkt_ulp_rscn_infop))
6376 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
6377 icmd->ipkt_cause, rscn_count) != DDI_SUCCESS) {
6379 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
6393 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt,
6399 fcp_icmd_free(pptr, icmd);
6417 if (icmd->ipkt_opcode != LA_ELS_PLOGI) {
6418 if (fcp_is_retryable(icmd) &&
6419 icmd->ipkt_retries++ < FCP_MAX_RETRIES) {
6437 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
6442 ASSERT(icmd->ipkt_opcode != LA_ELS_PLOGI);
6464 " %s", icmd->ipkt_opcode,
6475 if (fcp_is_retryable(icmd) &&
6476 icmd->ipkt_retries++ < FCP_MAX_RETRIES) {
6483 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd) &&
6498 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
6499 icmd->ipkt_change_cnt, icmd->ipkt_cause);
6500 fcp_icmd_free(pptr, icmd);
6517 struct fcp_ipkt *icmd;
6539 icmd = fcp_icmd_alloc(pptr, ptgt, sizeof (struct fcp_cmd),
6543 if (icmd == NULL) {
6547 fpkt = icmd->ipkt_fpkt;
6549 icmd->ipkt_retries = 0;
6550 icmd->ipkt_opcode = opcode;
6551 icmd->ipkt_lun = plun;
6666 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
6671 fcp_icmd_free(pptr, icmd);
6681 fcp_icmd_free(pptr, icmd);
6697 struct fcp_ipkt *icmd = (struct fcp_ipkt *)
6699 struct fcp_tgt *ptgt = icmd->ipkt_tgt;
6702 ASSERT(icmd->ipkt_opcode == SCMD_REPORT_LUN);
6709 if (icmd->ipkt_nodma) {
6748 if (icmd->ipkt_nodma) {
6772 if (icmd->ipkt_nodma) {
6802 if (icmd->ipkt_nodma) {
6897 struct fcp_ipkt *icmd = (struct fcp_ipkt *)
6905 ptgt = icmd->ipkt_tgt;
6907 plun = icmd->ipkt_lun;
6909 if (icmd->ipkt_nodma) {
6921 fpkt->pkt_state, ptgt->tgt_d_id, icmd->ipkt_opcode,
6932 (icmd->ipkt_opcode == SCMD_INQUIRY_PAGE83) &&
6950 (icmd->ipkt_opcode == SCMD_REPORT_LUN)) {
6957 "icmd failed with state=0x%x for %x", fpkt->pkt_state,
6965 if (icmd->ipkt_opcode == SCMD_INQUIRY_PAGE83) {
6966 (void) fcp_handle_page83(fpkt, icmd, 1);
6977 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt,
6982 if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
6994 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
6995 icmd->ipkt_change_cnt, icmd->ipkt_cause);
6996 fcp_icmd_free(pptr, icmd);
7000 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt, FCP_TGT_TRACE_21);
7004 if (FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
7011 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7012 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7013 fcp_icmd_free(pptr, icmd);
7021 if (icmd->ipkt_nodma) {
7058 if ((icmd->ipkt_opcode == SCMD_INQUIRY_PAGE83) &&
7084 (void) fcp_handle_page83(fpkt, icmd, 1);
7094 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7095 icmd->ipkt_cause);
7096 fcp_icmd_free(pptr, icmd);
7108 if (icmd->ipkt_opcode == SCMD_REPORT_LUN) {
7116 if (rval == DDI_SUCCESS && icmd->ipkt_nodma == 0) {
7128 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7129 icmd->ipkt_cause);
7130 fcp_icmd_free(pptr, icmd);
7138 if (icmd->ipkt_opcode == SCMD_REPORT_LUN) {
7151 switch (icmd->ipkt_opcode) {
7154 fcp_handle_inquiry(fpkt, icmd);
7158 FCP_TGT_TRACE(ptgt, icmd->ipkt_change_cnt,
7160 fcp_handle_reportlun(fpkt, icmd);
7165 (void) fcp_handle_page83(fpkt, icmd, 0);
7170 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7171 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7172 fcp_icmd_free(pptr, icmd);
7181 struct fcp_ipkt *icmd = (struct fcp_ipkt *)
7183 struct fcp_tgt *ptgt = icmd->ipkt_tgt;
7186 if (icmd->ipkt_retries < FCP_MAX_RETRIES &&
7187 fcp_is_retryable(icmd)) {
7189 if (!FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
7194 (icmd->ipkt_opcode == SCMD_REPORT_LUN) ?
7206 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7207 icmd->ipkt_cause);
7208 fcp_icmd_free(pptr, icmd);
7212 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7213 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7214 fcp_icmd_free(pptr, icmd);
7224 * *icmd Original fcp_ipkt structure.
7232 fcp_handle_page83(fc_packet_t *fpkt, struct fcp_ipkt *icmd,
7244 ASSERT(icmd != NULL && fpkt != NULL);
7246 pptr = icmd->ipkt_port;
7247 ptgt = icmd->ipkt_tgt;
7248 plun = icmd->ipkt_lun;
7346 icmd->ipkt_retries = 0;
7418 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7419 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7421 fcp_icmd_free(pptr, icmd);
7431 * *icmd Original fcp_ipkt structure.
7436 fcp_handle_inquiry(fc_packet_t *fpkt, struct fcp_ipkt *icmd)
7445 ASSERT(icmd != NULL && fpkt != NULL);
7447 pptr = icmd->ipkt_port;
7448 ptgt = icmd->ipkt_tgt;
7449 plun = icmd->ipkt_lun;
7480 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7481 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7482 fcp_icmd_free(pptr, icmd);
7515 if (FCP_TGT_STATE_CHANGED(ptgt, icmd)) {
7524 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7525 icmd->ipkt_cause);
7526 fcp_icmd_free(pptr, icmd);
7533 if (icmd->ipkt_fpkt->pkt_ulp_rscn_infop != NULL) {
7535 (icmd->ipkt_fpkt->pkt_ulp_rscn_infop))->ulp_rscn_count;
7542 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7543 icmd->ipkt_cause, rscn_count) != DDI_SUCCESS) {
7547 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7548 icmd->ipkt_cause);
7555 fcp_icmd_free(pptr, icmd);
7565 * *icmd Original fcp_ipkt structure.
7570 fcp_handle_reportlun(fc_packet_t *fpkt, struct fcp_ipkt *icmd)
7583 pptr = icmd->ipkt_port;
7584 ptgt = icmd->ipkt_tgt;
7589 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7590 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7591 fcp_icmd_free(pptr, icmd);
7624 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7625 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7626 fcp_icmd_free(pptr, icmd);
7655 if (icmd->ipkt_fpkt->pkt_ulp_rscn_infop != NULL) {
7657 (icmd->ipkt_fpkt->pkt_ulp_rscn_infop))->
7663 if (fcp_send_scsi(icmd->ipkt_lun, SCMD_REPORT_LUN,
7665 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7666 icmd->ipkt_cause, rscn_count) != DDI_SUCCESS) {
7668 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7669 icmd->ipkt_cause);
7672 fcp_icmd_free(pptr, icmd);
7731 if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
7757 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7758 icmd->ipkt_cause);
7759 fcp_icmd_free(pptr, icmd);
7851 if (icmd->ipkt_fpkt->pkt_ulp_rscn_infop != NULL) {
7853 (icmd->ipkt_fpkt->pkt_ulp_rscn_infop))->
7860 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
7861 icmd->ipkt_cause, rscn_count) != DDI_SUCCESS) {
7864 if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
7896 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7897 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7903 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
7904 icmd->ipkt_change_cnt, icmd->ipkt_cause);
7908 fcp_icmd_free(pptr, icmd);
9505 struct fcp_ipkt *icmd = (struct fcp_ipkt *)fpkt->pkt_ulp_private;
9506 struct fcp_tgt *ptgt = icmd->ipkt_tgt;
9510 if (FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
9517 (void) fcp_call_finish_init(pptr, ptgt, icmd->ipkt_link_cnt,
9518 icmd->ipkt_change_cnt, icmd->ipkt_cause);
9519 fcp_icmd_free(pptr, icmd);
9524 icmd->ipkt_restart = fcp_watchdog_time + icmd->ipkt_retries++;
9528 pptr->port_ipkt_list->ipkt_prev = icmd;
9529 icmd->ipkt_next = pptr->port_ipkt_list;
9530 pptr->port_ipkt_list = icmd;
9531 icmd->ipkt_prev = NULL;
9534 pptr->port_ipkt_list = icmd;
9535 icmd->ipkt_next = NULL;
9536 icmd->ipkt_prev = NULL;
9609 struct fcp_ipkt *icmd;
9611 icmd = (struct fcp_ipkt *)fpkt->pkt_ulp_private;
9612 switch (icmd->ipkt_opcode) {
9630 if (fcp_handle_ipkt_errors(icmd->ipkt_port,
9631 icmd->ipkt_tgt, icmd, rval, op) == DDI_SUCCESS) {
13498 struct fcp_ipkt *icmd;
13657 for (icmd = pptr->port_ipkt_list; icmd != NULL; icmd = nicmd) {
13658 struct fcp_tgt *ptgt = icmd->ipkt_tgt;
13660 nicmd = icmd->ipkt_next;
13661 if ((icmd->ipkt_restart != 0) &&
13662 (icmd->ipkt_restart >= fcp_watchdog_time)) {
13668 if (icmd == pptr->port_ipkt_list) {
13669 pptr->port_ipkt_list = icmd->ipkt_next;
13675 icmd->ipkt_prev->ipkt_next = icmd->ipkt_next;
13676 if (icmd->ipkt_next) {
13677 icmd->ipkt_next->ipkt_prev =
13678 icmd->ipkt_prev;
13681 icmd->ipkt_next = NULL;
13682 icmd->ipkt_prev = NULL;
13685 if (fcp_is_retryable(icmd)) {
13687 (fc_ulp_rscn_info_t *)icmd->ipkt_fpkt->
13693 icmd->ipkt_opcode,
13694 icmd->ipkt_fpkt->pkt_cmd_fhdr.d_id);
13709 if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
13712 switch (icmd->ipkt_opcode) {
13717 &icmd->ipkt_fpkt, 1)) ==
13724 pptr, ptgt, icmd, rval,
13735 icmd->ipkt_fpkt)) ==
13742 pptr, ptgt, icmd, rval,
13753 icmd->ipkt_fpkt, 1)) ==
13760 pptr, ptgt, icmd, rval,
13773 fcp_print_error(icmd->ipkt_fpkt);
13777 icmd->ipkt_link_cnt, icmd->ipkt_change_cnt,
13778 icmd->ipkt_cause);
13779 fcp_icmd_free(pptr, icmd);
14889 * Argument: *icmd FCP internal packet.
14897 fcp_is_retryable(struct fcp_ipkt *icmd)
14899 if (icmd->ipkt_port->port_state & (FCP_STATE_SUSPENDED |
14904 return (((fcp_watchdog_time + icmd->ipkt_fpkt->pkt_timeout) <
14905 icmd->ipkt_port->port_deadline) ? 1 : 0);
15233 struct fcp_ipkt *icmd = (struct fcp_ipkt *)
15241 ptgt = icmd->ipkt_tgt;
15242 plun = icmd->ipkt_lun;
15250 switch (icmd->ipkt_opcode) {
15284 if (icmd->ipkt_nodma) {
15326 if (icmd->ipkt_nodma) {
15390 struct fcp_ipkt *icmd, int rval, caddr_t op)
15412 icmd->ipkt_retries = 0;
15413 icmd->ipkt_port->port_deadline = fcp_watchdog_time +
15432 if (icmd->ipkt_retries < FCP_MAX_RETRIES &&
15433 fcp_is_retryable(icmd)) {
15434 fcp_queue_ipkt(pptr, icmd->ipkt_fpkt);
15448 if (icmd->ipkt_opcode == LA_ELS_PRLI) {
15449 ret = fcp_send_els(icmd->ipkt_port, icmd->ipkt_tgt,
15450 icmd, LA_ELS_PLOGI, icmd->ipkt_link_cnt,
15451 icmd->ipkt_change_cnt, icmd->ipkt_cause);
15457 if (icmd->ipkt_retries < FCP_MAX_RETRIES &&
15458 fcp_is_retryable(icmd)) {
15459 fcp_queue_ipkt(pptr, icmd->ipkt_fpkt);
15468 if (!FCP_STATE_CHANGED(pptr, ptgt, icmd)) {
16121 * pkt@scsi_pkt, cmd@fcp_pkt, icmd@fcp_ipkt, fpkt@fc_packet, pptr@fcp_port