Lines Matching refs:pDrvData

126 	pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd;  in mwave_ioctl()  local
140 retval = tp3780I_ResetDSP(&pDrvData->rBDData); in mwave_ioctl()
153 retval = tp3780I_StartDSP(&pDrvData->rBDData); in mwave_ioctl()
169 retval = tp3780I_QueryAbilities(&pDrvData->rBDData, in mwave_ioctl()
203 retval = tp3780I_ReadWriteDspDStore(&pDrvData->rBDData, in mwave_ioctl()
227 retval = tp3780I_ReadWriteDspDStore(&pDrvData->rBDData, in mwave_ioctl()
250 retval = tp3780I_ReadWriteDspDStore(&pDrvData->rBDData, in mwave_ioctl()
273 retval = tp3780I_ReadWriteDspIStore(&pDrvData->rBDData, in mwave_ioctl()
284 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
296 pDrvData->IPCs[ipcnum].usIntCount); in mwave_ioctl()
299 pDrvData->IPCs[ipcnum].bIsHere = false; in mwave_ioctl()
300 pDrvData->IPCs[ipcnum].bIsEnabled = true; in mwave_ioctl()
313 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
324 pDrvData->IPCs[ipcnum].usIntCount); in mwave_ioctl()
327 if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { in mwave_ioctl()
334 add_wait_queue(&pDrvData->IPCs[ipcnum].ipc_wait_queue, &wait); in mwave_ioctl()
335 pDrvData->IPCs[ipcnum].bIsHere = true; in mwave_ioctl()
339 if (pDrvData->IPCs[ipcnum].usIntCount == 1) { /* first int has occurred (race condition) */ in mwave_ioctl()
340 pDrvData->IPCs[ipcnum].usIntCount = 2; /* first int has been handled */ in mwave_ioctl()
348 if (pDrvData->IPCs[ipcnum].usIntCount == 1) { in mwave_ioctl()
349 pDrvData->IPCs[ipcnum].usIntCount = 2; in mwave_ioctl()
358 pDrvData->IPCs[ipcnum].bIsHere = false; in mwave_ioctl()
359 remove_wait_queue(&pDrvData->IPCs[ipcnum].ipc_wait_queue, &wait); in mwave_ioctl()
378 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
387 if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { in mwave_ioctl()
388 pDrvData->IPCs[ipcnum].bIsEnabled = false; in mwave_ioctl()
389 if (pDrvData->IPCs[ipcnum].bIsHere == true) { in mwave_ioctl()
390 wake_up_interruptible(&pDrvData->IPCs[ipcnum].ipc_wait_queue); in mwave_ioctl()
533 pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd; in mwave_exit() local
538 for (i = 0; i < pDrvData->nr_registered_attrs; i++) in mwave_exit()
540 pDrvData->nr_registered_attrs = 0; in mwave_exit()
542 if (pDrvData->device_registered) { in mwave_exit()
544 pDrvData->device_registered = false; in mwave_exit()
548 if ( pDrvData->sLine >= 0 ) { in mwave_exit()
549 serial8250_unregister_port(pDrvData->sLine); in mwave_exit()
551 if (pDrvData->bMwaveDevRegistered) { in mwave_exit()
554 if (pDrvData->bDSPEnabled) { in mwave_exit()
555 tp3780I_DisableDSP(&pDrvData->rBDData); in mwave_exit()
557 if (pDrvData->bResourcesClaimed) { in mwave_exit()
558 tp3780I_ReleaseResources(&pDrvData->rBDData); in mwave_exit()
560 if (pDrvData->bBDInitialized) { in mwave_exit()
561 tp3780I_Cleanup(&pDrvData->rBDData); in mwave_exit()
573 pMWAVE_DEVICE_DATA pDrvData = &mwave_s_mdd; in mwave_init() local
579 pDrvData->bBDInitialized = false; in mwave_init()
580 pDrvData->bResourcesClaimed = false; in mwave_init()
581 pDrvData->bDSPEnabled = false; in mwave_init()
582 pDrvData->bDSPReset = false; in mwave_init()
583 pDrvData->bMwaveDevRegistered = false; in mwave_init()
584 pDrvData->sLine = -1; in mwave_init()
586 for (i = 0; i < ARRAY_SIZE(pDrvData->IPCs); i++) { in mwave_init()
587 pDrvData->IPCs[i].bIsEnabled = false; in mwave_init()
588 pDrvData->IPCs[i].bIsHere = false; in mwave_init()
589 pDrvData->IPCs[i].usIntCount = 0; /* no ints received yet */ in mwave_init()
590 init_waitqueue_head(&pDrvData->IPCs[i].ipc_wait_queue); in mwave_init()
593 retval = tp3780I_InitializeBoardData(&pDrvData->rBDData); in mwave_init()
604 pDrvData->bBDInitialized = true; in mwave_init()
606 retval = tp3780I_CalcResources(&pDrvData->rBDData); in mwave_init()
618 retval = tp3780I_ClaimResources(&pDrvData->rBDData); in mwave_init()
629 pDrvData->bResourcesClaimed = true; in mwave_init()
631 retval = tp3780I_EnableDSP(&pDrvData->rBDData); in mwave_init()
642 pDrvData->bDSPEnabled = true; in mwave_init()
650 pDrvData->bMwaveDevRegistered = true; in mwave_init()
652 pDrvData->sLine = register_serial_portandirq( in mwave_init()
653 pDrvData->rBDData.rDspSettings.usUartBaseIO, in mwave_init()
654 pDrvData->rBDData.rDspSettings.usUartIrq in mwave_init()
656 if (pDrvData->sLine < 0) { in mwave_init()
671 pDrvData->device_registered = true; in mwave_init()
680 pDrvData->nr_registered_attrs++; in mwave_init()