Lines Matching defs:nioc

3477 nvme_ioctl_identify(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, int mode,
3487 if (nioc->n_len < NVME_IDENTIFY_BUFSIZE)
3493 if (ddi_copyout(idctl, (void *)nioc->n_buf, NVME_IDENTIFY_BUFSIZE, mode)
3503 nvme_ioctl_capabilities(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc,
3514 if (nioc->n_len < sizeof (nc))
3527 if (ddi_copyout(&nc, (void *)nioc->n_buf, sizeof (nc), mode) != 0)
3534 nvme_ioctl_get_logpage(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc,
3545 switch (nioc->n_arg) {
3566 if (nvme_get_logpage(nvme, &log, &bufsize, nioc->n_arg, nsid)
3570 if (nioc->n_len < bufsize) {
3575 if (ddi_copyout(log, (void *)nioc->n_buf, bufsize, mode) != 0)
3578 nioc->n_len = bufsize;
3585 nvme_ioctl_get_features(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc,
3598 if ((nioc->n_arg >> 32) > 0xff)
3601 feature = (uint8_t)(nioc->n_arg >> 32);
3621 res = nioc->n_arg & 0xffffffffUL;
3662 if (nioc->n_len < bufsize) {
3667 if (buf && ddi_copyout(buf, (void*)nioc->n_buf, bufsize, mode) != 0)
3671 nioc->n_arg = res;
3672 nioc->n_len = bufsize;
3678 nvme_ioctl_intr_cnt(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, int mode,
3686 nioc->n_arg = nvme->n_intr_cnt;
3691 nvme_ioctl_version(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, int mode,
3700 if (nioc->n_len < sizeof (nvme->n_version))
3703 if (ddi_copyout(&nvme->n_version, (void *)nioc->n_buf,
3711 nvme_ioctl_format(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, int mode,
3721 frmt.r = nioc->n_arg & 0xffffffff;
3770 nvme_ioctl_detach(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, int mode,
3773 _NOTE(ARGUNUSED(nioc, mode));
3790 nvme_ioctl_attach(nvme_t *nvme, int nsid, nvme_ioctl_t *nioc, int mode,
3793 _NOTE(ARGUNUSED(nioc, mode));
3830 nvme_ioctl_t nioc;
3862 nioc.n_len = nioc32.n_len;
3863 nioc.n_buf = nioc32.n_buf;
3864 nioc.n_arg = nioc32.n_arg;
3869 if (ddi_copyin((void*)arg, &nioc, sizeof (nvme_ioctl_t), mode)
3896 rv = nvme_ioctl[NVME_IOC_CMD(cmd)](nvme, nsid, &nioc, mode,
3906 nioc32.n_len = (size32_t)nioc.n_len;
3907 nioc32.n_buf = (uintptr32_t)nioc.n_buf;
3908 nioc32.n_arg = nioc.n_arg;
3917 if (ddi_copyout(&nioc, (void *)arg, sizeof (nvme_ioctl_t), mode)