/linux-master/drivers/nvme/target/ |
H A D | fabrics-cmd.c | 169 old = cmpxchg(&req->sq->ctrl, NULL, ctrl);
|
/linux-master/net/netfilter/ |
H A D | nf_bpf_link.c | 120 if (!cmpxchg(&nf_link->dead, 0, 1)) {
|
/linux-master/net/core/ |
H A D | sock_diag.c | 212 return !cmpxchg((const struct sock_diag_handler **)
|
/linux-master/arch/s390/kvm/ |
H A D | gaccess.c | 298 } 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 D | atomic.h | 19 #include <asm/cmpxchg.h>
|
/linux-master/arch/x86/events/amd/ |
H A D | core.c | 436 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 D | uncore.c | 165 if (cmpxchg(&ctx->events[i], NULL, event) == NULL) { 199 if (cmpxchg(&ctx->events[i], event, NULL) == event)
|
/linux-master/kernel/kcsan/ |
H A D | kcsan_test.c | 588 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 D | pci-ioda-tce.c | 106 oldtce = be64_to_cpu(cmpxchg(&tmp[n], 0,
|
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi.c | 415 return cmpxchg(&mcdi->state, 426 cmpxchg(&mcdi->state, 458 if (cmpxchg(&mcdi->state, 510 if (cmpxchg(&mcdi->state,
|
/linux-master/lib/ |
H A D | lru_cache.c | 53 * return 0 == cmpxchg(&lc->flags, 0, LC_LOCKED); 59 val = cmpxchg(&lc->flags, 0, LC_LOCKED);
|
/linux-master/arch/arm/include/asm/ |
H A D | atomic.h | 16 #include <asm/cmpxchg.h>
|
/linux-master/arch/powerpc/include/asm/ |
H A D | cmpxchg.h | 507 * 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 D | phy-rcar-gen2.c | 90 if (cmpxchg(&channel->selected_phy, -1, phy->number) != -1)
|
/linux-master/drivers/gpu/drm/scheduler/ |
H A D | sched_entity.c | 307 last_user = cmpxchg(&entity->last_user, current->group_leader, NULL);
|
/linux-master/fs/nfsd/ |
H A D | state.h | 779 cmpxchg(&clp->cl_state, NFSD4_COURTESY, NFSD4_EXPIRABLE);
|
/linux-master/kernel/ |
H A D | acct.c | 195 cmpxchg(&acct->ns->bacct, pin, NULL);
|
/linux-master/kernel/debug/kdb/ |
H A D | kdb_io.c | 635 old_cpu = cmpxchg(&kdb_printf_cpu, -1, this_cpu);
|
/linux-master/drivers/misc/genwqe/ |
H A D | card_ddcb.c | 301 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 D | hinic_hw_eqs.c | 253 eqe_state = cmpxchg(&hwe_cb->hwe_state, 298 eqe_state = cmpxchg(&ceq_cb->ceqe_state,
|
/linux-master/drivers/platform/surface/aggregator/ |
H A D | ssh_request_layer.c | 385 * 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 D | i915_active.c | 157 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 D | kmb_platform.c | 238 cmpxchg(&kmb_i2s->tx_ptr, ptr, new_ptr); 243 cmpxchg(&kmb_i2s->rx_ptr, ptr, new_ptr);
|
/linux-master/fs/ |
H A D | posix_acl.c | 146 cmpxchg(p, ACL_NOT_CACHED, sentinel); 169 cmpxchg(p, sentinel, ACL_NOT_CACHED);
|
/linux-master/drivers/spi/ |
H A D | spi-bcm2835.c | 652 if (cmpxchg(&bs->rx_dma_active, true, false)) 838 cmpxchg(&bs->rx_dma_active, true, false)) {
|