• Home
  • Raw
  • Download

Lines Matching refs:ipcnum

283 			unsigned int ipcnum = (unsigned int) ioarg;  in mwave_ioctl()  local
285 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
290 ipcnum); in mwave_ioctl()
293 ipcnum = array_index_nospec(ipcnum, in mwave_ioctl()
298 ipcnum, 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()
309 ipcnum); in mwave_ioctl()
314 unsigned int ipcnum = (unsigned int) ioarg; in mwave_ioctl() local
316 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
320 " Invalid ipcnum %x\n", ipcnum); in mwave_ioctl()
323 ipcnum = array_index_nospec(ipcnum, in mwave_ioctl()
328 ipcnum, in mwave_ioctl()
329 pDrvData->IPCs[ipcnum].usIntCount); in mwave_ioctl()
332 if (pDrvData->IPCs[ipcnum].bIsEnabled == true) { in mwave_ioctl()
338 ipcnum); 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()
350 ipcnum); in mwave_ioctl()
353 if (pDrvData->IPCs[ipcnum].usIntCount == 1) { in mwave_ioctl()
354 pDrvData->IPCs[ipcnum].usIntCount = 2; in mwave_ioctl()
361 ipcnum); 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()
370 ipcnum); in mwave_ioctl()
377 unsigned int ipcnum = (unsigned int) ioarg; in mwave_ioctl() local
382 ipcnum); in mwave_ioctl()
383 if (ipcnum >= ARRAY_SIZE(pDrvData->IPCs)) { in mwave_ioctl()
388 ipcnum); in mwave_ioctl()
391 ipcnum = array_index_nospec(ipcnum, 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()