Lines Matching refs:sim
36 update_sim_properties(struct cam_sim *sim, struct ccb_pathinq *cpi) in update_sim_properties() argument
40 cam_sim_softc(sim); in update_sim_properties()
59 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN-1); in update_sim_properties()
61 cpi->unit_number = cam_sim_unit(sim); in update_sim_properties()
62 cpi->bus_id = cam_sim_bus(sim); in update_sim_properties()
124 cam_sim_path(softs->os_specific.sim), in os_add_device()
150 cam_sim_path(softs->os_specific.sim), in os_remove_device()
709 cam_sim_path(softs->os_specific.sim), target, lun); in smartpqi_lun_rescan()
805 pqisrc_io_start(struct cam_sim *sim, union ccb *ccb) in pqisrc_io_start() argument
810 cam_sim_softc(sim); in pqisrc_io_start()
867 xpt_freeze_simq(softs->os_specific.sim, 1); in pqisrc_io_start()
897 xpt_freeze_simq(softs->os_specific.sim, 1); in pqisrc_io_start()
1069 smartpqi_cam_action(struct cam_sim *sim, union ccb *ccb) in smartpqi_cam_action() argument
1071 struct pqisrc_softstate *softs = cam_sim_softc(sim); in smartpqi_cam_action()
1079 if(!pqisrc_io_start(sim, ccb)) { in smartpqi_cam_action()
1099 update_sim_properties(sim, &ccb->cpi); in smartpqi_cam_action()
1157 smartpqi_poll(struct cam_sim *sim) in smartpqi_poll() argument
1159 struct pqisrc_softstate *softs = cam_sim_softc(sim); in smartpqi_poll()
1247 struct cam_sim *sim; in register_sim() local
1259 sim = cam_sim_alloc(smartpqi_cam_action, \ in register_sim()
1263 if (sim == NULL) { in register_sim()
1270 softs->os_specific.sim = sim; in register_sim()
1272 status = xpt_bus_register(sim, softs->os_specific.pqi_dev, 0); in register_sim()
1275 cam_sim_free(softs->os_specific.sim, FALSE); in register_sim()
1289 cam_sim_path(softs->os_specific.sim), in register_sim()
1294 xpt_bus_deregister(cam_sim_path(softs->os_specific.sim)); in register_sim()
1295 cam_sim_free(softs->os_specific.sim, TRUE); in register_sim()
1345 if (softs->os_specific.sim) { in deregister_sim()
1346 xpt_release_simq(softs->os_specific.sim, 0); in deregister_sim()
1347 xpt_bus_deregister(cam_sim_path(softs->os_specific.sim)); in deregister_sim()
1349 cam_sim_free(softs->os_specific.sim, FALSE); in deregister_sim()
1350 softs->os_specific.sim = NULL; in deregister_sim()
1378 cam_sim_path(softs->os_specific.sim), in os_rescan_target()