Lines Matching refs:sim
105 struct cam_sim *sim = NULL;
110 if (NULL == (sim = cam_sim_alloc(ocs_action, ocs_poll,
119 if (CAM_SUCCESS != xpt_bus_register(sim, ocs->dev, chan)) {
122 cam_sim_free(sim, FALSE);
127 if (CAM_REQ_CMP != xpt_create_path(&path, NULL, cam_sim_path(sim),
130 xpt_bus_deregister(cam_sim_path(sim));
132 cam_sim_free(sim, FALSE);
137 fcp->sim = sim;
150 struct cam_sim *sim = NULL;
154 sim = fcp->sim;
160 if (fcp->sim) {
168 xpt_bus_deregister(cam_sim_path(sim));
170 cam_sim_free(sim, FALSE);
171 fcp->sim = NULL;
1028 cam_sim_path(fcp->sim),
1069 if (!fcp->sim) {
1070 device_printf(ocs->dev, "%s: calling with NULL sim\n", __func__);
1074 if (CAM_REQ_CMP == xpt_create_path(&cpath, NULL, cam_sim_path(fcp->sim),
1964 * @param sim pointer to the SCSI Interface Module
1971 ocs_action(struct cam_sim *sim, union ccb *ccb)
1973 struct ocs_softc *ocs = (struct ocs_softc *)cam_sim_softc(sim);
1977 bus = cam_sim_bus(sim);
2063 cpi->bus_id = cam_sim_bus(sim);
2076 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN);
2077 cpi->unit_number = cam_sim_unit(sim);
2468 * @param sim pointer to the SCSI Interface Module
2472 ocs_poll(struct cam_sim *sim)