Lines Matching refs:pCfg

571 		CONFIGPARMS *pCfg;  in mpt_base_reply()  local
577 pCfg = * ((CONFIGPARMS **)((u8 *) mf + ioc->req_sz - sizeof(void *))); in mpt_base_reply()
579 if (pCfg) { in mpt_base_reply()
581 del_timer(&pCfg->timer); in mpt_base_reply()
584 Q_DEL_ITEM(&pCfg->linkage); in mpt_base_reply()
591 pCfg->status = MPT_CONFIG_ERROR; in mpt_base_reply()
600 pCfg->status = status; in mpt_base_reply()
602 pCfg->hdr->PageVersion = pReply->Header.PageVersion; in mpt_base_reply()
603 pCfg->hdr->PageLength = pReply->Header.PageLength; in mpt_base_reply()
604 pCfg->hdr->PageNumber = pReply->Header.PageNumber; in mpt_base_reply()
605 pCfg->hdr->PageType = pReply->Header.PageType; in mpt_base_reply()
612 pCfg->wait_done = 1; in mpt_base_reply()
4713 mpt_config(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg) in mpt_config() argument
4742 pReq->Action = pCfg->action; in mpt_config()
4752 pReq->Header.PageVersion = pCfg->hdr->PageVersion; in mpt_config()
4753 pReq->Header.PageLength = pCfg->hdr->PageLength; in mpt_config()
4754 pReq->Header.PageNumber = pCfg->hdr->PageNumber; in mpt_config()
4755 pReq->Header.PageType = (pCfg->hdr->PageType & MPI_CONFIG_PAGETYPE_MASK); in mpt_config()
4756 pReq->PageAddress = cpu_to_le32(pCfg->pageAddr); in mpt_config()
4760 if (pCfg->dir) in mpt_config()
4765 flagsLength |= pCfg->hdr->PageLength * 4; in mpt_config()
4767 mpt_add_sge((char *)&pReq->PageBufferSGE, flagsLength, pCfg->physAddr); in mpt_config()
4774 *((void **) (((u8 *) mf) + (ioc->req_sz - sizeof(void *)))) = (void *) pCfg; in mpt_config()
4778 init_timer(&pCfg->timer); in mpt_config()
4779 pCfg->timer.data = (unsigned long) ioc; in mpt_config()
4780 pCfg->timer.function = mpt_timer_expired; in mpt_config()
4781 pCfg->wait_done = 0; in mpt_config()
4784 if (pCfg->timeout < 10) in mpt_config()
4785 pCfg->timer.expires = jiffies + HZ*10; in mpt_config()
4787 pCfg->timer.expires = jiffies + HZ*pCfg->timeout; in mpt_config()
4791 Q_ADD_TAIL(&ioc->configQ.head, &pCfg->linkage, Q_ITEM); in mpt_config()
4794 add_timer(&pCfg->timer); in mpt_config()
4796 wait_event(mpt_waitq, pCfg->wait_done); in mpt_config()
4800 rc = pCfg->status; in mpt_config()
4820 mpt_toolbox(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg) in mpt_toolbox() argument
4851 pReq->Tool = pCfg->action; in mpt_toolbox()
4858 pReq->Flags = pCfg->dir; in mpt_toolbox()
4875 mpt_add_sge((char *)&pReq->SGL, flagsLength, pCfg->physAddr); in mpt_toolbox()
4882 *((void **) (((u8 *) mf) + (ioc->req_sz - sizeof(void *)))) = (void *) pCfg; in mpt_toolbox()
4886 init_timer(&pCfg->timer); in mpt_toolbox()
4887 pCfg->timer.data = (unsigned long) ioc; in mpt_toolbox()
4888 pCfg->timer.function = mpt_timer_expired; in mpt_toolbox()
4889 pCfg->wait_done = 0; in mpt_toolbox()
4892 if (pCfg->timeout < 10) in mpt_toolbox()
4893 pCfg->timer.expires = jiffies + HZ*10; in mpt_toolbox()
4895 pCfg->timer.expires = jiffies + HZ*pCfg->timeout; in mpt_toolbox()
4899 Q_ADD_TAIL(&ioc->configQ.head, &pCfg->linkage, Q_ITEM); in mpt_toolbox()
4902 add_timer(&pCfg->timer); in mpt_toolbox()
4904 wait_event(mpt_waitq, pCfg->wait_done); in mpt_toolbox()
4908 rc = pCfg->status; in mpt_toolbox()
4950 CONFIGPARMS *pCfg; in mpt_ioc_reset() local
4967 pCfg = (CONFIGPARMS *)ioc->configQ.head; in mpt_ioc_reset()
4969 del_timer(&pCfg->timer); in mpt_ioc_reset()
4970 pCfg = (CONFIGPARMS *) (pCfg->linkage.forw); in mpt_ioc_reset()
4971 } while (pCfg != (CONFIGPARMS *)&ioc->configQ); in mpt_ioc_reset()
4983 pCfg = (CONFIGPARMS *)ioc->configQ.head; in mpt_ioc_reset()
4985 pNext = (CONFIGPARMS *) pCfg->linkage.forw; in mpt_ioc_reset()
4987 Q_DEL_ITEM(&pCfg->linkage); in mpt_ioc_reset()
4989 pCfg->status = MPT_CONFIG_ERROR; in mpt_ioc_reset()
4990 pCfg->wait_done = 1; in mpt_ioc_reset()
4993 pCfg = pNext; in mpt_ioc_reset()
4994 } while (pCfg != (CONFIGPARMS *)&ioc->configQ); in mpt_ioc_reset()