Lines Matching refs:value

88  * bit will be set. Otherwise the value of the register before
94 int64_t value : 63;
99 * bit will be set. Otherwise the value of the register before
105 int32_t value : 31;
110 * bit will be set. Otherwise the value of the register before
116 int16_t value : 15;
121 * bit will be set. Otherwise the value of the register before
127 int8_t value : 7;
132 * the error bit will be set. Otherwise the value of the
147 * @param noadd 0 = Store value is atomically added to the current value
148 * 1 = Store value is atomically written over the current value
174 * @param value Signed value to add.
179 static inline uint64_t __cvmx_fau_atomic_address(uint64_t tagwait, uint64_t reg, int64_t value)
182 cvmx_build_bits(CVMX_FAU_BITS_INEVAL, value) |
192 * @param value Signed value to add.
196 static inline int64_t cvmx_fau_fetch_and_add64(cvmx_fau_reg_64_t reg, int64_t value)
198 return cvmx_read64_int64(__cvmx_fau_atomic_address(0, reg, value));
206 * @param value Signed value to add.
210 static inline int32_t cvmx_fau_fetch_and_add32(cvmx_fau_reg_32_t reg, int32_t value)
212 return cvmx_read64_int32(__cvmx_fau_atomic_address(0, reg, value));
220 * @param value Signed value to add.
223 static inline int16_t cvmx_fau_fetch_and_add16(cvmx_fau_reg_16_t reg, int16_t value)
225 return cvmx_read64_int16(__cvmx_fau_atomic_address(0, reg, value));
232 * @param value Signed value to add.
235 static inline int8_t cvmx_fau_fetch_and_add8(cvmx_fau_reg_8_t reg, int8_t value)
237 return cvmx_read64_int8(__cvmx_fau_atomic_address(0, reg, value));
246 * @param value Signed value to add.
249 * the value of the register before the update will be
252 static inline cvmx_fau_tagwait64_t cvmx_fau_tagwait_fetch_and_add64(cvmx_fau_reg_64_t reg, int64_t value)
259 result.i64 = cvmx_read64_int64(__cvmx_fau_atomic_address(1, reg, value));
269 * @param value Signed value to add.
272 * the value of the register before the update will be
275 static inline cvmx_fau_tagwait32_t cvmx_fau_tagwait_fetch_and_add32(cvmx_fau_reg_32_t reg, int32_t value)
282 result.i32 = cvmx_read64_int32(__cvmx_fau_atomic_address(1, reg, value));
292 * @param value Signed value to add.
294 * the value of the register before the update will be
297 static inline cvmx_fau_tagwait16_t cvmx_fau_tagwait_fetch_and_add16(cvmx_fau_reg_16_t reg, int16_t value)
304 result.i16 = cvmx_read64_int16(__cvmx_fau_atomic_address(1, reg, value));
313 * @param value Signed value to add.
315 * the value of the register before the update will be
318 static inline cvmx_fau_tagwait8_t cvmx_fau_tagwait_fetch_and_add8(cvmx_fau_reg_8_t reg, int8_t value)
325 result.i8 = cvmx_read64_int8(__cvmx_fau_atomic_address(1, reg, value));
334 * @param value Signed value to add.
352 static inline uint64_t __cvmx_fau_iobdma_data(uint64_t scraddr, int64_t value, uint64_t tagwait,
358 cvmx_build_bits(CVMX_FAU_BITS_INEVAL, value) |
365 * Perform an async atomic 64 bit add. The old value is
372 * @param value Signed value to add.
376 static inline void cvmx_fau_async_fetch_and_add64(uint64_t scraddr, cvmx_fau_reg_64_t reg, int64_t value)
378 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 0, CVMX_FAU_OP_SIZE_64, reg));
382 * Perform an async atomic 32 bit add. The old value is
389 * @param value Signed value to add.
393 static inline void cvmx_fau_async_fetch_and_add32(uint64_t scraddr, cvmx_fau_reg_32_t reg, int32_t value)
395 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 0, CVMX_FAU_OP_SIZE_32, reg));
399 * Perform an async atomic 16 bit add. The old value is
406 * @param value Signed value to add.
409 static inline void cvmx_fau_async_fetch_and_add16(uint64_t scraddr, cvmx_fau_reg_16_t reg, int16_t value)
411 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 0, CVMX_FAU_OP_SIZE_16, reg));
415 * Perform an async atomic 8 bit add. The old value is
421 * @param value Signed value to add.
424 static inline void cvmx_fau_async_fetch_and_add8(uint64_t scraddr, cvmx_fau_reg_8_t reg, int8_t value)
426 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 0, CVMX_FAU_OP_SIZE_8, reg));
436 * the value of the register before the update will be
440 * @param value Signed value to add.
444 static inline void cvmx_fau_async_tagwait_fetch_and_add64(uint64_t scraddr, cvmx_fau_reg_64_t reg, int64_t value)
446 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 1, CVMX_FAU_OP_SIZE_64, reg));
456 * the value of the register before the update will be
460 * @param value Signed value to add.
464 static inline void cvmx_fau_async_tagwait_fetch_and_add32(uint64_t scraddr, cvmx_fau_reg_32_t reg, int32_t value)
466 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 1, CVMX_FAU_OP_SIZE_32, reg));
476 * the value of the register before the update will be
480 * @param value Signed value to add.
483 static inline void cvmx_fau_async_tagwait_fetch_and_add16(uint64_t scraddr, cvmx_fau_reg_16_t reg, int16_t value)
485 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 1, CVMX_FAU_OP_SIZE_16, reg));
495 * the value of the register before the update will be
498 * @param value Signed value to add.
501 static inline void cvmx_fau_async_tagwait_fetch_and_add8(uint64_t scraddr, cvmx_fau_reg_8_t reg, int8_t value)
503 cvmx_send_single(__cvmx_fau_iobdma_data(scraddr, value, 1, CVMX_FAU_OP_SIZE_8, reg));
511 * @param value Signed value to add.
513 static inline void cvmx_fau_atomic_add64(cvmx_fau_reg_64_t reg, int64_t value)
515 cvmx_write64_int64(__cvmx_fau_store_address(0, reg), value);
523 * @param value Signed value to add.
525 static inline void cvmx_fau_atomic_add32(cvmx_fau_reg_32_t reg, int32_t value)
527 cvmx_write64_int32(__cvmx_fau_store_address(0, reg), value);
535 * @param value Signed value to add.
537 static inline void cvmx_fau_atomic_add16(cvmx_fau_reg_16_t reg, int16_t value)
539 cvmx_write64_int16(__cvmx_fau_store_address(0, reg), value);
546 * @param value Signed value to add.
548 static inline void cvmx_fau_atomic_add8(cvmx_fau_reg_8_t reg, int8_t value)
550 cvmx_write64_int8(__cvmx_fau_store_address(0, reg), value);
558 * @param value Signed value to write.
560 static inline void cvmx_fau_atomic_write64(cvmx_fau_reg_64_t reg, int64_t value)
562 cvmx_write64_int64(__cvmx_fau_store_address(1, reg), value);
570 * @param value Signed value to write.
572 static inline void cvmx_fau_atomic_write32(cvmx_fau_reg_32_t reg, int32_t value)
574 cvmx_write64_int32(__cvmx_fau_store_address(1, reg), value);
582 * @param value Signed value to write.
584 static inline void cvmx_fau_atomic_write16(cvmx_fau_reg_16_t reg, int16_t value)
586 cvmx_write64_int16(__cvmx_fau_store_address(1, reg), value);
593 * @param value Signed value to write.
595 static inline void cvmx_fau_atomic_write8(cvmx_fau_reg_8_t reg, int8_t value)
597 cvmx_write64_int8(__cvmx_fau_store_address(1, reg), value);