Lines Matching defs:psim
1522 static void arcmsr_poll(struct cam_sim *psim)
1527 acb = (struct AdapterControlBlock *)cam_sim_softc(psim);
1754 if (xpt_create_path(&path, NULL, cam_sim_path(acb->psim), target, lun) != CAM_REQ_CMP)
2967 xpt_freeze_simq(acb->psim, 1);
3100 static void arcmsr_action(struct cam_sim *psim, union ccb *pccb)
3104 acb = (struct AdapterControlBlock *) cam_sim_softc(psim);
3140 xpt_freeze_simq(acb->psim, 1);
3156 cpi->bus_id = cam_sim_bus(psim);
3159 strlcpy(cpi->dev_name, cam_sim_name(psim), DEV_IDLEN);
3160 cpi->unit_number = cam_sim_unit(psim);
4845 acb->psim = cam_sim_alloc(arcmsr_action, arcmsr_poll, "arcmsr", acb, unit, &acb->isr_lock, 1, ARCMSR_MAX_OUTSTANDING_CMD, devq);
4847 acb->psim = cam_sim_alloc(arcmsr_action, arcmsr_poll, "arcmsr", acb, unit, 1, ARCMSR_MAX_OUTSTANDING_CMD, devq);
4849 if(acb->psim == NULL) {
4855 if(xpt_bus_register(acb->psim, dev, 0) != CAM_SUCCESS) {
4857 if(xpt_bus_register(acb->psim, 0) != CAM_SUCCESS) {
4862 if(xpt_create_path(&acb->ppath, /* periph */ NULL, cam_sim_path(acb->psim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) {
4873 csa.callback_arg = acb->psim;
4889 xpt_bus_deregister(cam_sim_path(acb->psim));
4891 cam_sim_free(acb->psim, /* free_simq */ TRUE);
5068 xpt_bus_deregister(cam_sim_path(acb->psim));
5069 cam_sim_free(acb->psim, TRUE);