iReturn = PutChars(pdx, buffer, n);
}
- Allowi(pdx); /* make sure we have input int */
+ ced_allowi(pdx); /* make sure we have input int */
mutex_unlock(&pdx->io_mutex);
return iReturn;
mutex_lock(&pdx->io_mutex); /* Protect disconnect from new i/o */
iReturn = PutChars(pdx, &c, 1);
dev_dbg(&pdx->interface->dev, "SendChar >%c< (0x%02x)\n", c, c);
- Allowi(pdx); /* Make sure char reads are running */
+ ced_allowi(pdx); /* Make sure char reads are running */
mutex_unlock(&pdx->io_mutex);
return iReturn;
}
dev_dbg(&pdx->interface->dev, "%s\n", __func__);
- Allowi(pdx); /* Make sure char reads are running */
+ ced_allowi(pdx); /* Make sure char reads are running */
ced_send_chars(pdx); /* and send any buffered chars */
spin_lock_irq(&pdx->charInLock);
iReturn = U14ERR_NOIN; /* no input data to read */
spin_unlock_irq(&pdx->charInLock);
- Allowi(pdx); /* Make sure char reads are running */
+ ced_allowi(pdx); /* Make sure char reads are running */
mutex_unlock(&pdx->io_mutex); /* Protect disconnect from new i/o */
return iReturn;
return -ENOMEM;
mutex_lock(&pdx->io_mutex); /* Protect disconnect from new i/o */
- Allowi(pdx); /* Make sure char reads are running */
+ ced_allowi(pdx); /* Make sure char reads are running */
ced_send_chars(pdx); /* and send any buffered chars */
spin_lock_irq(&pdx->charInLock);
} else
spin_unlock_irq(&pdx->charInLock);
- Allowi(pdx); /* Make sure char reads are running */
+ ced_allowi(pdx); /* Make sure char reads are running */
mutex_unlock(&pdx->io_mutex); /* Protect disconnect from new i/o */
return iReturn;
{
int iReturn;
mutex_lock(&pdx->io_mutex); /* Protect disconnect from new i/o */
- Allowi(pdx); /* make sure we allow pending chars */
+ ced_allowi(pdx); /* make sure we allow pending chars */
ced_send_chars(pdx); /* in both directions */
iReturn = pdx->dwNumInput; /* no lock as single read */
mutex_unlock(&pdx->io_mutex); /* Protect disconnect from new i/o */
int iReturn = 0; /* will be count of line ends */
mutex_lock(&pdx->io_mutex); /* Protect disconnect from new i/o */
- Allowi(pdx); /* Make sure char reads are running */
+ ced_allowi(pdx); /* Make sure char reads are running */
ced_send_chars(pdx); /* and send any buffered chars */
spin_lock_irq(&pdx->charInLock); /* Get protection */
spin_unlock(&pdx->stagedLock); /* Finally release the lock again */
/* This is not correct as dwDMAFlag is protected by the staged lock, but it is treated */
- /* in Allowi as if it were protected by the char lock. In any case, most systems will */
+ /* in ced_allowi as if it were protected by the char lock. In any case, most systems will */
/* not be upset by char input during DMA... sigh. Needs sorting out. */
if (bRestartCharInput) /* may be out of date, but... */
- Allowi(pdx); /* ...Allowi tests a lock too. */
+ ced_allowi(pdx); /* ...ced_allowi tests a lock too. */
dev_dbg(&pdx->interface->dev, "%s: done\n", __func__);
}
pdx->bReadCharsPending = false; /* No longer have a pending read */
spin_unlock(&pdx->charInLock); /* already at irq level */
- Allowi(pdx); /* see if we can do the next one */
+ ced_allowi(pdx); /* see if we can do the next one */
}
/****************************************************************************
-** Allowi
+** ced_allowi
**
** This is used to make sure that there is always a pending input transfer so
** we can pick up any inward transfers. This can be called in multiple contexts
** so we use the irqsave version of the spinlock.
****************************************************************************/
-int Allowi(DEVICE_EXTENSION *pdx)
+int ced_allowi(DEVICE_EXTENSION *pdx)
{
int iReturn = U14ERR_NOERROR;
unsigned long flags;