Lines Matching defs:sim
73 struct cam_sim *sim;
84 static void vpo_action(struct cam_sim *sim, union ccb *ccb);
85 static void vpo_poll(struct cam_sim *sim);
161 vpo->sim = cam_sim_alloc(vpo_action, vpo_poll, "vpo", vpo,
164 if (vpo->sim == NULL) {
170 if (xpt_bus_register(vpo->sim, dev, /*bus*/0) != CAM_SUCCESS) {
171 cam_sim_free(vpo->sim, /*free_devq*/TRUE);
298 vpo_action(struct cam_sim *sim, union ccb *ccb)
300 struct vpo_data *vpo = (struct vpo_data *)sim->softc;
385 cpi->bus_id = sim->bus_id;
389 strncpy(cpi->dev_name, sim->sim_name, DEV_IDLEN);
390 cpi->unit_number = sim->unit_number;
408 vpo_poll(struct cam_sim *sim)