Lines Matching refs:ref
563 if (!atomic_read(&er->ref) || er->config == config) { in nhmex_mbox_get_shared_reg()
564 atomic_inc(&er->ref); in nhmex_mbox_get_shared_reg()
590 if (__BITS_VALUE(atomic_read(&er->ref), idx, 8)) { in nhmex_mbox_get_shared_reg()
597 if (!atomic_read(&er->ref) || !((er->config ^ config) & mask)) { in nhmex_mbox_get_shared_reg()
598 atomic_add(1 << (idx * 8), &er->ref); in nhmex_mbox_get_shared_reg()
620 atomic_dec(&er->ref); in nhmex_mbox_put_shared_reg()
626 atomic_sub(1 << (idx * 8), &er->ref); in nhmex_mbox_put_shared_reg()
1004 if (!atomic_read(&er->ref) || er->config == reg1->config) { in nhmex_rbox_get_constraint()
1005 atomic_inc(&er->ref); in nhmex_rbox_get_constraint()
1015 if (!__BITS_VALUE(atomic_read(&er->ref), idx - 2, 8) || in nhmex_rbox_get_constraint()
1017 atomic_add(1 << ((idx - 2) * 8), &er->ref); in nhmex_rbox_get_constraint()
1023 if (!atomic_read(&er->ref) || in nhmex_rbox_get_constraint()
1027 atomic_inc(&er->ref); in nhmex_rbox_get_constraint()
1079 atomic_sub(1 << ((idx - 2) * 8), &er->ref); in nhmex_rbox_put_constraint()
1081 atomic_dec(&er->ref); in nhmex_rbox_put_constraint()