Lines Matching refs:ipcnum

282 			unsigned int ipcnum = (unsigned int) ioarg;  in mwave_ioctl()  local
284 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
289 ipcnum); in mwave_ioctl()
295 ipcnum, 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()
306 ipcnum); in mwave_ioctl()
311 unsigned int ipcnum = (unsigned int) ioarg; in mwave_ioctl() local
313 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
317 " Invalid ipcnum %x\n", ipcnum); in mwave_ioctl()
323 ipcnum, in mwave_ioctl()
324 pDrvData->IPCs[ipcnum].usIntCount); in mwave_ioctl()
327 if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { in mwave_ioctl()
333 ipcnum); 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()
345 ipcnum); in mwave_ioctl()
348 if (pDrvData->IPCs[ipcnum].usIntCount == 1) { in mwave_ioctl()
349 pDrvData->IPCs[ipcnum].usIntCount = 2; in mwave_ioctl()
356 ipcnum); 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()
365 ipcnum); in mwave_ioctl()
372 unsigned int ipcnum = (unsigned int) ioarg; in mwave_ioctl() local
377 ipcnum); in mwave_ioctl()
378 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
383 ipcnum); 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()