Lines Matching defs:remain
1290 u32 remain, success;
1303 remain = readl(host->base + MMCIDATACNT);
1304 success = data->blksz * data->blocks - remain;
1427 static int mmci_get_rx_fifocnt(struct mmci_host *host, u32 status, int remain)
1429 return remain - (readl(host->base + MMCIFIFOCNT) << 2);
1446 static int mmci_pio_read(struct mmci_host *host, char *buffer, unsigned int remain)
1456 if (count > remain)
1457 count = remain;
1482 remain -= count;
1485 if (remain == 0)
1494 static int mmci_pio_write(struct mmci_host *host, char *buffer, unsigned int remain, u32 status)
1505 count = min(remain, maxcnt);
1518 remain -= count;
1520 if (remain == 0)
1545 unsigned int remain, len;
1562 remain = sg_miter->length;
1566 len = mmci_pio_read(host, buffer, remain);
1568 len = mmci_pio_write(host, buffer, remain, status);
1573 remain -= len;
1575 if (remain)