core/psd/imx6ull/bch.c
static uint32_t swap_data(uint32_t data)
{
	uint32_t r = 0;

	r = reverse_bit(data & 0xFF) << 24;
	r |= reverse_bit((data >> 8) & 0xFF) << 16;
	r |= reverse_bit((data >> 16) & 0xFF) << 8;
	r |= reverse_bit((data >> 24) & 0xFF);

	return r;
}
/*
  * swap 32-bit data, including bit reverse and swap to big endian
  */
swap 32-bit data, including bit reverse and swap to big endian
swap 32 - bit data including bit reverse and swap to big endian
static uint32_t swap_data(uint32_t data)
{
	uint32_t r = 0;
	r = reverse_bit(data & 0xFF) << 24;
	r |= reverse_bit((data >> 8) & 0xFF) << 16;
	r |= reverse_bit((data >> 16) & 0xFF) << 8;
	r |= reverse_bit((data >> 24) & 0xFF);
	return r;
}
static uint32_t swap_data ( uint32_t data ) { uint32_t r = 0 ; r = reverse_bit ( data & 0xFF ) << 24 ; r |= reverse_bit ( ( data >> 8 ) & 0xFF ) << 16 ; r |= reverse_bit ( ( data >> 16 ) & 0xFF ) << 8 ; r |= reverse_bit ( ( data >> 24 ) & 0xFF ) ; return r ; }
swap 32-bit data, including bit reverse and swap to big endian
swap 32 - bit data including bit reverse and swap to big endian