Lines Matching defs:sim
1528 struct cam_sim *sim;
2199 static void sym_poll (struct cam_sim *sim);
2237 static void sym_action (struct cam_sim *sim, union ccb *ccb);
2245 static void sym_action2 (struct cam_sim *sim, union ccb *ccb);
3423 sts = xpt_create_path(&path, NULL, cam_sim_path(np->sim), target,
3955 static void sym_poll(struct cam_sim *sim)
3957 sym_intr1(cam_sim_softc(sim));
7398 static void sym_action(struct cam_sim *sim, union ccb *ccb)
7415 np = (hcb_p) cam_sim_softc(sim);
7424 sym_action2(sim, ccb);
7835 xpt_freeze_simq(np->sim, 1);
7924 static void sym_action2(struct cam_sim *sim, union ccb *ccb)
7939 np = (hcb_p) cam_sim_softc(sim);
8034 cpi->bus_id = cam_sim_bus(sim);
8039 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
8040 cpi->unit_number = cam_sim_unit(sim);
8094 struct cam_sim *sim;
8098 sim = (struct cam_sim *) cb_arg;
8099 np = (hcb_p) cam_sim_softc(sim);
8839 struct cam_sim *sim = NULL;
8865 sim = cam_sim_alloc(sym_action, sym_poll, "sym", np,
8868 if (!sim)
8873 if (xpt_bus_register(sim, np->device, 0) != CAM_SUCCESS)
8875 np->sim = sim;
8876 sim = NULL;
8879 cam_sim_path(np->sim), CAM_TARGET_WILDCARD,
8888 if (xpt_register_async(AC_LOST_DEVICE, sym_async, np->sim, path) !=
8904 if (sim)
8905 cam_sim_free(sim, FALSE);
8931 if (np->sim) {
8932 xpt_bus_deregister(cam_sim_path(np->sim));
8933 cam_sim_free(np->sim, /*free_devq*/ TRUE);
8934 np->sim = NULL;