Lines Matching refs:sg_len
336 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir); in au1xmmc_data_complete()
379 int sg_len, max, count; in au1xmmc_send_pio() local
394 sg_len = data->sg[host->pio.index].length - host->pio.offset; in au1xmmc_send_pio()
397 max = (sg_len > host->pio.len) ? host->pio.len : sg_len; in au1xmmc_send_pio()
417 if (count == sg_len) { in au1xmmc_send_pio()
435 int max, count, sg_len = 0; in au1xmmc_receive_pio() local
452 sg_len = sg_dma_len(&data->sg[host->pio.index]) - host->pio.offset; in au1xmmc_receive_pio()
455 if (sg_len < max) in au1xmmc_receive_pio()
456 max = sg_len; in au1xmmc_receive_pio()
496 if (sg_len && count == sg_len) { in au1xmmc_receive_pio()
617 data->sg_len, host->dma.dir); in au1xmmc_prepare_data()
633 int sg_len = sg->length; in au1xmmc_prepare_data() local
635 int len = (datalen > sg_len) ? sg_len : datalen; in au1xmmc_prepare_data()
668 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in au1xmmc_prepare_data()