Lines Matching defs:sim
147 static void hptiop_action(struct cam_sim *sim, union ccb *ccb);
148 static void hptiop_poll(struct cam_sim *sim);
1403 if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(hba->sim),
2015 hba->sim = cam_sim_alloc(hptiop_action, hptiop_poll, driver_name,
2017 if (!hba->sim) {
2022 if (xpt_bus_register(hba->sim, dev, 0) != CAM_SUCCESS)
2029 cam_sim_path(hba->sim), CAM_TARGET_WILDCARD,
2037 set_config.vbus_id = cam_sim_path(hba->sim);
2049 ccb.callback_arg = hba->sim;
2093 xpt_bus_deregister(cam_sim_path(hba->sim));
2096 cam_sim_free(hba->sim, /*free devq*/ TRUE);
2183 static void hptiop_poll(struct cam_sim *sim)
2185 hptiop_pci_intr(cam_sim_softc(sim));
2283 static void hptiop_action(struct cam_sim *sim, union ccb *ccb)
2285 struct hpt_iop_hba * hba = (struct hpt_iop_hba *)cam_sim_softc(sim);
2321 xpt_freeze_simq(hba->sim, 1);
2360 cpi->unit_number = cam_sim_unit(sim);
2361 cpi->bus_id = cam_sim_bus(sim);
2367 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
2768 status = xpt_create_path(&path, NULL, hba->sim->path_id, target_id, 0);
2795 ccb.callback_arg = hba->sim;
2800 if (hba->sim) {
2801 xpt_bus_deregister(cam_sim_path(hba->sim));
2802 cam_sim_free(hba->sim, TRUE);