Searched refs:cmpxchg (Results 101 - 125 of 257) sorted by relevance

1234567891011

/linux-master/drivers/nvme/target/
H A Dfabrics-cmd.c169 old = cmpxchg(&req->sq->ctrl, NULL, ctrl);
/linux-master/net/netfilter/
H A Dnf_bpf_link.c120 if (!cmpxchg(&nf_link->dead, 0, 1)) {
/linux-master/net/core/
H A Dsock_diag.c212 return !cmpxchg((const struct sock_diag_handler **)
/linux-master/arch/s390/kvm/
H A Dgaccess.c298 } while (cmpxchg(&ic->val, old.val, new.val) != old.val);
318 } while (cmpxchg(&ic->val, old.val, new.val) != old.val);
342 } while (cmpxchg(&ic->val, old.val, new.val) != old.val);
358 } while (cmpxchg(&ic->val, old.val, new.val) != old.val);
1149 * cmpxchg_guest_abs_with_key() - Perform cmpxchg on guest absolute address.
1152 * @len: Operand length of the cmpxchg, required: 1 <= len <= 16. Providing a
1166 * * >0: a program interruption code indicating the reason cmpxchg could
/linux-master/arch/riscv/include/asm/
H A Datomic.h19 #include <asm/cmpxchg.h>
/linux-master/arch/x86/events/amd/
H A Dcore.c436 if (cmpxchg(nb->owners + i, event, NULL) == event)
471 * Given that resources are allocated (cmpxchg), they must be
505 old = cmpxchg(nb->owners + idx, NULL, event);
517 cmpxchg(nb->owners + new, event, NULL);
H A Duncore.c165 if (cmpxchg(&ctx->events[i], NULL, event) == NULL) {
199 if (cmpxchg(&ctx->events[i], event, NULL) == event)
/linux-master/kernel/kcsan/
H A Dkcsan_test.c588 KCSAN_EXPECT_READ_BARRIER(cmpxchg(&test_var, 0, 0), true);
633 KCSAN_EXPECT_WRITE_BARRIER(cmpxchg(&test_var, 0, 0), true);
678 KCSAN_EXPECT_RW_BARRIER(cmpxchg(&test_var, 0, 0), true);
/linux-master/arch/powerpc/platforms/powernv/
H A Dpci-ioda-tce.c106 oldtce = be64_to_cpu(cmpxchg(&tmp[n], 0,
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dmcdi.c415 return cmpxchg(&mcdi->state,
426 cmpxchg(&mcdi->state,
458 if (cmpxchg(&mcdi->state,
510 if (cmpxchg(&mcdi->state,
/linux-master/lib/
H A Dlru_cache.c53 * return 0 == cmpxchg(&lc->flags, 0, LC_LOCKED);
59 val = cmpxchg(&lc->flags, 0, LC_LOCKED);
/linux-master/arch/arm/include/asm/
H A Datomic.h16 #include <asm/cmpxchg.h>
/linux-master/arch/powerpc/include/asm/
H A Dcmpxchg.h507 * cmpxchg family don't have order guarantee if cmp part fails, therefore we
509 * cmpxchg() and cmpxchg_acquire(), however we don't do the similar for
755 #include <asm-generic/cmpxchg-local.h>
/linux-master/drivers/phy/renesas/
H A Dphy-rcar-gen2.c90 if (cmpxchg(&channel->selected_phy, -1, phy->number) != -1)
/linux-master/drivers/gpu/drm/scheduler/
H A Dsched_entity.c307 last_user = cmpxchg(&entity->last_user, current->group_leader, NULL);
/linux-master/fs/nfsd/
H A Dstate.h779 cmpxchg(&clp->cl_state, NFSD4_COURTESY, NFSD4_EXPIRABLE);
/linux-master/kernel/
H A Dacct.c195 cmpxchg(&acct->ns->bacct, pin, NULL);
/linux-master/kernel/debug/kdb/
H A Dkdb_io.c635 old_cpu = cmpxchg(&kdb_printf_cpu, -1, this_cpu);
/linux-master/drivers/misc/genwqe/
H A Dcard_ddcb.c301 icrc_hsi_shi = cmpxchg(&prev_ddcb->icrc_hsi_shi_32, old, new);
653 icrc_hsi_shi = cmpxchg(&pddcb->icrc_hsi_shi_32,
/linux-master/drivers/net/ethernet/huawei/hinic/
H A Dhinic_hw_eqs.c253 eqe_state = cmpxchg(&hwe_cb->hwe_state,
298 eqe_state = cmpxchg(&ceq_cb->ceqe_state,
/linux-master/drivers/platform/surface/aggregator/
H A Dssh_request_layer.c385 * added yet. By putting this cmpxchg in the critical section, we
391 if (cmpxchg(&rqst->packet.ptl, NULL, &rtl->ptl)) {
602 * Note that if the cmpxchg() fails, we are guaranteed that ptl has
605 * flags to ensure that they don't cause the cmpxchg() to fail.
608 flags = cmpxchg(&r->state, fixed, SSH_REQUEST_SF_LOCKED_BIT);
/linux-master/drivers/gpu/drm/i915/
H A Di915_active.c157 ref->cache->timeline = 0; /* needs cmpxchg(u64) */
215 return cmpxchg(__active_fence_slot(active), fence, NULL) == fence;
260 * only the winner of that race will cmpxchg return the old
1072 * A does the cmpxchg first, and so it sees C or NULL, as before, or
1079 * succeeds with cmpxchg.
1081 while (cmpxchg(__active_fence_slot(active), prev, fence) != prev) {
/linux-master/sound/soc/intel/keembay/
H A Dkmb_platform.c238 cmpxchg(&kmb_i2s->tx_ptr, ptr, new_ptr);
243 cmpxchg(&kmb_i2s->rx_ptr, ptr, new_ptr);
/linux-master/fs/
H A Dposix_acl.c146 cmpxchg(p, ACL_NOT_CACHED, sentinel);
169 cmpxchg(p, sentinel, ACL_NOT_CACHED);
/linux-master/drivers/spi/
H A Dspi-bcm2835.c652 if (cmpxchg(&bs->rx_dma_active, true, false))
838 cmpxchg(&bs->rx_dma_active, true, false)) {

Completed in 390 milliseconds

1234567891011