| /freebsd-12.1/contrib/gdb/ |
| H A D | md5.sum | 3249 1ddeffaf97945a97a1d86d0e0fe7e433 sim/common/sim-hw.c 3250 b1fb1875f15c42d14431b3ba4209c55e sim/common/sim-hw.h 3254 516bcecf5724556662bf6cfb351b9f27 sim/common/sim-io.c 3354 8201cbf7cfb2640d1161166bed14c305 sim/fr30/sim-if.c 3375 cae334018f11961982bc58933c6a74d0 sim/frv/frv-sim.h 3395 178a4f29d1fe5e63fbe49770786d95f9 sim/frv/sim-if.c 3396 81dd638958b042eec526ec15799a57c7 sim/frv/sim-main.h 3444 ae9997acd3cc669b25b97228f62314dc sim/i960/sim-if.c 3527 ffd2718e234371cb2ca2d0b99ff00240 sim/m32r/sim-if.c 3748 48c6b8643d82c832a08fc5aad6c182c3 sim/ppc/sim-main.h [all …]
|
| /freebsd-12.1/sys/cam/ |
| H A D | cam_sim.c | 77 if (sim == NULL) in cam_sim_alloc() 89 sim->flags = 0; in cam_sim_alloc() 90 sim->refcount = 1; in cam_sim_alloc() 91 sim->devq = queue; in cam_sim_alloc() 92 sim->mtx = mtx; in cam_sim_alloc() 94 sim->flags |= 0; in cam_sim_alloc() 100 return (sim); in cam_sim_alloc() 115 sim->refcount--; in cam_sim_free() 144 sim->refcount--; in cam_sim_release() 146 wakeup(sim); in cam_sim_release() [all …]
|
| H A D | cam_sim.h | 114 #define CAM_SIM_LOCK(sim) mtx_lock((sim)->mtx) argument 115 #define CAM_SIM_UNLOCK(sim) mtx_unlock((sim)->mtx) argument 118 cam_sim_path(struct cam_sim *sim) in cam_sim_path() argument 120 return (sim->path_id); in cam_sim_path() 124 cam_sim_name(struct cam_sim *sim) in cam_sim_name() argument 126 return (sim->sim_name); in cam_sim_name() 132 return (sim->softc); in cam_sim_softc() 136 cam_sim_unit(struct cam_sim *sim) in cam_sim_unit() argument 138 return (sim->unit_number); in cam_sim_unit() 142 cam_sim_bus(struct cam_sim *sim) in cam_sim_bus() argument [all …]
|
| H A D | cam_xpt.c | 2822 sim = path->bus->sim; in xpt_action_default() 2831 (*(sim->sim_action))(sim, start_ccb); in xpt_action_default() 3231 (*(sim->sim_poll))(sim); in xpt_sim_poll() 3540 sim = device->sim; in xpt_run_devq() 3547 (*(sim->sim_action))(sim, work_ccb); in xpt_run_devq() 4071 new_bus->sim = sim; in xpt_bus_register() 4079 xptpathid(sim->sim_name, sim->unit_number, sim->bus_id); in xpt_bus_register() 4945 device->sim = bus->sim; in xpt_alloc_device() 5114 sim = path->bus->sim; in xpt_start_tags() 5143 sim = path->bus->sim; in xpt_stop_tags() [all …]
|
| H A D | cam_xpt_sim.h | 42 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-12.1/sys/dev/iscsi_initiator/ |
| H A D | isc_cam.c | 79 cpi->bus_id = cam_sim_bus(sim); in _inq() 98 ret = scsi_encap(sim, ccb); in _scsi_encap() 103 ret = scsi_encap(sim, ccb); in _scsi_encap() 189 _inq(sim, ccb); in ic_action() 216 if(_scsi_encap(sim, ccb) != 0) in ic_action() 272 ic_poll(struct cam_sim *sim) in ic_poll() argument 318 struct cam_sim *sim; in ic_init() local 331 sim = cam_sim_alloc(ic_action, in ic_init() 342 if(sim == NULL) { in ic_init() 351 if(xpt_bus_register(sim, in ic_init() [all …]
|
| /freebsd-12.1/sys/dev/aac/ |
| H A D | aac_cam.c | 74 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() 159 xpt_release_simq(camsc->sim, 1); in aac_cam_event() 210 struct cam_sim *sim; in aac_cam_attach() local 228 if (sim == NULL) { in aac_cam_attach() 236 cam_sim_free(sim, TRUE); in aac_cam_attach() 244 cam_sim_free(sim, TRUE); in aac_cam_attach() 251 camsc->sim = sim; in aac_cam_attach() [all …]
|
| /freebsd-12.1/sys/dev/aic7xxx/ |
| H A D | aic7xxx_osm.h | 92 #define SIM_IS_SCSIBUS_B(ahc, sim) \ argument 93 ((sim) == ahc->platform_data->sim_b) 94 #define SIM_CHANNEL(ahc, sim) \ argument 95 (((sim) == ahc->platform_data->sim_b) ? 'B' : 'A') 96 #define SIM_SCSI_ID(ahc, sim) \ argument 97 (((sim) == ahc->platform_data->sim_b) ? ahc->our_id_b : ahc->our_id) 98 #define SIM_PATH(ahc, sim) \ argument 101 #define BUILD_SCSIID(ahc, sim, target_id, our_id) \ argument 103 | (SIM_IS_SCSIBUS_B(ahc, sim) ? TWIN_CHNLB : 0)) 106 (SCB_GET_CHANNEL(ahc, scb) == 'A' ? (ahc)->platform_data->sim \ [all …]
|
| H A D | aic7xxx_osm.c | 151 struct cam_sim *sim; in ahc_attach() local 158 sim = NULL; in ahc_attach() 200 if (sim == NULL) { in ahc_attach() 207 sim = NULL; in ahc_attach() 216 sim = NULL; in ahc_attach() 224 csa.callback_arg = sim; in ahc_attach() 278 ahc->platform_data->sim = sim; in ahc_attach() 619 SIM_CHANNEL(ahc, sim), in ahc_action() 895 struct cam_sim *sim; in ahc_async() local 1127 ahc_poll(struct cam_sim *sim) in ahc_poll() argument [all …]
|
| H A D | aic79xx_osm.c | 218 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() 743 SIM_CHANNEL(ahd, sim), in ahd_set_tran_settings() 911 struct cam_sim *sim; in ahd_async() local 1063 ahd_poll(struct cam_sim *sim) in ahd_poll() argument [all …]
|
| H A D | aic79xx_osm.h | 82 #define SIM_IS_SCSIBUS_B(ahd, sim) \ argument 84 #define SIM_CHANNEL(ahd, sim) \ argument 86 #define SIM_SCSI_ID(ahd, sim) \ argument 88 #define SIM_PATH(ahd, sim) \ argument 90 #define BUILD_SCSIID(ahd, sim, target_id, our_id) \ argument 95 ((ahd)->platform_data->sim) 128 struct cam_sim *sim; member 228 xpt_freeze_simq(aic->platform_data->sim, /*count*/1); in aic_freeze_simq() 234 xpt_release_simq(aic->platform_data->sim, /*run queue*/TRUE); in aic_release_simq()
|
| /freebsd-12.1/sys/dev/twa/ |
| H A D | tw_osl_cam.c | 59 static TW_VOID twa_poll(struct cam_sim *sim); 105 if (sc->sim == NULL) { in tw_osli_cam_attach() 122 cam_sim_free(sc->sim, TRUE); in tw_osli_cam_attach() 136 cam_sim_path(sc->sim), in tw_osli_cam_attach() 141 cam_sim_free(sc->sim, TRUE); in tw_osli_cam_attach() 176 if (sc->sim) { in tw_osli_cam_detach() 179 cam_sim_free(sc->sim, TRUE); in tw_osli_cam_detach() 426 path_inq->bus_id = cam_sim_bus(sim); in twa_action() 462 twa_poll(struct cam_sim *sim) in twa_poll() argument 490 if (!(sc->sim)) in tw_osli_request_bus_scan() [all …]
|
| /freebsd-12.1/sys/dev/mmcnull/ |
| H A D | mmcnull.c | 54 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-12.1/sys/dev/mfi/ |
| H A D | mfi_cam.c | 79 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-12.1/sys/dev/nvme/ |
| H A D | nvme_sim.c | 53 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() 190 cpi->bus_id = cam_sim_bus(sim); in nvme_sim_action() 195 cpi->unit_number = cam_sim_unit(sim); in nvme_sim_action() 261 nvme_sim_nvmeio(sim, ccb); in nvme_sim_action() 271 nvme_sim_poll(struct cam_sim *sim) in nvme_sim_poll() argument [all …]
|
| /freebsd-12.1/sys/dev/ppbus/ |
| H A D | vpo.c | 75 struct cam_sim *sim; member 86 static void vpo_action(struct cam_sim *sim, union ccb *ccb); 87 static void vpo_poll(struct cam_sim *sim); 166 if (vpo->sim == NULL) { in vpo_attach() 173 cam_sim_free(vpo->sim, /*free_devq*/TRUE); in vpo_attach() 302 vpo_action(struct cam_sim *sim, union ccb *ccb) in vpo_action() argument 304 struct vpo_data *vpo = (struct vpo_data *)sim->softc; in vpo_action() 393 cpi->bus_id = sim->bus_id; in vpo_action() 397 strlcpy(cpi->dev_name, sim->sim_name, DEV_IDLEN); in vpo_action() 398 cpi->unit_number = sim->unit_number; in vpo_action() [all …]
|
| /freebsd-12.1/sys/dev/isci/ |
| H A D | isci_controller.c | 59 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() 595 cam_sim_path(isci_controller->sim), in isci_controller_domain_discovery_complete() 638 if(controller->sim == NULL) { in isci_controller_attach_to_cam() 647 cam_sim_free(controller->sim, TRUE); in isci_controller_attach_to_cam() 657 cam_sim_free(controller->sim, TRUE); in isci_controller_attach_to_cam() 665 void isci_poll(struct cam_sim *sim) in isci_poll() argument 682 int bus = cam_sim_bus(sim); in isci_action() 683 ccb->ccb_h.ccb_sim_ptr = sim; in isci_action() [all …]
|
| /freebsd-12.1/sys/dev/smartpqi/ |
| H A D | smartpqi_cam.c | 41 cam_sim_softc(sim); in update_sim_properties() 56 cpi->unit_number = cam_sim_unit(sim); in update_sim_properties() 57 cpi->bus_id = cam_sim_bus(sim); in update_sim_properties() 109 cam_sim_path(softs->os_specific.sim), in os_add_device() 701 cam_sim_softc(sim); in pqisrc_io_start() 926 if(!pqisrc_io_start(sim, ccb)) { in smartpqi_cam_action() 1082 struct cam_sim *sim; in register_sim() local 1098 if (sim == NULL) { in register_sim() 1105 softs->os_specific.sim = sim; in register_sim() 1182 if (softs->os_specific.sim) { in deregister_sim() [all …]
|
| /freebsd-12.1/sys/dev/aacraid/ |
| H A D | aacraid_cam.c | 105 struct cam_sim *sim; member 187 struct aac_sim *sim; in aac_cam_rescan() local 194 camsc = sim->aac_cam; in aac_cam_rescan() 290 struct cam_sim *sim; in aac_cam_attach() local 309 if (sim == NULL) { in aac_cam_attach() 317 cam_sim_free(sim, TRUE); in aac_cam_attach() 325 cam_sim_free(sim, TRUE); in aac_cam_attach() 335 camsc->sim = sim; in aac_cam_attach() 386 xpt_freeze_simq(sim, 1); in aac_container_rw_command() 870 xpt_freeze_simq(sim, 1); in aac_passthrough_command() [all …]
|
| /freebsd-12.1/tools/tools/vhba/ |
| H A D | vhba.c | 50 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-12.1/sys/dev/tws/ |
| H A D | tws_cam.c | 168 if (sc->sim == NULL) { in tws_cam_attach() 174 if (xpt_bus_register(sc->sim, in tws_cam_attach() 190 cam_sim_free(sc->sim, TRUE); in tws_cam_attach() 207 if (sc->sim) { in tws_cam_detach() 209 cam_sim_free(sc->sim, TRUE); in tws_cam_detach() 220 if (!(sc->sim)) in tws_bus_scan() 1145 tws_poll(struct cam_sim *sim) in tws_poll() argument 1174 xpt_freeze_simq(sc->sim, 1); in tws_timeout() 1195 xpt_release_simq(sc->sim, 1); in tws_timeout() 1209 xpt_freeze_simq(sc->sim, 1); in tws_reset() [all …]
|
| /freebsd-12.1/sys/dev/ahci/ |
| H A D | ahciem.c | 60 static void ahciempoll(struct cam_sim *sim); 127 if (enc->sim == NULL) { in ahci_em_attach() 187 xpt_bus_deregister(cam_sim_path(enc->sim)); in ahci_em_attach() 189 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() 254 xpt_freeze_simq(enc->sim, 1); in ahci_em_suspend() 266 xpt_release_simq(enc->sim, TRUE); in ahci_em_resume() 608 enc = cam_sim_softc(sim); in ahciemaction() 634 cpi->bus_id = cam_sim_bus(sim); in ahciemaction() 639 cpi->unit_number = cam_sim_unit(sim); in ahciemaction() [all …]
|
| /freebsd-12.1/sys/cam/ctl/ |
| H A D | ctl_frontend_cam_sim.c | 80 struct cam_sim *sim; member 101 static void cfcs_poll(struct cam_sim *sim); 191 if (softc->sim == NULL) { in cfcs_init() 204 cam_sim_path(softc->sim), in cfcs_init() 208 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_init() 218 if (softc->sim) in cfcs_init() 219 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_init() 239 xpt_bus_deregister(cam_sim_path(softc->sim)); in cfcs_shutdown() 240 cam_sim_free(softc->sim, /*free_devq*/ TRUE); in cfcs_shutdown() 250 cfcs_poll(struct cam_sim *sim) in cfcs_poll() argument [all …]
|
| /freebsd-12.1/sys/dev/ata/ |
| H A D | ata-all.c | 188 if (ch->sim == NULL) { in ata_attach() 212 ch->sim = NULL; in ata_attach() 244 ch->sim = NULL; in ata_detach() 268 if (ch->sim == NULL) { in ata_conn_event() 276 cam_sim_path(ch->sim), in ata_conn_event() 291 xpt_freeze_simq(ch->sim, 1); in ata_reinit() 306 xpt_release_simq(ch->sim, TRUE); in ata_reinit() 322 xpt_freeze_simq(ch->sim, 1); in ata_suspend() 341 xpt_release_simq(ch->sim, TRUE); in ata_resume() 895 xpt_freeze_simq(ch->sim, 1); in ata_cam_end_transaction() [all …]
|
| /freebsd-12.1/sys/dev/amr/ |
| H A D | amr_cam.c | 91 static void amr_cam_action(struct cam_sim *sim, union ccb *ccb); 92 static void amr_cam_poll(struct cam_sim *sim); 245 amr_cam_action(struct cam_sim *sim, union ccb *ccb) in amr_cam_action() argument 247 struct amr_softc *sc = cam_sim_softc(sim); in amr_cam_action() 297 csio->ccb_h.sim_priv.entries[0].field= cam_sim_bus(sim); in amr_cam_action() 330 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in amr_cam_action() 331 cpi->unit_number = cam_sim_unit(sim); in amr_cam_action() 332 cpi->bus_id = cam_sim_bus(sim); in amr_cam_action() 537 amr_cam_poll(struct cam_sim *sim) in amr_cam_poll() argument 540 amr_done(cam_sim_softc(sim)); in amr_cam_poll()
|