Lines Matching refs:camsc
112 struct aac_cam *camsc; in aac_cam_rescan() local
118 camsc = sim->aac_cam; in aac_cam_rescan()
119 if (camsc == NULL || camsc->inf == NULL || in aac_cam_rescan()
120 camsc->inf->BusNumber != channel) in aac_cam_rescan()
131 cam_sim_path(camsc->sim), in aac_cam_rescan()
147 struct aac_cam *camsc; in aac_cam_event() local
152 camsc = ccb->ccb_h.sim_priv.entries[0].ptr; in aac_cam_event()
154 xpt_release_simq(camsc->sim, 1); in aac_cam_event()
177 struct aac_cam *camsc; in aac_cam_detach() local
180 camsc = (struct aac_cam *)device_get_softc(dev); in aac_cam_detach()
181 sc = camsc->inf->aac_sc; in aac_cam_detach()
182 camsc->inf->aac_cam = NULL; in aac_cam_detach()
186 xpt_async(AC_LOST_DEVICE, camsc->path, NULL); in aac_cam_detach()
187 xpt_free_path(camsc->path); in aac_cam_detach()
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()
207 struct aac_cam *camsc; in aac_cam_attach() local
212 camsc = (struct aac_cam *)device_get_softc(dev); in aac_cam_attach()
214 camsc->inf = inf; in aac_cam_attach()
215 camsc->inf->aac_cam = camsc; in aac_cam_attach()
221 sim = cam_sim_alloc(aac_cam_action, aac_cam_poll, "aacp", camsc, in aac_cam_attach()
246 camsc->sim = sim; in aac_cam_attach()
247 camsc->path = path; in aac_cam_attach()
255 struct aac_cam *camsc; in aac_cam_action() local
261 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_cam_action()
262 sc = camsc->inf->aac_sc; in aac_cam_action()
312 cpi->max_target = camsc->inf->TargetsPerBus; in aac_cam_action()
314 cpi->initiator_id = camsc->inf->InitiatorBusId; in aac_cam_action()
315 cpi->bus_id = camsc->inf->BusNumber; in aac_cam_action()
384 ccb->ccb_h.sim_priv.entries[0].ptr = camsc; in aac_cam_action()
492 srb->bus = camsc->inf->BusNumber; /* Bus number relative to the card */ in aac_cam_action()
628 struct aac_cam *camsc; in aac_cam_reset_bus() local
633 camsc = (struct aac_cam *)cam_sim_softc(sim); in aac_cam_reset_bus()
634 sc = camsc->inf->aac_sc; in aac_cam_reset_bus()
653 rbc->BusNumber = camsc->inf->BusNumber; in aac_cam_reset_bus()