Lines Matching defs:instance
490 int rv = 0, instance;
518 instance = SBD_GET_MINOR2INST(getminor(dev));
519 if ((softsp = (sbd_softstate_t *)GET_SOFTC(instance)) == NULL) {
522 f, instance);
606 sbd_setup_instance(int instance, dev_info_t *root, int max_boards, int wnode,
621 if (ALLOC_SOFTC(instance) != DDI_SUCCESS) {
624 f, instance);
630 softsp = (sbd_softstate_t *)GET_SOFTC(instance);
634 "sbd:%s:%d: failed to get soft-state instance",
635 f, instance);
643 f, instance);
661 FREE_SOFTC(instance);
667 sbd_teardown_instance(int instance, caddr_t sbdp_arg)
674 softsp = (sbd_softstate_t *)GET_SOFTC(instance);
682 FREE_SOFTC(instance);