Lines Matching defs:minor

338 		di_minor_t	minor = DI_MINOR_NIL;
340 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) {
341 if (opts.o_devt == di_minor_devt(minor)) {
417 minor_displayed(di_minor_t minor)
419 long data = (long)di_minor_private_get(minor);
424 minor_displayed_set(di_minor_t minor)
426 long data = (long)di_minor_private_get(minor);
428 di_minor_private_set(minor, (void *)data);
432 minor_displayed_clear(di_minor_t minor)
434 long data = (long)di_minor_private_get(minor);
436 di_minor_private_set(minor, (void *)data);
440 minor_ptr(di_minor_t minor)
442 long data = (long)di_minor_private_get(minor);
447 minor_ptr_set(di_minor_t minor, void *ptr)
449 long data = (long)di_minor_private_get(minor);
451 di_minor_private_set(minor, (void *)data);
548 di_minor_t minor;
571 * associated with devinfo (not minor).
578 * Property has a minor association, see if
579 * we have a minor with this dev_t. If there
580 * is no such minor we print the property now
583 minor = DI_MINOR_NIL;
584 while ((minor = di_minor_next((di_node_t)node,
585 minor)) != DI_MINOR_NIL) {
586 if (di_minor_devt(minor) == pdev)
589 if (minor == DI_MINOR_NIL)
594 * associated with a specific matching minor
655 /* print the major and minor numbers for a device property */
662 (uint_t)major(pdev), (uint_t)minor(pdev));
1105 dump_minor_data_paths(int ilev, di_minor_t minor,
1111 /* get the path to the device and the minor node name */
1112 if ((path = di_devfs_minor_path(minor)) == NULL)
1115 /* display the path to this minor node */
1121 /* get the device minor node information */
1122 spec_type = di_minor_spectype(minor);
1123 switch (di_minor_type(minor)) {
1125 type = "minor";
1141 /* display the device minor node information */
1146 /* display all the devlinks for this device minor node */
1157 di_minor_t minor, minor_head, minor_tail, minor_prev, minor_walk;
1160 /* if there are no minor nodes, bail */
1165 * here we want to create lists of minor nodes with the same
1166 * dev_t. to do this we first sort all the minor nodes by devt.
1170 * have that many minor nodes. also we're doing this as we're
1175 minor_head = minor_tail = minor = DI_MINOR_NIL;
1176 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) {
1177 dev_t dev = di_minor_devt(minor);
1179 /* skip /pseudo/clone@0 minor nodes */
1183 minor_ptr_set(minor, DI_MINOR_NIL);
1185 /* this is the first minor node we're looking at */
1186 minor_head = minor_tail = minor;
1196 minor_ptr_set(minor, minor_head);
1197 minor_head = minor;
1208 minor_ptr_set(minor, minor_walk);
1209 minor_ptr_set(minor_prev, minor);
1211 minor_tail = minor;
1219 * now that we have a list of minor nodes sorted by devt
1221 * to create circular lists of minor nodes with matching devts.
1264 * minor node (i.e. if it's bound to a dev_t) and
1266 * minor node pathing information.
1270 di_minor_t minor = DI_MINOR_NIL;
1273 (uint_t)major(devt), (uint_t)minor(devt));
1275 /* display paths to the src devt minor node */
1276 while (minor = di_minor_next(node, minor)) {
1277 if (devt != di_minor_devt(minor))
1281 (spec_type != di_minor_spectype(minor)))
1284 dump_minor_data_paths(ilev + 1, minor, devlink_hdl);
1295 * This device lnode is not did not have any minor node
1366 di_minor_t minor, minor_next;
1372 * first go through and mark all lnodes and minor nodes for this
1378 minor = DI_MINOR_NIL;
1379 while (minor = di_minor_next(node, minor)) {
1380 minor_displayed_clear(minor);
1384 * when we display the minor nodes we want to coalesce nodes
1386 * lists of minor nodes with the same devt.
1390 /* now we display the driver defined minor nodes */
1392 minor = DI_MINOR_NIL;
1393 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) {
1397 * skip /pseudo/clone@0 minor nodes.
1399 * since these minor nodes are associated with a driver
1404 devt = di_minor_devt(minor);
1409 if (minor_displayed(minor))
1418 /* display the device minor node information */
1421 (uint_t)major(devt), (uint_t)minor(devt));
1423 minor_next = minor;
1425 /* display device minor node path info */
1432 } while (minor_next != minor);
1434 /* display who has this device minor node open */
1447 * minor node does not exist for the opened devt
1465 /* display the device minor node information */
1469 (uint_t)major(devt), (uint_t)minor(devt));
1474 /* display who has this cloned device minor node open */
1499 * we won't display this link while dumping minor node