Lines Matching refs:inst
150 int inst = getminor((dev_t)arg);
157 if ((softc = getsoftc(inst)) == NULL) {
166 *result = (void *)(uintptr_t)inst;
180 int inst;
187 inst = ddi_get_instance(dip);
189 * Create minor node. The minor device number, inst, has no
193 (void) sprintf(name, "tod%d", inst);
194 if (ddi_create_minor_node(dip, name, S_IFCHR, inst,
201 if (ddi_soft_state_zalloc(statep, inst) != DDI_SUCCESS)
204 softc = getsoftc(inst);
212 inst = ddi_get_instance(dip);
213 softc = getsoftc(inst);
226 ddi_soft_state_free(statep, inst);
236 int inst;
242 inst = ddi_get_instance(dip);
243 if ((softc = getsoftc(inst)) == NULL)
249 ddi_soft_state_free(statep, inst);
254 inst = ddi_get_instance(dip);
255 softc = getsoftc(inst);
271 int inst = getminor(*devp);
273 return (getsoftc(inst) == NULL ? ENXIO : 0);
281 int inst = getminor(dev);
283 return (getsoftc(inst) == NULL ? ENXIO : 0);
291 int inst = getminor(dev);
295 if ((softc = getsoftc(inst)) == NULL)