Lines Matching refs:dcmd
80 u32 dcmd; /* DCMD value for the current transfer */ member
204 static inline int dbg_burst_from_dcmd(u32 dcmd) in dbg_burst_from_dcmd() argument
206 int burst = (dcmd >> 16) & 0x3; in dbg_burst_from_dcmd()
217 #define PXA_DCMD_STR(flag) (dcmd & PXA_DCMD_##flag ? #flag" " : "")
223 u32 dcmd; in descriptors_show() local
233 dcmd = desc->dcmd; in descriptors_show()
234 burst = dbg_burst_from_dcmd(dcmd); in descriptors_show()
235 width = (1 << ((dcmd >> 14) & 0x3)) >> 1; in descriptors_show()
243 dcmd, in descriptors_show()
248 dcmd & PXA_DCMD_LENGTH); in descriptors_show()
265 u32 dcsr, dcmd; in chan_state_show() local
272 dcmd = _phy_readl_relaxed(phy, DCMD); in chan_state_show()
273 burst = dbg_burst_from_dcmd(dcmd); in chan_state_show()
274 width = (1 << ((dcmd >> 14) & 0x3)) >> 1; in chan_state_show()
293 dcmd, in chan_state_show()
297 PXA_DCMD_STR(ENDIAN), burst, width, dcmd & PXA_DCMD_LENGTH); in chan_state_show()
526 updater->dcmd = PXA_DCMD_WIDTH4 | PXA_DCMD_BURST32 | in set_updater_desc()
529 updater->dcmd |= PXA_DCMD_ENDIRQEN; in set_updater_desc()
865 u32 *dcmd, u32 *dev_src, u32 *dev_dst) in pxad_get_config() argument
871 *dcmd = 0; in pxad_get_config()
877 *dcmd |= PXA_DCMD_INCTRGADDR; in pxad_get_config()
879 *dcmd |= PXA_DCMD_FLOWSRC; in pxad_get_config()
886 *dcmd |= PXA_DCMD_INCSRCADDR; in pxad_get_config()
888 *dcmd |= PXA_DCMD_FLOWTRG; in pxad_get_config()
891 *dcmd |= PXA_DCMD_BURST32 | PXA_DCMD_INCTRGADDR | in pxad_get_config()
899 *dcmd |= PXA_DCMD_WIDTH1; in pxad_get_config()
901 *dcmd |= PXA_DCMD_WIDTH2; in pxad_get_config()
903 *dcmd |= PXA_DCMD_WIDTH4; in pxad_get_config()
906 *dcmd |= PXA_DCMD_BURST8; in pxad_get_config()
908 *dcmd |= PXA_DCMD_BURST16; in pxad_get_config()
910 *dcmd |= PXA_DCMD_BURST32; in pxad_get_config()
921 u32 dcmd; in pxad_prep_memcpy() local
932 pxad_get_config(chan, DMA_MEM_TO_MEM, &dcmd, NULL, NULL); in pxad_prep_memcpy()
948 hw_desc->dcmd = dcmd | (PXA_DCMD_LENGTH & copy); in pxad_prep_memcpy()
970 u32 dcmd, dsadr = 0, dtadr = 0; in pxad_prep_slave_sg() local
976 pxad_get_config(chan, dir, &dcmd, &dsadr, &dtadr); in pxad_prep_slave_sg()
996 sw_desc->hw_desc[j]->dcmd = in pxad_prep_slave_sg()
997 dcmd | (PXA_DCMD_LENGTH & len); in pxad_prep_slave_sg()
1019 u32 dcmd, dsadr = 0, dtadr = 0; in pxad_prep_dma_cyclic() local
1034 pxad_get_config(chan, dir, &dcmd, &dsadr, &dtadr); in pxad_prep_dma_cyclic()
1035 dcmd |= PXA_DCMD_ENDIRQEN | (PXA_DCMD_LENGTH & period_len); in pxad_prep_dma_cyclic()
1053 phw_desc[0]->dcmd = dcmd; in pxad_prep_dma_cyclic()
1136 if (sw_desc->hw_desc[0]->dcmd & PXA_DCMD_INCSRCADDR) in pxad_residue()
1153 if (sw_desc->hw_desc[0]->dcmd & PXA_DCMD_INCSRCADDR) in pxad_residue()
1157 len = hw_desc->dcmd & PXA_DCMD_LENGTH; in pxad_residue()