Lines Matching refs:pcnp
539 read_nodes(struct di_devlink_handle *hdp, cache_node_t *pcnp, uint32_t nidx) in read_nodes() argument
551 if ((pcnp == NULL) ^ (nidx == DB_HDR(hdp)->root_idx)) { in read_nodes()
565 cnp = node_insert(hdp, pcnp, path, INSERT_HEAD); in read_nodes()
587 read_minors(struct di_devlink_handle *hdp, cache_node_t *pcnp, uint32_t nidx) in read_minors() argument
596 if (pcnp == NULL) { in read_minors()
608 cmnp = minor_insert(hdp, pcnp, name, nodetype, NULL); in read_minors()
2645 cache_node_t *pcnp, in node_insert() argument
2668 cnp->parent = pcnp; in node_insert()
2670 if (pcnp == NULL) { in node_insert()
2675 cnp->sib = pcnp->child; in node_insert()
2676 pcnp->child = cnp; in node_insert()
2678 CACHE_LAST(hdp)->node->parent == pcnp && in node_insert()
2686 for (pp = &pcnp->child; *pp != NULL; pp = &(*pp)->sib) in node_insert()
2701 cache_node_t *pcnp, in minor_insert() argument
2708 if (pcnp == NULL || name == NULL) { in minor_insert()
2736 cmnp->node = pcnp; in minor_insert()
2740 cmnp->sib = pcnp->minor; in minor_insert()
2741 pcnp->minor = cmnp; in minor_insert()