Lines Matching defs:ref

363 	uint32_t 	ref;		/* ref (see below) state */
364 uint32_t cnt; /* ref count */
446 #define REF_URI 0x80000000 /* & ref = node_t URI hashed */
447 #define REF_PHYS 0x40000000 /* & ref = phys mapping in-use */
448 #define REF_VIRT 0x20000000 /* & ref = virt mapping in-use */
449 #define REF_CKSUM 0x10000000 /* & ref = checksum mapping in-use */
450 #define REF_KMEM 0x08000000 /* & ref = kmem mapped (PHYS|VIRT) */
451 #define REF_DONE 0x04000000 /* & ref = node_t fill is done */
452 #define REF_SAFED 0x02000000 /* & ref = node_t not safe for use */
453 #define REF_FILE 0x01000000 /* & ref = node_t filename hashed */
454 #define REF_RESP 0x00800000 /* & ref = node_t response header parsed */
455 #define REF_NOLRU 0x00400000 /* & ref = node_t not safe for lru reclaim */
456 #define REF_MISS 0x00200000 /* & ref = node_t is/will missed() proc */
457 #define REF_ONPLRU 0x00100000 /* & ref = node_t is on Phys LRU */
458 #define REF_ONVLRU 0x00080000 /* & ref = node_t is on Virt LRU */
459 #define REF_PREEMPT 0x00040000 /* & ref = node_t processing preempted */
460 #define REF_CTAG 0x00020000 /* & ref = node_t CTAG hashed */
461 #define REF_UPCALL 0x00010000 /* & ref = node_t upcall not yet complete */
462 #define REF_OWNED 0x00008000 /* & ref = node_t owned (won't be freed) */
463 #define REF_ERROR 0x00004000 /* & ref = node_t errored */
464 #define REF_VNODE 0x00002000 /* & ref = node_t vnode hashed */
465 #define REF_NCAFS 0x00001000 /* & ref = node_t is NCAfs required */
466 #define REF_SEGMAP 0x00000800 /* & ref = segmapped (PHYS|VIRT) */
467 #define REF_UNUSED 0x000007FF /* & ref = UNUSED */
519 * can only be used when the caller can gaurantee that it's not the last ref
521 * ref the node_t may no longer exist. The new macro is NODE_REFRELE_LOCKED.
529 if ((np)->ref & REF_OWNED) { \
534 (np)->ref &= ~REF_OWNED; \
546 if (!((np)->ref & REF_OWNED)) { \
551 (np)->ref |= REF_OWNED; \
572 if (((np)->ref & REF_OWNED) && (np)->cnt == 1) \
581 ASSERT(((np)->ref & REF_OWNED) == 0); \
594 if ((np)->ref & REF_OWNED) \
596 if (((np)->ref & REF_OWNED) && _cnt == 0) \
630 unsigned ref;
701 _p->ref = (p) ? (p)->ref : 0; \
731 int ref;
792 _p->ref = _req_np ? _req_np->ref : 0; \
1149 int32_t ref; /* Reference counter */
1210 node_t *xmit_refed; /* have a ref to the uri node_t */
1217 node_t *np; /* node_t pointer for ref */
1222 node_t *refed; /* have a ref to the node_t */
1467 int ref;
1486 #define NCA_CONN_T_REFINIT 0x10000000 /* CONN_REF init() |ref value */
1487 #define NCA_CONN_T_REFINIT1 0x11000000 /* CONN_REF init() |ref value */
1488 #define NCA_CONN_T_REFINIT2 0x12000000 /* CONN_REF init() |ref value */
1490 #define NCA_CONN_T_REFHOLD 0x1A000000 /* CONN_REFHOLD() | ref value */
1491 #define NCA_CONN_T_REFRELE 0x1F000000 /* CONN_REFRELE() | ref value */
1549 _p->ref = (p)->ref; \
1563 NCA_CONN_T_TRACE((connp), NCA_CONN_T_REFHOLD | ((connp)->ref + 1)); \
1565 if ((connp)->ref <= 0) \
1568 (connp)->ref++; \
1573 NCA_CONN_T_TRACE((connp), NCA_CONN_T_REFRELE | ((connp)->ref - 1)); \
1576 if ((connp)->ref == 1) \
1580 if ((connp)->ref < 1) \
1584 if ((connp)->ref <= 0) \
1588 (connp)->ref--; \
1589 if ((connp)->ref == 0) { \
1590 /* Last ref of a nca_conn_t, so free it */ \