Lines Matching refs:ipd
237 struct dt3155_priv *ipd = dev_id; in dt3155_irq_handler_even() local
242 tmp = ioread32(ipd->regs + INT_CSR) & (FLD_START | FLD_END_ODD); in dt3155_irq_handler_even()
247 ipd->regs + INT_CSR); in dt3155_irq_handler_even()
250 tmp = ioread32(ipd->regs + CSR1) & (FLD_CRPT_EVEN | FLD_CRPT_ODD); in dt3155_irq_handler_even()
255 ipd->regs + CSR1); in dt3155_irq_handler_even()
258 spin_lock(&ipd->lock); in dt3155_irq_handler_even()
259 if (ipd->curr_buf && !list_empty(&ipd->dmaq)) { in dt3155_irq_handler_even()
260 ipd->curr_buf->vb2_buf.timestamp = ktime_get_ns(); in dt3155_irq_handler_even()
261 ipd->curr_buf->sequence = ipd->sequence++; in dt3155_irq_handler_even()
262 ipd->curr_buf->field = V4L2_FIELD_NONE; in dt3155_irq_handler_even()
263 vb2_buffer_done(&ipd->curr_buf->vb2_buf, VB2_BUF_STATE_DONE); in dt3155_irq_handler_even()
265 ivb = list_first_entry(&ipd->dmaq, typeof(*ivb), done_entry); in dt3155_irq_handler_even()
267 ipd->curr_buf = to_vb2_v4l2_buffer(ivb); in dt3155_irq_handler_even()
269 iowrite32(dma_addr, ipd->regs + EVEN_DMA_START); in dt3155_irq_handler_even()
270 iowrite32(dma_addr + ipd->width, ipd->regs + ODD_DMA_START); in dt3155_irq_handler_even()
271 iowrite32(ipd->width, ipd->regs + EVEN_DMA_STRIDE); in dt3155_irq_handler_even()
272 iowrite32(ipd->width, ipd->regs + ODD_DMA_STRIDE); in dt3155_irq_handler_even()
277 FLD_END_EVEN | FLD_END_ODD, ipd->regs + INT_CSR); in dt3155_irq_handler_even()
278 spin_unlock(&ipd->lock); in dt3155_irq_handler_even()