Lines Matching refs:IPCs

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()
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()