| 87 | } |
| 88 | |
| 89 | static rt_err_t nvme_shutdown_ctrl(struct rt_nvme_controller *nvme) |
| 90 | { |
| 91 | nvme->ctrl_config &= ~RT_NVME_CC_SHN_MASK; |
| 92 | nvme->ctrl_config |= RT_NVME_CC_SHN_NORMAL; |
| 93 | nvme_writel(nvme, RT_NVME_REG_CC, nvme->ctrl_config); |
| 94 | |
| 95 | return nvme_poll_csts(nvme, RT_NVME_CSTS_SHST_MASK, RT_NVME_CSTS_SHST_CMPLT); |
| 96 | } |
| 97 | |
| 98 | rt_inline rt_le16_t nvme_next_cmdid(struct rt_nvme_controller *nvme) |
| 99 | { |
no test coverage detected