Lines Matching refs:dwidth

544 	int			csize, dwidth;  in at_xdmac_compute_chan_conf()  local
563 dwidth = ffs(atchan->sconfig.src_addr_width) - 1; in at_xdmac_compute_chan_conf()
564 if (dwidth < 0) { in at_xdmac_compute_chan_conf()
568 atchan->cfg |= AT_XDMAC_CC_DWIDTH(dwidth); in at_xdmac_compute_chan_conf()
586 dwidth = ffs(atchan->sconfig.dst_addr_width) - 1; in at_xdmac_compute_chan_conf()
587 if (dwidth < 0) { in at_xdmac_compute_chan_conf()
591 atchan->cfg |= AT_XDMAC_CC_DWIDTH(dwidth); in at_xdmac_compute_chan_conf()
667 u32 len, mem, dwidth, fixed_dwidth; in at_xdmac_prep_slave_sg() local
694 dwidth = at_xdmac_get_dwidth(atchan->cfg); in at_xdmac_prep_slave_sg()
695 fixed_dwidth = IS_ALIGNED(len, 1 << dwidth) in at_xdmac_prep_slave_sg()
696 ? dwidth in at_xdmac_prep_slave_sg()
855 u32 dwidth; in at_xdmac_interleaved_queue_desc() local
876 dwidth = at_xdmac_align_width(chan, src | dst | chunk->size); in at_xdmac_interleaved_queue_desc()
877 if (chunk->size >= (AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth)) { in at_xdmac_interleaved_queue_desc()
881 AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth); in at_xdmac_interleaved_queue_desc()
911 chan_cc |= AT_XDMAC_CC_DWIDTH(dwidth); in at_xdmac_interleaved_queue_desc()
913 ublen = chunk->size >> dwidth; in at_xdmac_interleaved_queue_desc()
1040 u32 dwidth; in at_xdmac_prep_dma_memcpy() local
1067 dwidth = at_xdmac_align_width(chan, src_addr | dst_addr); in at_xdmac_prep_dma_memcpy()
1089 if (remaining_size >= AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth) in at_xdmac_prep_dma_memcpy()
1090 xfer_size = AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth; in at_xdmac_prep_dma_memcpy()
1097 dwidth = at_xdmac_align_width(chan, in at_xdmac_prep_dma_memcpy()
1100 chan_cc |= AT_XDMAC_CC_DWIDTH(dwidth); in at_xdmac_prep_dma_memcpy()
1102 ublen = xfer_size >> dwidth; in at_xdmac_prep_dma_memcpy()
1145 u32 dwidth; in at_xdmac_memset_create_desc() local
1167 dwidth = at_xdmac_align_width(chan, dst_addr); in at_xdmac_memset_create_desc()
1169 if (len >= (AT_XDMAC_MBR_UBC_UBLEN_MAX << dwidth)) { in at_xdmac_memset_create_desc()
1184 chan_cc |= AT_XDMAC_CC_DWIDTH(dwidth); in at_xdmac_memset_create_desc()
1186 ublen = len >> dwidth; in at_xdmac_memset_create_desc()
1400 u8 dwidth = 0; in at_xdmac_tx_status() local
1511 dwidth = at_xdmac_get_dwidth(desc->lld.mbr_cfg); in at_xdmac_tx_status()
1512 residue -= (desc->lld.mbr_ubc & 0xffffff) << dwidth; in at_xdmac_tx_status()
1516 residue += cur_ubc << dwidth; in at_xdmac_tx_status()