Lines Matching refs:instance
174 int instance = getminor((dev_t)arg);
180 if ((softc = getsoftc(instance)) == NULL) {
188 *result = (void *)(uintptr_t)instance;
203 int instance;
211 /* Allocate and get the soft state structure for this instance. */
213 instance = ddi_get_instance(dip);
214 DBG(dip, "attach: instance is %d", instance, 0, 0, 0, 0);
215 if (ddi_soft_state_zalloc(statep, instance) != DDI_SUCCESS)
217 softc = getsoftc(instance);
260 instance, NULL, NULL) == DDI_FAILURE) {
283 ddi_soft_state_free(statep, instance);
293 int instance;
298 instance = ddi_get_instance(dip);
299 DBG(dip, "detach: instance is %d", instance, 0, 0, 0, 0);
300 if ((softc = getsoftc(instance)) == NULL)
304 ddi_soft_state_free(statep, instance);
322 int instance = getminor(*devp);
324 DBG(NULL, "open: instance is %d", instance, 0, 0, 0, 0);
325 return (getsoftc(instance) == NULL ? ENXIO : 0);
333 int instance = getminor(dev);
335 DBG(NULL, "close: instance is %d", instance, 0, 0, 0, 0);
336 return (getsoftc(instance) == NULL ? ENXIO : 0);
345 int instance = getminor(dev);
346 struct gpio_softc *softc = getsoftc(instance);
350 DBG(softc->gp_dip, "ioctl: instance is %d", instance, 0, 0, 0, 0);
366 /* Grap the instance's mutex to insure exclusive access. */