Lines Matching refs:data

248 #define MBEDTLS_GET_UINT32_BE(data, offset)                                \  argument
250 ? mbedtls_get_unaligned_uint32((data) + (offset)) \
251 : MBEDTLS_BSWAP32(mbedtls_get_unaligned_uint32((data) + (offset))) \
263 #define MBEDTLS_PUT_UINT32_BE(n, data, offset) \ argument
267 mbedtls_put_unaligned_uint32((data) + (offset), (uint32_t) (n)); \
271 mbedtls_put_unaligned_uint32((data) + (offset), MBEDTLS_BSWAP32((uint32_t) (n))); \
284 #define MBEDTLS_GET_UINT32_LE(data, offset) \ argument
286 ? MBEDTLS_BSWAP32(mbedtls_get_unaligned_uint32((data) + (offset))) \
287 : mbedtls_get_unaligned_uint32((data) + (offset)) \
300 #define MBEDTLS_PUT_UINT32_LE(n, data, offset) \ argument
304 mbedtls_put_unaligned_uint32((data) + (offset), MBEDTLS_BSWAP32((uint32_t) (n))); \
308 mbedtls_put_unaligned_uint32((data) + (offset), ((uint32_t) (n))); \
321 #define MBEDTLS_GET_UINT16_LE(data, offset) \ argument
323 ? MBEDTLS_BSWAP16(mbedtls_get_unaligned_uint16((data) + (offset))) \
324 : mbedtls_get_unaligned_uint16((data) + (offset)) \
336 #define MBEDTLS_PUT_UINT16_LE(n, data, offset) \ argument
340 mbedtls_put_unaligned_uint16((data) + (offset), MBEDTLS_BSWAP16((uint16_t) (n))); \
344 mbedtls_put_unaligned_uint16((data) + (offset), (uint16_t) (n)); \
357 #define MBEDTLS_GET_UINT16_BE(data, offset) \ argument
359 ? mbedtls_get_unaligned_uint16((data) + (offset)) \
360 : MBEDTLS_BSWAP16(mbedtls_get_unaligned_uint16((data) + (offset))) \
372 #define MBEDTLS_PUT_UINT16_BE(n, data, offset) \ argument
376 mbedtls_put_unaligned_uint16((data) + (offset), (uint16_t) (n)); \
380 mbedtls_put_unaligned_uint16((data) + (offset), MBEDTLS_BSWAP16((uint16_t) (n))); \
393 #define MBEDTLS_GET_UINT24_BE(data, offset) \ argument
395 ((uint32_t) (data)[(offset)] << 16) \
396 | ((uint32_t) (data)[(offset) + 1] << 8) \
397 | ((uint32_t) (data)[(offset) + 2]) \
409 #define MBEDTLS_PUT_UINT24_BE(n, data, offset) \ argument
411 (data)[(offset)] = MBEDTLS_BYTE_2(n); \
412 (data)[(offset) + 1] = MBEDTLS_BYTE_1(n); \
413 (data)[(offset) + 2] = MBEDTLS_BYTE_0(n); \
425 #define MBEDTLS_GET_UINT24_LE(data, offset) \ argument
427 ((uint32_t) (data)[(offset)]) \
428 | ((uint32_t) (data)[(offset) + 1] << 8) \
429 | ((uint32_t) (data)[(offset) + 2] << 16) \
441 #define MBEDTLS_PUT_UINT24_LE(n, data, offset) \ argument
443 (data)[(offset)] = MBEDTLS_BYTE_0(n); \
444 (data)[(offset) + 1] = MBEDTLS_BYTE_1(n); \
445 (data)[(offset) + 2] = MBEDTLS_BYTE_2(n); \
457 #define MBEDTLS_GET_UINT64_BE(data, offset) \ argument
459 ? mbedtls_get_unaligned_uint64((data) + (offset)) \
460 : MBEDTLS_BSWAP64(mbedtls_get_unaligned_uint64((data) + (offset))) \
472 #define MBEDTLS_PUT_UINT64_BE(n, data, offset) \ argument
476 mbedtls_put_unaligned_uint64((data) + (offset), (uint64_t) (n)); \
480 mbedtls_put_unaligned_uint64((data) + (offset), MBEDTLS_BSWAP64((uint64_t) (n))); \
493 #define MBEDTLS_GET_UINT64_LE(data, offset) \ argument
495 ? MBEDTLS_BSWAP64(mbedtls_get_unaligned_uint64((data) + (offset))) \
496 : mbedtls_get_unaligned_uint64((data) + (offset)) \
508 #define MBEDTLS_PUT_UINT64_LE(n, data, offset) \ argument
512 mbedtls_put_unaligned_uint64((data) + (offset), MBEDTLS_BSWAP64((uint64_t) (n))); \
516 mbedtls_put_unaligned_uint64((data) + (offset), (uint64_t) (n)); \