Home
last modified time | relevance | path

Searched refs:atomic_cmpset_32 (Results 1 – 24 of 24) sorted by relevance

/freebsd/sys/sys/
H A Dbuf_ring.h118 } while (!atomic_cmpset_32(&br->br_prod_head, prod_head, prod_next)); in buf_ring_enqueue()
165 } while (!atomic_cmpset_32(&br->br_cons_head, cons_head, cons_next)); in buf_ring_dequeue_mc()
H A Datomic_san.h351 #define atomic_cmpset_32 ATOMIC_SAN(cmpset_32) macro
/freebsd/sys/riscv/sifive/
H A Dsifive_uart.c300 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in sfuart_bus_getsig()
319 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in sfuart_bus_setsig()
/freebsd/sys/arm/include/
H A Datomic.h476 atomic_cmpset_32(volatile uint32_t *_ptr, uint32_t _old, uint32_t _new) in atomic_cmpset_32() function
1071 #define atomic_cmpset_ptr atomic_cmpset_32
1097 #define atomic_cmpset_int atomic_cmpset_32
/freebsd/sys/riscv/include/
H A Datomic.h193 atomic_cmpset_32(volatile uint32_t *p, uint32_t cmpval, uint32_t newval) in atomic_cmpset_32() function
299 #define atomic_cmpset_int atomic_cmpset_32
/freebsd/sys/dev/uart/
H A Duart_dev_quicc.c342 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in quicc_bus_getsig()
462 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in quicc_bus_setsig()
H A Duart_core.c275 } while (!atomic_cmpset_32(&sc->sc_ttypend, old, new)); in uart_sched_softih()
400 } while (!atomic_cmpset_32(&sc->sc_ttypend, old, new)); in uart_intr_sigchg()
H A Duart_dev_z8530.c385 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in z8530_bus_getsig()
593 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in z8530_bus_setsig()
H A Duart_dev_ns8250.c754 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, sig & ~SER_MASK_DELTA)); in ns8250_bus_getsig()
1131 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in ns8250_bus_setsig()
H A Duart_dev_imx.c460 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in imx_uart_bus_getsig()
/freebsd/sys/arm/xilinx/
H A Duart_dev_cdnc.c491 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in cdnc_uart_bus_setsig()
633 } while (!atomic_cmpset_32(&sc->sc_hwsig, old, new)); in cdnc_uart_bus_getsig()
/freebsd/sys/dev/acpica/Osd/
H A DOsdSynch.c617 } while (atomic_cmpset_32(lock, old, new) == 0); in acpi_acquire_global_lock()
635 } while (atomic_cmpset_32(lock, old, new) == 0); in acpi_release_global_lock()
/freebsd/sys/kern/
H A Dkern_syscalls.c86 while (atomic_cmpset_32(&se->sy_thrcnt, SY_THR_DRAINING, in syscall_thread_drain()
H A Dkern_fail.c576 if (atomic_cmpset_32(&ent->fe_count, count, count - 1)) { in fail_point_eval_nontrivial()
/freebsd/sys/dev/nvme/
H A Dnvme_ctrlr.c447 cmpset = atomic_cmpset_32(&ctrlr->is_resetting, 0, 1); in nvme_ctrlr_reset()
1163 atomic_cmpset_32(&ctrlr->is_resetting, 1, 0); in nvme_ctrlr_reset_task()
1943 while (atomic_cmpset_32(&ctrlr->is_resetting, 0, 1) == 0 && to-- > 0) in nvme_ctrlr_suspend()
1988 (void)atomic_cmpset_32(&ctrlr->is_resetting, 1, 0); in nvme_ctrlr_resume()
1999 (void)atomic_cmpset_32(&ctrlr->is_resetting, 1, 0); in nvme_ctrlr_resume()
/freebsd/sys/arm64/arm64/
H A Dcmn600.c508 if (atomic_cmpset_32(&node->nd_paired, old, new) != 0) in pmu_cmn600_alloc_localpmc()
537 } while (atomic_cmpset_32(&node->nd_paired, old, new) == 0); in pmu_cmn600_free_localpmc()
/freebsd/sys/amd64/include/
H A Datomic.h529 #define atomic_cmpset_32 atomic_cmpset_int macro
/freebsd/sys/i386/include/
H A Datomic.h782 #define atomic_cmpset_32 atomic_cmpset_int macro
/freebsd/sys/arm64/include/
H A Datomic.h565 #define atomic_cmpset_int atomic_cmpset_32
/freebsd/sys/powerpc/include/
H A Datomic.h788 #define atomic_cmpset_32 atomic_cmpset_int macro
/freebsd/sys/amd64/vmm/
H A Dvmm_instruction_emul.c2139 if (atomic_cmpset_32(&ptpbase32[ptpindex], in _vm_gla2gpa()
2154 if (atomic_cmpset_32(&ptpbase32[ptpindex], in _vm_gla2gpa()
/freebsd/sys/rpc/
H A Dclnt_dg.c247 atomic_cmpset_32(&rpc_xid, 0, newxid); in clnt_dg_create()
/freebsd/sys/dev/gve/
H A Dgve_tx_dqo.c551 if (atomic_cmpset_32(&tx->dqo.free_pending_pkts_prd, in gve_free_pending_packet()
/freebsd/sys/dev/pms/freebsd/driver/ini/src/
H A Dagtiapi.c5579 cmpsetRtn = atomic_cmpset_32( &pWWNList[devIdx].devRemoved, 0, 5 ); in agtiapi_GetDevHandle()
5988 cmpsetRtn = atomic_cmpset_32( &pWWNList[lIdx].devRemoved, in agtiapi_devRmCheck()