Lines Matching refs:cdata
208 const struct nvme_controller_data *cdata; in nvmf_copyin_handoff() local
256 cdata = nvlist_get_binary(nvl, "cdata", &i); in nvmf_copyin_handoff()
257 if (i != sizeof(*cdata)) in nvmf_copyin_handoff()
263 if (memcmp(dle->subnqn, cdata->subnqn, sizeof(cdata->subnqn)) != 0) in nvmf_copyin_handoff()
277 const struct nvme_controller_data *cdata; in nvmf_probe() local
282 cdata = nvlist_get_binary(nvl, "cdata", NULL); in nvmf_probe()
283 device_set_descf(dev, "Fabrics: %.256s", cdata->subnqn); in nvmf_probe()
329 sc->cdata->ctratt) != 0; in nvmf_establish_connection()
338 memcpy(sc->cdata, nvlist_get_binary(nvl, "cdata", NULL), in nvmf_establish_connection()
339 sizeof(*sc->cdata)); in nvmf_establish_connection()
488 sc->ns = mallocarray(sc->cdata->nn, sizeof(*sc->ns), M_NVMF, in nvmf_add_namespaces()
524 sc->cdata = malloc(sizeof(*sc->cdata), M_NVMF, M_WAITOK); in nvmf_attach()
549 if (sc->cdata->mdts != 0) { in nvmf_attach()
551 1 << (sc->cdata->mdts + NVME_MPS_SHIFT + in nvmf_attach()
594 for (i = 0; i < sc->cdata->nn; i++) { in nvmf_attach()
622 free(sc->cdata, M_NVMF); in nvmf_attach()
677 for (i = 0; i < sc->cdata->nn; i++) { in nvmf_disconnect_task()
766 const struct nvme_controller_data *cdata; in nvmf_reconnect_host() local
795 cdata = nvlist_get_binary(nvl, "cdata", NULL); in nvmf_reconnect_host()
796 if (memcmp(sc->cdata->subnqn, cdata->subnqn, in nvmf_reconnect_host()
797 sizeof(cdata->subnqn)) != 0) { in nvmf_reconnect_host()
822 for (i = 0; i < sc->cdata->nn; i++) { in nvmf_reconnect_host()
857 for (u_int i = 0; i < sc->cdata->nn; i++) { in nvmf_shutdown_pre_sync()
892 for (u_int i = 0; i < sc->cdata->nn; i++) { in nvmf_shutdown_post_sync()
922 for (i = 0; i < sc->cdata->nn; i++) { in nvmf_detach()
962 free(sc->cdata, M_NVMF); in nvmf_detach()
1083 nvmf_purge_namespaces(sc, last_nsid + 1, sc->cdata->nn + 1); in nvmf_rescan_all_ns()
1231 memcpy(arg, sc->cdata, sizeof(*sc->cdata)); in nvmf_ioctl()