Lines Matching refs:mbox_ext_buf_ctx
3607 if (phba->mbox_ext_buf_ctx.state == LPFC_BSG_MBOX_IDLE) in lpfc_bsg_mbox_ext_session_reset()
3612 &phba->mbox_ext_buf_ctx.ext_dmabuf_list); in lpfc_bsg_mbox_ext_session_reset()
3613 lpfc_bsg_dma_page_free(phba, phba->mbox_ext_buf_ctx.mbx_dmabuf); in lpfc_bsg_mbox_ext_session_reset()
3615 memset((char *)&phba->mbox_ext_buf_ctx, 0, in lpfc_bsg_mbox_ext_session_reset()
3617 INIT_LIST_HEAD(&phba->mbox_ext_buf_ctx.ext_dmabuf_list); in lpfc_bsg_mbox_ext_session_reset()
3666 dmabuf = phba->mbox_ext_buf_ctx.mbx_dmabuf; in lpfc_bsg_issue_mbox_ext_handle_job()
3692 phba->mbox_ext_buf_ctx.nembType, in lpfc_bsg_issue_mbox_ext_handle_job()
3693 phba->mbox_ext_buf_ctx.mboxType, size); in lpfc_bsg_issue_mbox_ext_handle_job()
3695 phba->mbox_ext_buf_ctx.nembType, in lpfc_bsg_issue_mbox_ext_handle_job()
3696 phba->mbox_ext_buf_ctx.mboxType, in lpfc_bsg_issue_mbox_ext_handle_job()
3698 phba->mbox_ext_buf_ctx.mbx_dmabuf, 0); in lpfc_bsg_issue_mbox_ext_handle_job()
3703 phba->mbox_ext_buf_ctx.nembType, in lpfc_bsg_issue_mbox_ext_handle_job()
3704 phba->mbox_ext_buf_ctx.mboxType, rc); in lpfc_bsg_issue_mbox_ext_handle_job()
3709 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_DONE; in lpfc_bsg_issue_mbox_ext_handle_job()
3737 phba->mbox_ext_buf_ctx.state, pmboxq->u.mb.mbxStatus); in lpfc_bsg_issue_read_mbox_ext_cmpl()
3739 if (pmboxq->u.mb.mbxStatus || phba->mbox_ext_buf_ctx.numBuf == 1) in lpfc_bsg_issue_read_mbox_ext_cmpl()
3777 phba->mbox_ext_buf_ctx.state, pmboxq->u.mb.mbxStatus); in lpfc_bsg_issue_write_mbox_ext_cmpl()
3974 &phba->mbox_ext_buf_ctx.ext_dmabuf_list); in lpfc_bsg_sli_cfg_read_cmd_ext()
4000 &phba->mbox_ext_buf_ctx.ext_dmabuf_list, list) { in lpfc_bsg_sli_cfg_read_cmd_ext()
4020 phba->mbox_ext_buf_ctx.nembType = nemb_tp; in lpfc_bsg_sli_cfg_read_cmd_ext()
4021 phba->mbox_ext_buf_ctx.mboxType = mbox_rd; in lpfc_bsg_sli_cfg_read_cmd_ext()
4022 phba->mbox_ext_buf_ctx.numBuf = ext_buf_cnt; in lpfc_bsg_sli_cfg_read_cmd_ext()
4023 phba->mbox_ext_buf_ctx.mbxTag = mbox_req->extMboxTag; in lpfc_bsg_sli_cfg_read_cmd_ext()
4024 phba->mbox_ext_buf_ctx.seqNum = mbox_req->extSeqNum; in lpfc_bsg_sli_cfg_read_cmd_ext()
4025 phba->mbox_ext_buf_ctx.mbx_dmabuf = dmabuf; in lpfc_bsg_sli_cfg_read_cmd_ext()
4039 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_PORT; in lpfc_bsg_sli_cfg_read_cmd_ext()
4069 &phba->mbox_ext_buf_ctx.ext_dmabuf_list); in lpfc_bsg_sli_cfg_read_cmd_ext()
4071 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_IDLE; in lpfc_bsg_sli_cfg_read_cmd_ext()
4170 phba->mbox_ext_buf_ctx.nembType = nemb_tp; in lpfc_bsg_sli_cfg_write_cmd_ext()
4171 phba->mbox_ext_buf_ctx.mboxType = mbox_wr; in lpfc_bsg_sli_cfg_write_cmd_ext()
4172 phba->mbox_ext_buf_ctx.numBuf = ext_buf_cnt; in lpfc_bsg_sli_cfg_write_cmd_ext()
4173 phba->mbox_ext_buf_ctx.mbxTag = mbox_req->extMboxTag; in lpfc_bsg_sli_cfg_write_cmd_ext()
4174 phba->mbox_ext_buf_ctx.seqNum = mbox_req->extSeqNum; in lpfc_bsg_sli_cfg_write_cmd_ext()
4175 phba->mbox_ext_buf_ctx.mbx_dmabuf = dmabuf; in lpfc_bsg_sli_cfg_write_cmd_ext()
4211 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_PORT; in lpfc_bsg_sli_cfg_write_cmd_ext()
4261 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_HOST; in lpfc_bsg_handle_sli_cfg_mbox()
4371 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_IDLE; in lpfc_bsg_handle_sli_cfg_mbox()
4386 if (phba->mbox_ext_buf_ctx.state == LPFC_BSG_MBOX_PORT) in lpfc_bsg_mbox_ext_abort()
4387 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_ABTS; in lpfc_bsg_mbox_ext_abort()
4411 index = phba->mbox_ext_buf_ctx.seqNum; in lpfc_bsg_read_ebuf_get()
4412 phba->mbox_ext_buf_ctx.seqNum++; in lpfc_bsg_read_ebuf_get()
4415 phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; in lpfc_bsg_read_ebuf_get()
4417 if (phba->mbox_ext_buf_ctx.nembType == nemb_mse) { in lpfc_bsg_read_ebuf_get()
4430 if (list_empty(&phba->mbox_ext_buf_ctx.ext_dmabuf_list)) in lpfc_bsg_read_ebuf_get()
4432 dmabuf = list_first_entry(&phba->mbox_ext_buf_ctx.ext_dmabuf_list, in lpfc_bsg_read_ebuf_get()
4437 lpfc_idiag_mbxacc_dump_bsg_mbox(phba, phba->mbox_ext_buf_ctx.nembType, in lpfc_bsg_read_ebuf_get()
4449 if (phba->mbox_ext_buf_ctx.seqNum == phba->mbox_ext_buf_ctx.numBuf) { in lpfc_bsg_read_ebuf_get()
4485 index = phba->mbox_ext_buf_ctx.seqNum; in lpfc_bsg_write_ebuf_set()
4486 phba->mbox_ext_buf_ctx.seqNum++; in lpfc_bsg_write_ebuf_set()
4487 nemb_tp = phba->mbox_ext_buf_ctx.nembType; in lpfc_bsg_write_ebuf_set()
4495 if (phba->mbox_ext_buf_ctx.nembType == nemb_mse) { in lpfc_bsg_write_ebuf_set()
4499 phba->mbox_ext_buf_ctx.seqNum, size); in lpfc_bsg_write_ebuf_set()
4505 phba->mbox_ext_buf_ctx.seqNum, size); in lpfc_bsg_write_ebuf_set()
4511 phba->mbox_ext_buf_ctx.mbx_dmabuf, in lpfc_bsg_write_ebuf_set()
4513 list_add_tail(&dmabuf->list, &phba->mbox_ext_buf_ctx.ext_dmabuf_list); in lpfc_bsg_write_ebuf_set()
4516 lpfc_idiag_mbxacc_dump_bsg_mbox(phba, phba->mbox_ext_buf_ctx.nembType, in lpfc_bsg_write_ebuf_set()
4520 if (phba->mbox_ext_buf_ctx.seqNum == phba->mbox_ext_buf_ctx.numBuf) { in lpfc_bsg_write_ebuf_set()
4524 phba->mbox_ext_buf_ctx.numBuf); in lpfc_bsg_write_ebuf_set()
4539 pbuf = (uint8_t *)phba->mbox_ext_buf_ctx.mbx_dmabuf->virt; in lpfc_bsg_write_ebuf_set()
4557 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_PORT; in lpfc_bsg_write_ebuf_set()
4605 phba->mbox_ext_buf_ctx.mboxType); in lpfc_bsg_handle_sli_cfg_ebuf()
4607 if (phba->mbox_ext_buf_ctx.mboxType == mbox_rd) { in lpfc_bsg_handle_sli_cfg_ebuf()
4608 if (phba->mbox_ext_buf_ctx.state != LPFC_BSG_MBOX_DONE) { in lpfc_bsg_handle_sli_cfg_ebuf()
4612 phba->mbox_ext_buf_ctx.state); in lpfc_bsg_handle_sli_cfg_ebuf()
4620 if (phba->mbox_ext_buf_ctx.state != LPFC_BSG_MBOX_HOST) { in lpfc_bsg_handle_sli_cfg_ebuf()
4624 phba->mbox_ext_buf_ctx.state); in lpfc_bsg_handle_sli_cfg_ebuf()
4658 if (phba->mbox_ext_buf_ctx.state == LPFC_BSG_MBOX_IDLE) { in lpfc_bsg_handle_sli_cfg_ext()
4675 if (mbox_req->extMboxTag != phba->mbox_ext_buf_ctx.mbxTag) in lpfc_bsg_handle_sli_cfg_ext()
4677 if (mbox_req->extSeqNum > phba->mbox_ext_buf_ctx.numBuf) in lpfc_bsg_handle_sli_cfg_ext()
4679 if (mbox_req->extSeqNum != phba->mbox_ext_buf_ctx.seqNum + 1) in lpfc_bsg_handle_sli_cfg_ext()
4685 phba->mbox_ext_buf_ctx.state, mbox_req->extMboxTag, in lpfc_bsg_handle_sli_cfg_ext()
4696 phba->mbox_ext_buf_ctx.state, in lpfc_bsg_handle_sli_cfg_ext()
4697 phba->mbox_ext_buf_ctx.numBuf, in lpfc_bsg_handle_sli_cfg_ext()
4698 phba->mbox_ext_buf_ctx.mbxTag, in lpfc_bsg_handle_sli_cfg_ext()
4699 phba->mbox_ext_buf_ctx.seqNum, in lpfc_bsg_handle_sli_cfg_ext()
5954 if (phba->mbox_ext_buf_ctx.state == LPFC_BSG_MBOX_PORT) in lpfc_bsg_timeout()
5955 phba->mbox_ext_buf_ctx.state = LPFC_BSG_MBOX_ABTS; in lpfc_bsg_timeout()