Lines Matching refs:inst
113 #define getsoftc(inst) ((struct epic_softc *)ddi_get_soft_state(statep, \
114 (inst)))
171 int inst;
175 inst = (getminor((dev_t)arg));
179 if ((softc = getsoftc(inst)) == NULL) {
187 *result = (void *)(uintptr_t)inst;
200 int inst;
209 inst = ddi_get_instance(dip);
210 (void) sprintf(name, "env-monitor%d", inst);
211 minor = inst;
215 "ddi_create_minor_node() failed for inst %d\n",
216 inst);
221 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) {
223 "for inst %d\n", inst);
228 if ((softc = getsoftc(inst)) == NULL) {
263 ddi_soft_state_free(statep, inst);
273 int inst;
278 inst = ddi_get_instance(dip);
279 if ((softc = getsoftc(inst)) == NULL)
287 ddi_soft_state_free(statep, inst);
307 int inst = getminor(*devp);
309 return (getsoftc(inst) == NULL ? ENXIO : 0);
320 int inst = getminor(dev);
322 return (getsoftc(inst) == NULL ? ENXIO : 0);
332 int inst;
336 inst = getminor(dev);
337 if ((softc = getsoftc(inst)) == NULL)