MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / nvme_shutdown_ctrl

Function nvme_shutdown_ctrl

components/drivers/nvme/nvme.c:89–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89static 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
98rt_inline rt_le16_t nvme_next_cmdid(struct rt_nvme_controller *nvme)
99{

Callers 1

Calls 2

nvme_writelFunction · 0.85
nvme_poll_cstsFunction · 0.85

Tested by

no test coverage detected