Home
last modified time | relevance | path

Searched refs:sim (Results 1 – 25 of 79) sorted by relevance

1234

/dragonfly/sys/bus/cam/
H A Dcam_sim.c192 sim->softc = softc; in cam_sim_alloc()
198 sim->flags = 0; in cam_sim_alloc()
199 sim->refcount = 1; in cam_sim_alloc()
200 sim->devq = queue; in cam_sim_alloc()
201 sim->lock = lock; in cam_sim_alloc()
203 sim->flags |= 0; in cam_sim_alloc()
214 return (sim); in cam_sim_alloc()
246 sim->softc = NULL; in cam_sim_release()
248 if (sim->devq) { in cam_sim_release()
250 sim->devq = NULL; in cam_sim_release()
[all …]
H A Dcam_sim.h144 #define CAM_SIM_LOCK(sim) cam_sim_lock((sim)->lock) argument
145 #define CAM_SIM_UNLOCK(sim) cam_sim_unlock((sim)->lock) argument
146 #define CAM_SIM_COND_LOCK(sim) cam_sim_cond_lock((sim)->lock) argument
147 #define CAM_SIM_COND_UNLOCK(sim, doun) cam_sim_cond_unlock((sim)->lock, doun) argument
150 cam_sim_path(struct cam_sim *sim) in cam_sim_path() argument
152 return (sim->path_id); in cam_sim_path()
158 return (sim->sim_name); in cam_sim_name()
164 return (sim->softc); in cam_sim_softc()
170 return (sim->unit_number); in cam_sim_unit()
174 cam_sim_bus(struct cam_sim *sim) in cam_sim_bus() argument
[all …]
H A Dcam_xpt.c1410 sim = ccb->ccb_h.path->bus->sim; in xpt_scanner_thread()
3033 sim = path->bus->sim; in xpt_action()
3564 (*(sim->sim_poll))(sim); in xpt_polled_action()
3574 (*(sim->sim_poll))(sim); in xpt_polled_action()
4257 sim = bus->sim; in xpt_release_ccb()
4315 xptpathid(sim->sim_name, sim->unit_number, sim->bus_id); in xpt_bus_register()
4320 new_bus->sim = sim; in xpt_bus_register()
4963 sim = device->sim; in xpt_get_ccb()
5112 device->sim = bus->sim; in xpt_alloc_device()
6719 sim = cts->ccb_h.path->bus->sim; in xpt_set_transfer_settings()
[all …]
H A Dcam_periph.c159 struct cam_sim *sim; in cam_periph_alloc() local
204 CAM_SIM_LOCK(sim); in cam_periph_alloc()
216 periph->sim = sim; in cam_periph_alloc()
262 CAM_SIM_UNLOCK(sim); in cam_periph_alloc()
343 struct cam_sim *sim; in cam_periph_release() local
350 sim = periph->sim; in cam_periph_release()
414 struct cam_sim *sim; in cam_periph_unhold() local
423 sim = periph->sim; in cam_periph_unhold()
426 CAM_SIM_UNLOCK(sim); in cam_periph_unhold()
865 struct cam_sim *sim; in cam_periph_ccbwait() local
[all …]
H A Dcam_xpt_sim.h40 int32_t xpt_bus_register(struct cam_sim *sim, u_int32_t bus);
42 u_int32_t xpt_freeze_simq(struct cam_sim *sim, u_int count);
43 void xpt_release_simq(struct cam_sim *sim, int run_queue);
/dragonfly/sys/dev/disk/iscsi/initiator/
H A Disc_cam.c180 cpi->bus_id = cam_sim_bus(sim); in _inq()
185 cpi->unit_number = cam_sim_unit(sim); in _inq()
196 ret = scsi_encap(sim, ccb); in _scsi_encap()
281 if(_scsi_encap(sim, ccb) != 0) in ic_action()
312 ic_poll(struct cam_sim *sim) in ic_poll() argument
354 struct cam_sim *sim; in ic_init() local
369 if(sim == NULL) { in ic_init()
374 if(xpt_bus_register(sim, in ic_init()
380 xpt_bus_deregister(cam_sim_path(sim)); in ic_init()
386 isp->cam_sim = sim; in ic_init()
[all …]
/dragonfly/sys/dev/raid/aac/
H A Daac_cam.c69 struct cam_sim *sim; member
111 struct aac_sim *sim; in aac_cam_rescan() local
118 camsc = sim->aac_cam; in aac_cam_rescan()
131 cam_sim_path(camsc->sim), in aac_cam_rescan()
206 cam_sim_free(camsc->sim); in aac_cam_detach()
222 struct cam_sim *sim; in aac_cam_attach() local
241 if (sim == NULL) in aac_cam_attach()
247 cam_sim_free(sim); in aac_cam_attach()
255 cam_sim_free(sim); in aac_cam_attach()
262 camsc->sim = sim; in aac_cam_attach()
[all …]
/dragonfly/sys/dev/raid/twa/
H A Dtw_osl_cam.c58 static TW_VOID twa_poll(struct cam_sim *sim);
107 if (sc->sim == NULL) { in tw_osli_cam_attach()
123 cam_sim_free(sc->sim); in tw_osli_cam_attach()
137 cam_sim_path(sc->sim), in tw_osli_cam_attach()
141 cam_sim_free(sc->sim); in tw_osli_cam_attach()
190 if (sc->sim) { in tw_osli_cam_detach()
193 cam_sim_free(sc->sim); in tw_osli_cam_detach()
468 path_inq->bus_id = cam_sim_bus(sim); in twa_action()
506 twa_poll(struct cam_sim *sim) in twa_poll() argument
534 if (!(sc->sim)) in tw_osli_request_bus_scan()
[all …]
/dragonfly/sys/dev/disk/vpo/
H A Dvpo.c76 struct cam_sim *sim; member
87 static void vpo_action(struct cam_sim *sim, union ccb *ccb);
88 static void vpo_poll(struct cam_sim *sim);
160 if (vpo->sim == NULL) { in vpo_attach()
165 cam_sim_free(vpo->sim); in vpo_attach()
329 vpo_action(struct cam_sim *sim, union ccb *ccb) in vpo_action() argument
332 struct vpo_data *vpo = (struct vpo_data *)sim->softc; in vpo_action()
417 cpi->bus_id = sim->bus_id; in vpo_action()
421 strncpy(cpi->dev_name, sim->sim_name, DEV_IDLEN); in vpo_action()
422 cpi->unit_number = sim->unit_number; in vpo_action()
[all …]
/dragonfly/sys/dev/raid/mfi/
H A Dmfi_cam.c65 struct cam_sim *sim; member
125 if (sc->sim == NULL) { in mfip_attach()
131 if (xpt_bus_register(sc->sim, 0) != 0) { in mfip_attach()
133 cam_sim_free(sc->sim); in mfip_attach()
151 if (sc->sim != NULL) { in mfip_detach()
153 xpt_bus_deregister(cam_sim_path(sc->sim)); in mfip_detach()
154 cam_sim_free(sc->sim); in mfip_detach()
164 struct mfip_softc *sc = cam_sim_softc(sim); in mfip_cam_action()
185 cpi->unit_number = cam_sim_unit(sim); in mfip_cam_action()
186 cpi->bus_id = cam_sim_bus(sim); in mfip_cam_action()
[all …]
/dragonfly/sys/dev/disk/nata/
H A Datapi-cam.c66 struct cam_sim *sim; member
191 struct cam_sim *sim = NULL; in atapi_cam_attach() local
219 scp->sim = sim; in atapi_cam_attach()
320 cam_rescan(scp->sim); in reinit_bus()
337 csa->callback_arg = scp->sim; in setup_async_cb()
352 int bus = cam_sim_bus(sim); in atapi_action()
376 cpi->bus_id = cam_sim_bus(sim); in atapi_action()
675 atapi_poll(struct cam_sim *sim) in atapi_poll() argument
830 cam_rescan(struct cam_sim *sim) in cam_rescan() argument
898 if (scp->sim != NULL) { in free_softc()
[all …]
/dragonfly/sys/dev/raid/mrsas/
H A Dmrsas_cam.c81 static void mrsas_poll(struct cam_sim *sim);
253 if (cam_sim_bus(sim) == 1 && in mrsas_action()
259 if (mrsas_startio(sc, sim, ccb)){ in mrsas_action()
312 ccb->cpi.bus_id = cam_sim_bus(sim); in mrsas_action()
495 if (mrsas_ldio_inq(sim, ccb)) { in mrsas_startio()
553 if (cam_sim_bus(sim) == 1) in mrsas_ldio_inq()
859 if (cam_sim_bus(sim) == 1 && in mrsas_build_dcdb()
916 struct cam_sim *sim; in mrsas_map_request() local
931 mrsas_freeze_simq(cmd, sim); in mrsas_map_request()
1058 xpt_freeze_simq(sim, 1); in mrsas_freeze_simq()
[all …]
/dragonfly/contrib/gdb-7/gdb/
H A Dconfigure.tgt110 gdb_sim=../sim/arm/libsim.a
116 gdb_sim=../sim/avr/libsim.a
122 gdb_sim=../sim/bfin/libsim.a
128 gdb_sim=../sim/bfin/libsim.a
139 gdb_sim=../sim/frv/libsim.a
144 gdb_sim=../sim/moxie/libsim.a
415 gdb_sim=../sim/ppc/libsim.a
470 gdb_sim=../sim/rx/libsim.a
487 gdb_sim=../sim/sh/libsim.a
493 gdb_sim=../sim/sh/libsim.a
[all …]
/dragonfly/sys/dev/raid/tws/
H A Dtws_cam.c55 static void tws_poll(struct cam_sim *sim);
173 if (sc->sim == NULL) { in tws_cam_attach()
179 cam_sim_free(sc->sim); in tws_cam_attach()
189 cam_sim_free(sc->sim); in tws_cam_attach()
211 if (sc->sim) { in tws_cam_detach()
213 cam_sim_free(sc->sim); in tws_cam_detach()
225 KASSERT(sc->sim, ("sim not allocated")); in tws_bus_scan()
264 tws_action(struct cam_sim *sim, union ccb *ccb) in tws_action() argument
1177 tws_poll(struct cam_sim *sim) in tws_poll() argument
1290 xpt_freeze_simq(sc->sim, 1); in tws_freeze_simq()
[all …]
/dragonfly/sys/dev/raid/amr/
H A Damr_cam.c84 static void amr_cam_action(struct cam_sim *sim, union ccb *ccb);
85 static void amr_cam_poll(struct cam_sim *sim);
238 amr_cam_action(struct cam_sim *sim, union ccb *ccb) in amr_cam_action() argument
240 struct amr_softc *sc = cam_sim_softc(sim); in amr_cam_action()
293 csio->ccb_h.sim_priv.entries[0].field= cam_sim_bus(sim); in amr_cam_action()
326 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in amr_cam_action()
327 cpi->unit_number = cam_sim_unit(sim); in amr_cam_action()
328 cpi->bus_id = cam_sim_bus(sim); in amr_cam_action()
533 amr_cam_poll(struct cam_sim *sim) in amr_cam_poll() argument
536 amr_done(cam_sim_softc(sim)); in amr_cam_poll()
/dragonfly/sys/dev/disk/advansys/
H A Dadvansys.c75 static void adv_poll(struct cam_sim *sim);
118 xpt_freeze_simq(adv->sim, /*count*/1); in adv_set_state()
487 cpi->bus_id = cam_sim_bus(sim); in adv_action()
492 cpi->unit_number = cam_sim_unit(sim); in adv_action()
520 struct cam_sim *sim; in adv_execute_ccb() local
528 sim = xpt_path_sim(ccb_h->path); in adv_execute_ccb()
1276 adv_poll(struct cam_sim *sim) in adv_poll() argument
1278 adv_intr(cam_sim_softc(sim)); in adv_poll()
1384 if (adv->sim == NULL) in adv_attach()
1393 cam_sim_free(adv->sim); in adv_attach()
[all …]
H A Dadwcam.c90 static void adw_poll(struct cam_sim *sim);
336 adw_action(struct cam_sim *sim, union ccb *ccb) in adw_action() argument
342 adw = (struct adw_softc *)cam_sim_softc(sim); in adw_action()
366 xpt_freeze_simq(sim, /*count*/1); in adw_action()
455 xpt_freeze_simq(sim, 1); in adw_action()
785 cpi->bus_id = cam_sim_bus(sim); in adw_action()
790 cpi->unit_number = cam_sim_unit(sim); in adw_action()
807 adw_poll(struct cam_sim *sim) in adw_poll() argument
809 adw_intr(cam_sim_softc(sim)); in adw_poll()
1172 if (adw->sim == NULL) { in adw_attach()
[all …]
/dragonfly/sys/dev/raid/hptrr/
H A Dhptrr_osm_bsd.c408 static void hpt_poll(struct cam_sim *sim);
779 cpi->unit_number = cam_sim_unit(sim); in hpt_action()
780 cpi->bus_id = cam_sim_bus(sim); in hpt_action()
813 static void hpt_poll(struct cam_sim *sim) in hpt_poll() argument
815 PVBUS_EXT vbus_ext = cam_sim_softc(sim); in hpt_poll()
1057 if (!vbus_ext->sim) { in hpt_final_init()
1065 cam_sim_free(vbus_ext->sim); in hpt_final_init()
1067 vbus_ext->sim = NULL; in hpt_final_init()
1077 cam_sim_free(vbus_ext->sim); in hpt_final_init()
1079 vbus_ext->sim = NULL; in hpt_final_init()
[all …]
/dragonfly/sys/dev/raid/hpt27xx/
H A Dhpt27xx_osm_bsd.c393 static void hpt_poll(struct cam_sim *sim);
807 cpi->unit_number = cam_sim_unit(sim); in hpt_action()
808 cpi->bus_id = cam_sim_bus(sim); in hpt_action()
841 static void hpt_poll(struct cam_sim *sim) in hpt_poll() argument
843 hpt_pci_intr(cam_sim_softc(sim)); in hpt_poll()
1080 if (!vbus_ext->sim) { in hpt_final_init()
1087 cam_sim_free(vbus_ext->sim); in hpt_final_init()
1088 vbus_ext->sim = NULL; in hpt_final_init()
1097 xpt_bus_deregister(cam_sim_path(vbus_ext->sim)); in hpt_final_init()
1098 cam_sim_free(vbus_ext->sim); in hpt_final_init()
[all …]
/dragonfly/sys/dev/raid/mps/
H A Dmps_sas.c205 xpt_freeze_simq(sassc->sim, 1); in mpssas_startup_increment()
223 xpt_release_simq(sassc->sim, 1); in mpssas_startup_decrement()
281 pathid = cam_sim_path(sassc->sim); in mpssas_rescan_target()
711 if (sassc->sim == NULL) { in mps_attach_sas()
758 xpt_freeze_simq(sassc->sim, 1); in mps_attach_sas()
815 if (sassc->sim != NULL) { in mps_detach_sas()
817 cam_sim_free(sassc->sim); in mps_detach_sas()
897 sassc = cam_sim_softc(sim); in mpssas_action()
920 cpi->bus_id = cam_sim_bus(sim); in mpssas_action()
2837 mpssas_poll(struct cam_sim *sim) in mpssas_poll() argument
[all …]
/dragonfly/sys/dev/virtual/vmware/pvscsi/
H A Dpvscsi.c196 struct cam_sim *sim; member
253 xpt_freeze_simq(sc->sim, 1); in pvscsi_freeze()
1171 pvscsi_poll(struct cam_sim *sim) in pvscsi_poll() argument
1175 sc = cam_sim_softc(sim); in pvscsi_poll()
1276 sc = cam_sim_softc(sim); in pvscsi_action()
1345 e->bus = cam_sim_bus(sim); in pvscsi_action()
1440 cpi->unit_number = cam_sim_unit(sim); in pvscsi_action()
1441 cpi->bus_id = cam_sim_bus(sim); in pvscsi_action()
1570 if (sc->sim) { in pvscsi_free_all()
1583 cam_sim_free(sc->sim); in pvscsi_free_all()
[all …]
/dragonfly/sys/dev/disk/buslogic/
H A Dbt.c155 static void btpoll(struct cam_sim *sim);
766 if (bt->sim == NULL) in bt_attach()
771 cam_sim_free(bt->sim); in bt_attach()
780 cam_sim_free(bt->sim); in bt_attach()
1025 xpt_freeze_simq(bt->sim, in btaction()
1206 cpi->bus_id = cam_sim_bus(sim); in btaction()
1211 cpi->unit_number = cam_sim_unit(sim); in btaction()
1328 xpt_freeze_simq(bt->sim, /*count*/1); in btexecuteccb()
1421 cam_sim_path(bt->sim), in btdone()
2128 btpoll(struct cam_sim *sim) in btpoll() argument
[all …]
/dragonfly/sys/dev/disk/sbp/
H A Dsbp.c209 struct cam_sim *sim; member
746 sbp->sim->flags |= SIMQ_FREEZED; in sbp_post_busreset()
820 sbp->sim->flags &= ~SIMQ_FREEZED; in sbp_post_explore()
1019 cam_sim_path(target->sbp->sim), in sbp_do_attach()
1893 if (sbp->sim == NULL) in sbp_attach()
1937 cam_sim_free(sbp->sim); in sbp_attach()
2033 cam_sim_free(sbp->sim); in sbp_detach()
2379 cam_sim_path(sbp->sim), in sbp_action1()
2433 cpi->bus_id = sim->bus_id; in sbp_action1()
2492 sbp_action1(sim, ccb); in sbp_action()
[all …]
/dragonfly/sys/dev/disk/isp/
H A Disp_freebsd.c97 if (sim == NULL) { in isp_attach_chan()
104 cam_sim_free(sim); in isp_attach_chan()
126 spi->sim = sim; in isp_attach_chan()
140 fc->sim = sim; in isp_attach_chan()
240 sim = ISP_FC_PC(isp, chan)->sim; in isp_attach()
243 sim = ISP_SPI_PC(isp, chan)->sim; in isp_attach()
275 sim = ISP_FC_PC(isp, chan)->sim; in isp_detach()
278 sim = ISP_SPI_PC(isp, chan)->sim; in isp_detach()
292 sim = ISP_FC_PC(isp, chan)->sim; in isp_detach()
295 sim = ISP_SPI_PC(isp, chan)->sim; in isp_detach()
[all …]
/dragonfly/sys/dev/raid/mpr/
H A Dmpr_sas.c186 xpt_freeze_simq(sassc->sim, 1); in mprsas_startup_increment()
198 xpt_release_simq(sassc->sim, 1); in mprsas_release_simq_reinit()
216 xpt_release_simq(sassc->sim, 1); in mprsas_startup_decrement()
292 pathid = cam_sim_path(sassc->sim); in mprsas_rescan_target()
783 if (sassc->sim == NULL) { in mpr_attach_sas()
954 if (sassc->sim != NULL) { in mpr_detach_sas()
956 cam_sim_free(sassc->sim); in mpr_detach_sas()
1010 sassc = cam_sim_softc(sim); in mprsas_action()
1047 cpi->bus_id = cam_sim_bus(sim); in mprsas_action()
3430 mprsas_poll(struct cam_sim *sim) in mprsas_poll() argument
[all …]

1234