Ejemplo n.º 1
0
static bool vfl_check_checksum(int bank) {
	u32 checksum1;
	u32 checksum2;
	static int counter = 0;

	counter++;

	vfl_checksum(&pstVFLCxt[bank], (u32)&pstVFLCxt[bank].checksum1 - (u32)&pstVFLCxt[bank], &checksum1, &checksum2);

	// Yeah, this looks fail, but this is actually the logic they use
	if(checksum1 == pstVFLCxt[bank].checksum1)
		return true;

	if(checksum2 != pstVFLCxt[bank].checksum2)
		return true;

	return false;
}
Ejemplo n.º 2
0
static int vfl_check_checksum(int bank) {
	static int counter = 0;

	counter++;

	uint32_t checksum1;
	uint32_t checksum2;
	vfl_checksum(&pstVFLCxt[bank], (uint32_t)&pstVFLCxt[bank].checksum1 - (uint32_t)&pstVFLCxt[bank], &checksum1, &checksum2);

	// Yeah, this looks fail, but this is actually the logic they use
	if(checksum1 == pstVFLCxt[bank].checksum1)
		return TRUE;

	if(checksum2 != pstVFLCxt[bank].checksum2)
		return TRUE;

	return FALSE;
}
Ejemplo n.º 3
0
static int vfl_check_checksum(vfl_vsvfl_device_t *_vfl, int ce)
{
	static int counter = 0;

	counter++;

	uint32_t checksum1;
	uint32_t checksum2;
	vfl_checksum(&_vfl->contexts[ce], (uint32_t)&_vfl->contexts[ce].checksum1 - (uint32_t)&_vfl->contexts[ce],
			&checksum1, &checksum2);

	// Yeah, this looks fail, but this is actually the logic they use
	if(checksum1 == _vfl->contexts[ce].checksum1)
		return TRUE;

	if(checksum2 != _vfl->contexts[ce].checksum2)
		return TRUE;

	return FALSE;
}
Ejemplo n.º 4
0
static bool vfl_gen_checksum(int bank) {
	vfl_checksum(&pstVFLCxt[bank], (u32)&pstVFLCxt[bank].checksum1 - (u32)&pstVFLCxt[bank], &pstVFLCxt[bank].checksum1, &pstVFLCxt[bank].checksum2);
	return false;
}
Ejemplo n.º 5
0
static int vfl_gen_checksum(vfl_vsvfl_device_t *_vfl, int ce)
{
	vfl_checksum(&_vfl->contexts[ce], (uint32_t)&_vfl->contexts[ce].checksum1 - (uint32_t)&_vfl->contexts[ce],
			&_vfl->contexts[ce].checksum1, &_vfl->contexts[ce].checksum2);
	return TRUE;
}
Ejemplo n.º 6
0
static int vfl_gen_checksum(int bank) {
	vfl_checksum(&pstVFLCxt[bank], (uint32_t)&pstVFLCxt[bank].checksum1 - (uint32_t)&pstVFLCxt[bank], &pstVFLCxt[bank].checksum1, &pstVFLCxt[bank].checksum2);
	return FALSE;
}