| /freebsd-14.2/sys/cam/ |
| H A D | cam_sim.c | 109 if (sim == NULL) in cam_sim_alloc() 121 sim->flags = 0; in cam_sim_alloc() 124 sim->mtx = mtx; in cam_sim_alloc() 125 return (sim); in cam_sim_alloc() 151 mtx = sim->mtx; in cam_sim_free() 155 sim->refcount--; in cam_sim_free() 177 mtx = sim->mtx; in cam_sim_release() 183 sim->refcount--; in cam_sim_release() 185 wakeup(sim); in cam_sim_release() 198 mtx = sim->mtx; in cam_sim_hold() [all …]
|
| H A D | cam_sim.h | 107 cam_sim_path(const struct cam_sim *sim) in cam_sim_path() argument 109 return (sim->path_id); in cam_sim_path() 113 cam_sim_name(const struct cam_sim *sim) in cam_sim_name() argument 115 return (sim->sim_name); in cam_sim_name() 119 cam_sim_softc(const struct cam_sim *sim) in cam_sim_softc() argument 121 return (sim->softc); in cam_sim_softc() 125 cam_sim_unit(const struct cam_sim *sim) in cam_sim_unit() argument 127 return (sim->unit_number); in cam_sim_unit() 131 cam_sim_bus(const struct cam_sim *sim) in cam_sim_bus() argument 133 return (sim->bus_id); in cam_sim_bus() [all …]
|
| H A D | cam_xpt.c | 2680 sim = path->bus->sim; in xpt_action_default() 2689 (*(sim->sim_action))(sim, start_ccb); in xpt_action_default() 3090 (*(sim->sim_poll))(sim); in xpt_sim_poll() 3377 sim = device->sim; in xpt_run_devq() 3384 (*(sim->sim_action))(sim, work_ccb); in xpt_run_devq() 3898 new_bus->sim = sim; in xpt_bus_register() 3907 xptpathid(sim->sim_name, sim->unit_number, sim->bus_id); in xpt_bus_register() 4784 device->sim = bus->sim; in xpt_alloc_device() 4955 sim = path->bus->sim; in xpt_start_tags() 4985 sim = path->bus->sim; in xpt_stop_tags() [all …]
|
| H A D | cam_xpt_sim.h | 40 int xpt_bus_register(struct cam_sim *sim, device_t parent, 43 uint32_t xpt_freeze_simq(struct cam_sim *sim, u_int count); 44 void xpt_release_simq(struct cam_sim *sim, int run_queue);
|
| /freebsd-14.2/sys/dev/aac/ |
| H A D | aac_cam.c | 72 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() 154 xpt_release_simq(camsc->sim, 1); in aac_cam_event() 205 struct cam_sim *sim; in aac_cam_attach() local 223 if (sim == NULL) { in aac_cam_attach() 231 cam_sim_free(sim, TRUE); in aac_cam_attach() 239 cam_sim_free(sim, TRUE); in aac_cam_attach() 246 camsc->sim = sim; in aac_cam_attach() [all …]
|
| /freebsd-14.2/sys/dev/aic7xxx/ |
| H A D | aic7xxx_osm.h | 70 #define SIM_IS_SCSIBUS_B(ahc, sim) \ argument 71 ((sim) == ahc->platform_data->sim_b) 72 #define SIM_CHANNEL(ahc, sim) \ argument 73 (((sim) == ahc->platform_data->sim_b) ? 'B' : 'A') 74 #define SIM_SCSI_ID(ahc, sim) \ argument 75 (((sim) == ahc->platform_data->sim_b) ? ahc->our_id_b : ahc->our_id) 76 #define SIM_PATH(ahc, sim) \ argument 79 #define BUILD_SCSIID(ahc, sim, target_id, our_id) \ argument 81 | (SIM_IS_SCSIBUS_B(ahc, sim) ? TWIN_CHNLB : 0)) 84 (SCB_GET_CHANNEL(ahc, scb) == 'A' ? (ahc)->platform_data->sim \ [all …]
|
| H A D | aic7xxx_osm.c | 146 struct cam_sim *sim; in ahc_attach() local 153 sim = NULL; in ahc_attach() 194 if (sim == NULL) { in ahc_attach() 201 sim = NULL; in ahc_attach() 210 sim = NULL; in ahc_attach() 219 csa.callback_arg = sim; in ahc_attach() 273 ahc->platform_data->sim = sim; in ahc_attach() 623 SIM_CHANNEL(ahc, sim), in ahc_action() 898 struct cam_sim *sim; in ahc_async() local 1122 ahc_poll(struct cam_sim *sim) in ahc_poll() argument [all …]
|
| H A D | aic79xx_osm.c | 216 struct cam_sim *sim; in ahd_attach() local 222 sim = NULL; in ahd_attach() 248 if (sim == NULL) { in ahd_attach() 255 sim = NULL; in ahd_attach() 264 sim = NULL; in ahd_attach() 273 csa.callback_arg = sim; in ahd_attach() 278 ahd->platform_data->sim = sim; in ahd_attach() 749 SIM_CHANNEL(ahd, sim), in ahd_set_tran_settings() 917 struct cam_sim *sim; in ahd_async() local 1062 ahd_poll(struct cam_sim *sim) in ahd_poll() argument [all …]
|
| H A D | aic79xx_osm.h | 73 #define SIM_IS_SCSIBUS_B(ahd, sim) \ argument 75 #define SIM_CHANNEL(ahd, sim) \ argument 77 #define SIM_SCSI_ID(ahd, sim) \ argument 79 #define SIM_PATH(ahd, sim) \ argument 81 #define BUILD_SCSIID(ahd, sim, target_id, our_id) \ argument 86 ((ahd)->platform_data->sim) 119 struct cam_sim *sim; member 219 xpt_freeze_simq(aic->platform_data->sim, /*count*/1); in aic_freeze_simq() 225 xpt_release_simq(aic->platform_data->sim, /*run queue*/TRUE); in aic_release_simq()
|
| /freebsd-14.2/sys/cam/mmc/ |
| H A D | mmc_sim.c | 43 mmc_cam_default_poll(struct cam_sim *sim) in mmc_cam_default_poll() argument 47 mmc_sim = cam_sim_softc(sim); in mmc_cam_default_poll() 96 mmc_sim = cam_sim_softc(sim); in mmc_cam_sim_default_action() 113 sim, mmc.host_max_data); in mmc_cam_sim_default_action() 206 if (mmc_sim->sim == NULL) { in mmc_cam_sim_alloc() 213 if (xpt_bus_register(mmc_sim->sim, dev, 0) != 0) { in mmc_cam_sim_alloc() 215 cam_sim_free(mmc_sim->sim, FALSE); in mmc_cam_sim_alloc() 235 if (mmc_sim->sim != NULL) { in mmc_cam_sim_free() 237 xpt_bus_deregister(cam_sim_path(mmc_sim->sim)); in mmc_cam_sim_free() 238 cam_sim_free(mmc_sim->sim, FALSE); in mmc_cam_sim_free() [all …]
|
| /freebsd-14.2/sys/dev/mmcnull/ |
| H A D | mmcnull.c | 52 struct cam_sim *sim; member 121 if (sc->sim == NULL) { in mmcnull_attach() 131 cam_sim_free(sc->sim, FALSE); in mmcnull_attach() 155 if (sc->sim != NULL) { in mmcnull_detach() 158 cam_sim_free(sc->sim, FALSE); in mmcnull_detach() 326 sc = cam_sim_softc(sim); in mmcnull_handle_mmcio() 343 sc = cam_sim_softc(sim); in mmcnull_action_sd() 372 cpi->bus_id = cam_sim_bus(sim); in mmcnull_action_sd() 417 mmcnull_handle_mmcio(sim, ccb); in mmcnull_action_sd() 436 mmcnull_action_sd(sim, ccb); in mmcnull_action_sdio() [all …]
|
| /freebsd-14.2/sys/dev/mfi/ |
| H A D | mfi_cam.c | 77 struct cam_sim *sim; member 145 if (sc->sim == NULL) { in mfip_attach() 157 cam_sim_free(sc->sim, FALSE); in mfip_attach() 158 sc->sim = NULL; in mfip_attach() 188 if (sc->sim != NULL) { in mfip_detach() 191 cam_sim_free(sc->sim, FALSE); in mfip_detach() 192 sc->sim = NULL; in mfip_detach() 229 cpi->bus_id = cam_sim_bus(sim); in mfip_cam_action() 297 struct cam_sim *sim; in mfip_cam_rescan() local 324 sim = camsc->sim; in mfip_cam_rescan() [all …]
|
| /freebsd-14.2/sys/dev/nvme/ |
| H A D | nvme_sim.c | 51 static void nvme_sim_poll(struct cam_sim *sim); 53 #define sim2softc(sim) ((struct nvme_sim_softc *)cam_sim_softc(sim)) argument 54 #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() 277 nvme_sim_nvmeio(sim, ccb); in nvme_sim_action() 287 nvme_sim_poll(struct cam_sim *sim) in nvme_sim_poll() argument [all …]
|
| /freebsd-14.2/sys/dev/isci/ |
| H A D | isci_controller.c | 57 void isci_poll(struct cam_sim *sim); 247 controller->sim = NULL; in isci_controller_construct() 385 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-14.2/sys/dev/aacraid/ |
| H A D | aacraid_cam.c | 95 struct cam_sim *sim; member 168 struct aac_sim *sim; in aac_cam_rescan() local 175 camsc = sim->aac_cam; in aac_cam_rescan() 270 struct cam_sim *sim; in aac_cam_attach() local 289 if (sim == NULL) { in aac_cam_attach() 297 cam_sim_free(sim, TRUE); in aac_cam_attach() 305 cam_sim_free(sim, TRUE); in aac_cam_attach() 313 camsc->sim = sim; in aac_cam_attach() 364 xpt_freeze_simq(sim, 1); in aac_container_rw_command() 855 xpt_freeze_simq(sim, 1); in aac_passthrough_command() [all …]
|
| /freebsd-14.2/sys/dev/smartpqi/ |
| H A D | smartpqi_cam.c | 40 cam_sim_softc(sim); 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() 810 cam_sim_softc(sim); in pqisrc_io_start() 1079 if(!pqisrc_io_start(sim, ccb)) { in smartpqi_cam_action() 1157 smartpqi_poll(struct cam_sim *sim) in smartpqi_poll() argument 1247 struct cam_sim *sim; in register_sim() local 1263 if (sim == NULL) { in register_sim() 1270 softs->os_specific.sim = sim; in register_sim() 1345 if (softs->os_specific.sim) { in deregister_sim() [all …]
|
| /freebsd-14.2/tools/tools/vhba/ |
| H A D | vhba.c | 49 if (vhba->sim == NULL) { in vhba_attach() 55 if (xpt_bus_register(vhba->sim, 0, 0) != CAM_SUCCESS) { in vhba_attach() 56 cam_sim_free(vhba->sim, TRUE); in vhba_attach() 71 xpt_bus_deregister(cam_sim_path(vhba->sim)); in vhba_detach() 72 cam_sim_free(vhba->sim, TRUE); in vhba_detach() 76 vhba_poll(struct cam_sim *sim) in vhba_poll() argument 78 vhba_softc_t *vhba = cam_sim_softc(sim); in vhba_poll() 83 vhba_action(struct cam_sim *sim, union ccb *ccb) in vhba_action() argument 88 vhba = cam_sim_softc(sim); in vhba_action() 138 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in vhba_action() [all …]
|
| /freebsd-14.2/sys/dev/tws/ |
| H A D | tws_cam.c | 158 if (sc->sim == NULL) { in tws_cam_attach() 164 if (xpt_bus_register(sc->sim, in tws_cam_attach() 178 cam_sim_free(sc->sim, TRUE); in tws_cam_attach() 195 if (sc->sim) { in tws_cam_detach() 197 cam_sim_free(sc->sim, TRUE); in tws_cam_detach() 208 if (!(sc->sim)) in tws_bus_scan() 1108 tws_poll(struct cam_sim *sim) in tws_poll() argument 1136 xpt_freeze_simq(sc->sim, 1); in tws_timeout() 1157 xpt_release_simq(sc->sim, 1); in tws_timeout() 1171 xpt_freeze_simq(sc->sim, 1); in tws_reset() [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/Bindings/arm/freescale/ |
| H A D | fsl,imx7ulp-sim.txt | 9 - compatible: Should be "fsl,imx7ulp-sim". 13 sim: sim@410a3000 { 14 compatible = "fsl,imx7ulp-sim", "syscon";
|
| H A D | fsl,imx7ulp-sim.yaml | 4 $id: http://devicetree.org/schemas/arm/freescale/fsl,imx7ulp-sim.yaml# 21 - const: fsl,imx7ulp-sim 35 sim@410a3000 { 36 compatible = "fsl,imx7ulp-sim", "syscon";
|
| /freebsd-14.2/sys/dev/ahci/ |
| H A D | ahciem.c | 58 static void ahciempoll(struct cam_sim *sim); 126 if (enc->sim == NULL) { in ahci_em_attach() 186 xpt_bus_deregister(cam_sim_path(enc->sim)); in ahci_em_attach() 188 cam_sim_free(enc->sim, /*free_devq*/TRUE); in ahci_em_attach() 216 cam_sim_free(enc->sim, /*free_devq*/TRUE); in ahci_em_detach() 258 xpt_freeze_simq(enc->sim, 1); in ahci_em_suspend() 270 xpt_release_simq(enc->sim, TRUE); in ahci_em_resume() 613 enc = cam_sim_softc(sim); in ahciemaction() 639 cpi->bus_id = cam_sim_bus(sim); in ahciemaction() 644 cpi->unit_number = cam_sim_unit(sim); in ahciemaction() [all …]
|
| /freebsd-14.2/sys/cam/ctl/ |
| H A D | ctl_frontend_cam_sim.c | 75 struct cam_sim *sim; member 94 static void cfcs_poll(struct cam_sim *sim); 181 if (softc->sim == NULL) { in cfcs_init() 194 cam_sim_path(softc->sim), in cfcs_init() 198 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_init() 206 if (softc->sim) in cfcs_init() 207 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_init() 223 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_shutdown() 224 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_shutdown() 232 cfcs_poll(struct cam_sim *sim) in cfcs_poll() argument [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/src/powerpc/ |
| H A D | iss4xx.dts | 34 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-14.2/sys/dev/ata/ |
| H A D | ata-all.c | 187 if (ch->sim == NULL) { in ata_attach() 211 ch->sim = NULL; in ata_attach() 243 ch->sim = NULL; in ata_detach() 267 if (ch->sim == NULL) { in ata_conn_event() 275 cam_sim_path(ch->sim), in ata_conn_event() 290 xpt_freeze_simq(ch->sim, 1); in ata_reinit() 305 xpt_release_simq(ch->sim, TRUE); in ata_reinit() 321 xpt_freeze_simq(ch->sim, 1); in ata_suspend() 340 xpt_release_simq(ch->sim, TRUE); in ata_resume() 896 xpt_freeze_simq(ch->sim, 1); in ata_cam_end_transaction() [all …]
|
| /freebsd-14.2/sys/contrib/device-tree/src/arm64/qcom/ |
| H A D | msm8916-thwc-ufi001c.dts | 44 sim_ctrl_default: sim-ctrl-default-state { 52 sim-en-pins { 59 sim-sel-pins {
|