Lines Matching refs:sg_used
609 dma_addr_t buf_addr, size_t sg_used, in xilinx_axidma_buf() argument
613 hw->buf_addr = lower_32_bits(buf_addr + sg_used + period_len); in xilinx_axidma_buf()
614 hw->buf_addr_msb = upper_32_bits(buf_addr + sg_used + in xilinx_axidma_buf()
617 hw->buf_addr = buf_addr + sg_used + period_len; in xilinx_axidma_buf()
623 dma_addr_t buf_addr, size_t sg_used) in xilinx_aximcdma_buf() argument
626 hw->buf_addr = lower_32_bits(buf_addr + sg_used); in xilinx_aximcdma_buf()
627 hw->buf_addr_msb = upper_32_bits(buf_addr + sg_used); in xilinx_aximcdma_buf()
629 hw->buf_addr = buf_addr + sg_used; in xilinx_aximcdma_buf()
2188 size_t sg_used; in xilinx_dma_prep_slave_sg() local
2204 sg_used = 0; in xilinx_dma_prep_slave_sg()
2207 while (sg_used < sg_dma_len(sg)) { in xilinx_dma_prep_slave_sg()
2220 sg_used); in xilinx_dma_prep_slave_sg()
2225 sg_used, 0); in xilinx_dma_prep_slave_sg()
2235 sg_used += copy; in xilinx_dma_prep_slave_sg()
2287 size_t copy, sg_used; in xilinx_dma_prep_dma_cyclic() local
2313 sg_used = 0; in xilinx_dma_prep_dma_cyclic()
2315 while (sg_used < period_len) { in xilinx_dma_prep_dma_cyclic()
2328 sg_used); in xilinx_dma_prep_dma_cyclic()
2330 xilinx_axidma_buf(chan, hw, buf_addr, sg_used, in xilinx_dma_prep_dma_cyclic()
2338 sg_used += copy; in xilinx_dma_prep_dma_cyclic()
2398 size_t sg_used; in xilinx_mcdma_prep_slave_sg() local
2414 sg_used = 0; in xilinx_mcdma_prep_slave_sg()
2417 while (sg_used < sg_dma_len(sg)) { in xilinx_mcdma_prep_slave_sg()
2429 copy = min_t(size_t, sg_dma_len(sg) - sg_used, in xilinx_mcdma_prep_slave_sg()
2435 sg_used); in xilinx_mcdma_prep_slave_sg()
2443 sg_used += copy; in xilinx_mcdma_prep_slave_sg()