Home
last modified time | relevance | path

Searched refs:dminor (Results 1 – 4 of 4) sorted by relevance

/titanic_41/usr/src/uts/common/io/
H A Dptms_conf.c333 minor_t dminor; in pt_ttys_alloc() local
367 dminor = (minor_t)(uintptr_t) in pt_ttys_alloc()
370 if (dminor == 0) { in pt_ttys_alloc()
372 dminor = ptms_grow(); in pt_ttys_alloc()
375 if (dminor == 0) { in pt_ttys_alloc()
385 vmem_free(ptms_minor_arena, (void *)(uintptr_t)dminor, 1); in pt_ttys_alloc()
388 pt->pt_minor = dminor; in pt_ttys_alloc()
394 ASSERT(ptms_slots[dminor - 1] == NULL); in pt_ttys_alloc()
395 ptms_slots[dminor - 1] = pt; in pt_ttys_alloc()
407 ptms_minor2ptty(minor_t dminor) in ptms_minor2ptty() argument
[all …]
H A Dptm.c319 minor_t dminor = getminor(*devp); in ptmopen() local
328 if (!(sflag & CLONEOPEN) && dminor != 0) { in ptmopen()
358 dminor = ptmp->pt_minor; in ptmopen()
361 DDBG("ptmopen(): allocated minor %d\n", dminor); in ptmopen()
391 *devp = makedevice(getmajor(*devp), dminor); in ptmopen()
H A Dpts.c297 minor_t dminor = getminor(*devp); in ptsopen() local
300 DDBG("entering ptsopen(%d)", dminor); in ptsopen()
307 ptsp = ptms_minor2ptty(dminor); in ptsopen()
341 ASSERT(ptsp->pt_minor == dminor); in ptsopen()
/titanic_41/usr/src/uts/common/io/ppp/sppptun/
H A Dsppptun.c274 minor_t dminor; in tuncl_alloc() local
311 dminor = (minor_t)(uintptr_t)vmem_alloc(tcl_minor_arena, 1, in tuncl_alloc()
313 if (dminor == 0) { in tuncl_alloc()
315 dminor = tcl_grow(); in tuncl_alloc()
318 dminor = (minor_t)(uintptr_t)vmem_xalloc(tcl_minor_arena, 1, in tuncl_alloc()
321 if (dminor != 0 && dminor != wantminor) { in tuncl_alloc()
322 vmem_free(tcl_minor_arena, (void *)(uintptr_t)dminor, in tuncl_alloc()
324 dminor = 0; in tuncl_alloc()
328 if (dminor == 0) { in tuncl_alloc()
338 vmem_free(tcl_minor_arena, (void *)(uintptr_t)dminor, 1); in tuncl_alloc()
[all …]