• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/dev/aic7xxx/

Lines Matching refs:sim

60 static void	ahd_action(struct cam_sim *sim, union ccb *ccb);
71 static void ahd_poll(struct cam_sim *sim);
72 static void ahd_setup_data(struct ahd_softc *ahd, struct cam_sim *sim,
74 static void ahd_abort_ccb(struct ahd_softc *ahd, struct cam_sim *sim,
147 path_id = cam_sim_path(ahd->platform_data->sim);
218 struct cam_sim *sim;
224 sim = NULL;
247 sim = cam_sim_alloc(ahd_action, ahd_poll, "ahd", ahd,
250 if (sim == NULL) {
255 if (xpt_bus_register(sim, ahd->dev_softc, /*bus_id*/0) != CAM_SUCCESS) {
256 cam_sim_free(sim, /*free_devq*/TRUE);
257 sim = NULL;
262 cam_sim_path(sim), CAM_TARGET_WILDCARD,
264 xpt_bus_deregister(cam_sim_path(sim));
265 cam_sim_free(sim, /*free_devq*/TRUE);
266 sim = NULL;
274 csa.callback_arg = sim;
279 ahd->platform_data->sim = sim;
451 ahd_action(struct cam_sim *sim, union ccb *ccb)
462 ahd = (struct ahd_softc *)cam_sim_softc(sim);
465 our_id = SIM_SCSI_ID(ahd, sim);
476 status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate,
540 xpt_freeze_simq(sim, /*count*/1);
561 hscb->scsiid = BUILD_SCSIID(ahd, sim, target_id, our_id);
595 ahd_setup_data(ahd, sim, &ccb->csio, scb);
607 status = ahd_find_tmode_devs(ahd, sim, ccb, &tstate,
622 ahd_handle_en_lun(ahd, sim, ccb);
628 ahd_abort_ccb(ahd, sim, ccb);
633 ahd_set_tran_settings(ahd, SIM_SCSI_ID(ahd, sim),
634 SIM_CHANNEL(ahd, sim), &ccb->cts);
641 ahd_get_tran_settings(ahd, SIM_SCSI_ID(ahd, sim),
642 SIM_CHANNEL(ahd, sim), &ccb->cts);
656 found = ahd_reset_channel(ahd, SIM_CHANNEL(ahd, sim),
659 xpt_print_path(SIM_PATH(ahd, sim));
695 cpi->bus_id = cam_sim_bus(sim);
699 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
700 cpi->unit_number = cam_sim_unit(sim);
734 ahd_compile_devinfo(&devinfo, SIM_SCSI_ID(ahd, sim),
737 SIM_CHANNEL(ahd, sim),
905 struct cam_sim *sim;
907 sim = (struct cam_sim *)callback_arg;
908 ahd = (struct ahd_softc *)cam_sim_softc(sim);
914 ahd_compile_devinfo(&devinfo, SIM_SCSI_ID(ahd, sim),
917 SIM_CHANNEL(ahd, sim),
1056 ahd_poll(struct cam_sim *sim)
1058 ahd_intr(cam_sim_softc(sim));
1062 ahd_setup_data(struct ahd_softc *ahd, struct cam_sim *sim,
1124 xpt_freeze_simq(sim, /*count*/1);
1130 ahd_abort_ccb(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb)
1146 status = ahd_find_tmode_devs(ahd, sim, abort_ccb, &tstate,
1300 if (pdata->sim != NULL) {
1303 xpt_bus_deregister(cam_sim_path(pdata->sim));
1304 cam_sim_free(pdata->sim, /*free_devq*/TRUE);