Lines Matching defs:inst
117 #define getsoftc(inst) ((struct pic_softc *)ddi_get_soft_state(statep, (inst)))
174 int inst;
178 inst = PIC_MINOR_TO_INST(getminor((dev_t)arg));
182 if ((softc = getsoftc(inst)) == NULL) {
190 *result = (void *)((uintptr_t)inst);
203 int inst;
214 inst = ddi_get_instance(dip);
215 if (inst >= MAX_PIC_INSTANCES) {
220 (void) sprintf(name, "env-monitor%d", inst);
221 minor = PIC_INST_TO_MINOR(inst) | PIC_UNIT_TO_MINOR(0);
225 "ddi_create_minor_node() failed for inst %d\n",
226 inst);
231 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS) {
233 "for inst %d\n", inst);
238 softc = getsoftc(inst);
262 minor = PIC_INST_TO_MINOR(inst) | PIC_UNIT_TO_MINOR(i);
267 ddi_driver_name(dip), inst);
289 ddi_soft_state_free(statep, inst);
299 int inst;
304 inst = ddi_get_instance(dip);
305 if ((softc = getsoftc(inst)) == NULL)
311 ddi_soft_state_free(statep, inst);
327 int inst = PIC_MINOR_TO_INST(getminor(*devp));
329 return (getsoftc(inst) == NULL ? ENXIO : 0);
336 int inst = PIC_MINOR_TO_INST(getminor(dev));
338 return (getsoftc(inst) == NULL ? ENXIO : 0);
345 int inst;
351 inst = PIC_MINOR_TO_INST(getminor(dev));
352 if ((softc = getsoftc(inst)) == NULL)