Lines Matching defs:instance
20 /* per-instance context */
135 int instance;
137 instance = getminor(dev);
138 if (ddi_get_soft_state(statep, instance) == NULL)
162 int instance;
164 instance = getminor(dev);
165 if ((sp = ddi_get_soft_state(statep, instance)) == NULL)
185 int instance;
187 instance = getminor(*devp);
188 if ((sp = ddi_get_soft_state(statep, instance)) == NULL)
228 int instance;
230 /* called once per instance with DDI_DETACH,
234 /* instance busy? */
235 instance = ddi_get_instance(dip);
236 if ((sp = ddi_get_soft_state(statep, instance)) == NULL)
244 /* free resources allocated for this instance */
247 ddi_soft_state_free(statep, instance);
262 /* called once per instance with DDI_ATTACH,
264 int instance;
268 instance = ddi_get_instance(dip);
269 if (ddi_soft_state_zalloc(statep, instance) != DDI_SUCCESS) {
272 sp = ddi_get_soft_state(statep, instance);
277 S_IFCHR, instance, DDI_PSEUDO, 0) == DDI_FAILURE) {
278 ddi_soft_state_free(statep, instance);
298 int instance;
303 instance = getminor((dev_t)arg);
304 if ((sp = ddi_get_soft_state(statep, instance)) != NULL) {
314 instance = getminor((dev_t)arg);
315 *resultp = (void *)(uintptr_t)instance;