Lines Matching refs:sim
404 static void hpt_action(struct cam_sim *sim, union ccb *ccb);
405 static void hpt_poll(struct cam_sim *sim);
1094 static void hpt_action(struct cam_sim *sim, union ccb *ccb)
1096 PVBUS_EXT vbus_ext = (PVBUS_EXT)cam_sim_softc(sim);
1134 cpi->unit_number = cam_sim_unit(sim);
1135 cpi->bus_id = cam_sim_bus(sim);
1141 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
1167 static void hpt_poll(struct cam_sim *sim)
1169 PVBUS_EXT vbus_ext = cam_sim_softc(sim);
1410 vbus_ext->sim = cam_sim_alloc(hpt_action, hpt_poll, driver_name,
1414 if (!vbus_ext->sim) {
1421 if (xpt_bus_register(vbus_ext->sim, NULL, 0) != CAM_SUCCESS) {
1423 cam_sim_free(vbus_ext->sim, /*free devq*/ TRUE);
1424 vbus_ext->sim = NULL;
1429 cam_sim_path(vbus_ext->sim), CAM_TARGET_WILDCARD,
1433 xpt_bus_deregister(cam_sim_path(vbus_ext->sim));
1434 cam_sim_free(vbus_ext->sim, /*free_devq*/TRUE);
1436 vbus_ext->sim = NULL;
1671 if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(vbus_ext->sim),