Lines Matching refs:hpb_chan

246 static unsigned int calc_xmit_shift(struct hpb_dmae_chan *hpb_chan)  in calc_xmit_shift()  argument
248 struct hpb_dmae_device *hpbdev = to_dev(hpb_chan); in calc_xmit_shift()
250 int width = ch_reg_read(hpb_chan, HPB_DMAE_DCR); in calc_xmit_shift()
268 static void hpb_dmae_set_reg(struct hpb_dmae_chan *hpb_chan, in hpb_dmae_set_reg() argument
271 ch_reg_write(hpb_chan, hw->sar, in hpb_dmae_set_reg()
273 ch_reg_write(hpb_chan, hw->dar, in hpb_dmae_set_reg()
275 ch_reg_write(hpb_chan, hw->tcr >> hpb_chan->xmit_shift, in hpb_dmae_set_reg()
279 static void hpb_dmae_start(struct hpb_dmae_chan *hpb_chan, bool next) in hpb_dmae_start() argument
281 ch_reg_write(hpb_chan, (next ? HPB_DMAE_DCMDR_DNXT : 0) | in hpb_dmae_start()
297 hpb_dmae_find_slave(struct hpb_dmae_chan *hpb_chan, int slave_id) in hpb_dmae_find_slave() argument
299 struct hpb_dmae_device *hpbdev = to_dev(hpb_chan); in hpb_dmae_find_slave()
400 hpb_dmae_alloc_chan_resources(struct hpb_dmae_chan *hpb_chan, in hpb_dmae_alloc_chan_resources() argument
403 struct hpb_dmae_device *hpbdev = to_dev(hpb_chan); in hpb_dmae_alloc_chan_resources()
411 struct device *dev = hpb_chan->shdma_chan.dev; in hpb_dmae_alloc_chan_resources()
413 hpb_chan->base = hpbdev->chan_reg + in hpb_dmae_alloc_chan_resources()
425 err = shdma_request_irq(&hpb_chan->shdma_chan, channel->ch_irq, in hpb_dmae_alloc_chan_resources()
426 IRQF_SHARED, hpb_chan->dev_id); in hpb_dmae_alloc_chan_resources()
428 dev_err(hpb_chan->shdma_chan.dev, in hpb_dmae_alloc_chan_resources()
434 hpb_chan->plane_idx = 0; in hpb_dmae_alloc_chan_resources()
435 hpb_chan->first_desc = true; in hpb_dmae_alloc_chan_resources()
438 hpb_chan->xfer_mode = XFER_SINGLE; in hpb_dmae_alloc_chan_resources()
441 hpb_chan->xfer_mode = XFER_DOUBLE; in hpb_dmae_alloc_chan_resources()
443 dev_err(hpb_chan->shdma_chan.dev, "DCR setting error"); in hpb_dmae_alloc_chan_resources()
449 ch_reg_write(hpb_chan, cfg->dcr, HPB_DMAE_DCR); in hpb_dmae_alloc_chan_resources()
450 ch_reg_write(hpb_chan, cfg->port, HPB_DMAE_DPTR); in hpb_dmae_alloc_chan_resources()
451 hpb_chan->xmit_shift = calc_xmit_shift(hpb_chan); in hpb_dmae_alloc_chan_resources()