Lines Matching refs:cksum
178 u8 cksum; in load_waveform() local
205 cksum = calc_cksum(32, 47, mem); in load_waveform()
206 if (cksum != wfm_hdr->wfm_cs) { in load_waveform()
207 dev_err(dev, "Error: bad cksum %x != %x\n", cksum, in load_waveform()
238 cksum = calc_cksum(sizeof(*wfm_hdr), cksum_idx, mem); in load_waveform()
239 if (cksum != mem[cksum_idx]) { in load_waveform()
241 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform()
250 cksum = calc_cksum(cksum_idx - 3, cksum_idx, mem); in load_waveform()
251 if (cksum != mem[cksum_idx]) { in load_waveform()
253 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform()
262 cksum = calc_cksum(cksum_idx - 3, cksum_idx, mem); in load_waveform()
263 if (cksum != mem[cksum_idx]) { in load_waveform()
265 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform()
297 cksum = calc_cksum(owfm_idx, cksum_idx, mem); in load_waveform()
298 if (cksum != mem[cksum_idx]) { in load_waveform()
300 " %x != %x\n", cksum, mem[cksum_idx]); in load_waveform()
438 u16 cksum; in metronomefb_dpy_update() local
445 cksum = calc_img_cksum((u16 *) par->metromem_img, fbsize/2); in metronomefb_dpy_update()
446 *((u16 *)(par->metromem_img) + fbsize/2) = cksum; in metronomefb_dpy_update()
469 u16 cksum; in metronomefb_dpy_deferred_io() local
476 cksum = metronomefb_dpy_update_page(par, in metronomefb_dpy_deferred_io()
479 par->csum_table[cur->index] = cksum; in metronomefb_dpy_deferred_io()
480 par->metromem_img_csum += cksum; in metronomefb_dpy_deferred_io()