Lines Matching defs:minor

727 	 *	 ddi_create_minor_node() the minor number argument is
730 * minor of zero.
1300 minor_t minor = getminor((dev_t)arg);
1312 if (minor == GLD_USE_STYLE2) {
1314 * Style 2: this minor number does not correspond to
1318 } else if (minor <= GLD_MAX_STYLE1_MINOR) {
1319 /* Style 1: calculate the PPA from the minor */
1321 GLD_STYLE1_MINOR_TO_PPA(minor);
1341 minor_t minor = getminor(dev);
1349 if (minor == GLD_USE_STYLE2) {
1351 * Style 2: this minor number does not correspond to
1373 * found the minor. Maybe we should associate streams that are
1376 * minor node for the generic device.
1387 if (minor <= GLD_MAX_STYLE1_MINOR) {
1389 if (minor == GLD_STYLE1_PPA_TO_MINOR(mac->gldm_ppa)) {
1404 if (minor == str->gld_minor) {
1430 minor_t minor = getminor(*dev);
1436 if (minor > GLD_MAX_STYLE1_MINOR)
1456 if (minor == GLD_USE_STYLE2)
1459 cmn_err(CE_NOTE, "gld_open(%p, Style 1, minor = %d)",
1460 (void *)q, minor);
1478 * we must atomically find a free minor number and add the stream
1480 * determine which minor numbers are free.
1484 /* find a free minor device number for the clone */
1494 cmn_err(CE_NOTE, "gld_open() gld ptr: %p minor: %d",
1498 if (minor == GLD_USE_STYLE2) {
1514 ppa = GLD_STYLE1_MINOR_TO_PPA(minor);
3098 cmn_err(CE_NOTE, "gld_passon: q: %p mblk: %p minor: %d sap: %x",
5625 * Returns a minor number currently unused by any stream in the current
5634 int minor;
5645 for (minor = GLD_MIN_CLONE_MINOR; minor <= GLD_MAX_CLONE_MINOR;
5646 minor++) {
5651 if (minor == next->gld_minor)
5673 if (minor == next->gld_minor)
5680 return (minor);
5685 cmn_err(CE_WARN, "GLD ran out of minor numbers for %s",