| 154 | } |
| 155 | |
| 156 | static 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 | |
| 169 | static rt_err_t nvme_submit_io_cmd(struct rt_nvme_controller *nvme, |
| 170 | struct rt_nvme_command *cmd) |
no test coverage detected