Lines Matching refs:reg
129 static inline uint64_t __cvmx_fau_store_address(uint64_t noadd, uint64_t reg) in __cvmx_fau_store_address() argument
133 cvmx_build_bits(CVMX_FAU_BITS_REGISTER, reg); in __cvmx_fau_store_address()
152 static inline uint64_t __cvmx_fau_atomic_address(uint64_t tagwait, uint64_t reg, in __cvmx_fau_atomic_address() argument
158 cvmx_build_bits(CVMX_FAU_BITS_REGISTER, reg); in __cvmx_fau_atomic_address()
170 static inline int64_t cvmx_fau_fetch_and_add64(cvmx_fau_reg_64_t reg, in cvmx_fau_fetch_and_add64() argument
173 return cvmx_read64_int64(__cvmx_fau_atomic_address(0, reg, value)); in cvmx_fau_fetch_and_add64()
185 static inline int32_t cvmx_fau_fetch_and_add32(cvmx_fau_reg_32_t reg, in cvmx_fau_fetch_and_add32() argument
188 reg ^= SWIZZLE_32; in cvmx_fau_fetch_and_add32()
189 return cvmx_read64_int32(__cvmx_fau_atomic_address(0, reg, value)); in cvmx_fau_fetch_and_add32()
200 static inline int16_t cvmx_fau_fetch_and_add16(cvmx_fau_reg_16_t reg, in cvmx_fau_fetch_and_add16() argument
203 reg ^= SWIZZLE_16; in cvmx_fau_fetch_and_add16()
204 return cvmx_read64_int16(__cvmx_fau_atomic_address(0, reg, value)); in cvmx_fau_fetch_and_add16()
214 static inline int8_t cvmx_fau_fetch_and_add8(cvmx_fau_reg_8_t reg, int8_t value) in cvmx_fau_fetch_and_add8() argument
216 reg ^= SWIZZLE_8; in cvmx_fau_fetch_and_add8()
217 return cvmx_read64_int8(__cvmx_fau_atomic_address(0, reg, value)); in cvmx_fau_fetch_and_add8()
233 cvmx_fau_tagwait_fetch_and_add64(cvmx_fau_reg_64_t reg, int64_t value) in cvmx_fau_tagwait_fetch_and_add64() argument
240 cvmx_read64_int64(__cvmx_fau_atomic_address(1, reg, value)); in cvmx_fau_tagwait_fetch_and_add64()
257 cvmx_fau_tagwait_fetch_and_add32(cvmx_fau_reg_32_t reg, int32_t value) in cvmx_fau_tagwait_fetch_and_add32() argument
263 reg ^= SWIZZLE_32; in cvmx_fau_tagwait_fetch_and_add32()
265 cvmx_read64_int32(__cvmx_fau_atomic_address(1, reg, value)); in cvmx_fau_tagwait_fetch_and_add32()
281 cvmx_fau_tagwait_fetch_and_add16(cvmx_fau_reg_16_t reg, int16_t value) in cvmx_fau_tagwait_fetch_and_add16() argument
287 reg ^= SWIZZLE_16; in cvmx_fau_tagwait_fetch_and_add16()
289 cvmx_read64_int16(__cvmx_fau_atomic_address(1, reg, value)); in cvmx_fau_tagwait_fetch_and_add16()
304 cvmx_fau_tagwait_fetch_and_add8(cvmx_fau_reg_8_t reg, int8_t value) in cvmx_fau_tagwait_fetch_and_add8() argument
310 reg ^= SWIZZLE_8; in cvmx_fau_tagwait_fetch_and_add8()
311 result.i8 = cvmx_read64_int8(__cvmx_fau_atomic_address(1, reg, value)); in cvmx_fau_tagwait_fetch_and_add8()
340 uint64_t reg) in __cvmx_fau_iobdma_data() argument
348 cvmx_build_bits(CVMX_FAU_BITS_REGISTER, reg); in __cvmx_fau_iobdma_data()
364 cvmx_fau_reg_64_t reg, in cvmx_fau_async_fetch_and_add64() argument
368 (scraddr, value, 0, CVMX_FAU_OP_SIZE_64, reg)); in cvmx_fau_async_fetch_and_add64()
384 cvmx_fau_reg_32_t reg, in cvmx_fau_async_fetch_and_add32() argument
388 (scraddr, value, 0, CVMX_FAU_OP_SIZE_32, reg)); in cvmx_fau_async_fetch_and_add32()
403 cvmx_fau_reg_16_t reg, in cvmx_fau_async_fetch_and_add16() argument
407 (scraddr, value, 0, CVMX_FAU_OP_SIZE_16, reg)); in cvmx_fau_async_fetch_and_add16()
421 cvmx_fau_reg_8_t reg, in cvmx_fau_async_fetch_and_add8() argument
425 (scraddr, value, 0, CVMX_FAU_OP_SIZE_8, reg)); in cvmx_fau_async_fetch_and_add8()
444 cvmx_fau_reg_64_t reg, in cvmx_fau_async_tagwait_fetch_and_add64() argument
448 (scraddr, value, 1, CVMX_FAU_OP_SIZE_64, reg)); in cvmx_fau_async_tagwait_fetch_and_add64()
467 cvmx_fau_reg_32_t reg, in cvmx_fau_async_tagwait_fetch_and_add32() argument
471 (scraddr, value, 1, CVMX_FAU_OP_SIZE_32, reg)); in cvmx_fau_async_tagwait_fetch_and_add32()
490 cvmx_fau_reg_16_t reg, in cvmx_fau_async_tagwait_fetch_and_add16() argument
494 (scraddr, value, 1, CVMX_FAU_OP_SIZE_16, reg)); in cvmx_fau_async_tagwait_fetch_and_add16()
512 cvmx_fau_reg_8_t reg, in cvmx_fau_async_tagwait_fetch_and_add8() argument
516 (scraddr, value, 1, CVMX_FAU_OP_SIZE_8, reg)); in cvmx_fau_async_tagwait_fetch_and_add8()
526 static inline void cvmx_fau_atomic_add64(cvmx_fau_reg_64_t reg, int64_t value) in cvmx_fau_atomic_add64() argument
528 cvmx_write64_int64(__cvmx_fau_store_address(0, reg), value); in cvmx_fau_atomic_add64()
538 static inline void cvmx_fau_atomic_add32(cvmx_fau_reg_32_t reg, int32_t value) in cvmx_fau_atomic_add32() argument
540 reg ^= SWIZZLE_32; in cvmx_fau_atomic_add32()
541 cvmx_write64_int32(__cvmx_fau_store_address(0, reg), value); in cvmx_fau_atomic_add32()
551 static inline void cvmx_fau_atomic_add16(cvmx_fau_reg_16_t reg, int16_t value) in cvmx_fau_atomic_add16() argument
553 reg ^= SWIZZLE_16; in cvmx_fau_atomic_add16()
554 cvmx_write64_int16(__cvmx_fau_store_address(0, reg), value); in cvmx_fau_atomic_add16()
563 static inline void cvmx_fau_atomic_add8(cvmx_fau_reg_8_t reg, int8_t value) in cvmx_fau_atomic_add8() argument
565 reg ^= SWIZZLE_8; in cvmx_fau_atomic_add8()
566 cvmx_write64_int8(__cvmx_fau_store_address(0, reg), value); in cvmx_fau_atomic_add8()
576 static inline void cvmx_fau_atomic_write64(cvmx_fau_reg_64_t reg, int64_t value) in cvmx_fau_atomic_write64() argument
578 cvmx_write64_int64(__cvmx_fau_store_address(1, reg), value); in cvmx_fau_atomic_write64()
588 static inline void cvmx_fau_atomic_write32(cvmx_fau_reg_32_t reg, int32_t value) in cvmx_fau_atomic_write32() argument
590 reg ^= SWIZZLE_32; in cvmx_fau_atomic_write32()
591 cvmx_write64_int32(__cvmx_fau_store_address(1, reg), value); in cvmx_fau_atomic_write32()
601 static inline void cvmx_fau_atomic_write16(cvmx_fau_reg_16_t reg, int16_t value) in cvmx_fau_atomic_write16() argument
603 reg ^= SWIZZLE_16; in cvmx_fau_atomic_write16()
604 cvmx_write64_int16(__cvmx_fau_store_address(1, reg), value); in cvmx_fau_atomic_write16()
613 static inline void cvmx_fau_atomic_write8(cvmx_fau_reg_8_t reg, int8_t value) in cvmx_fau_atomic_write8() argument
615 reg ^= SWIZZLE_8; in cvmx_fau_atomic_write8()
616 cvmx_write64_int8(__cvmx_fau_store_address(1, reg), value); in cvmx_fau_atomic_write8()