Lines Matching refs:rem
653 uint32_t rem, blockSize, event; in write_buffer() local
657 rem = length; in write_buffer()
659 if (rem == 0) in write_buffer()
662 while (rem > 0) { in write_buffer()
674 if (rem >= blockSize) in write_buffer()
679 rem, pData); in write_buffer()
681 if (rem > blockSize) { in write_buffer()
682 rem -= blockSize; in write_buffer()
685 pData += rem; in write_buffer()
686 rem = 0; in write_buffer()
717 uint32_t rem, blockSize, event = 0; in read_buffer() local
721 rem = length; in read_buffer()
723 if (rem == 0) in read_buffer()
726 while (rem > 0) { in read_buffer()
737 if (rem >= blockSize) in read_buffer()
741 chal_sd_read_buffer((CHAL_HANDLE *) handle->device, rem, in read_buffer()
744 if (rem > blockSize) { in read_buffer()
745 rem -= blockSize; in read_buffer()
748 pData += rem; in read_buffer()
749 rem = 0; in read_buffer()