Searched refs:xri (Results 1 - 9 of 9) sorted by relevance

/linux-4.1.27/drivers/scsi/lpfc/
H A Dlpfc_bsg.h123 /* Used for menlo command or menlo data. The xri is only used for menlo data */
126 uint32_t xri; member in struct:menlo_command
130 uint32_t xri; /* return the xri of the iocb exchange */ member in struct:menlo_response
H A Dlpfc_sli.c633 * @xritag: xri used in this exchange.
721 * @xri: The xri used in the exchange.
725 * rrq = rrq for this xri and target.
728 lpfc_get_active_rrq(struct lpfc_vport *vport, uint16_t xri, uint32_t did) lpfc_get_active_rrq() argument
739 if (rrq->vport == vport && rrq->xritag == xri && lpfc_get_active_rrq()
790 * @xritag the xri in the bitmap to test.
793 * returns 0 = rrq not active for this xri
794 * 1 = rrq is valid for this xri.
814 * @xritag: xri used in this exchange.
822 * returns 0 rrq actived for this xri
864 "3155 Unable to allocate RRQ xri:0x%x rxid:0x%x" lpfc_set_rrq_active()
891 "2921 Can't set rrq active xri:0x%x rxid:0x%x" lpfc_set_rrq_active()
938 /* This xri has an rrq outstanding for this DID. __lpfc_sli_get_sglq()
939 * put it back in the list and get another xri. __lpfc_sli_get_sglq()
2779 * exchange busy so sgl (xri) lpfc_sli_process_sol_iocb()
2781 * the abort xri is received lpfc_sli_process_sol_iocb()
2812 * sgl (xri) process. lpfc_sli_process_sol_iocb()
5244 * @type - the extent type (rpi, xri, vfi, vpi).
5825 "xri:%d\n", count); lpfc_sli4_alloc_resource_identifiers()
6091 * buffer sgl with non-contiguous xri, if any, it shall use embedded SGL post
6125 /* a hole in xri block, form a sgl posting block */ lpfc_sli4_repost_els_sgl_list()
6201 /* don't reset xirtag due to hole in xri block */ lpfc_sli4_repost_els_sgl_list()
6375 /* Reset the DFT_LUN_Q_DEPTH to (max xri >> 3) */ lpfc_sli4_hba_setup()
6444 * Allocate all resources (xri,rpi,vpi,vfi) now. Subsequent lpfc_sli4_hba_setup()
6494 /* update host els and scsi xri-sgl sizes and mappings */ lpfc_sli4_hba_setup()
6498 "1400 Failed to update xri-sgl size and " lpfc_sli4_hba_setup()
8345 /* word6 iocb=ctxt_tag/io_tag wqe=ctxt_tag/xri */ lpfc_sli4_iocb2wqe()
9019 "vpi %d rpi %d xri x%x status 0x%x parameter x%x\n", lpfc_sli4_abts_err_handler()
9821 "0339 Abort xri x%x, original iotag x%x, " lpfc_sli_abort_iotag_issue()
11400 * lpfc_sli4_fcp_xri_abort_event_proc - Process fcp xri abort event
11410 /* First, declare the fcp xri abort event has been handled */ lpfc_sli4_fcp_xri_abort_event_proc()
11414 /* Now, handle all the fcp xri abort events */ lpfc_sli4_fcp_xri_abort_event_proc()
11429 * lpfc_sli4_els_xri_abort_event_proc - Process els xri abort event
11433 * SLI4 els abort xri events.
11439 /* First, declare the els xri abort event has been handled */ lpfc_sli4_els_xri_abort_event_proc()
11443 /* Now, handle all the els xri abort events */ lpfc_sli4_els_xri_abort_event_proc()
11876 * lpfc_sli4_sp_handle_abort_xri_wcqe - Handle a xri abort event
11902 /* Move the CQE into the proper xri abort event list */ lpfc_sli4_sp_handle_abort_xri_wcqe()
11909 /* Set the fcp xri abort event flag */ lpfc_sli4_sp_handle_abort_xri_wcqe()
11918 /* Set the els xri abort event flag */ lpfc_sli4_sp_handle_abort_xri_wcqe()
14312 unsigned long xri; lpfc_sli4_alloc_xri() local
14315 * Fetch the next logical xri. Because this index is logical, lpfc_sli4_alloc_xri()
14319 xri = find_next_zero_bit(phba->sli4_hba.xri_bmask, lpfc_sli4_alloc_xri()
14321 if (xri >= phba->sli4_hba.max_cfg_param.max_xri) { lpfc_sli4_alloc_xri()
14325 set_bit(xri, phba->sli4_hba.xri_bmask); lpfc_sli4_alloc_xri()
14329 return xri; lpfc_sli4_alloc_xri()
14333 * lpfc_sli4_free_xri - Release an xri for reuse.
14336 * This routine is invoked to release an xri to the pool of
14340 __lpfc_sli4_free_xri(struct lpfc_hba *phba, int xri) __lpfc_sli4_free_xri() argument
14342 if (test_and_clear_bit(xri, phba->sli4_hba.xri_bmask)) { __lpfc_sli4_free_xri()
14348 * lpfc_sli4_free_xri - Release an xri for reuse.
14351 * This routine is invoked to release an xri to the pool of
14355 lpfc_sli4_free_xri(struct lpfc_hba *phba, int xri) lpfc_sli4_free_xri() argument
14358 __lpfc_sli4_free_xri(phba, xri); lpfc_sli4_free_xri()
15047 * lpfc_sli4_xri_inrange - check xri is in range of xris owned by driver.
15049 * @xri: xri id in transaction.
15051 * This function validates the xri maps to the known range of XRIs allocated an
15056 uint16_t xri) lpfc_sli4_xri_inrange()
15061 if (xri == phba->sli4_hba.xri_ids[i]) lpfc_sli4_xri_inrange()
15082 uint16_t oxid, rxid, xri, lxri; lpfc_sli4_seq_abort_rsp() local
15150 xri = oxid; lpfc_sli4_seq_abort_rsp()
15152 xri = rxid; lpfc_sli4_seq_abort_rsp()
15153 lxri = lpfc_sli4_xri_inrange(phba, xri); lpfc_sli4_seq_abort_rsp()
15156 (xri == oxid) ? rxid : oxid, 0); lpfc_sli4_seq_abort_rsp()
15157 /* For BA_ABTS from exchange responder, if the logical xri with lpfc_sli4_seq_abort_rsp()
15206 "xri x%x, Data x%x\n", lpfc_sli4_seq_abort_rsp()
17029 /* The xri and iocb resources secured, lpfc_drain_txq()
17047 "xri 0x%x\n", lpfc_drain_txq()
15055 lpfc_sli4_xri_inrange(struct lpfc_hba *phba, uint16_t xri) lpfc_sli4_xri_inrange() argument
H A Dlpfc_els.c1743 * clear the xri's bit in the ndlp's xri_bitmap. If the ndlp does not
4098 "xri x%x, did x%x, nlp_flag x%x, nlp_state x%x, " lpfc_els_rsp_reject()
4162 "0130 Xmit ADISC ACC response iotag x%x xri: " lpfc_els_rsp_adisc_acc()
4241 "0131 Xmit PRLI ACC response tag x%x xri x%x, " lpfc_els_rsp_prli_acc()
4347 "0132 Xmit RNID ACC response tag x%x xri x%x\n", lpfc_els_rsp_rnid_acc()
4408 uint16_t xri; lpfc_els_clear_rrq() local
4430 xri = bf_get(rrq_oxid, rrq); lpfc_els_clear_rrq()
4432 xri = rxid; lpfc_els_clear_rrq()
4433 prrq = lpfc_get_active_rrq(vport, xri, ndlp->nlp_DID); lpfc_els_clear_rrq()
4435 lpfc_clr_rrq_active(phba, xri, prrq); lpfc_els_clear_rrq()
4479 "2876 Xmit ECHO ACC response tag x%x xri x%x\n", lpfc_els_rsp_echo_acc()
5483 "2874 Xmit ELS RLS ACC response tag x%x xri x%x, " lpfc_els_rsp_rls_acc()
5578 "0118 Xmit ELS RPS ACC response tag x%x xri x%x, " lpfc_els_rsp_rps_acc()
5703 /* use the command's xri in the response */ lpfc_els_rcv_rtv()
5718 "2875 Xmit ELS RTV ACC response tag x%x xri x%x, " lpfc_els_rcv_rtv()
5891 * still active for the xri. If this function returns a failure then
5966 "xri x%x, did x%x, nlp_flag x%x, nlp_state x%x, " lpfc_els_rsp_rpl_acc()
8180 * lpfc_sli4_els_xri_aborted - Slow-path process of els xri abort
8182 * @axri: pointer to the els xri abort wcqe structure.
8185 * ELS aborted xri.
8191 uint16_t xri = bf_get(lpfc_wcqe_xa_xri, axri); lpfc_sli4_els_xri_aborted() local
8204 if (sglq_entry->sli4_xritag == xri) { lpfc_sli4_els_xri_aborted()
8226 lxri = lpfc_sli4_xri_inrange(phba, xri); lpfc_sli4_els_xri_aborted()
8233 if (!sglq_entry || (sglq_entry->sli4_xritag != xri)) { lpfc_sli4_els_xri_aborted()
H A Dlpfc_scsi.c540 * lpfc_sli4_fcp_xri_aborted - Fast-path process of fcp xri abort
542 * @axri: pointer to the fcp xri abort wcqe structure.
545 * FCP aborted xri.
551 uint16_t xri = bf_get(lpfc_wcqe_xa_xri, axri); lpfc_sli4_fcp_xri_aborted() local
565 if (psb->cur_iocbq.sli4_xritag == xri) { lpfc_sli4_fcp_xri_aborted()
596 if (iocbq->sli4_xritag != xri) lpfc_sli4_fcp_xri_aborted()
617 * For single SCSI buffer sgl with non-contiguous xri, if any, it shall use
648 /* a hole in xri block, form a sgl posting block */ list_for_each_entry_safe()
674 /* last single sgl with non-contiguous xri */ list_for_each_entry_safe()
706 /* don't reset xirtag due to hole in xri block */ list_for_each_entry_safe()
4801 "for abortng I/O (xri:x%x) to complete: " lpfc_abort_handler()
H A Dlpfc_init.c475 /* Reset the DFT_HBA_Q_DEPTH to the max xri */ lpfc_config_port_post()
484 /* Reset the DFT_LUN_Q_DEPTH to (max xri >> 3) */ lpfc_config_port_post()
3071 * lpfc_sli4_xri_sgl_update - update xri-sgl sizing and mapping
3094 * update on pci function's els xri-sgl list lpfc_sli4_xri_sgl_update()
3098 /* els xri-sgl expanded */ lpfc_sli4_xri_sgl_update()
3101 "3157 ELS xri-sgl count increased from " lpfc_sli4_xri_sgl_update()
3137 /* els xri-sgl shrinked */ lpfc_sli4_xri_sgl_update()
3140 "3158 ELS xri-sgl count decreased from " lpfc_sli4_xri_sgl_update()
3165 "3163 ELS xri-sgl count unchanged: %d\n", lpfc_sli4_xri_sgl_update()
3177 "2400 Failed to allocate xri for " lpfc_sli4_xri_sgl_update()
3187 * update on pci function's allocated scsi xri-sgl list lpfc_sli4_xri_sgl_update()
3196 "2401 Current allocated SCSI xri-sgl count:%d, " lpfc_sli4_xri_sgl_update()
3197 "maximum SCSI xri count:%d\n", lpfc_sli4_xri_sgl_update()
3209 /* max scsi xri shrinked below the allocated scsi buffers */ lpfc_sli4_xri_sgl_update()
3234 "2560 Failed to allocate xri for " lpfc_sli4_xri_sgl_update()
3315 * max xri value determined in hba setup. lpfc_create_port()
5868 /* els xri-sgl book keeping */ lpfc_init_sgl_list()
5871 /* scsi xri-buffer book keeping */ lpfc_init_sgl_list()
6923 /* Reset the DFT_HBA_Q_DEPTH to the max xri */ lpfc_sli4_read_config()
H A Dlpfc_sli4.h632 uint16_t sli4_lxritag; /* logical pre-assigned xri. */
H A Dlpfc_bsg.c4983 /* always return the xri, this would be used in the case lpfc_bsg_menlo_cmd_cmp()
4990 menlo_resp->xri = rsp->ulpContext; lpfc_bsg_menlo_cmd_cmp()
5038 * all the command completions will return the xri for the command.
5040 * supplied in the menlo request header xri field.
5175 cmd->ulpContext = menlo_cmd->xri; lpfc_menlo_cmd()
H A Dlpfc_hw.h2347 uint16_t xri; member in struct:__anon9123::__anon9124
2349 uint16_t xri;
3641 A_MXRI64 amxri; /* abort multiple xri command overlay */
H A Dlpfc_attr.c1132 * @mxri: max xri count.
1133 * @axri: available xri count.
1291 * lpfc_max_xri_show - Return maximum xri
1294 * @buf: on return contains the maximum xri count in decimal or "Unknown".
1322 * @buf: on return contains the used xri count in decimal or "Unknown".

Completed in 491 milliseconds