Lines Matching refs:sim

72 	struct cam_sim		*sim;  member
111 struct aac_sim *sim; in aac_cam_rescan() local
117 TAILQ_FOREACH(sim, &sc->aac_sim_tqh, sim_link) { in aac_cam_rescan()
118 camsc = sim->aac_cam; in aac_cam_rescan()
131 cam_sim_path(camsc->sim), in aac_cam_rescan()
154 xpt_release_simq(camsc->sim, 1); in aac_cam_event()
188 xpt_bus_deregister(cam_sim_path(camsc->sim)); in aac_cam_detach()
189 cam_sim_free(camsc->sim, /*free_devq*/TRUE); in aac_cam_detach()
205 struct cam_sim *sim; in aac_cam_attach() local
221 sim = cam_sim_alloc(aac_cam_action, aac_cam_poll, "aacp", camsc, in aac_cam_attach()
223 if (sim == NULL) { in aac_cam_attach()
230 if (xpt_bus_register(sim, dev, 0) != CAM_SUCCESS) { in aac_cam_attach()
231 cam_sim_free(sim, TRUE); in aac_cam_attach()
236 if (xpt_create_path(&path, NULL, cam_sim_path(sim), in aac_cam_attach()
238 xpt_bus_deregister(cam_sim_path(sim)); in aac_cam_attach()
239 cam_sim_free(sim, TRUE); in aac_cam_attach()
246 camsc->sim = sim; in aac_cam_attach()
253 aac_cam_action(struct cam_sim *sim, union ccb *ccb) in aac_cam_action() argument
261 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_cam_action()
319 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in aac_cam_action()
320 cpi->unit_number = cam_sim_unit(sim); in aac_cam_action()
355 ccb->ccb_h.status = aac_cam_reset_bus(sim, ccb); in aac_cam_action()
362 ccb->ccb_h.status = aac_cam_abort_ccb(sim, ccb); in aac_cam_action()
366 ccb->ccb_h.status = aac_cam_term_io(sim, ccb); in aac_cam_action()
382 xpt_freeze_simq(sim, 1); in aac_cam_action()
516 aac_cam_poll(struct cam_sim *sim) in aac_cam_poll() argument
624 aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb) in aac_cam_reset_bus() argument
633 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_cam_reset_bus()
669 aac_cam_abort_ccb(struct cam_sim *sim, union ccb *ccb) in aac_cam_abort_ccb() argument
675 aac_cam_term_io(struct cam_sim *sim, union ccb *ccb) in aac_cam_term_io() argument