Lines Matching refs:sim
51 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()
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()
320 mmcnull_handle_mmcio(struct cam_sim *sim, union ccb *ccb) in mmcnull_handle_mmcio() argument
325 sc = cam_sim_softc(sim); in mmcnull_handle_mmcio()
338 mmcnull_action_sd(struct cam_sim *sim, union ccb *ccb) in mmcnull_action_sd() argument
342 sc = cam_sim_softc(sim); in mmcnull_action_sd()
369 strncpy(cpi->dev_name, cam_sim_name(sim), DEV_IDLEN); in mmcnull_action_sd()
370 cpi->unit_number = cam_sim_unit(sim); in mmcnull_action_sd()
371 cpi->bus_id = cam_sim_bus(sim); in mmcnull_action_sd()
416 mmcnull_handle_mmcio(sim, ccb); in mmcnull_action_sd()
434 mmcnull_action_sdio(struct cam_sim *sim, union ccb *ccb) { in mmcnull_action_sdio() argument
435 mmcnull_action_sd(sim, ccb); in mmcnull_action_sdio()
439 mmcnull_poll(struct cam_sim *sim) in mmcnull_poll() argument