test_and_clear_bit
if (test_and_clear_bit(BNXT_STATE_FW_RESET_DET, &bp->state)) {
if (test_and_clear_bit(BNXT_FW_RESET_NOTIFY_SP_EVENT, &bp->sp_event)) {
if (test_and_clear_bit(BNXT_FW_EXCEPTION_SP_EVENT, &bp->sp_event)) {
if (test_and_clear_bit(BNXT_RE_FLAG_STATS_CTX_ALLOC, &rdev->flags)) {
test_and_clear_bit(BNXT_RE_FLAG_STATS_CTX2_ALLOC, &rdev->flags);
if (test_and_clear_bit(BNXT_RE_FLAG_DEV_LIST_INITIALIZED,
if (test_and_clear_bit(BNXT_RE_FLAG_WORKER_REG, &rdev->flags)) {
if (test_and_clear_bit(BNXT_RE_FLAG_SETUP_NQ, &rdev->flags))
if (test_and_clear_bit(BNXT_RE_FLAG_TBLS_ALLOCINIT, &rdev->flags))
if (test_and_clear_bit(BNXT_RE_FLAG_RCFW_CHANNEL_INIT, &rdev->flags)) {
if (test_and_clear_bit(BNXT_RE_FLAG_ALLOC_CTX, &rdev->flags))
if (test_and_clear_bit(BNXT_RE_FLAG_RCFW_CHANNEL_EN, &rdev->flags))
if (test_and_clear_bit(BNXT_RE_FLAG_NET_RING_ALLOC, &rdev->flags))
if (test_and_clear_bit(BNXT_RE_FLAG_ALLOC_RCFW, &rdev->flags))
if (test_and_clear_bit(BNXT_RE_FLAG_GOT_MSIX, &rdev->flags))
if (test_and_clear_bit(BNXT_RE_FLAG_NETDEV_REGISTERED,
test_and_clear_bit(qid, &qs->txq_stopped))
test_and_clear_bit(TXQ_CTRL, &qs->txq_stopped))
test_and_clear_bit(TXQ_OFLD, &qs->txq_stopped))
test_and_clear_bit(TXQ_OFLD, &qs->txq_stopped)) {
test_and_clear_bit(TXQ_CTRL, &qs->txq_stopped)) {
return test_and_clear_bit(CQ_ARMED, &cq->flags);
return (test_and_clear_bit(bit, var));
#define OSAL_TEST_AND_CLEAR_BIT test_and_clear_bit
if (test_and_clear_bit(IPOIB_FLAG_INITIALIZED, &tx->flags)) {
if (test_and_clear_bit(IPOIB_FLAG_INITIALIZED, &tx->flags)) {
if (test_and_clear_bit(IPOIB_FLAG_INITIALIZED, &tx->flags)) {
status = test_and_clear_bit(IPOIB_MCAST_FLAG_BUSY,
status = test_and_clear_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags);
if (test_and_clear_bit(IPOIB_MCAST_FLAG_BUSY, &mcast->flags))
if (test_and_clear_bit(IPOIB_MCAST_FLAG_ATTACHED, &mcast->flags)) {