@@ -35,11 +35,6 @@ extern DSP_STATUS DRV_ProcUpdatestate(HANDLE pCtxt,
extern DSP_STATUS DRV_ProcSetPID(HANDLE pCtxt, s32 hProcess);
-extern DSP_STATUS DRV_GetProcContext(u32 phProcess,
- struct DRV_OBJECT *hDrvObject,
- HANDLE hPCtxt, DSP_HNODE hNode,
- u32 pMapAddr);
-
extern DSP_STATUS DRV_RemoveAllResources(HANDLE pPctxt);
extern DSP_STATUS DRV_RemoveProcContext(struct DRV_OBJECT *hDRVObject,
@@ -198,77 +198,6 @@ DSP_STATUS DRV_GetProcCtxtList(struct PROCESS_CONTEXT **pPctxt,
return status;
}
-
-
-/* Get a particular process context based on process handle (phProcess) */
-DSP_STATUS DRV_GetProcContext(u32 phProcess,
- struct DRV_OBJECT *hDrvObject,
- HANDLE hPCtxt, DSP_HNODE hNode,
- u32 pMapAddr)
-{
- struct PROCESS_CONTEXT **pCtxt = (struct PROCESS_CONTEXT **)hPCtxt;
- DSP_STATUS status = DSP_SOK;
- struct PROCESS_CONTEXT *pCtxtList = NULL;
- struct DRV_OBJECT *pDrvObject = (struct DRV_OBJECT *)hDrvObject;
- struct NODE_RES_OBJECT *pTempNode2 = NULL;
- struct NODE_RES_OBJECT *pTempNode = NULL;
- struct DMM_RES_OBJECT *pTempDMM2 = NULL;
- struct DMM_RES_OBJECT *pTempDMM = NULL;
- s32 pCtxtFound = 0;
-
- DBC_Assert(pDrvObject != NULL);
- pCtxtList = pDrvObject->procCtxtList;
- GT_0trace(curTrace, GT_ENTER, "2DRV_GetProcContext: 2");
- while ((pCtxtList != NULL) && (pCtxtList->pid != phProcess)) {
- pCtxtList = pCtxtList->next;
- GT_0trace(curTrace, GT_ENTER, "2DRV_GetProcContext: 3");
- }
- if (pCtxtList == NULL) {
- if (hNode != NULL) {
- pCtxtList = pDrvObject->procCtxtList;
- while ((pCtxtList != NULL) && (pCtxtFound == 0)) {
- pTempNode = pCtxtList->pNodeList;
- while ((pTempNode != NULL) &&
- (pTempNode->hNode != hNode)) {
- pTempNode2 = pTempNode;
- pTempNode = pTempNode->next;
- }
- if (pTempNode != NULL) {
- pCtxtFound = 1;
- status = DSP_SOK;
- } else {
- pCtxtList = pCtxtList->next;
- }
- }
- } else if ((pMapAddr != 0) && (pCtxtFound == 0)) {
- pCtxtList = pDrvObject->procCtxtList;
- while ((pCtxtList != NULL) && (pCtxtFound == 0)) {
- pTempDMM = pCtxtList->pDMMList;
- while ((pTempDMM != NULL) &&
- (pTempDMM->ulDSPAddr != pMapAddr)) {
- pTempDMM2 = pTempDMM;
- pTempDMM = pTempDMM->next;
- }
- if (pTempDMM != NULL) {
- pCtxtFound = 1;
- status = DSP_SOK;
- } else {
- pCtxtList = pCtxtList->next;
- }
- }
- if (pCtxtList == NULL)
- status = DSP_ENOTFOUND;
-
- }
- } else{
- status = DSP_SOK;
- }
- GT_0trace(curTrace, GT_ENTER, "2DRV_GetProcContext: 4");
- *pCtxt = pCtxtList;
- return status;
-}
-
-
/* Add a new process context to process context list */
DSP_STATUS DRV_InsertProcContext(struct DRV_OBJECT *hDrVObject, HANDLE hPCtxt)
{
Use filp->private_data instead of DRV_GetProcContext Signed-off-by: Ameya Palande <ameya.palande@nokia.com> --- .../plat-omap/include/dspbridge/resourcecleanup.h | 5 -- drivers/dsp/bridge/rmgr/drv.c | 71 -------------------- 2 files changed, 0 insertions(+), 76 deletions(-)