Lines Matching defs:camsc
186 struct aac_cam *camsc;
192 camsc = sim->aac_cam;
193 if (camsc == NULL || camsc->inf == NULL ||
194 camsc->inf->BusNumber != channel)
205 cam_sim_path(camsc->sim),
222 struct aac_cam *camsc;
227 camsc = ccb->ccb_h.sim_priv.entries[0].ptr;
229 xpt_release_simq(camsc->sim, 1);
246 struct aac_cam *camsc;
248 camsc = (struct aac_cam *)device_get_softc(dev);
249 if (!camsc->inf)
251 sc = camsc->inf->aac_sc;
260 struct aac_cam *camsc;
262 camsc = (struct aac_cam *)device_get_softc(dev);
263 if (!camsc->inf)
265 sc = camsc->inf->aac_sc;
267 camsc->inf->aac_cam = NULL;
271 xpt_async(AC_LOST_DEVICE, camsc->path, NULL);
272 xpt_free_path(camsc->path);
273 xpt_bus_deregister(cam_sim_path(camsc->sim));
274 cam_sim_free(camsc->sim, /*free_devq*/TRUE);
292 struct aac_cam *camsc;
295 camsc = (struct aac_cam *)device_get_softc(dev);
300 camsc->inf = inf;
301 camsc->inf->aac_cam = camsc;
307 sim = aac_sim_alloc(aac_cam_action, aac_cam_poll, "aacraidp", camsc,
335 camsc->sim = sim;
336 camsc->path = path;
373 struct aac_cam *camsc;
379 camsc = (struct aac_cam *)cam_sim_softc(sim);
380 sc = camsc->inf->aac_sc;
388 ccb->ccb_h.sim_priv.entries[0].ptr = camsc;
521 struct aac_cam *camsc;
525 camsc = (struct aac_cam *)cam_sim_softc(sim);
526 sc = camsc->inf->aac_sc;
634 ccb->ccb_h.sim_priv.entries[0].ptr = camsc;
855 struct aac_cam *camsc;
861 camsc = (struct aac_cam *)cam_sim_softc(sim);
862 sc = camsc->inf->aac_sc;
870 ccb->ccb_h.sim_priv.entries[0].ptr = camsc;
945 srb->bus = camsc->inf->BusNumber - 1; /* Bus no. rel. to the card */
971 struct aac_cam *camsc;
974 camsc = (struct aac_cam *)cam_sim_softc(sim);
975 sc = camsc->inf->aac_sc;
1018 cpi->max_target = camsc->inf->TargetsPerBus;
1020 cpi->initiator_id = camsc->inf->InitiatorBusId;
1021 cpi->bus_id = camsc->inf->BusNumber;
1077 camsc->inf->BusType != CONTAINER_BUS) {
1105 if (camsc->inf->BusType == CONTAINER_BUS) {
1260 struct aac_cam *camsc;
1265 camsc = (struct aac_cam *)cam_sim_softc(sim);
1266 sc = camsc->inf->aac_sc;
1278 ccb->ccb_h.sim_priv.entries[0].ptr = camsc;
1320 rbc->BusNumber = camsc->inf->BusNumber - 1;