Lines Matching refs:vd
211 struct virt_dma_desc vd; member
294 const struct vendor_data *vd; member
332 return container_of(tx, struct pl08x_txd, vd.tx); in to_pl08x_txd()
404 if (pl08x->vd->pl080s) in pl08x_write_lli()
524 if (pl08x->vd->pl080s) in pl08x_write_lli()
541 struct virt_dma_desc *vd = vchan_next_desc(&plchan->vc); in pl08x_start_next_txd() local
542 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); in pl08x_start_next_txd()
545 list_del(&txd->vd.node); in pl08x_start_next_txd()
835 for (i = 0; i < pl08x->vd->channels; i++) { in pl08x_get_phy_channel()
849 if (i == pl08x->vd->channels) { in pl08x_get_phy_channel()
975 if (pl08x->vd->ftdmac020) { in pl08x_get_bytes_for_lli()
1017 if (pl08x->vd->ftdmac020) { in pl08x_lli_control_bits()
1138 if (pl08x->vd->ftdmac020) { in pl08x_choose_master_bus()
1188 if (pl08x->vd->pl080s) in pl08x_fill_lli_for_desc()
1191 if (pl08x->vd->ftdmac020) { in pl08x_fill_lli_for_desc()
1222 if (pl08x->vd->pl080s) { in pl08x_dump_lli()
1336 if (pl08x->vd->ftdmac020) in pl08x_fill_llis_for_desc()
1405 pl08x->vd->max_transfer_size; in pl08x_fill_llis_for_desc()
1483 if (pl08x->vd->ftdmac020) in pl08x_fill_llis_for_desc()
1510 static void pl08x_desc_free(struct virt_dma_desc *vd) in pl08x_desc_free() argument
1512 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); in pl08x_desc_free()
1513 struct pl08x_dma_chan *plchan = to_pl08x_chan(vd->tx.chan); in pl08x_desc_free()
1515 dma_descriptor_unmap(&vd->tx); in pl08x_desc_free()
1557 struct virt_dma_desc *vd; in pl08x_dma_tx_status() local
1579 vd = vchan_find_desc(&plchan->vc, cookie); in pl08x_dma_tx_status()
1580 if (vd) { in pl08x_dma_tx_status()
1582 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); in pl08x_dma_tx_status()
1838 if (pl08x->vd->dualmaster) in pl08x_memcpy_cctl()
1880 if (pl08x->vd->dualmaster) in pl08x_ftdmac020_memcpy_cctl()
1918 if (pl08x->vd->ftdmac020) { in pl08x_prep_dma_memcpy()
1935 return vchan_tx_prep(&plchan->vc, &txd->vd, flags); in pl08x_prep_dma_memcpy()
2090 return vchan_tx_prep(&plchan->vc, &txd->vd, flags); in pl08x_prep_slave_sg()
2133 return vchan_tx_prep(&plchan->vc, &txd->vd, flags); in pl08x_prep_dma_cyclic()
2150 if (config->device_fc && pl08x->vd->pl080s) { in pl08x_config()
2185 vchan_terminate_vdesc(&plchan->at->vd); in pl08x_terminate_all()
2284 if (pl08x->vd->nomadik) in pl08x_ensure_on()
2287 if (pl08x->vd->ftdmac020) { in pl08x_ensure_on()
2313 for (i = 0; i < pl08x->vd->channels; i++) { in pl08x_irq()
2330 vchan_cyclic_callback(&tx->vd); in pl08x_irq()
2339 vchan_cookie_complete(&tx->vd); in pl08x_irq()
2470 for (i = 0; i < pl08x->vd->channels; i++) { in pl08x_debugfs_show()
2681 if (pl08x->vd->signals) { in pl08x_of_probe()
2683 pl08x->vd->signals, in pl08x_of_probe()
2690 for (i = 0; i < pl08x->vd->signals; i++) { in pl08x_of_probe()
2697 pd->num_slave_channels = pl08x->vd->signals; in pl08x_of_probe()
2717 struct vendor_data *vd = id->data; in pl08x_probe() local
2741 pl08x->vd = vd; in pl08x_probe()
2749 if (vd->ftdmac020) { in pl08x_probe()
2767 vd->channels = (val >> 12) & 0x0f; in pl08x_probe()
2768 vd->dualmaster = !!(val & BIT(9)); in pl08x_probe()
2788 if (vd->ftdmac020) in pl08x_probe()
2796 if (vd->signals) { in pl08x_probe()
2843 if (pl08x->vd->dualmaster) { in pl08x_probe()
2848 if (vd->pl080s) in pl08x_probe()
2866 if (vd->ftdmac020) in pl08x_probe()
2882 pl08x->phy_chans = kzalloc((vd->channels * sizeof(*pl08x->phy_chans)), in pl08x_probe()
2889 for (i = 0; i < vd->channels; i++) { in pl08x_probe()
2894 if (vd->ftdmac020) { in pl08x_probe()
2904 ch->reg_config = ch->base + vd->config_offset; in pl08x_probe()
2910 if (vd->pl080s) in pl08x_probe()
2920 if (vd->nomadik) { in pl08x_probe()
2936 pl08x->vd->channels, false); in pl08x_probe()
2977 amba_part(adev), pl08x->vd->pl080s ? "s" : "", amba_rev(adev), in pl08x_probe()