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

Function nvme_enable_ctrl

components/drivers/nvme/nvme.c:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71static rt_err_t nvme_enable_ctrl(struct rt_nvme_controller *nvme)
72{
73 nvme->ctrl_config &= ~RT_NVME_CC_SHN_MASK;
74 nvme->ctrl_config |= RT_NVME_CC_ENABLE;
75 nvme_writel(nvme, RT_NVME_REG_CC, nvme->ctrl_config);
76
77 return nvme_poll_csts(nvme, RT_NVME_CSTS_RDY, RT_NVME_CSTS_RDY);
78}
79
80static rt_err_t nvme_disable_ctrl(struct rt_nvme_controller *nvme)
81{

Callers 1

Calls 2

nvme_writelFunction · 0.85
nvme_poll_cstsFunction · 0.85

Tested by

no test coverage detected