Lines Matching defs:remain
1398 u32 remain, success;
1411 remain = readl(host->base + MMCIDATACNT);
1412 success = data->blksz * data->blocks - remain;
1587 static int mmci_get_rx_fifocnt(struct mmci_host *host, u32 status, int remain)
1589 return remain - (readl(host->base + MMCIFIFOCNT) << 2);
1606 static int mmci_pio_read(struct mmci_host *host, char *buffer, unsigned int remain)
1616 if (count > remain)
1617 count = remain;
1642 remain -= count;
1645 if (remain == 0)
1654 static int mmci_pio_write(struct mmci_host *host, char *buffer, unsigned int remain, u32 status)
1665 count = min(remain, maxcnt);
1678 remain -= count;
1680 if (remain == 0)
1705 unsigned int remain, len;
1722 remain = sg_miter->length;
1726 len = mmci_pio_read(host, buffer, remain);
1728 len = mmci_pio_write(host, buffer, remain, status);
1733 remain -= len;
1735 if (remain)