Lines Matching refs:IPCs
285 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
294 ARRAY_SIZE(pDrvData->IPCs)); in mwave_ioctl()
299 pDrvData->IPCs[ipcnum].usIntCount); in mwave_ioctl()
302 pDrvData->IPCs[ipcnum].bIsHere = false; in mwave_ioctl()
303 pDrvData->IPCs[ipcnum].bIsEnabled = true; in mwave_ioctl()
316 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
324 ARRAY_SIZE(pDrvData->IPCs)); in mwave_ioctl()
329 pDrvData->IPCs[ipcnum].usIntCount); in mwave_ioctl()
332 if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { in mwave_ioctl()
339 add_wait_queue(&pDrvData->IPCs[ipcnum].ipc_wait_queue, &wait); in mwave_ioctl()
340 pDrvData->IPCs[ipcnum].bIsHere = true; in mwave_ioctl()
344 if (pDrvData->IPCs[ipcnum].usIntCount == 1) { /* first int has occurred (race condition) */ in mwave_ioctl()
345 pDrvData->IPCs[ipcnum].usIntCount = 2; /* first int has been handled */ in mwave_ioctl()
353 if (pDrvData->IPCs[ipcnum].usIntCount == 1) { in mwave_ioctl()
354 pDrvData->IPCs[ipcnum].usIntCount = 2; in mwave_ioctl()
363 pDrvData->IPCs[ipcnum].bIsHere = false; in mwave_ioctl()
364 remove_wait_queue(&pDrvData->IPCs[ipcnum].ipc_wait_queue, &wait); in mwave_ioctl()
383 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
392 ARRAY_SIZE(pDrvData->IPCs)); in mwave_ioctl()
394 if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { in mwave_ioctl()
395 pDrvData->IPCs[ipcnum].bIsEnabled = false; in mwave_ioctl()
396 if (pDrvData->IPCs[ipcnum].bIsHere == true) { in mwave_ioctl()
397 wake_up_interruptible(&pDrvData->IPCs[ipcnum].ipc_wait_queue); in mwave_ioctl()
593 for (i = 0; i < ARRAY_SIZE(pDrvData->IPCs); i++) { in mwave_init()
594 pDrvData->IPCs[i].bIsEnabled = false; in mwave_init()
595 pDrvData->IPCs[i].bIsHere = false; in mwave_init()
596 pDrvData->IPCs[i].usIntCount = 0; /* no ints received yet */ in mwave_init()
597 init_waitqueue_head(&pDrvData->IPCs[i].ipc_wait_queue); in mwave_init()