Home
last modified time | relevance | path

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

123456

/freebsd-13.1/sys/cam/
H A Dcam_sim.c76 if (sim == NULL) in cam_sim_alloc()
89 sim->flags = 0; in cam_sim_alloc()
92 sim->mtx = mtx; in cam_sim_alloc()
94 return (sim); in cam_sim_alloc()
111 if (sim != NULL) in cam_sim_alloc_dev()
113 return (sim); in cam_sim_alloc_dev()
126 mtx = sim->mtx; in cam_sim_free()
130 sim->refcount--; in cam_sim_free()
152 mtx = sim->mtx; in cam_sim_release()
158 sim->refcount--; in cam_sim_release()
[all …]
H A Dcam_sim.h112 #define CAM_SIM_LOCK(sim) mtx_lock((sim)->mtx) argument
113 #define CAM_SIM_UNLOCK(sim) mtx_unlock((sim)->mtx) argument
116 cam_sim_path(const struct cam_sim *sim) in cam_sim_path() argument
118 return (sim->path_id); in cam_sim_path()
122 cam_sim_name(const struct cam_sim *sim) in cam_sim_name() argument
124 return (sim->sim_name); in cam_sim_name()
130 return (sim->softc); in cam_sim_softc()
136 return (sim->unit_number); in cam_sim_unit()
140 cam_sim_bus(const struct cam_sim *sim) in cam_sim_bus() argument
142 return (sim->bus_id); in cam_sim_bus()
[all …]
H A Dcam_xpt.c2750 sim = path->bus->sim; in xpt_action_default()
2759 (*(sim->sim_action))(sim, start_ccb); in xpt_action_default()
3152 (*(sim->sim_poll))(sim); in xpt_sim_poll()
3461 sim = device->sim; in xpt_run_devq()
3468 (*(sim->sim_action))(sim, work_ccb); in xpt_run_devq()
3985 new_bus->sim = sim; in xpt_bus_register()
3993 xptpathid(sim->sim_name, sim->unit_number, sim->bus_id); in xpt_bus_register()
4845 device->sim = bus->sim; in xpt_alloc_device()
5016 sim = path->bus->sim; in xpt_start_tags()
5045 sim = path->bus->sim; in xpt_stop_tags()
[all …]
H A Dcam_xpt_sim.h42 int32_t xpt_bus_register(struct cam_sim *sim, device_t parent,
45 u_int32_t xpt_freeze_simq(struct cam_sim *sim, u_int count);
46 void xpt_release_simq(struct cam_sim *sim, int run_queue);
/freebsd-13.1/sys/dev/iscsi_initiator/
H A Disc_cam.c61 _inq(struct cam_sim *sim, union ccb *ccb) in _inq() argument
77 cpi->bus_id = cam_sim_bus(sim); in _inq()
97 ret = scsi_encap(sim, ccb); in _scsi_encap()
183 _inq(sim, ccb); in ic_action()
210 if(_scsi_encap(sim, ccb) != 0) in ic_action()
262 ic_poll(struct cam_sim *sim) in ic_poll() argument
306 struct cam_sim *sim; in ic_init() local
315 sim = cam_sim_alloc(ic_action, in ic_init()
324 if(sim == NULL) { in ic_init()
330 if(xpt_bus_register(sim, in ic_init()
[all …]
/freebsd-13.1/sys/dev/aac/
H A Daac_cam.c74 struct cam_sim *sim; member
115 struct aac_sim *sim; in aac_cam_rescan() local
122 camsc = sim->aac_cam; in aac_cam_rescan()
135 cam_sim_path(camsc->sim), in aac_cam_rescan()
158 xpt_release_simq(camsc->sim, 1); in aac_cam_event()
209 struct cam_sim *sim; in aac_cam_attach() local
227 if (sim == NULL) { in aac_cam_attach()
235 cam_sim_free(sim, TRUE); in aac_cam_attach()
243 cam_sim_free(sim, TRUE); in aac_cam_attach()
250 camsc->sim = sim; in aac_cam_attach()
[all …]
/freebsd-13.1/sys/dev/aic7xxx/
H A Daic7xxx_osm.h75 #define SIM_IS_SCSIBUS_B(ahc, sim) \ argument
76 ((sim) == ahc->platform_data->sim_b)
77 #define SIM_CHANNEL(ahc, sim) \ argument
78 (((sim) == ahc->platform_data->sim_b) ? 'B' : 'A')
79 #define SIM_SCSI_ID(ahc, sim) \ argument
80 (((sim) == ahc->platform_data->sim_b) ? ahc->our_id_b : ahc->our_id)
81 #define SIM_PATH(ahc, sim) \ argument
84 #define BUILD_SCSIID(ahc, sim, target_id, our_id) \ argument
86 | (SIM_IS_SCSIBUS_B(ahc, sim) ? TWIN_CHNLB : 0))
89 (SCB_GET_CHANNEL(ahc, scb) == 'A' ? (ahc)->platform_data->sim \
[all …]
H A Daic7xxx_osm.c150 struct cam_sim *sim; in ahc_attach() local
157 sim = NULL; in ahc_attach()
198 if (sim == NULL) { in ahc_attach()
205 sim = NULL; in ahc_attach()
214 sim = NULL; in ahc_attach()
222 csa.callback_arg = sim; in ahc_attach()
276 ahc->platform_data->sim = sim; in ahc_attach()
613 SIM_CHANNEL(ahc, sim), in ahc_action()
888 struct cam_sim *sim; in ahc_async() local
1118 ahc_poll(struct cam_sim *sim) in ahc_poll() argument
[all …]
H A Daic79xx_osm.c218 struct cam_sim *sim; in ahd_attach() local
224 sim = NULL; in ahd_attach()
250 if (sim == NULL) { in ahd_attach()
257 sim = NULL; in ahd_attach()
266 sim = NULL; in ahd_attach()
274 csa.callback_arg = sim; in ahd_attach()
279 ahd->platform_data->sim = sim; in ahd_attach()
737 SIM_CHANNEL(ahd, sim), in ahd_set_tran_settings()
905 struct cam_sim *sim; in ahd_async() local
1056 ahd_poll(struct cam_sim *sim) in ahd_poll() argument
[all …]
H A Daic79xx_osm.h75 #define SIM_IS_SCSIBUS_B(ahd, sim) \ argument
77 #define SIM_CHANNEL(ahd, sim) \ argument
79 #define SIM_SCSI_ID(ahd, sim) \ argument
81 #define SIM_PATH(ahd, sim) \ argument
83 #define BUILD_SCSIID(ahd, sim, target_id, our_id) \ argument
88 ((ahd)->platform_data->sim)
121 struct cam_sim *sim; member
221 xpt_freeze_simq(aic->platform_data->sim, /*count*/1); in aic_freeze_simq()
227 xpt_release_simq(aic->platform_data->sim, /*run queue*/TRUE); in aic_release_simq()
/freebsd-13.1/sys/cam/mmc/
H A Dmmc_sim.c47 mmc_cam_default_poll(struct cam_sim *sim) in mmc_cam_default_poll() argument
51 mmc_sim = cam_sim_softc(sim); in mmc_cam_default_poll()
100 mmc_sim = cam_sim_softc(sim); in mmc_cam_sim_default_action()
117 sim, mmc.host_max_data); in mmc_cam_sim_default_action()
210 if (mmc_sim->sim == NULL) { in mmc_cam_sim_alloc()
217 if (xpt_bus_register(mmc_sim->sim, dev, 0) != 0) { in mmc_cam_sim_alloc()
219 cam_sim_free(mmc_sim->sim, FALSE); in mmc_cam_sim_alloc()
239 if (mmc_sim->sim != NULL) { in mmc_cam_sim_free()
241 xpt_bus_deregister(cam_sim_path(mmc_sim->sim)); in mmc_cam_sim_free()
242 cam_sim_free(mmc_sim->sim, FALSE); in mmc_cam_sim_free()
[all …]
/freebsd-13.1/sys/dev/twa/
H A Dtw_osl_cam.c57 static TW_VOID twa_poll(struct cam_sim *sim);
101 if (sc->sim == NULL) { in tw_osli_cam_attach()
118 cam_sim_free(sc->sim, TRUE); in tw_osli_cam_attach()
132 cam_sim_path(sc->sim), in tw_osli_cam_attach()
137 cam_sim_free(sc->sim, TRUE); in tw_osli_cam_attach()
170 if (sc->sim) { in tw_osli_cam_detach()
173 cam_sim_free(sc->sim, TRUE); in tw_osli_cam_detach()
416 path_inq->bus_id = cam_sim_bus(sim); in twa_action()
450 twa_poll(struct cam_sim *sim) in twa_poll() argument
476 if (!(sc->sim)) in tw_osli_request_bus_scan()
[all …]
/freebsd-13.1/sys/dev/mmcnull/
H A Dmmcnull.c54 struct cam_sim *sim; member
123 if (sc->sim == NULL) { in mmcnull_attach()
133 cam_sim_free(sc->sim, FALSE); in mmcnull_attach()
157 if (sc->sim != NULL) { in mmcnull_detach()
160 cam_sim_free(sc->sim, FALSE); in mmcnull_detach()
328 sc = cam_sim_softc(sim); in mmcnull_handle_mmcio()
345 sc = cam_sim_softc(sim); in mmcnull_action_sd()
374 cpi->bus_id = cam_sim_bus(sim); in mmcnull_action_sd()
419 mmcnull_handle_mmcio(sim, ccb); in mmcnull_action_sd()
438 mmcnull_action_sd(sim, ccb); in mmcnull_action_sdio()
[all …]
/freebsd-13.1/sys/dev/mfi/
H A Dmfi_cam.c79 struct cam_sim *sim; member
146 if (sc->sim == NULL) { in mfip_attach()
158 cam_sim_free(sc->sim, FALSE); in mfip_attach()
159 sc->sim = NULL; in mfip_attach()
189 if (sc->sim != NULL) { in mfip_detach()
192 cam_sim_free(sc->sim, FALSE); in mfip_detach()
193 sc->sim = NULL; in mfip_detach()
230 cpi->bus_id = cam_sim_bus(sim); in mfip_cam_action()
298 struct cam_sim *sim; in mfip_cam_rescan() local
325 sim = camsc->sim; in mfip_cam_rescan()
[all …]
/freebsd-13.1/sys/dev/nvme/
H A Dnvme_sim.c53 static void nvme_sim_poll(struct cam_sim *sim);
55 #define sim2softc(sim) ((struct nvme_sim_softc *)cam_sim_softc(sim)) argument
56 #define sim2ctrlr(sim) (sim2softc(sim)->s_ctrlr) argument
86 nvme_sim_nvmeio(struct cam_sim *sim, union ccb *ccb) in nvme_sim_nvmeio() argument
94 ctrlr = sim2ctrlr(sim); in nvme_sim_nvmeio()
151 ctrlr = sim2ctrlr(sim); in nvme_sim_action()
191 cpi->bus_id = cam_sim_bus(sim); in nvme_sim_action()
196 cpi->unit_number = cam_sim_unit(sim); in nvme_sim_action()
275 nvme_sim_nvmeio(sim, ccb); in nvme_sim_action()
285 nvme_sim_poll(struct cam_sim *sim) in nvme_sim_poll() argument
[all …]
/freebsd-13.1/sys/dev/isci/
H A Disci_controller.c59 void isci_poll(struct cam_sim *sim);
249 controller->sim = NULL; in isci_controller_construct()
387 xpt_freeze_simq(controller->sim, 1); in isci_controller_initialize()
584 xpt_release_simq(isci_controller->sim, TRUE); in isci_controller_domain_discovery_complete()
623 if(controller->sim == NULL) { in isci_controller_attach_to_cam()
632 cam_sim_free(controller->sim, TRUE); in isci_controller_attach_to_cam()
642 cam_sim_free(controller->sim, TRUE); in isci_controller_attach_to_cam()
650 void isci_poll(struct cam_sim *sim) in isci_poll() argument
667 int bus = cam_sim_bus(sim); in isci_action()
668 ccb->ccb_h.ccb_sim_ptr = sim; in isci_action()
[all …]
/freebsd-13.1/sys/dev/aacraid/
H A Daacraid_cam.c97 struct cam_sim *sim; member
172 struct aac_sim *sim; in aac_cam_rescan() local
179 camsc = sim->aac_cam; in aac_cam_rescan()
274 struct cam_sim *sim; in aac_cam_attach() local
293 if (sim == NULL) { in aac_cam_attach()
301 cam_sim_free(sim, TRUE); in aac_cam_attach()
309 cam_sim_free(sim, TRUE); in aac_cam_attach()
317 camsc->sim = sim; in aac_cam_attach()
368 xpt_freeze_simq(sim, 1); in aac_container_rw_command()
859 xpt_freeze_simq(sim, 1); in aac_passthrough_command()
[all …]
/freebsd-13.1/sys/dev/smartpqi/
H A Dsmartpqi_cam.c41 cam_sim_softc(sim); in update_sim_properties()
59 cpi->unit_number = cam_sim_unit(sim); in update_sim_properties()
60 cpi->bus_id = cam_sim_bus(sim); in update_sim_properties()
791 cam_sim_softc(sim); in pqisrc_io_start()
1046 if(!pqisrc_io_start(sim, ccb)) { in smartpqi_cam_action()
1124 smartpqi_poll(struct cam_sim *sim) in smartpqi_poll() argument
1209 struct cam_sim *sim; in register_sim() local
1225 if (sim == NULL) { in register_sim()
1232 softs->os_specific.sim = sim; in register_sim()
1308 if (softs->os_specific.sim) { in deregister_sim()
[all …]
/freebsd-13.1/tools/tools/vhba/
H A Dvhba.c50 if (vhba->sim == NULL) { in vhba_attach()
56 if (xpt_bus_register(vhba->sim, 0, 0) != CAM_SUCCESS) { in vhba_attach()
57 cam_sim_free(vhba->sim, TRUE); in vhba_attach()
72 xpt_bus_deregister(cam_sim_path(vhba->sim)); in vhba_detach()
73 cam_sim_free(vhba->sim, TRUE); in vhba_detach()
77 vhba_poll(struct cam_sim *sim) in vhba_poll() argument
79 vhba_softc_t *vhba = cam_sim_softc(sim); in vhba_poll()
84 vhba_action(struct cam_sim *sim, union ccb *ccb) in vhba_action() argument
89 vhba = cam_sim_softc(sim); in vhba_action()
139 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in vhba_action()
[all …]
/freebsd-13.1/sys/dev/tws/
H A Dtws_cam.c160 if (sc->sim == NULL) { in tws_cam_attach()
166 if (xpt_bus_register(sc->sim, in tws_cam_attach()
180 cam_sim_free(sc->sim, TRUE); in tws_cam_attach()
197 if (sc->sim) { in tws_cam_detach()
199 cam_sim_free(sc->sim, TRUE); in tws_cam_detach()
210 if (!(sc->sim)) in tws_bus_scan()
1112 tws_poll(struct cam_sim *sim) in tws_poll() argument
1140 xpt_freeze_simq(sc->sim, 1); in tws_timeout()
1161 xpt_release_simq(sc->sim, 1); in tws_timeout()
1175 xpt_freeze_simq(sc->sim, 1); in tws_reset()
[all …]
/freebsd-13.1/sys/contrib/device-tree/Bindings/arm/freescale/
H A Dfsl,imx7ulp-sim.txt9 - compatible: Should be "fsl,imx7ulp-sim".
13 sim: sim@410a3000 {
14 compatible = "fsl,imx7ulp-sim", "syscon";
/freebsd-13.1/sys/dev/ahci/
H A Dahciem.c60 static void ahciempoll(struct cam_sim *sim);
128 if (enc->sim == NULL) { in ahci_em_attach()
188 xpt_bus_deregister(cam_sim_path(enc->sim)); in ahci_em_attach()
190 cam_sim_free(enc->sim, /*free_devq*/TRUE); in ahci_em_attach()
218 cam_sim_free(enc->sim, /*free_devq*/TRUE); in ahci_em_detach()
260 xpt_freeze_simq(enc->sim, 1); in ahci_em_suspend()
272 xpt_release_simq(enc->sim, TRUE); in ahci_em_resume()
616 enc = cam_sim_softc(sim); in ahciemaction()
642 cpi->bus_id = cam_sim_bus(sim); in ahciemaction()
647 cpi->unit_number = cam_sim_unit(sim); in ahciemaction()
[all …]
/freebsd-13.1/sys/cam/ctl/
H A Dctl_frontend_cam_sim.c77 struct cam_sim *sim; member
96 static void cfcs_poll(struct cam_sim *sim);
183 if (softc->sim == NULL) { in cfcs_init()
196 cam_sim_path(softc->sim), in cfcs_init()
200 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_init()
208 if (softc->sim) in cfcs_init()
209 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_init()
225 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_shutdown()
226 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_shutdown()
234 cfcs_poll(struct cam_sim *sim) in cfcs_poll() argument
[all …]
/freebsd-13.1/sys/contrib/device-tree/src/powerpc/
H A Diss4xx.dts34 model = "PowerPC,4xx"; // real CPU changed in sim
38 i-cache-line-size = <32>; // may need fixup in sim
39 d-cache-line-size = <32>; // may need fixup in sim
40 i-cache-size = <32768>; /* may need fixup in sim */
41 d-cache-size = <32768>; /* may need fixup in sim */
109 compatible = "ibm,iss-sim-block-device";
/freebsd-13.1/sys/dev/ata/
H A Data-all.c189 if (ch->sim == NULL) { in ata_attach()
213 ch->sim = NULL; in ata_attach()
245 ch->sim = NULL; in ata_detach()
269 if (ch->sim == NULL) { in ata_conn_event()
277 cam_sim_path(ch->sim), in ata_conn_event()
292 xpt_freeze_simq(ch->sim, 1); in ata_reinit()
307 xpt_release_simq(ch->sim, TRUE); in ata_reinit()
323 xpt_freeze_simq(ch->sim, 1); in ata_suspend()
342 xpt_release_simq(ch->sim, TRUE); in ata_resume()
898 xpt_freeze_simq(ch->sim, 1); in ata_cam_end_transaction()
[all …]

123456