struct signal_queue_header __iomem *pqhdr =
(struct signal_queue_header __iomem *)
- ((char __iomem *) ch + readq(&ch->ch_space_offset))
+ ((char __iomem *)ch + readq(&ch->ch_space_offset))
+ queue;
/* capture current head and tail */
void __iomem *psource;
unsigned int head, tail;
struct signal_queue_header __iomem *pqhdr =
- (struct signal_queue_header __iomem *) ((char __iomem *) ch +
+ (struct signal_queue_header __iomem *)((char __iomem *)ch +
readq(&ch->ch_space_offset)) + queue;
/* capture current head and tail */
tail = (tail + 1) % readl(&pqhdr->max_slots);
/* copy signal from tail location to the area pointed to by pSignal */
- psource = (char __iomem *) pqhdr + readq(&pqhdr->sig_base_offset) +
+ psource = (char __iomem *)pqhdr + readq(&pqhdr->sig_base_offset) +
(tail * readl(&pqhdr->signal_size));
memcpy_fromio(sig, psource, readl(&pqhdr->signal_size));
void *psource;
unsigned int head, tail, count = 0;
struct signal_queue_header *pqhdr =
- (struct signal_queue_header *) ((char *) ch +
+ (struct signal_queue_header *)((char *)ch +
ch->ch_space_offset) + queue;
/* capture current head and tail */
* to by pSignal
*/
psource =
- (char *) pqhdr + pqhdr->sig_base_offset +
+ (char *)pqhdr + pqhdr->sig_base_offset +
(tail * pqhdr->signal_size);
- memcpy((char *) sig + (pqhdr->signal_size * count),
+ memcpy((char *)sig + (pqhdr->signal_size * count),
psource, pqhdr->signal_size);
mb(); /* channel synch */
u32 queue)
{
struct signal_queue_header __iomem *pqhdr =
- (struct signal_queue_header __iomem *) ((char __iomem *) ch +
+ (struct signal_queue_header __iomem *)((char __iomem *)ch +
readq(&ch->ch_space_offset)) + queue;
return readl(&pqhdr->head) == readl(&pqhdr->tail);
}