Lines Matching refs:psim
1481 static void arcmsr_poll(struct cam_sim *psim)
1486 acb = (struct AdapterControlBlock *)cam_sim_softc(psim);
1711 if (xpt_create_path(&path, NULL, cam_sim_path(acb->psim), target, lun) != CAM_REQ_CMP)
3004 xpt_freeze_simq(acb->psim, 1);
3137 static void arcmsr_action(struct cam_sim *psim, union ccb *pccb)
3141 acb = (struct AdapterControlBlock *) cam_sim_softc(psim);
3177 xpt_freeze_simq(acb->psim, 1);
3193 cpi->bus_id = cam_sim_bus(psim);
3196 strlcpy(cpi->dev_name, cam_sim_name(psim), DEV_IDLEN);
3197 cpi->unit_number = cam_sim_unit(psim);
4943 acb->psim = cam_sim_alloc(arcmsr_action, arcmsr_poll, "arcmsr", acb, unit, &acb->isr_lock, 1, ARCMSR_MAX_OUTSTANDING_CMD, devq);
4944 if(acb->psim == NULL) {
4949 if(xpt_bus_register(acb->psim, dev, 0) != CAM_SUCCESS) {
4953 if(xpt_create_path(&acb->ppath, /* periph */ NULL, cam_sim_path(acb->psim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
4964 csa.callback_arg = acb->psim;
4975 xpt_bus_deregister(cam_sim_path(acb->psim));
4977 cam_sim_free(acb->psim, /* free_simq */ TRUE);
5158 xpt_bus_deregister(cam_sim_path(acb->psim));
5159 cam_sim_free(acb->psim, TRUE);