staging: unisys: refactor visor_signalqueue_empty()

Rename visor_signalqueue_empty() to spar_signalqueue_empty(), and fix
CamelCase parameter names:

pChannel => ch
Queue => queue

Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Benjamin Romer 2014-10-23 14:30:07 -04:00 committed by Greg Kroah-Hartman
parent 3f12c5f959
commit a17f5b4af7
3 changed files with 8 additions and 8 deletions

View File

@ -207,13 +207,13 @@ SignalRemoveAll(struct channel_header *pChannel, u32 Queue, void *pSignal)
* Return value: * Return value:
* 1 if the signal queue is empty, 0 otherwise. * 1 if the signal queue is empty, 0 otherwise.
*/ */
unsigned char unsigned char spar_signalqueue_empty(struct channel_header __iomem *ch,
visor_signalqueue_empty(struct channel_header __iomem *pChannel, u32 Queue) u32 queue)
{ {
struct signal_queue_header __iomem *pqhdr = struct signal_queue_header __iomem *pqhdr =
(struct signal_queue_header __iomem *) ((char __iomem *) pChannel + (struct signal_queue_header __iomem *) ((char __iomem *) ch +
readq(&pChannel->ch_space_offset)) + Queue; readq(&ch->ch_space_offset)) + queue;
return readl(&pqhdr->head) == readl(&pqhdr->tail); return readl(&pqhdr->head) == readl(&pqhdr->tail);
} }
EXPORT_SYMBOL_GPL(visor_signalqueue_empty); EXPORT_SYMBOL_GPL(spar_signalqueue_empty);

View File

@ -564,7 +564,7 @@ unsigned int SignalRemoveAll(struct channel_header *pChannel, u32 Queue,
* Return value: * Return value:
* 1 if the signal queue is empty, 0 otherwise. * 1 if the signal queue is empty, 0 otherwise.
*/ */
unsigned char visor_signalqueue_empty(struct channel_header __iomem *pChannel, unsigned char spar_signalqueue_empty(struct channel_header __iomem *ch,
u32 Queue); u32 queue);
#endif #endif

View File

@ -438,7 +438,7 @@ virthba_ISR(int irq, void *dev_id)
mask = ~ULTRA_CHANNEL_ENABLE_INTS; mask = ~ULTRA_CHANNEL_ENABLE_INTS;
rc1 = uisqueue_interlocked_and(virthbainfo->flags_addr, mask); rc1 = uisqueue_interlocked_and(virthbainfo->flags_addr, mask);
} }
if (visor_signalqueue_empty(pChannelHeader, IOCHAN_FROM_IOPART)) { if (spar_signalqueue_empty(pChannelHeader, IOCHAN_FROM_IOPART)) {
virthbainfo->interrupts_notme++; virthbainfo->interrupts_notme++;
return IRQ_NONE; return IRQ_NONE;
} }