Lines Matching refs:vd
199 struct virt_dma_desc vd; member
284 const struct vendor_data *vd; member
322 return container_of(tx, struct pl08x_txd, vd.tx); in to_pl08x_txd()
394 if (pl08x->vd->pl080s) in pl08x_write_lli()
514 if (pl08x->vd->pl080s) in pl08x_write_lli()
531 struct virt_dma_desc *vd = vchan_next_desc(&plchan->vc); in pl08x_start_next_txd() local
532 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); in pl08x_start_next_txd()
535 list_del(&txd->vd.node); in pl08x_start_next_txd()
825 for (i = 0; i < pl08x->vd->channels; i++) { in pl08x_get_phy_channel()
839 if (i == pl08x->vd->channels) { in pl08x_get_phy_channel()
973 if (pl08x->vd->ftdmac020) { in pl08x_get_bytes_for_lli()
1015 if (pl08x->vd->ftdmac020) { in pl08x_lli_control_bits()
1136 if (pl08x->vd->ftdmac020) { in pl08x_choose_master_bus()
1186 if (pl08x->vd->pl080s) in pl08x_fill_lli_for_desc()
1189 if (pl08x->vd->ftdmac020) { in pl08x_fill_lli_for_desc()
1220 if (pl08x->vd->pl080s) { in pl08x_dump_lli()
1334 if (pl08x->vd->ftdmac020) in pl08x_fill_llis_for_desc()
1403 pl08x->vd->max_transfer_size; in pl08x_fill_llis_for_desc()
1481 if (pl08x->vd->ftdmac020) in pl08x_fill_llis_for_desc()
1508 static void pl08x_desc_free(struct virt_dma_desc *vd) in pl08x_desc_free() argument
1510 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); in pl08x_desc_free()
1511 struct pl08x_dma_chan *plchan = to_pl08x_chan(vd->tx.chan); in pl08x_desc_free()
1513 dma_descriptor_unmap(&vd->tx); in pl08x_desc_free()
1555 struct virt_dma_desc *vd; in pl08x_dma_tx_status() local
1577 vd = vchan_find_desc(&plchan->vc, cookie); in pl08x_dma_tx_status()
1578 if (vd) { in pl08x_dma_tx_status()
1580 struct pl08x_txd *txd = to_pl08x_txd(&vd->tx); in pl08x_dma_tx_status()
1836 if (pl08x->vd->dualmaster) in pl08x_memcpy_cctl()
1878 if (pl08x->vd->dualmaster) in pl08x_ftdmac020_memcpy_cctl()
1916 if (pl08x->vd->ftdmac020) { in pl08x_prep_dma_memcpy()
1933 return vchan_tx_prep(&plchan->vc, &txd->vd, flags); in pl08x_prep_dma_memcpy()
2088 return vchan_tx_prep(&plchan->vc, &txd->vd, flags); in pl08x_prep_slave_sg()
2131 return vchan_tx_prep(&plchan->vc, &txd->vd, flags); in pl08x_prep_dma_cyclic()
2148 if (config->device_fc && pl08x->vd->pl080s) { in pl08x_config()
2183 vchan_terminate_vdesc(&plchan->at->vd); in pl08x_terminate_all()
2282 if (pl08x->vd->nomadik) in pl08x_ensure_on()
2285 if (pl08x->vd->ftdmac020) { in pl08x_ensure_on()
2311 for (i = 0; i < pl08x->vd->channels; i++) { in pl08x_irq()
2328 vchan_cyclic_callback(&tx->vd); in pl08x_irq()
2337 vchan_cookie_complete(&tx->vd); in pl08x_irq()
2468 for (i = 0; i < pl08x->vd->channels; i++) { in pl08x_debugfs_show()
2668 if (pl08x->vd->signals) { in pl08x_of_probe()
2670 pl08x->vd->signals, in pl08x_of_probe()
2677 for (i = 0; i < pl08x->vd->signals; i++) { in pl08x_of_probe()
2684 pd->num_slave_channels = pl08x->vd->signals; in pl08x_of_probe()
2704 struct vendor_data *vd = id->data; in pl08x_probe() local
2728 pl08x->vd = vd; in pl08x_probe()
2736 if (vd->ftdmac020) { in pl08x_probe()
2754 vd->channels = (val >> 12) & 0x0f; in pl08x_probe()
2755 vd->dualmaster = !!(val & BIT(9)); in pl08x_probe()
2775 if (vd->ftdmac020) in pl08x_probe()
2783 if (vd->signals) { in pl08x_probe()
2830 if (pl08x->vd->dualmaster) { in pl08x_probe()
2835 if (vd->pl080s) in pl08x_probe()
2853 if (vd->ftdmac020) in pl08x_probe()
2869 pl08x->phy_chans = kzalloc((vd->channels * sizeof(*pl08x->phy_chans)), in pl08x_probe()
2876 for (i = 0; i < vd->channels; i++) { in pl08x_probe()
2881 if (vd->ftdmac020) { in pl08x_probe()
2891 ch->reg_config = ch->base + vd->config_offset; in pl08x_probe()
2897 if (vd->pl080s) in pl08x_probe()
2907 if (vd->nomadik) { in pl08x_probe()
2923 pl08x->vd->channels, false); in pl08x_probe()
2964 amba_part(adev), pl08x->vd->pl080s ? "s" : "", amba_rev(adev), in pl08x_probe()