Lines Matching refs:sim

95 	struct cam_sim		*sim;  member
168 struct aac_sim *sim; in aac_cam_rescan() local
174 TAILQ_FOREACH(sim, &sc->aac_sim_tqh, sim_link) { in aac_cam_rescan()
175 camsc = sim->aac_cam; in aac_cam_rescan()
188 cam_sim_path(camsc->sim), in aac_cam_rescan()
211 xpt_release_simq(camsc->sim, 1); in aac_cam_event()
253 xpt_bus_deregister(cam_sim_path(camsc->sim)); in aac_cam_detach()
254 cam_sim_free(camsc->sim, /*free_devq*/TRUE); in aac_cam_detach()
270 struct cam_sim *sim; in aac_cam_attach() local
287 sim = aac_sim_alloc(aac_cam_action, aac_cam_poll, "aacraidp", camsc, in aac_cam_attach()
289 if (sim == NULL) { in aac_cam_attach()
296 if (aac_xpt_bus_register(sim, dev, 0) != CAM_SUCCESS) { in aac_cam_attach()
297 cam_sim_free(sim, TRUE); in aac_cam_attach()
302 if (xpt_create_path(&path, NULL, cam_sim_path(sim), in aac_cam_attach()
304 xpt_bus_deregister(cam_sim_path(sim)); in aac_cam_attach()
305 cam_sim_free(sim, TRUE); in aac_cam_attach()
313 camsc->sim = sim; in aac_cam_attach()
349 aac_container_rw_command(struct cam_sim *sim, union ccb *ccb, u_int8_t *cmdp) in aac_container_rw_command() argument
357 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_container_rw_command()
364 xpt_freeze_simq(sim, 1); in aac_container_rw_command()
502 aac_container_special_command(struct cam_sim *sim, union ccb *ccb, in aac_container_special_command() argument
509 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_container_special_command()
618 xpt_freeze_simq(sim, 1); in aac_container_special_command()
840 aac_passthrough_command(struct cam_sim *sim, union ccb *ccb) in aac_passthrough_command() argument
848 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_passthrough_command()
855 xpt_freeze_simq(sim, 1); in aac_passthrough_command()
957 aac_cam_action(struct cam_sim *sim, union ccb *ccb) in aac_cam_action() argument
962 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_cam_action()
1028 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in aac_cam_action()
1029 cpi->unit_number = cam_sim_unit(sim); in aac_cam_action()
1064 ccb->ccb_h.status = aac_cam_reset_bus(sim, ccb); in aac_cam_action()
1075 ccb->ccb_h.status = aac_cam_abort_ccb(sim, ccb); in aac_cam_action()
1079 ccb->ccb_h.status = aac_cam_term_io(sim, ccb); in aac_cam_action()
1102 aac_container_rw_command(sim, ccb, cmdp); in aac_cam_action()
1104 aac_container_special_command(sim, ccb, cmdp); in aac_cam_action()
1106 aac_passthrough_command(sim, ccb); in aac_cam_action()
1111 aac_cam_poll(struct cam_sim *sim) in aac_cam_poll() argument
1246 aac_cam_reset_bus(struct cam_sim *sim, union ccb *ccb) in aac_cam_reset_bus() argument
1256 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_cam_reset_bus()
1267 xpt_freeze_simq(sim, 1); in aac_cam_reset_bus()
1325 aac_cam_abort_ccb(struct cam_sim *sim, union ccb *ccb) in aac_cam_abort_ccb() argument
1331 aac_cam_term_io(struct cam_sim *sim, union ccb *ccb) in aac_cam_term_io() argument