Lines Matching defs:refcount
3162 unsigned int refcount;
3167 const char *refcount_path = "/testcase-data/refcount-node";
3173 * - Decrementing refcount to zero via of_node_put() should cause the
3177 * - Decrementing refcount past zero should result in additional
3193 refcount = kref_read(&np->kobj.kref);
3194 if (refcount == 1)
3200 EXPECT_BEGIN(KERN_INFO, "OF: ERROR: of_node_release() detected bad of_node_put() on /testcase-data/refcount-node");
3203 * refcount is now one, decrementing to zero will result in a call to
3207 unittest(1, "/testcase-data/refcount-node is one");
3210 EXPECT_END(KERN_INFO, "OF: ERROR: of_node_release() detected bad of_node_put() on /testcase-data/refcount-node");
3226 /* refcount is now zero, this should fail */
3227 unittest(1, "/testcase-data/refcount-node is zero");
3244 unittest(1, "/testcase-data/refcount-node is zero, second time");
3253 * refcount of zero will trigger stack traces from any further
3254 * attempt to of_node_get() node "refcount-node". One example of
3259 * Prevent the stack trace by removing node "refcount-node" from
3265 * remove child refcount-node. This is ignoring all proper methods
3277 if (!strcmp(prev_sibling->full_name, "refcount-node")) {
3282 if (!strcmp(next_sibling->full_name, "refcount-node"))