Searched refs:BSWAP_16 (Results 1 – 5 of 5) sorted by relevance
19 #define BSWAP_16(x) ((uint16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8))) macro231 #define sys_be16_to_cpu(val) BSWAP_16(val)232 #define sys_cpu_to_be16(val) BSWAP_16(val)265 #define sys_le16_to_cpu(val) BSWAP_16(val)266 #define sys_cpu_to_le16(val) BSWAP_16(val)
20 #define DEVICE_ID BSWAP_16(0x8140U)21 #define REG_STATUS BSWAP_16(0x814EU)30 #define REG_GT911_CONFIG BSWAP_16(0x8047U)39 #define REG_POINT_ADDR(n) BSWAP_16(REG_POINT_0 + POINT_OFFSET * n)
202 *data = BSWAP_16(*data); in bypass_cb()
183 zassert_equal(snd_word, BSWAP_16(rcv_word), "Data mismatch"); in ZTEST()
542 sum = BSWAP_16(sum_in); in calc_chksum()594 return BSWAP_16((uint16_t)sum); in calc_chksum()