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

Function nvme_disable_ctrl

components/drivers/nvme/nvme.c:80–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80static rt_err_t nvme_disable_ctrl(struct rt_nvme_controller *nvme)
81{
82 nvme->ctrl_config &= ~RT_NVME_CC_SHN_MASK;
83 nvme->ctrl_config &= ~RT_NVME_CC_ENABLE;
84 nvme_writel(nvme, RT_NVME_REG_CC, nvme->ctrl_config);
85
86 return nvme_poll_csts(nvme, RT_NVME_CSTS_RDY, 0);
87}
88
89static rt_err_t nvme_shutdown_ctrl(struct rt_nvme_controller *nvme)
90{

Callers 2

Calls 2

nvme_writelFunction · 0.85
nvme_poll_cstsFunction · 0.85

Tested by

no test coverage detected