Lines Matching full:shared
88 struct pxa3xx_gcu_shared *shared; member
118 struct pxa3xx_gcu_shared *shared = priv->shared; \
132 shared->hw_running ? "running" : " idle", \
153 memset(priv->shared, 0, SHARED_SIZE); in pxa3xx_gcu_reset()
154 priv->shared->buffer_phys = priv->shared_phys; in pxa3xx_gcu_reset()
155 priv->shared->magic = PXA3XX_GCU_SHARED_MAGIC; in pxa3xx_gcu_reset()
171 struct pxa3xx_gcu_shared *sh = priv->shared; in dump_whole_state()
207 struct pxa3xx_gcu_shared *shared = priv->shared; in run_ready() local
214 shared->buffer[num++] = 0x05000000; in run_ready()
217 shared->buffer[num++] = 0x00000001; in run_ready()
218 shared->buffer[num++] = ready->phys; in run_ready()
222 shared->buffer[num++] = 0x05000000; in run_ready()
226 shared->hw_running = 1; in run_ready()
229 gc_writel(priv, REG_GCRBBR, shared->buffer_phys); in run_ready()
232 gc_writel(priv, REG_GCRBTR, shared->buffer_phys + num * 4); in run_ready()
242 struct pxa3xx_gcu_shared *shared = priv->shared; in pxa3xx_gcu_handle_irq() local
251 shared->num_interrupts++; in pxa3xx_gcu_handle_irq()
265 shared->num_idle++; in pxa3xx_gcu_handle_irq()
266 shared->hw_running = 0; in pxa3xx_gcu_handle_irq()
276 shared->num_done++; in pxa3xx_gcu_handle_irq()
298 priv->shared->num_wait_idle++; in pxa3xx_gcu_wait_idle()
300 while (priv->shared->hw_running) { in pxa3xx_gcu_wait_idle()
301 int num = priv->shared->num_interrupts; in pxa3xx_gcu_wait_idle()
305 !priv->shared->hw_running, HZ*4); in pxa3xx_gcu_wait_idle()
311 priv->shared->num_interrupts == num) { in pxa3xx_gcu_wait_idle()
332 priv->shared->num_wait_free++; in pxa3xx_gcu_wait_free()
388 priv->shared->num_writes++; in pxa3xx_gcu_write()
389 priv->shared->num_words += words; in pxa3xx_gcu_write()
442 if (!priv->shared->hw_running) in pxa3xx_gcu_write()
479 /* hand out the shared data area */ in pxa3xx_gcu_mmap()
484 priv->shared, priv->shared_phys, size); in pxa3xx_gcu_mmap()
629 priv->shared = dma_alloc_coherent(dev, SHARED_SIZE, in pxa3xx_gcu_probe()
631 if (!priv->shared) { in pxa3xx_gcu_probe()
671 priv->shared, priv->shared_phys); in pxa3xx_gcu_probe()
689 dma_free_coherent(dev, SHARED_SIZE, priv->shared, priv->shared_phys); in pxa3xx_gcu_remove()