Lines Matching full:mb
105 static void dump_mb(struct cx18 *cx, struct cx18_mailbox *mb, char *name) in dump_mb() argument
113 name, mb->request, mb->ack, mb->cmd, mb->error, in dump_mb()
114 u32arr2hex(mb->args, MAX_MB_ARGUMENTS, argstr)); in dump_mb()
234 struct cx18_mailbox *mb; in epu_dma_done() local
240 mb = &order->mb; in epu_dma_done()
241 handle = mb->args[0]; in epu_dma_done()
248 "stale" : "good", mb->request); in epu_dma_done()
252 mdl_ack_count = mb->args[2]; in epu_dma_done()
281 mb->request); in epu_dma_done()
329 CX18_DEBUG_INFO("%x %s\n", order->mb.args[0], str); in epu_debug()
340 switch (order->mb.cmd) { in epu_cmd()
349 order->mb.cmd); in epu_cmd()
356 order->mb.cmd); in epu_cmd()
399 order->rpu, order->mb.cmd); in mb_ack_irq()
403 req = order->mb.request; in mb_ack_irq()
420 struct cx18_mailbox *mb; in epu_dma_done_irq() local
423 mb = &order->mb; in epu_dma_done_irq()
424 handle = mb->args[0]; in epu_dma_done_irq()
425 mdl_ack_offset = mb->args[1]; in epu_dma_done_irq()
426 mdl_ack_count = mb->args[2]; in epu_dma_done_irq()
451 str_offset = order->mb.args[1]; in epu_debug_irq()
473 switch (order->mb.cmd) { in epu_cmd_irq()
482 order->mb.cmd); in epu_cmd_irq()
489 order->mb.cmd); in epu_cmd_irq()
523 struct cx18_mailbox __iomem *mb; in cx18_api_epu_cmd_irq() local
531 mb = &cx->scb->cpu2epu_mb; in cx18_api_epu_cmd_irq()
534 mb = &cx->scb->apu2epu_mb; in cx18_api_epu_cmd_irq()
548 order_mb = &order->mb; in cx18_api_epu_cmd_irq()
550 /* mb->cmd and mb->args[0] through mb->args[2] */ in cx18_api_epu_cmd_irq()
552 (&order_mb->cmd)[i] = cx18_readl(cx, &mb->cmd + i); in cx18_api_epu_cmd_irq()
554 /* mb->request and mb->ack. N.B. we want to read mb->ack last */ in cx18_api_epu_cmd_irq()
556 (&order_mb->request)[i] = cx18_readl(cx, &mb->request + i); in cx18_api_epu_cmd_irq()
585 struct cx18_mailbox __iomem *mb; in cx18_api_call() local
615 mb = &cx->scb->epu2apu_mb; in cx18_api_call()
621 mb = &cx->scb->epu2cpu_mb; in cx18_api_call()
639 req = cx18_readl(cx, &mb->request); in cx18_api_call()
642 (ack = cx18_readl(cx, &mb->ack)) == req, in cx18_api_call()
646 cx18_writel(cx, req, &mb->ack); in cx18_api_call()
656 cx18_writel(cx, cmd, &mb->cmd); in cx18_api_call()
658 cx18_writel(cx, data[i], &mb->args[i]); in cx18_api_call()
659 cx18_writel(cx, 0, &mb->error); in cx18_api_call()
660 cx18_writel(cx, req, &mb->request); in cx18_api_call()
661 cx18_writel(cx, req - 1, &mb->ack); /* ensure ack & req are distinct */ in cx18_api_call()
676 ack = cx18_readl(cx, &mb->ack); in cx18_api_call()
680 ack = cx18_readl(cx, &mb->ack); in cx18_api_call()
711 data[i] = cx18_readl(cx, &mb->args[i]); in cx18_api_call()
712 err = cx18_readl(cx, &mb->error); in cx18_api_call()