Lines Matching refs:rpnode
95 sas_rp_tree_insert(rp_tree_t **rproot, rp_tree_t *rpnode);
99 rp_tree_t *rpnode, inputArg_t *input, int gident,
107 rp_tree_t *rpnode, int lident, int gident);
1187 rp_tree_t *rpnode; in handleExpander() local
1213 rpnode = calloc(1, sizeof (rp_tree_t)); in handleExpander()
1214 rpnode->portattr.PortSpecificAttribute.SASPort = in handleExpander()
1215 &rpnode->sasattr; in handleExpander()
1217 portIndex, i, &rpnode->portattr); in handleExpander()
1220 free(rpnode); in handleExpander()
1225 if (rpnode->portattr.PortType == HBA_PORTTYPE_SASEXPANDER) { in handleExpander()
1236 rpnode->sasattr.AttachedSASAddress.wwn, in handleExpander()
1242 rproot = rpnode; in handleExpander()
1250 sas_rp_tree_insert(&rproot, rpnode) != 0) { in handleExpander()
1252 unsolved_head = rpnode; in handleExpander()
1253 unsolved_tail = rpnode; in handleExpander()
1255 rpnode->sibling = unsolved_head; in handleExpander()
1256 unsolved_head = rpnode; in handleExpander()
1302 rpnode = unsolved_head; in handleExpander()
1306 rpnode->sibling = NULL; in handleExpander()
1307 if (sas_rp_tree_insert(&rproot, rpnode) != 0) { in handleExpander()
1308 unsolved_tail->sibling = rpnode; in handleExpander()
1309 unsolved_tail = rpnode; in handleExpander()
1310 if (rpnode == unsolved_sentinel) { in handleExpander()
2408 rp_tree_t *rpnode) in sas_rp_tree_insert() argument
2420 if (rpnode == NULL) { in sas_rp_tree_insert()
2427 *rproot = rpnode; in sas_rp_tree_insert()
2433 wwn3 = rpnode->sasattr.AttachedSASAddress.wwn; in sas_rp_tree_insert()
2440 (void) sas_rp_tree_insert(&(*rproot)->child, rpnode); in sas_rp_tree_insert()
2441 rpnode->parent = *rproot; in sas_rp_tree_insert()
2449 if (rpnode->portattr.PortType != HBA_PORTTYPE_SASEXPANDER) { in sas_rp_tree_insert()
2450 rpnode->sibling = *rproot; in sas_rp_tree_insert()
2451 *rproot = rpnode; in sas_rp_tree_insert()
2460 node_ptr->sibling = rpnode; in sas_rp_tree_insert()
2462 rpnode->parent = (*rproot)->parent; in sas_rp_tree_insert()
2472 ret = sas_rp_tree_insert(&(*rproot)->child, rpnode); in sas_rp_tree_insert()
2477 rpnode); in sas_rp_tree_insert()
2496 rp_tree_t *rpnode, inputArg_t *input, in sas_rp_tree_print() argument
2501 if (rpnode == NULL) in sas_rp_tree_print()
2516 if ((rpnode->portattr.PortType != HBA_PORTTYPE_SASEXPANDER) || in sas_rp_tree_print()
2518 &rpnode->sasattr.LocalSASAddress)) { in sas_rp_tree_print()
2523 portIndex, port, rpnode->child, input, in sas_rp_tree_print()
2529 portIndex, port, rpnode->sibling, input, in sas_rp_tree_print()
2535 if ((rpnode->portattr.PortType == HBA_PORTTYPE_SASEXPANDER) || in sas_rp_tree_print()
2556 ret += sas_print_rpnode(input, rpnode, lident, gident); in sas_rp_tree_print()
2566 if (rpnode->portattr.PortType == in sas_rp_tree_print()
2569 portIndex, port, rpnode->child, in sas_rp_tree_print()
2582 portIndex, port, rpnode->child, input, in sas_rp_tree_print()
2585 portIndex, port, rpnode->sibling, input, in sas_rp_tree_print()
2667 rp_tree_t *rpnode, int lident, int gident) in sas_print_rpnode() argument
2671 if (rpnode->portattr.PortType == HBA_PORTTYPE_SASEXPANDER) { in sas_print_rpnode()
2676 wwnConversion(rpnode->sasattr.LocalSASAddress.wwn)); in sas_print_rpnode()
2681 wwnConversion(rpnode->sasattr.LocalSASAddress.wwn)); in sas_print_rpnode()
2684 if (rpnode->portattr.PortType != HBA_PORTTYPE_SASEXPANDER) { in sas_print_rpnode()
2688 getStateString(rpnode->portattr.PortType, in sas_print_rpnode()
2694 rpnode->portattr.OSDeviceName); in sas_print_rpnode()
2698 getStateString(rpnode->portattr.PortState, in sas_print_rpnode()
2702 rpnode->printed = 1; in sas_print_rpnode()