Lines Matching refs:sim
77 struct cam_sim *sim; member
142 sc->sim = cam_sim_alloc(mfip_cam_action, mfip_cam_poll, "mfi", sc, in mfip_attach()
145 if (sc->sim == NULL) { in mfip_attach()
155 if (xpt_bus_register(sc->sim, dev, 0) != 0) { in mfip_attach()
157 cam_sim_free(sc->sim, FALSE); in mfip_attach()
158 sc->sim = NULL; in mfip_attach()
188 if (sc->sim != NULL) { in mfip_detach()
190 xpt_bus_deregister(cam_sim_path(sc->sim)); in mfip_detach()
191 cam_sim_free(sc->sim, FALSE); in mfip_detach()
192 sc->sim = NULL; in mfip_detach()
205 mfip_cam_action(struct cam_sim *sim, union ccb *ccb) in mfip_cam_action() argument
207 struct mfip_softc *sc = cam_sim_softc(sim); in mfip_cam_action()
227 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in mfip_cam_action()
228 cpi->unit_number = cam_sim_unit(sim); in mfip_cam_action()
229 cpi->bus_id = cam_sim_bus(sim); in mfip_cam_action()
297 struct cam_sim *sim; in mfip_cam_rescan() local
324 sim = camsc->sim; in mfip_cam_rescan()
325 if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(sim), in mfip_cam_rescan()
467 mfip_cam_poll(struct cam_sim *sim) in mfip_cam_poll() argument
469 struct mfip_softc *sc = cam_sim_softc(sim); in mfip_cam_poll()