Home
last modified time | relevance | path

Searched refs:nioc (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/cmd/nvmeadm/
H A Dnvmeadm_dev.c33 nvme_ioctl_t nioc = { 0 }; in nvme_ioctl() local
44 if ((nioc.n_buf = (uintptr_t)calloc(*bufsize, 1)) == NULL) in nvme_ioctl()
47 nioc.n_len = *bufsize; in nvme_ioctl()
50 nioc.n_arg = arg; in nvme_ioctl()
52 if (ioctl(fd, ioc, &nioc) != 0) { in nvme_ioctl()
55 if (nioc.n_buf != 0) in nvme_ioctl()
56 free((void *)nioc.n_buf); in nvme_ioctl()
62 *res = nioc.n_arg; in nvme_ioctl()
65 *bufsize = nioc.n_len; in nvme_ioctl()
68 *buf = (void *)nioc.n_buf; in nvme_ioctl()
/titanic_41/usr/src/uts/common/io/nvme/
H A Dnvme.c3477 nvme_ioctl_identify(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, int mode, in nvme_ioctl_identify() argument
3487 if (nioc->n_len < NVME_IDENTIFY_BUFSIZE) in nvme_ioctl_identify()
3493 if (ddi_copyout(idctl, (void *)nioc->n_buf, NVME_IDENTIFY_BUFSIZE, mode) in nvme_ioctl_identify()
3503 nvme_ioctl_capabilities(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, in nvme_ioctl_capabilities() argument
3514 if (nioc->n_len < sizeof (nc)) in nvme_ioctl_capabilities()
3527 if (ddi_copyout(&nc, (void *)nioc->n_buf, sizeof (nc), mode) != 0) in nvme_ioctl_capabilities()
3534 nvme_ioctl_get_logpage(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, in nvme_ioctl_get_logpage() argument
3545 switch (nioc->n_arg) { in nvme_ioctl_get_logpage()
3566 if (nvme_get_logpage(nvme, &log, &bufsize, nioc->n_arg, nsid) in nvme_ioctl_get_logpage()
3570 if (nioc->n_len < bufsize) { in nvme_ioctl_get_logpage()
[all …]