Lines Matching defs:inst
139 #define getsoftc(inst) ((struct mem_cache_softc *)ddi_get_soft_state(statep,\
140 (inst)))
199 int inst;
203 inst = getminor((dev_t)arg);
207 if ((softc = getsoftc(inst)) == NULL) {
215 *result = (void *)((uintptr_t)inst);
228 int inst;
234 inst = ddi_get_instance(dip);
235 if (inst >= MAX_MEM_CACHE_INSTANCES) {
239 (void) sprintf(name, MEM_CACHE_DRIVER_NAME"%d", inst);
242 inst,
251 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) {
253 "for inst %d\n", inst);
258 softc = getsoftc(inst);
278 ddi_soft_state_free(statep, inst);
288 int inst;
293 inst = ddi_get_instance(dip);
294 if ((softc = getsoftc(inst)) == NULL)
299 ddi_soft_state_free(statep, inst);
315 int inst = getminor(*devp);
317 return (getsoftc(inst) == NULL ? ENXIO : 0);
324 int inst = getminor(dev);
326 return (getsoftc(inst) == NULL ? ENXIO : 0);
904 int inst;
911 inst = getminor(dev);
912 if ((softc = getsoftc(inst)) == NULL)