Lines Matching refs:buf
80 int_fast16_t SDSPI_read(SD_Handle handle, void *buf,
82 int_fast16_t SDSPI_write(SD_Handle handle, const void *buf,
87 static bool recvDataBlock(SPI_Handle handle, void *buf, uint32_t count);
92 static bool transmitDataBlock(SPI_Handle handle, void *buf, uint32_t count,
437 int_fast16_t SDSPI_read(SD_Handle handle, void *buf, int_fast32_t sector, in SDSPI_read() argument
465 recvDataBlock(object->spiHandle, buf, SD_SECTOR_SIZE)) { in SDSPI_read()
473 if (!recvDataBlock(object->spiHandle, buf, SD_SECTOR_SIZE)) { in SDSPI_read()
476 buf = (void *) (((uint32_t) buf) + SD_SECTOR_SIZE); in SDSPI_read()
502 int_fast16_t SDSPI_write(SD_Handle handle, const void *buf, in SDSPI_write() argument
529 transmitDataBlock(object->spiHandle, (void *) buf, SD_SECTOR_SIZE, in SDSPI_write()
552 if (!transmitDataBlock(object->spiHandle, (void *) buf, in SDSPI_write()
556 buf = (void *) (((uint32_t) buf) + SD_SECTOR_SIZE); in SDSPI_write()
600 static bool recvDataBlock(SPI_Handle handle, void *buf, uint32_t count) in recvDataBlock() argument
627 if (spiTransfer(handle, buf, NULL, count) != SD_STATUS_SUCCESS) { in recvDataBlock()
731 static bool transmitDataBlock(SPI_Handle handle, void *buf, uint32_t count, in transmitDataBlock() argument
750 if (spiTransfer(handle, NULL, buf, count) != SD_STATUS_SUCCESS) { in transmitDataBlock()