Searched refs:nsid (Results 1 - 25 of 56) sorted by relevance

123

/freebsd-current/usr.sbin/nvmfd/
H A Dinternal.h48 void device_active_nslist(uint32_t nsid, struct nvme_ns_list *nslist);
49 bool device_identification_descriptor(uint32_t nsid, void *buf);
50 bool device_namespace_data(uint32_t nsid, struct nvme_namespace_data *nsdata);
51 void device_read(uint32_t nsid, uint64_t lba, u_int nlb,
53 void device_write(uint32_t nsid, uint64_t lba, u_int nlb,
55 void device_flush(uint32_t nsid, const struct nvmf_capsule *nc);
H A Ddevices.c145 lookup_device(uint32_t nsid) argument
147 if (nsid == 0 || nsid > ndevices)
149 return (&devices[nsid - 1]);
153 device_active_nslist(uint32_t nsid, struct nvme_ns_list *nslist) argument
159 nsid++;
160 while (nsid <= ndevices) {
161 nslist->ns[count] = htole32(nsid);
165 nsid++;
170 device_identification_descriptor(uint32_t nsid, voi argument
192 device_namespace_data(uint32_t nsid, struct nvme_namespace_data *nsdata) argument
234 device_read(uint32_t nsid, uint64_t lba, u_int nlb, const struct nvmf_capsule *nc) argument
300 device_write(uint32_t nsid, uint64_t lba, u_int nlb, const struct nvmf_capsule *nc) argument
356 device_flush(uint32_t nsid, const struct nvmf_capsule *nc) argument
[all...]
H A Dio.c148 uint32_t nsid; local
154 if (!device_namespace_data(le32toh(cmd->nsid), &nsdata)) {
163 nsid = le32toh(cmd->nsid);
164 if (nsid >= 0xfffffffe) {
169 device_active_nslist(nsid, &nslist);
173 if (!device_identification_descriptor(le32toh(cmd->nsid),
368 device_read(le32toh(cmd->nsid), cmd_lba(cmd), cmd_nlb(cmd), nc);
385 device_write(le32toh(cmd->nsid), cmd_lba(cmd), cmd_nlb(cmd), nc);
398 device_flush(le32toh(cmd->nsid), n
[all...]
/freebsd-current/sbin/nvmecontrol/
H A Dns.c195 uint32_t nsid; member in struct:delete_options
198 .nsid = NONE - 1,
203 OPT("namespace-id", 'n', arg_uint32, delete_opt, nsid,
225 uint32_t nsid; member in struct:attach_options
229 .nsid = NONE,
235 OPT("namespace-id", 'n', arg_uint32, attach_opt, nsid,
259 uint32_t nsid; member in struct:attached_options
262 .nsid = NONE,
267 OPT("namespace-id", 'n', arg_uint32, attached_opt, nsid,
289 uint32_t nsid; member in struct:detach_options
326 uint32_t nsid; member in struct:identify_options
403 uint32_t nsid; local
448 uint32_t nsid; local
493 uint32_t nsid; local
546 uint32_t nsid; local
636 uint32_t nsid; local
703 uint32_t nsid; local
773 uint32_t nsid; local
850 uint32_t nsid; local
903 uint32_t nsid; local
[all...]
H A Dnsid.c53 .name = "nsid",
68 uint32_t nsid; local
74 get_nsid(fd, &path, &nsid);
76 printf("%s\t%u\n", path, nsid);
H A Dreset.c58 uint32_t nsid; local
63 get_nsid(fd, &path, &nsid);
64 if (nsid != 0) {
H A Dselftest.c56 selftest_op(int fd, uint32_t nsid, uint8_t stc) argument
62 pt.cmd.nsid = htole32(nsid);
81 uint32_t nsid; local
87 get_nsid(fd, &path, &nsid);
88 if (nsid != 0) {
105 selftest_op(fd, nsid, opt.stc);
H A Didentify.c52 uint32_t nsid; member in struct:options
57 .nsid = NONE,
212 identify_ns(int fd, uint32_t nsid) argument
217 if (read_namespace_data(fd, nsid, &nsdata))
240 uint32_t nsid; local
246 get_nsid(fd, &path, &nsid);
247 if (nsid != 0) {
258 if (opt.nsid != NONE)
259 nsid = opt.nsid;
[all...]
H A Dresv.c239 uint32_t nsid; local
244 get_nsid(fd, NULL, &nsid);
245 if (nsid == 0) {
255 pt.cmd.nsid = htole32(nsid);
278 uint32_t nsid; local
283 get_nsid(fd, NULL, &nsid);
284 if (nsid == 0) {
294 pt.cmd.nsid = htole32(nsid);
317 uint32_t nsid; local
358 uint32_t nsid; local
[all...]
H A Dnvmecontrol.c122 read_namespace_data(int fd, uint32_t nsid, struct nvme_namespace_data *nsdata) argument
128 pt.cmd.nsid = htole32(nsid);
167 get_nsid(int fd, char **ctrlr_str, uint32_t *nsid) argument
175 if (nsid != NULL)
176 *nsid = gnsid.nsid;
H A Dtelemetry.c98 uint32_t nsid; local
114 get_nsid(fd, &path, &nsid);
115 if (nsid == 0) {
116 nsid = NVME_GLOBAL_NAMESPACE_TAG;
129 if (nsid != NVME_GLOBAL_NAMESPACE_TAG)
139 read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, 0,
161 read_logpage(fd, NVME_LOG_TELEMETRY_HOST_INITIATED, nsid, 0, 0, 0,
H A Dformat.c119 uint32_t nsid; local
144 get_nsid(fd, &path, &nsid);
145 if (nsid == 0) {
146 nsid = NVME_GLOBAL_NAMESPACE_TAG;
168 if (nsid != NVME_GLOBAL_NAMESPACE_TAG) {
177 if (read_namespace_data(fd, nsid, &nsd))
204 pt.cmd.nsid = htole32(nsid);
H A Dnvmecontrol.h81 void get_nsid(int fd, char **ctrlr_str, uint32_t *nsid);
83 int read_namespace_data(int fd, uint32_t nsid, struct nvme_namespace_data *nsdata);
86 void read_logpage(int fd, uint8_t log_page, uint32_t nsid, uint8_t lsp,
H A Dsanitize.c113 uint32_t nsid; local
144 get_nsid(fd, &path, &nsid);
145 if (nsid != 0) {
168 if (nsid != 0 && cd.nn > 1)
H A Dpassthru.c48 uint32_t nsid; member in struct:options
83 .nsid = 0,
128 ARG("namespace-id", 'n', arg_uint32, opt, nsid,
204 fprintf(stderr, "nsid : %#04x\n", opt.nsid);
229 pt.cmd.nsid = opt.nsid; /* XXX note: kernel overrides this */
H A DMakefile18 SRCS+= nsid.c
/freebsd-current/tools/tools/nvmf/nvmfdd/
H A Dnvmfdd.c35 fprintf(stderr, "nvmfdd [-FGg] [-c cntlid] [-t transport] [-o offset] [-l length] [-n nsid]\n"
194 validate_namespace(struct nvmf_qpair *qp, u_int nsid, u_int *block_size) argument
200 if (nsid > info.nn) {
201 warnx("Invalid namespace ID %u", nsid);
205 error = nvmf_host_identify_namespace(qp, nsid, &nsdata);
241 nvmf_io_command(struct nvmf_qpair *qp, u_int nsid, enum rw command, argument
252 cmd.nsid = htole32(nsid);
294 nvmf_io(struct nvmf_qpair *qp, u_int nsid, u_int block_size, enum rw command, argument
332 error = nvmf_io_command(qp, nsid, comman
365 u_int block_size, cntlid, nsid, queues; local
[all...]
/freebsd-current/sys/dev/nvmf/host/
H A Dnvmf.c303 uint32_t nsid; local
330 nsid = nslist->ns[i];
331 if (nsid == 0) {
336 if (sc->ns[nsid - 1] != NULL) {
339 nsid);
345 if (!nvmf_cmd_identify_namespace(sc, nsid, data, nvmf_complete,
349 nsid);
356 "IDENTIFY namespace %u failed, status %#x\n", nsid,
364 nsid, status.io_error);
376 nsid);
399 uint32_t nsid; local
717 nvmf_rescan_ns(struct nvmf_softc *sc, uint32_t nsid) argument
[all...]
H A Dnvmf_cmd.c104 cmd.nsid = htole32(id);
130 cmd.nsid = htole32(id);
143 nvmf_cmd_get_log_page(struct nvmf_softc *sc, uint32_t nsid, uint8_t lid, argument
158 cmd.nsid = htole32(nsid);
/freebsd-current/sys/cam/nvme/
H A Dnvme_all.h35 void nvme_ns_cmd(struct ccb_nvmeio *nvmeio, uint8_t cmd, uint32_t nsid,
H A Dnvme_all.c64 nvme_ns_cmd(struct ccb_nvmeio *nvmeio, uint8_t cmd, uint32_t nsid, argument
70 nvmeio->cmd.nsid = htole32(nsid);
182 "opc=%x fuse=%x nsid=%x prp1=%llx prp2=%llx cdw=%x %x %x %x %x %x",
183 cmd->opc, cmd->fuse, cmd->nsid,
/freebsd-current/sys/dev/nvme/
H A Dnvme_ctrlr_cmd.c55 nvme_ctrlr_cmd_identify_namespace(struct nvme_controller *ctrlr, uint32_t nsid, argument
70 cmd->nsid = htole32(nsid);
256 uint32_t nsid, void *payload, uint32_t payload_size, nvme_cb_fn_t cb_fn,
266 cmd->nsid = htole32(nsid);
297 uint32_t nsid, struct nvme_health_information_page *payload,
302 nsid, payload, sizeof(*payload), cb_fn, cb_arg);
255 nvme_ctrlr_cmd_get_log_page(struct nvme_controller *ctrlr, uint8_t log_page, uint32_t nsid, void *payload, uint32_t payload_size, nvme_cb_fn_t cb_fn, void *cb_arg) argument
296 nvme_ctrlr_cmd_get_health_information_page(struct nvme_controller *ctrlr, uint32_t nsid, struct nvme_health_information_page *payload, nvme_cb_fn_t cb_fn, void *cb_arg) argument
H A Dnvme.c246 nvme_notify_ns(struct nvme_controller *ctrlr, int nsid) argument
253 KASSERT(nsid <= NVME_MAX_NAMESPACES,
254 ("%s: Namespace notification to nsid %d exceeds range\n",
255 device_get_nameunit(ctrlr->dev), nsid));
260 ns = &ctrlr->ns[nsid - 1];
H A Dnvme.h810 uint32_t nsid; /* namespace identifier */ member in struct:nvme_command
1553 uint32_t nsid; member in struct:nvme_error_information_entry
1643 uint32_t nsid; member in struct:nvme_device_self_test_page::__anon6
1726 uint32_t nsid; member in struct:nvme_res_notification_page
1836 * * nsid (namespace id) - for admin commands only
1883 uint32_t nsid; member in struct:nvme_get_nsid
1921 uint32_t nsid, int is_user_buffer,
1936 uint8_t log_page, uint32_t nsid,
2001 void nvme_ns_flush_cmd(struct nvme_command *cmd, uint32_t nsid) argument
2005 cmd->nsid
2009 nvme_ns_rw_cmd(struct nvme_command *cmd, uint32_t rwcmd, uint32_t nsid, uint64_t lba, uint32_t count) argument
2020 nvme_ns_write_cmd(struct nvme_command *cmd, uint32_t nsid, uint64_t lba, uint32_t count) argument
2027 nvme_ns_read_cmd(struct nvme_command *cmd, uint32_t nsid, uint64_t lba, uint32_t count) argument
2034 nvme_ns_trim_cmd(struct nvme_command *cmd, uint32_t nsid, uint32_t num_ranges) argument
[all...]
/freebsd-current/sbin/nvmecontrol/tests/
H A Dbasic.sh168 atf_test_case nsid
171 atf_set "descr" "check the nsid command"
177 atf_check -o not-empty -e empty nvmecontrol nsid ${TEST_DEV}
179 atf_check -s not-exit:0 -o empty -e not-empty nvmecontrol nsid ${TEST_DEV}
181 atf_check -s not-exit:0 -o ignore -e match:"${INV_OPT_MSG}" nvmecontrol nsid ${INV_OPT} ${TEST_DEV}
232 atf_add_test_case nsid

Completed in 272 milliseconds

123