| 565 | } |
| 566 | |
| 567 | static rt_err_t nvme_blk_sync(struct rt_blk_disk *disk) |
| 568 | { |
| 569 | struct rt_nvme_command cmd; |
| 570 | struct rt_nvme_device *ndev = rt_disk_to_nvme_device(disk); |
| 571 | |
| 572 | rt_memset(&cmd, 0, sizeof(cmd)); |
| 573 | cmd.common.opcode = RT_NVME_CMD_FLUSH; |
| 574 | cmd.common.nsid = rt_cpu_to_le32(ndev->nsid); |
| 575 | |
| 576 | return nvme_submit_io_cmd(ndev->ctrl, &cmd); |
| 577 | } |
| 578 | |
| 579 | static rt_err_t nvme_blk_erase(struct rt_blk_disk *disk) |
| 580 | { |
nothing calls this directly
no test coverage detected