Lines Matching refs:pos
46 static rt_ssize_t rt_msd_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size);
47 static rt_ssize_t rt_msd_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size);
48 static rt_ssize_t rt_msd_sdhc_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size);
49 static rt_ssize_t rt_msd_sdhc_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t si…
1212 static rt_ssize_t rt_msd_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) in rt_msd_read() argument
1230 …result = _send_cmd(msd->spi_device, READ_SINGLE_BLOCK, pos * msd->geometry.bytes_per_sector, 0x00,… in rt_msd_read()
1233 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1241 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1251 …result = _send_cmd(msd->spi_device, READ_MULTIPLE_BLOCK, pos * msd->geometry.bytes_per_sector, 0x0… in rt_msd_read()
1254 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1266 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_read()
1288 static rt_ssize_t rt_msd_sdhc_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size) in rt_msd_sdhc_read() argument
1306 result = _send_cmd(msd->spi_device, READ_SINGLE_BLOCK, pos, 0x00, response_r1, response); in rt_msd_sdhc_read()
1309 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1317 MSD_DEBUG("[err] read SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1327 result = _send_cmd(msd->spi_device, READ_MULTIPLE_BLOCK, pos, 0x00, response_r1, response); in rt_msd_sdhc_read()
1330 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1342 MSD_DEBUG("[err] read READ_MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_read()
1364 static rt_ssize_t rt_msd_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size) in rt_msd_write() argument
1383 …result = _send_cmd(msd->spi_device, WRITE_BLOCK, pos * msd->geometry.bytes_per_sector, 0x00, respo… in rt_msd_write()
1394 MSD_DEBUG("[err] write SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_write()
1428 …result = _send_cmd(msd->spi_device, WRITE_MULTIPLE_BLOCK, pos * msd->geometry.bytes_per_sector, 0x… in rt_msd_write()
1445 MSD_DEBUG("[err] write SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_write()
1484 static rt_ssize_t rt_msd_sdhc_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t si… in rt_msd_sdhc_write() argument
1501 result = _send_cmd(msd->spi_device, WRITE_BLOCK, pos, 0x00, response_r1, response); in rt_msd_sdhc_write()
1512 MSD_DEBUG("[err] write SINGLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_write()
1543 result = _send_cmd(msd->spi_device, WRITE_MULTIPLE_BLOCK, pos, 0x00, response_r1, response); in rt_msd_sdhc_write()
1560 MSD_DEBUG("[err] write MULTIPLE_BLOCK #%d fail!\r\n", pos); in rt_msd_sdhc_write()