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

Function nvme_set_features_simple

components/drivers/nvme/nvme.c:156–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156static rt_err_t nvme_set_features_simple(struct rt_nvme_controller *nvme,
157 rt_uint32_t fid, rt_uint32_t dword11)
158{
159 struct rt_nvme_command cmd;
160
161 rt_memset(&cmd, 0, sizeof(cmd));
162 cmd.features.opcode = RT_NVME_ADMIN_OPCODE_SET_FEATURES;
163 cmd.features.fid = rt_cpu_to_le32(fid);
164 cmd.features.dword11 = rt_cpu_to_le32(dword11);
165
166 return nvme_submit_cmd(&nvme->admin_queue, &cmd);
167}
168
169static rt_err_t nvme_submit_io_cmd(struct rt_nvme_controller *nvme,
170 struct rt_nvme_command *cmd)

Callers 2

nvme_blk_autorefreshFunction · 0.85
nvme_setup_io_queuesFunction · 0.85

Calls 2

rt_memsetFunction · 0.85
nvme_submit_cmdFunction · 0.85

Tested by

no test coverage detected