Home
last modified time | relevance | path

Searched full:sim (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/freebsd/sys/cam/
H A Dcam_sim.c46 static MALLOC_DEFINE(M_CAMSIM, "CAM SIM", "CAM SIM buffers");
49 MTX_SYSINIT(cam_sim_free_init, &cam_sim_free_mtx, "CAM SIM free lock", MTX_DEF);
66 * @brief allocate a new sim and fill in the details
68 * A Storage Interface Module (SIM) is the interface between CAM and
69 * hardware. SIM receives CCBs from CAM via @p sim_action callback and
74 * The @p mtx acts as a perimeter lock for the SIM. All calls into the SIM's
76 * a SIM, managing its reference count. When the lock is NULL, the SIM is 100%
81 * outstanding transactions to the SIM. For HBAs that have global limits shared
83 * attached to the SIM.
87 * @param sim_name Name of SIM class
[all …]
H A Dcam_sim.h37 * The sim driver creates a sim for each controller. The sim device
39 * sims. For instance, a driver may create one sim for each channel of
48 typedef void (*sim_action_func)(struct cam_sim *sim, union ccb *ccb);
49 typedef void (*sim_poll_func)(struct cam_sim *sim);
63 void cam_sim_free(struct cam_sim *sim, int free_devq);
64 void cam_sim_hold(struct cam_sim *sim);
65 void cam_sim_release(struct cam_sim *sim);
67 /* Optional sim attributes may be set with these. */
68 void cam_sim_set_path(struct cam_sim *sim, uint32_t path_id);
70 /* Generically useful offsets into the sim private area */
[all …]
H A Dcam_xpt.c262 static void xptaction(struct cam_sim *sim, union ccb *work_ccb);
263 static void xptpoll(struct cam_sim *sim);
387 * the appropriate SIM lock once the bus/SIM is located.
904 * The xpt layer is, itself, the equivalent of a SIM. in xpt_init()
932 * Looking at the XPT from the SIM layer, the XPT is in xpt_init()
1064 path->bus->sim->sim_name, in xpt_announce_periph_sbuf()
1065 path->bus->sim->unit_number, in xpt_announce_periph_sbuf()
1066 path->bus->sim->bus_id, in xpt_announce_periph_sbuf()
1139 path->bus->sim->sim_name, in xpt_denounce_periph_sbuf()
1140 path->bus->sim->unit_number, in xpt_denounce_periph_sbuf()
[all …]
/freebsd/contrib/wpa/src/eap_common/
H A Deap_sim_common.c2 * EAP peer/server: EAP-SIM/AKA/AKA' shared routines
52 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: MK", mk, EAP_SIM_MK_LEN); in eap_sim_derive_mk()
82 wpa_printf(MSG_ERROR, "EAP-SIM: Failed to derive keys"); in eap_sim_derive_keys()
94 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: K_encr", in eap_sim_derive_keys()
96 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: K_aut", in eap_sim_derive_keys()
98 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: keying material (MSK)", in eap_sim_derive_keys()
100 wpa_hexdump_key(MSG_DEBUG, "EAP-SIM: EMSK", emsk, EAP_EMSK_LEN); in eap_sim_derive_keys()
119 wpa_printf(MSG_DEBUG, "EAP-SIM: Workaround - drop null " in eap_sim_derive_keys_reauth()
134 wpa_printf(MSG_DEBUG, "EAP-SIM: Deriving keying data from reauth"); in eap_sim_derive_keys_reauth()
135 wpa_hexdump_ascii(MSG_DEBUG, "EAP-SIM: Identity", in eap_sim_derive_keys_reauth()
[all …]
/freebsd/contrib/wpa/src/eap_peer/
H A Deap_sim.c2 * EAP peer method: EAP-SIM (RFC 4186)
81 wpa_printf(MSG_DEBUG, "EAP-SIM: %s -> %s", in eap_sim_state()
98 wpa_printf(MSG_WARNING, "EAP-SIM: Failed to get random data " in eap_sim_init()
110 "EAP-SIM: Failed to read/parse IMSI privacy certificate %s", in eap_sim_init()
117 "EAP-SIM: No support for imsi_privacy_cert in the build"); in eap_sim_init()
132 wpa_printf(MSG_WARNING, "EAP-SIM: Invalid " in eap_sim_init()
142 wpa_printf(MSG_DEBUG, "EAP-SIM: Set minimum number of " in eap_sim_init()
210 wpa_printf(MSG_DEBUG, "EAP-SIM: Use external SIM processing"); in eap_sim_ext_sim_req()
232 "EAP-SIM: Use result from external SIM processing"); in eap_sim_ext_sim_result()
238 wpa_printf(MSG_DEBUG, "EAP-SIM: Unrecognized external SIM processing response"); in eap_sim_ext_sim_result()
[all …]
/freebsd/contrib/wpa/src/eap_server/
H A Deap_server_sim.c2 * hostapd / EAP-SIM (RFC 4186)
70 wpa_printf(MSG_DEBUG, "EAP-SIM: %s -> %s", in eap_sim_state()
82 wpa_printf(MSG_WARNING, "EAP-SIM: eap_sim_db not configured"); in eap_sim_init()
111 wpa_printf(MSG_DEBUG, "EAP-SIM: Generating Start"); in eap_sim_build_start()
133 * ignored and the SIM/Start is used to request the identity. in eap_sim_build_start()
191 wpa_printf(MSG_DEBUG, "EAP-SIM: Max fast re-authentication " in eap_sim_build_encr()
234 wpa_printf(MSG_WARNING, "EAP-SIM: Failed to encrypt " in eap_sim_build_encr()
249 wpa_printf(MSG_DEBUG, "EAP-SIM: Generating Challenge"); in eap_sim_build_challenge()
279 wpa_printf(MSG_DEBUG, "EAP-SIM: Generating Re-authentication"); in eap_sim_build_reauth()
283 wpa_hexdump_key(MSG_MSGDUMP, "EAP-SIM: NONCE_S", in eap_sim_build_reauth()
[all …]
H A Deap_sim_db.c2 * hostapd / EAP-SIM database/authenticator gateway
8 * This is an example implementation of the EAP-SIM/AKA database/authentication
12 * EAP-SIM/AKA pseudonyms and re-auth identities. It can be used with different
48 } sim; member
103 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Adding database table for " in db_table_create_pseudonym()
106 wpa_printf(MSG_ERROR, "EAP-SIM DB: SQLite error: %s", err); in db_table_create_pseudonym()
129 wpa_printf(MSG_DEBUG, "EAP-SIM DB: Adding database table for " in db_table_create_reauth()
132 wpa_printf(MSG_ERROR, "EAP-SIM DB: SQLite error: %s", err); in db_table_create_reauth()
146 wpa_printf(MSG_ERROR, "EAP-SIM DB: Failed to open database " in db_open()
198 wpa_printf(MSG_ERROR, "EAP-SIM DB: SQLite error: %s", err); in db_add_pseudonym()
[all …]
/freebsd/sys/dev/nvmf/host/
H A Dnvmf_sim.c43 struct cam_sim *sim = xpt_path_sim(ccb->ccb_h.path); in nvmf_ccb_done() local
44 struct nvmf_softc *sc = cam_sim_softc(sim); in nvmf_ccb_done()
156 nvmf_sim_action(struct cam_sim *sim, union ccb *ccb) in nvmf_sim_action() argument
158 struct nvmf_softc *sc = cam_sim_softc(sim); in nvmf_sim_action()
181 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in nvmf_sim_action()
182 cpi->unit_number = cam_sim_unit(sim); in nvmf_sim_action()
239 device_printf(sc->dev, "unhandled sim function %#x\n", in nvmf_sim_action()
260 mtx_init(&sc->sim_mtx, "nvmf sim", NULL, MTX_DEF); in nvmf_init_sim()
261 sc->sim = cam_sim_alloc(nvmf_sim_action, NULL, "nvme", sc, in nvmf_init_sim()
263 if (sc->sim == NULL) { in nvmf_init_sim()
[all …]
/freebsd/contrib/wpa/hostapd/
H A Dhostapd.eap_user19 # EAP-TLS, EAP-PEAP, EAP-TTLS, EAP-FAST, EAP-SIM, and EAP-AKA do not use
33 # method is using known prefix in identities (e.g., EAP-SIM and EAP-AKA). This
71 # Default to EAP-SIM and EAP-AKA based on fixed identity prefixes
72 "0"* AKA,TTLS,TLS,PEAP,SIM
73 "1"* SIM,TTLS,TLS,PEAP,AKA
74 "2"* AKA,TTLS,TLS,PEAP,SIM
75 "3"* SIM,TTLS,TLS,PEAP,AKA
76 "4"* AKA,TTLS,TLS,PEAP,SIM
77 "5"* SIM,TTLS,TLS,PEAP,AKA
83 * PEAP,TTLS,TLS,SIM,AKA
[all …]
H A Dhlr_auc_gw.txt1 HLR/AuC testing gateway for hostapd EAP-SIM/AKA database/authenticator
3 hlr_auc_gw is an example implementation of the EAP-SIM/AKA/AKA'
6 authentication center (HLR/AuC). hostapd will send SIM/AKA
13 dynamic authentication data for EAP-SIM, EAP-AKA, and EAP-AKA' while the
15 extracted from a SIM card).
66 hostapd (EAP server) can also be configured to store the EAP-SIM/AKA
79 authentication server for EAP-SIM/AKA/AKA':
97 "1"* SIM
99 "3"* SIM
101 "5"* SIM
/freebsd/sys/dev/aac/
H A Daac_cam.c72 struct cam_sim *sim; member
111 struct aac_sim *sim; in aac_cam_rescan() local
117 TAILQ_FOREACH(sim, &sc->aac_sim_tqh, sim_link) { in aac_cam_rescan()
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()
188 xpt_bus_deregister(cam_sim_path(camsc->sim)); in aac_cam_detach()
189 cam_sim_free(camsc->sim, /*free_devq*/TRUE); in aac_cam_detach()
199 * Register the driver as a CAM SIM
205 struct cam_sim *sim; in aac_cam_attach() local
[all …]
/freebsd/sys/dev/aic7xxx/
H A Daic7xxx_osm.c51 static void ahc_action(struct cam_sim *sim, union ccb *ccb);
59 static void ahc_poll(struct cam_sim *sim);
60 static void ahc_setup_data(struct ahc_softc *ahc, struct cam_sim *sim,
62 static void ahc_abort_ccb(struct ahc_softc *ahc, struct cam_sim *sim,
77 path_id = cam_sim_path(ahc->platform_data->sim); in ahc_create_path()
145 struct cam_sim *sim; in ahc_attach()
152 sim = NULL; in ahc_attach()
181 * Create the device queue for our SIM(s). in ahc_attach()
188 * Construct our first channel SIM entry in ahc_attach()
190 sim in ahc_attach()
146 struct cam_sim *sim; ahc_attach() local
435 ahc_action(struct cam_sim * sim,union ccb * ccb) ahc_action() argument
885 struct cam_sim *sim; ahc_async() local
1115 ahc_poll(struct cam_sim * sim) ahc_poll() argument
1124 ahc_setup_data(struct ahc_softc * ahc,struct cam_sim * sim,struct ccb_scsiio * csio,struct scb * scb) ahc_setup_data() argument
1189 ahc_abort_ccb(struct ahc_softc * ahc,struct cam_sim * sim,union ccb * ccb) ahc_abort_ccb() argument
[all...]
H A Daic79xx_osm.c57 static void ahd_action(struct cam_sim *sim, union ccb *ccb);
68 static void ahd_poll(struct cam_sim *sim);
69 static void ahd_setup_data(struct ahd_softc *ahd, struct cam_sim *sim,
71 static void ahd_abort_ccb(struct ahd_softc *ahd, struct cam_sim *sim,
144 path_id = cam_sim_path(ahd->platform_data->sim); in ahd_create_path()
215 struct cam_sim *sim; in ahd_attach()
221 sim = NULL; in ahd_attach()
235 * Create the device queue for our SIM(s). in ahd_attach()
242 * Construct our SIM entry in ahd_attach()
244 sim in ahd_attach()
216 struct cam_sim *sim; ahd_attach() local
450 ahd_action(struct cam_sim * sim,union ccb * ccb) ahd_action() argument
904 struct cam_sim *sim; ahd_async() local
1055 ahd_poll(struct cam_sim * sim) ahd_poll() argument
1061 ahd_setup_data(struct ahd_softc * ahd,struct cam_sim * sim,struct ccb_scsiio * csio,struct scb * scb) ahd_setup_data() argument
1129 ahd_abort_ccb(struct ahd_softc * ahd,struct cam_sim * sim,union ccb * ccb) ahd_abort_ccb() argument
[all...]
/freebsd/sys/dev/mfi/
H A Dmfi_cam.c77 struct cam_sim *sim; member
142 sc->sim = cam_sim_alloc(mfip_cam_action, mfip_cam_poll, "mfi", sc, in mfip_attach()
145 if (sc->sim == NULL) { in mfip_attach()
148 device_printf(dev, "CAM SIM attach failed\n"); in mfip_attach()
155 if (xpt_bus_register(sc->sim, dev, 0) != 0) { 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()
190 xpt_bus_deregister(cam_sim_path(sc->sim)); in mfip_detach()
191 cam_sim_free(sc->sim, FALSE); in mfip_detach()
[all …]
/freebsd/sys/cam/mmc/
H A Dmmc_sim.c42 mmc_cam_default_poll(struct cam_sim *sim) in mmc_cam_default_poll() argument
46 mmc_sim = cam_sim_softc(sim); in mmc_cam_default_poll()
89 mmc_cam_sim_default_action(struct cam_sim *sim, union ccb *ccb) in mmc_cam_sim_default_action() argument
95 mmc_sim = cam_sim_softc(sim); in mmc_cam_sim_default_action()
112 sim, mmc.host_max_data * MMC_SECTOR_SIZE); in mmc_cam_sim_default_action()
200 mmc_sim->sim = cam_sim_alloc(mmc_cam_sim_default_action, in mmc_cam_sim_alloc()
205 if (mmc_sim->sim == NULL) { in mmc_cam_sim_alloc()
207 device_printf(dev, "cannot allocate CAM SIM\n"); in mmc_cam_sim_alloc()
212 if (xpt_bus_register(mmc_sim->sim, dev, 0) != 0) { in mmc_cam_sim_alloc()
214 cam_sim_free(mmc_sim->sim, FALSE); in mmc_cam_sim_alloc()
[all …]
/freebsd/sys/dev/mmcnull/
H A Dmmcnull.c51 struct cam_sim *sim; member
116 sc->sim = cam_sim_alloc(action_func, mmcnull_poll, "mmcnull", sc, in mmcnull_attach()
120 if (sc->sim == NULL) { in mmcnull_attach()
122 device_printf(dev, "cannot allocate CAM SIM\n"); in mmcnull_attach()
127 if (xpt_bus_register(sc->sim, dev, 0) != 0) { in mmcnull_attach()
130 cam_sim_free(sc->sim, FALSE); in mmcnull_attach()
154 if (sc->sim != NULL) { in mmcnull_detach()
156 xpt_bus_deregister(cam_sim_path(sc->sim)); in mmcnull_detach()
157 cam_sim_free(sc->sim, FALSE); in mmcnull_detach()
246 if (xpt_create_path(&dpath, NULL, cam_sim_path(sc->sim), 0, 0) != CAM_REQ_CMP) { in mmcnull_intr_sdio_newintr()
[all …]
/freebsd/sys/dev/nvme/
H A Dnvme_sim.c49 static void nvme_sim_action(struct cam_sim *sim, union ccb *ccb);
50 static void nvme_sim_poll(struct cam_sim *sim);
52 #define sim2softc(sim) ((struct nvme_sim_softc *)cam_sim_softc(sim)) argument
53 #define sim2ctrlr(sim) (sim2softc(sim)->s_ctrlr) argument
85 nvme_sim_nvmeio(struct cam_sim *sim, union ccb *ccb) in nvme_sim_nvmeio() argument
93 ctrlr = sim2ctrlr(sim); in nvme_sim_nvmeio()
143 nvme_sim_action(struct cam_sim *sim, union ccb *ccb) in nvme_sim_action() argument
151 ctrlr = sim2ctrlr(sim); in nvme_sim_action()
191 cpi->bus_id = cam_sim_bus(sim); in nvme_sim_action()
195 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in nvme_sim_action()
[all …]
/freebsd/share/man/man4/
H A Dscsi.4300 XPT (transport) dispatches these protocol requests to a SIM driver.
301 A SIM driver takes protocol requests and translates them into hardware commands
314 The XPT layer dispatches these requests to the appropriate SIM.
315 Some CCBs are sent directly to the SIM for immediate processing, while others
317 A SIM takes CCBs and translates them into hardware specific commands to push the
322 that a SIM can deliver to hardware.
354 device will pass through CCB requests from userland to the SIM directly.
361 The transport driver connects the periph to the SIM.
363 It is also responsible for device discovery for those SIM drivers that do not
365 .Ss SIM driver
[all …]
/freebsd/sys/dev/aacraid/
H A Daacraid_cam.c95 struct cam_sim *sim; member
168 struct aac_sim *sim; in aac_cam_rescan() local
174 TAILQ_FOREACH(sim, &sc->aac_sim_tqh, sim_link) { in aac_cam_rescan()
175 camsc = sim->aac_cam; in aac_cam_rescan()
188 cam_sim_path(camsc->sim), in aac_cam_rescan()
211 xpt_release_simq(camsc->sim, 1); in aac_cam_event()
253 xpt_bus_deregister(cam_sim_path(camsc->sim)); in aac_cam_detach()
254 cam_sim_free(camsc->sim, /*free_devq*/TRUE); in aac_cam_detach()
264 * Register the driver as a CAM SIM
270 struct cam_sim *sim; in aac_cam_attach() local
[all …]
/freebsd/sys/contrib/device-tree/Bindings/arm/freescale/
H A Dfsl,imx7ulp-sim.txt3 The system integration module (SIM) provides system control and chip configuration
9 - compatible: Should be "fsl,imx7ulp-sim".
13 sim: sim@410a3000 {
14 compatible = "fsl,imx7ulp-sim", "syscon";
H A Dfsl,imx7ulp-sim.yaml4 $id: http://devicetree.org/schemas/arm/freescale/fsl,imx7ulp-sim.yaml#
15 The system integration module (SIM) provides system control and chip configuration
23 - const: fsl,imx7ulp-sim
37 sim@410a3000 {
38 compatible = "fsl,imx7ulp-sim", "syscon";
/freebsd/sys/dev/smartpqi/
H A Dsmartpqi_cam.c33 * Set cam sim properties of the smartpqi adapter.
36 update_sim_properties(struct cam_sim *sim, struct ccb_pathinq *cpi) in update_sim_properties() argument
40 cam_sim_softc(sim); in update_sim_properties()
59 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN-1); 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()
124 cam_sim_path(softs->os_specific.sim), in os_add_device()
150 cam_sim_path(softs->os_specific.sim), in os_remove_device()
709 cam_sim_path(softs->os_specific.sim), target, lun); in smartpqi_lun_rescan()
805 pqisrc_io_start(struct cam_sim *sim, union ccb *ccb) in pqisrc_io_start() argument
[all …]
/freebsd/sys/dev/ufshci/
H A Dufshci_sim.c19 #define sim2ctrlr(sim) ((struct ufshci_controller *)cam_sim_softc(sim)) argument
76 ufshchi_sim_scsiio(struct cam_sim *sim, union ccb *ccb) in ufshchi_sim_scsiio() argument
98 ctrlr = sim2ctrlr(sim); in ufshchi_sim_scsiio()
194 ufshci_cam_action(struct cam_sim *sim, union ccb *ccb) in ufshci_cam_action() argument
196 struct ufshci_controller *ctrlr = sim2ctrlr(sim); in ufshci_cam_action()
207 ufshchi_sim_scsiio(sim, ccb); in ufshci_cam_action()
224 strlcpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in ufshci_cam_action()
225 cpi->unit_number = cam_sim_unit(sim); in ufshci_cam_action()
287 ufshci_cam_poll(struct cam_sim *sim) in ufshci_cam_poll() argument
289 struct ufshci_controller *ctrlr = sim2ctrlr(sim); in ufshci_cam_poll()
[all …]
/freebsd/share/examples/scsi_target/
H A Dscsi_target.854 the SIM using CCBs exchanged via
70 Enable 16 addresses if supported by the SIM.
73 Enable synchronous transfers if supported by the SIM.
76 Enable tagged queuing if supported by the SIM.
79 Enable 16 or 32 bit wide transfers if supported by the SIM.
119 checks the SIM for the requested capability before enabling target mode.
139 16-bit wide transfers will be used if the SIM supports them.
/freebsd/sys/dev/ahci/
H A Dahciem.c56 static void ahciemaction(struct cam_sim *sim, union ccb *ccb);
57 static void ahciempoll(struct cam_sim *sim);
114 /* Create the device queue for our SIM. */ in ahci_em_attach()
117 device_printf(dev, "Unable to allocate SIM queue\n"); in ahci_em_attach()
121 /* Construct SIM entry */ in ahci_em_attach()
122 enc->sim = cam_sim_alloc(ahciemaction, ahciempoll, "ahciem", enc, in ahci_em_attach()
125 if (enc->sim == NULL) { in ahci_em_attach()
127 device_printf(dev, "Unable to allocate SIM\n"); in ahci_em_attach()
131 if (xpt_bus_register(enc->sim, dev, 0) != CAM_SUCCESS) { in ahci_em_attach()
136 if (xpt_create_path(&enc->path, /*periph*/NULL, cam_sim_path(enc->sim), in ahci_em_attach()
[all …]

12345678910>>...12