Lines Matching refs:sim
74 struct cam_sim *sim; member
93 static void cfcs_poll(struct cam_sim *sim);
98 void cfcs_action(struct cam_sim *sim, union ccb *ccb);
177 softc->sim = cam_sim_alloc(cfcs_action, cfcs_poll, softc->port_name, in cfcs_init()
180 if (softc->sim == NULL) { in cfcs_init()
186 if (xpt_bus_register(softc->sim, NULL, 0) != CAM_SUCCESS) { in cfcs_init()
193 cam_sim_path(softc->sim), in cfcs_init()
197 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_init()
205 if (softc->sim) in cfcs_init()
206 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_init()
222 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_shutdown()
223 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_shutdown()
231 cfcs_poll(struct cam_sim *sim) in cfcs_poll() argument
251 cam_sim_path(softc->sim), CAM_TARGET_WILDCARD, in cfcs_onoffline()
481 cfcs_action(struct cam_sim *sim, union ccb *ccb) in cfcs_action() argument
486 softc = (struct cfcs_softc *)cam_sim_softc(sim); in cfcs_action()
763 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in cfcs_action()