Lines Matching refs:rem
655 uint32_t rem, blockSize, event; in write_buffer() local
659 rem = length; in write_buffer()
661 if (rem == 0) in write_buffer()
664 while (rem > 0) { in write_buffer()
676 if (rem >= blockSize) in write_buffer()
681 rem, pData); in write_buffer()
683 if (rem > blockSize) { in write_buffer()
684 rem -= blockSize; in write_buffer()
687 pData += rem; in write_buffer()
688 rem = 0; in write_buffer()
719 uint32_t rem, blockSize, event = 0; in read_buffer() local
723 rem = length; in read_buffer()
725 if (rem == 0) in read_buffer()
728 while (rem > 0) { in read_buffer()
739 if (rem >= blockSize) in read_buffer()
743 chal_sd_read_buffer((CHAL_HANDLE *) handle->device, rem, in read_buffer()
746 if (rem > blockSize) { in read_buffer()
747 rem -= blockSize; in read_buffer()
750 pData += rem; in read_buffer()
751 rem = 0; in read_buffer()