Lines Matching refs:sim
43 struct cam_sim *sim = xpt_path_sim(ccb->ccb_h.path); in nvmf_ccb_done() local
44 struct nvmf_softc *sc = cam_sim_softc(sim); in nvmf_ccb_done()
156 nvmf_sim_action(struct cam_sim *sim, union ccb *ccb) in nvmf_sim_action() argument
158 struct nvmf_softc *sc = cam_sim_softc(sim); in nvmf_sim_action()
181 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in nvmf_sim_action()
182 cpi->unit_number = cam_sim_unit(sim); in nvmf_sim_action()
261 sc->sim = cam_sim_alloc(nvmf_sim_action, NULL, "nvme", sc, in nvmf_init_sim()
263 if (sc->sim == NULL) { in nvmf_init_sim()
269 if (xpt_bus_register(sc->sim, sc->dev, 0) != CAM_SUCCESS) { in nvmf_init_sim()
271 cam_sim_free(sc->sim, TRUE); in nvmf_init_sim()
275 if (xpt_create_path(&sc->path, NULL, cam_sim_path(sc->sim), in nvmf_init_sim()
278 xpt_bus_deregister(cam_sim_path(sc->sim)); in nvmf_init_sim()
279 cam_sim_free(sc->sim, TRUE); in nvmf_init_sim()
302 if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(sc->sim), 0, in nvmf_sim_rescan_ns()
317 xpt_freeze_simq(sc->sim, 1); in nvmf_disconnect_sim()
327 xpt_release_simq(sc->sim, 1); in nvmf_reconnect_sim()
336 xpt_release_simq(sc->sim, 1); in nvmf_shutdown_sim()
344 xpt_release_simq(sc->sim, 1); in nvmf_destroy_sim()
346 xpt_bus_deregister(cam_sim_path(sc->sim)); in nvmf_destroy_sim()
347 cam_sim_free(sc->sim, TRUE); in nvmf_destroy_sim()