Lines Matching defs:instance
127 * to get the soft state structure of a specific instance
130 rmc_comm_getstate(dev_info_t *dip, int instance, const char *caller)
138 * Use the instance number from the <dip>; also,
141 instance = ddi_get_instance(dip);
150 instance = -1;
153 if (instance >= 0)
154 rcs = ddi_get_soft_state(rmc_comm_statep, instance);
707 rmc_comm_unattach(struct rmc_comm_state *rcs, dev_info_t *dip, int instance,
736 ddi_soft_state_free(rmc_comm_statep, instance);
748 int instance;
751 * only allow one instance
753 instance = ddi_get_instance(dip);
754 if (instance != 0)
762 if ((rcs = rmc_comm_getstate(dip, instance,
798 if (ddi_soft_state_zalloc(rmc_comm_statep, instance) != DDI_SUCCESS)
800 if ((rcs = rmc_comm_getstate(dip, instance, "rmc_comm_attach")) ==
802 rmc_comm_unattach(rcs, dip, instance, 0, 0, 0);
836 rmc_comm_unattach(rcs, dip, instance, 0, 0, 0);
849 rmc_comm_unattach(rcs, dip, instance, 0, 1, 1);
857 rcs->instance = instance;
879 int instance;
881 instance = ddi_get_instance(dip);
882 if ((rcs = rmc_comm_getstate(dip, instance, "rmc_comm_detach")) == NULL)
918 rmc_comm_unattach(rcs, dip, instance, 1, 1, 1);