Lines Matching refs:instance
18 #define GETSOFTC(instance) ((amd64_gart_softstate_t *) \
19 ddi_get_soft_state(amd64_gart_glob_soft_handle, (instance)));
135 int instance, rval = DDI_FAILURE;
141 instance = DEV2INST(dev);
142 st = ddi_get_soft_state(amd64_gart_glob_soft_handle, instance);
155 instance = DEV2INST(dev);
156 *resultp = (void *)(uintptr_t)instance;
169 int instance;
186 instance = ddi_get_instance(dip);
188 if (ddi_soft_state_zalloc(amd64_gart_glob_soft_handle, instance) !=
192 sc = ddi_get_soft_state(amd64_gart_glob_soft_handle, instance);
197 ddi_soft_state_free(amd64_gart_glob_soft_handle, instance);
200 (void) sprintf(buf, "%s-%d", AMD64GART_NAME, instance);
202 INST2NODENUM(instance), DDI_NT_AGP_CPUGART, 0);
205 ddi_soft_state_free(amd64_gart_glob_soft_handle, instance);
215 int instance;
231 instance = ddi_get_instance(dip);
232 sc = ddi_get_soft_state(amd64_gart_glob_soft_handle, instance);
234 (void) sprintf(buf, "%s-%d", AMD64GART_NAME, instance);
238 ddi_soft_state_free(amd64_gart_glob_soft_handle, instance);
248 int instance;
257 instance = DEV2INST(dev);
258 sc = GETSOFTC(instance);
326 int instance;
332 instance = DEV2INST(*dev);
333 sc = GETSOFTC(instance);
345 int instance;
348 instance = DEV2INST(dev);
349 sc = GETSOFTC(instance);