Lines Matching refs:psim
1479 static void arcmsr_poll(struct cam_sim *psim)
1484 acb = (struct AdapterControlBlock *)cam_sim_softc(psim);
1709 if (xpt_create_path(&path, NULL, cam_sim_path(acb->psim), target, lun) != CAM_REQ_CMP)
3003 xpt_freeze_simq(acb->psim, 1);
3136 static void arcmsr_action(struct cam_sim *psim, union ccb *pccb)
3140 acb = (struct AdapterControlBlock *) cam_sim_softc(psim);
3176 xpt_freeze_simq(acb->psim, 1);
3192 cpi->bus_id = cam_sim_bus(psim);
3195 strlcpy(cpi->dev_name, cam_sim_name(psim), DEV_IDLEN);
3196 cpi->unit_number = cam_sim_unit(psim);
4942 acb->psim = cam_sim_alloc(arcmsr_action, arcmsr_poll, "arcmsr", acb, unit, &acb->isr_lock, 1, ARCMSR_MAX_OUTSTANDING_CMD, devq);
4943 if(acb->psim == NULL) {
4948 if(xpt_bus_register(acb->psim, dev, 0) != CAM_SUCCESS) {
4952 if(xpt_create_path(&acb->ppath, /* periph */ NULL, cam_sim_path(acb->psim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
4963 csa.callback_arg = acb->psim;
4974 xpt_bus_deregister(cam_sim_path(acb->psim));
4976 cam_sim_free(acb->psim, /* free_simq */ TRUE);
5157 xpt_bus_deregister(cam_sim_path(acb->psim));
5158 cam_sim_free(acb->psim, TRUE);