• Home
  • Raw
  • Download

Lines Matching refs:bits

1170 #define DEFINE_TSAN_ATOMIC_LOAD_STORE(bits)                                                        \  argument
1171 u##bits __tsan_atomic##bits##_load(const u##bits *ptr, int memorder); \
1172 u##bits __tsan_atomic##bits##_load(const u##bits *ptr, int memorder) \
1176 check_access(ptr, bits / BITS_PER_BYTE, KCSAN_ACCESS_ATOMIC, _RET_IP_); \
1180 EXPORT_SYMBOL(__tsan_atomic##bits##_load); \
1181 void __tsan_atomic##bits##_store(u##bits *ptr, u##bits v, int memorder); \
1182 void __tsan_atomic##bits##_store(u##bits *ptr, u##bits v, int memorder) \
1186 check_access(ptr, bits / BITS_PER_BYTE, \
1191 EXPORT_SYMBOL(__tsan_atomic##bits##_store)
1193 #define DEFINE_TSAN_ATOMIC_RMW(op, bits, suffix) \ argument
1194 u##bits __tsan_atomic##bits##_##op(u##bits *ptr, u##bits v, int memorder); \
1195 u##bits __tsan_atomic##bits##_##op(u##bits *ptr, u##bits v, int memorder) \
1199 check_access(ptr, bits / BITS_PER_BYTE, \
1205 EXPORT_SYMBOL(__tsan_atomic##bits##_##op)
1224 #define DEFINE_TSAN_ATOMIC_CMPXCHG(bits, strength, weak) \ argument
1225 int __tsan_atomic##bits##_compare_exchange_##strength(u##bits *ptr, u##bits *exp, \
1226 u##bits val, int mo, int fail_mo); \
1227 int __tsan_atomic##bits##_compare_exchange_##strength(u##bits *ptr, u##bits *exp, \
1228 u##bits val, int mo, int fail_mo) \
1232 check_access(ptr, bits / BITS_PER_BYTE, \
1238 EXPORT_SYMBOL(__tsan_atomic##bits##_compare_exchange_##strength)
1240 #define DEFINE_TSAN_ATOMIC_CMPXCHG_VAL(bits) \ argument
1241 u##bits __tsan_atomic##bits##_compare_exchange_val(u##bits *ptr, u##bits exp, u##bits val, \
1243 u##bits __tsan_atomic##bits##_compare_exchange_val(u##bits *ptr, u##bits exp, u##bits val, \
1248 check_access(ptr, bits / BITS_PER_BYTE, \
1255 EXPORT_SYMBOL(__tsan_atomic##bits##_compare_exchange_val)
1257 #define DEFINE_TSAN_ATOMIC_OPS(bits) \ argument
1258 DEFINE_TSAN_ATOMIC_LOAD_STORE(bits); \
1259 DEFINE_TSAN_ATOMIC_RMW(exchange, bits, _n); \
1260 DEFINE_TSAN_ATOMIC_RMW(fetch_add, bits, ); \
1261 DEFINE_TSAN_ATOMIC_RMW(fetch_sub, bits, ); \
1262 DEFINE_TSAN_ATOMIC_RMW(fetch_and, bits, ); \
1263 DEFINE_TSAN_ATOMIC_RMW(fetch_or, bits, ); \
1264 DEFINE_TSAN_ATOMIC_RMW(fetch_xor, bits, ); \
1265 DEFINE_TSAN_ATOMIC_RMW(fetch_nand, bits, ); \
1266 DEFINE_TSAN_ATOMIC_CMPXCHG(bits, strong, 0); \
1267 DEFINE_TSAN_ATOMIC_CMPXCHG(bits, weak, 1); \
1268 DEFINE_TSAN_ATOMIC_CMPXCHG_VAL(bits)