Lines Matching refs:sg_len
339 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, host->dma.dir); in au1xmmc_data_complete()
384 int sg_len, max, count; in au1xmmc_send_pio() local
399 sg_len = data->sg[host->pio.index].length - host->pio.offset; in au1xmmc_send_pio()
402 max = (sg_len > host->pio.len) ? host->pio.len : sg_len; in au1xmmc_send_pio()
421 if (count == sg_len) { in au1xmmc_send_pio()
439 int max, count, sg_len = 0; in au1xmmc_receive_pio() local
456 sg_len = sg_dma_len(&data->sg[host->pio.index]) - host->pio.offset; in au1xmmc_receive_pio()
459 if (sg_len < max) in au1xmmc_receive_pio()
460 max = sg_len; in au1xmmc_receive_pio()
498 if (sg_len && count == sg_len) { in au1xmmc_receive_pio()
628 data->sg_len, host->dma.dir); in au1xmmc_prepare_data()
645 int sg_len = sg->length; in au1xmmc_prepare_data() local
647 int len = (datalen > sg_len) ? sg_len : datalen; in au1xmmc_prepare_data()
681 dma_unmap_sg(mmc_dev(host->mmc), data->sg, data->sg_len, in au1xmmc_prepare_data()