__test_and_clear_bit
if (unlikely(__test_and_clear_bit(__ffs(HCR_VSE), hcr)))
if (__test_and_clear_bit(src, ppc_lost_interrupts))
if (__test_and_clear_bit(src, ppc_lost_interrupts))
if (__test_and_clear_bit(GLOBAL_STATUS_BUFFER_OVF_BIT, (unsigned long *)&status)) {
if (__test_and_clear_bit(GLOBAL_STATUS_ARCH_PEBS_THRESHOLD_BIT,
if (__test_and_clear_bit(GLOBAL_STATUS_TRACE_TOPAPMI_BIT, (unsigned long *)&status)) {
if (__test_and_clear_bit(GLOBAL_STATUS_PERF_METRICS_OVF_BIT, (unsigned long *)&status)) {
if (__test_and_clear_bit(idx, per_cpu(p4_running, smp_processor_id())))
if (__test_and_clear_bit(hwc->idx, box->active_mask)) {
if (__test_and_clear_bit(63, (unsigned long *)&status)) {
if (__test_and_clear_bit(cpu, was_in_debug_nmi))
if (__test_and_clear_bit(KVM_PV_EOI_BIT, this_cpu_ptr(&kvm_apic_eoi)))
if (!__test_and_clear_bit(LSTATE_SSB, &st->local_state))
if (!__test_and_clear_bit(APIC_VECTOR_TO_BIT_NUMBER(vec),
complete = __test_and_clear_bit(NBD_CMD_INFLIGHT,
if (!__test_and_clear_bit(NBD_CMD_INFLIGHT, &cmd->flags)) {
if (!__test_and_clear_bit(I915_SW_FENCE_CHECKED_BIT, &fence->flags))
used = __test_and_clear_bit(comp_wait->ctx_id, cmdq->comp_wait_bitmap);
used = __test_and_clear_bit(idx, res_cb->bitmap);
if (!__test_and_clear_bit(RVT_R_WRID_VALID, &qp->r_aflags))
if (__test_and_clear_bit(FF_EFFECT_ABORTING, &state->flags)) {
__test_and_clear_bit(old_keycode, dev->key)) {
if (__test_and_clear_bit(ns->regs.row + i,
if (__test_and_clear_bit(vid, pf->active_vlans)) {
__test_and_clear_bit(__IDPF_Q_##f, (q)->flags)
if (likely(__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags)))
if (likely(__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags)))
if (__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT,
if (__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags))
if (__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags))
if (__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags)) {
if (__test_and_clear_bit(MLX5E_RQ_FLAG_XDP_XMIT, rq->flags))
if (__test_and_clear_bit(j, picker[i].element))
WARN_ON(!__test_and_clear_bit(tag, ccm->tag_allocator));
if (!__test_and_clear_bit(keyconf->hw_key_idx, mvm->fw_key_table)) {
if (__test_and_clear_bit(id, wl->tx_frames_map)) {
if (!__test_and_clear_bit(hdr->ch, dmux->remote_channels)) {
if (__test_and_clear_bit(i, buf->from_kmem_cache) && data)
if (__test_and_clear_bit(i, mask)) {
outstanding = __test_and_clear_bit(tag, &hba->outstanding_reqs);
if (__test_and_clear_bit(UIO_IRQ_DISABLED, &priv->flags))
if (__test_and_clear_bit(UIO_IRQ_DISABLED, &priv->flags))
if (__test_and_clear_bit(0, &port->write_urbs_free)) {
__test_and_clear_bit((nr), (unsigned long *)(addr))
__test_and_clear_bit((nr) ^ 16, (unsigned long *)(addr))
if (__test_and_clear_bit(NETFS_SREQ_NEED_RETRY, &subreq->flags)) {
__test_and_clear_bit(NETFS_SREQ_BOUNDARY, &to->flags))
if (__test_and_clear_bit(NETFS_SREQ_NEED_RETRY, &subreq->flags)) {
if (__test_and_clear_bit(NFS_CS_CALLBACK, &clp->cl_res_state)) {
if (__test_and_clear_bit(NFS_CS_RENEWD, &clp->cl_res_state))
if (__test_and_clear_bit(NFS_CS_IDMAP, &clp->cl_res_state))
return __test_and_clear_bit(closid, closid_free_map);
return __test_and_clear_bit(nr ^ BITOP_LE_SWIZZLE, addr);
__check_bitop_pr(__test_and_clear_bit);
if (__test_and_clear_bit(idx, base->pending_map)) {
return __test_and_clear_bit(offset, node_marks(node, mark));
changed |= __test_and_clear_bit(order, enabled_orders[m]);
KUNIT_EXPECT_KASAN_FAIL(test, __test_and_clear_bit(nr, addr));
changed |= __test_and_clear_bit(order, huge_mode_orders[idx]);
if (!__test_and_clear_bit(0, (unsigned long *)
if (__test_and_clear_bit(ETHTOOL_LINK_MODE_FEC_NONE_BIT, link_modes))
if (__test_and_clear_bit(ETHTOOL_LINK_MODE_FEC_RS_BIT, link_modes))
if (__test_and_clear_bit(ETHTOOL_LINK_MODE_FEC_BASER_BIT, link_modes))
if (__test_and_clear_bit(ETHTOOL_LINK_MODE_FEC_LLRS_BIT, link_modes))
if (__test_and_clear_bit(MPTCP_CLEAN_UNA, &msk->cb_flags))
if (__test_and_clear_bit(MPTCP_SYNC_STATE, &msk->cb_flags) && msk->first)
if (__test_and_clear_bit(MPTCP_ERROR_REPORT, &msk->cb_flags))
if (__test_and_clear_bit(MPTCP_SYNC_SNDBUF, &msk->cb_flags))
if (__test_and_clear_bit(i, rfkill_sw_pending)) {
c = __test_and_clear_bit(i, rfkill_sw_state);
if (call && __test_and_clear_bit(RXRPC_CALL_CONN_CHALLENGING, &call->flags))
if (__test_and_clear_bit(ix, &tq->segment_lost))
if (__test_and_clear_bit(ix, &tq->segment_retransmitted))
if (__test_and_clear_bit(ix, &tq->segment_retransmitted))
if (__test_and_clear_bit(ix, &tq->segment_lost))
if (__test_and_clear_bit(ix, &tq->segment_lost))
__test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
# define __test_and_clear_bit_le __test_and_clear_bit
#define test_and_clear_bit(nr, addr) __test_and_clear_bit(nr, addr)