Searched refs:wfm_hdr (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/video/fbdev/
H A Dmetronomefb.c182 struct waveform_hdr *wfm_hdr; load_waveform() local
195 wfm_hdr = (struct waveform_hdr *) mem; load_waveform()
197 if (wfm_hdr->fvsn != 1) { load_waveform()
198 dev_err(dev, "Error: bad fvsn %x\n", wfm_hdr->fvsn); load_waveform()
201 if (wfm_hdr->luts != 0) { load_waveform()
202 dev_err(dev, "Error: bad luts %x\n", wfm_hdr->luts); load_waveform()
206 if (cksum != wfm_hdr->wfm_cs) { load_waveform()
208 wfm_hdr->wfm_cs); load_waveform()
211 wfm_hdr->mc += 1; load_waveform()
212 wfm_hdr->trc += 1; load_waveform()
214 if (*(wfm_hdr->stuff2a + i) != 0) { load_waveform()
224 if ((sizeof(*wfm_hdr) + wfm_hdr->trc) > size) load_waveform()
227 for (i = sizeof(*wfm_hdr); i <= sizeof(*wfm_hdr) + wfm_hdr->trc; i++) { load_waveform()
229 trn = i - sizeof(*wfm_hdr) - 1; load_waveform()
235 cksum_idx = sizeof(*wfm_hdr) + wfm_hdr->trc + 1; load_waveform()
238 cksum = calc_cksum(sizeof(*wfm_hdr), cksum_idx, mem); load_waveform()
246 wmta = get_unaligned_le32(wfm_hdr->wmta) & 0x00FFFFFF; load_waveform()
278 if (v == wfm_hdr->swtb) { load_waveform()
279 while (((v = mem[wfm_idx++]) != wfm_hdr->swtb) && load_waveform()
286 if (v == wfm_hdr->endb) load_waveform()

Completed in 147 milliseconds