Lines Matching +full:0 +full:x0000fc00

29 	while ((saa7164_readl(reg) & 0x01) == 0) {  in saa7164_dl_wait_ack()
31 if (timeout == 0) { in saa7164_dl_wait_ack()
39 return 0; in saa7164_dl_wait_ack()
45 while (saa7164_readl(reg) & 0x01) { in saa7164_dl_wait_clr()
47 if (timeout == 0) { in saa7164_dl_wait_clr()
55 return 0; in saa7164_dl_wait_clr()
74 "%s(image=%p, size=%d, flags=0x%x, dst=%p, dstsize=0x%x)\n", in saa7164_downloadimage()
95 dprintk(DBGLVL_FW, "%s() dlflag = 0x%x\n", __func__, dlflag); in saa7164_downloadimage()
96 dprintk(DBGLVL_FW, "%s() dlflag_ack = 0x%x\n", __func__, dlflag_ack); in saa7164_downloadimage()
97 dprintk(DBGLVL_FW, "%s() drflag = 0x%x\n", __func__, drflag); in saa7164_downloadimage()
98 dprintk(DBGLVL_FW, "%s() drflag_ack = 0x%x\n", __func__, drflag_ack); in saa7164_downloadimage()
99 dprintk(DBGLVL_FW, "%s() bleflag = 0x%x\n", __func__, bleflag); in saa7164_downloadimage()
102 dprintk(DBGLVL_FW, "%s() dlflag (0x%x)= 0x%x\n", __func__, dlflag, reg); in saa7164_downloadimage()
111 if (ret < 0) in saa7164_downloadimage()
115 saa7164_writel(dlflag, 0); in saa7164_downloadimage()
117 if (ret < 0) in saa7164_downloadimage()
121 for (offset = 0; srcsize > dstsize; in saa7164_downloadimage()
130 if (ret < 0) in saa7164_downloadimage()
134 saa7164_writel(drflag, 0); in saa7164_downloadimage()
136 if (ret < 0) in saa7164_downloadimage()
148 if (ret < 0) in saa7164_downloadimage()
151 saa7164_writel(drflag, 0); in saa7164_downloadimage()
152 timeout = 0; in saa7164_downloadimage()
175 if (ret < 0) in saa7164_downloadimage()
179 ret = 0; in saa7164_downloadimage()
193 u32 second_timeout, updatebootloader = 1, bootloadersize = 0; in saa7164_downloadfirmware()
196 u32 bootloaderversion = 0, fwloadersize; in saa7164_downloadfirmware()
213 if (version == 0x00) { in saa7164_downloadfirmware()
243 if (first_timeout == 0) { in saa7164_downloadfirmware()
251 if (second_timeout == 0) { in saa7164_downloadfirmware()
259 if (second_timeout == 0) { in saa7164_downloadfirmware()
261 "%s() Unknown bootloader flags 0x%x\n", in saa7164_downloadfirmware()
303 if (first_timeout == 0) { in saa7164_downloadfirmware()
312 if (second_timeout == 0) { in saa7164_downloadfirmware()
320 if (second_timeout == 0) { in saa7164_downloadfirmware()
322 "%s() Unknown bootloader flags 0x%x\n", in saa7164_downloadfirmware()
332 dprintk(DBGLVL_FW, "%s() Loader flags 1:0x%x 2:0x%x.\n", in saa7164_downloadfirmware()
364 if (first_timeout == 0) { in saa7164_downloadfirmware()
374 } /* version == 0 */ in saa7164_downloadfirmware()
380 SAA_DEVICE_IMAGE_BOOTING) && (version == 0)) { in saa7164_downloadfirmware()
396 (version & 0x0000fc00) >> 10, in saa7164_downloadfirmware()
397 (version & 0x000003e0) >> 5, in saa7164_downloadfirmware()
398 (version & 0x0000001f), in saa7164_downloadfirmware()
399 (version & 0xffff0000) >> 16); in saa7164_downloadfirmware()
402 if (version == 0) { in saa7164_downloadfirmware()
428 printk(KERN_INFO " .FirmwareSize = 0x%x\n", hdr->firmwaresize); in saa7164_downloadfirmware()
429 printk(KERN_INFO " .BSLSize = 0x%x\n", hdr->bslsize); in saa7164_downloadfirmware()
430 printk(KERN_INFO " .Reserved = 0x%x\n", hdr->reserved); in saa7164_downloadfirmware()
431 printk(KERN_INFO " .Version = 0x%x\n", hdr->version); in saa7164_downloadfirmware()
434 if ((hdr->firmwaresize == 0) && (hdr->bslsize == 0)) in saa7164_downloadfirmware()
445 if ((hdr->firmwaresize == 0) && (hdr->bslsize == 0)) { in saa7164_downloadfirmware()
455 dprintk(DBGLVL_FW, "->Flag 0x%x\n", in saa7164_downloadfirmware()
457 dprintk(DBGLVL_FW, "->Ack 0x%x\n", in saa7164_downloadfirmware()
459 dprintk(DBGLVL_FW, "->FW Version 0x%x\n", version); in saa7164_downloadfirmware()
460 dprintk(DBGLVL_FW, "->Loader Version 0x%x\n", in saa7164_downloadfirmware()
464 0x03) && (saa7164_readl(SAA_DATAREADY_FLAG_ACK) in saa7164_downloadfirmware()
465 == 0x00) && (version == 0x00)) { in saa7164_downloadfirmware()
468 (bootloaderversion & 0x0000fc00) >> 10, in saa7164_downloadfirmware()
469 (bootloaderversion & 0x000003e0) >> 5, in saa7164_downloadfirmware()
470 (bootloaderversion & 0x0000001f), in saa7164_downloadfirmware()
471 (bootloaderversion & 0xffff0000) >> 16 in saa7164_downloadfirmware()
474 (boothdr->version & 0x0000fc00) >> 10, in saa7164_downloadfirmware()
475 (boothdr->version & 0x000003e0) >> 5, in saa7164_downloadfirmware()
476 (boothdr->version & 0x0000001f), in saa7164_downloadfirmware()
477 (boothdr->version & 0xffff0000) >> 16 in saa7164_downloadfirmware()
481 updatebootloader = 0; in saa7164_downloadfirmware()
496 (fwhdr->version & 0x0000fc00) >> 10, in saa7164_downloadfirmware()
497 (fwhdr->version & 0x000003e0) >> 5, in saa7164_downloadfirmware()
498 (fwhdr->version & 0x0000001f), in saa7164_downloadfirmware()
499 (fwhdr->version & 0xffff0000) >> 16 in saa7164_downloadfirmware()
504 ret = 0; in saa7164_downloadfirmware()
508 if ((hdr->firmwaresize == 0) && (hdr->bslsize == 0)) { in saa7164_downloadfirmware()
519 printk(KERN_INFO "%s() FirmwareSize = 0x%x\n", in saa7164_downloadfirmware()
521 printk(KERN_INFO "%s() BSLSize = 0x%x\n", in saa7164_downloadfirmware()
523 printk(KERN_INFO "%s() Reserved = 0x%x\n", in saa7164_downloadfirmware()
525 printk(KERN_INFO "%s() Version = 0x%x\n", in saa7164_downloadfirmware()
534 if (ret < 0) { in saa7164_downloadfirmware()
565 if (ret < 0) { in saa7164_downloadfirmware()
583 if (ret < 0) { in saa7164_downloadfirmware()
592 ret = 0; in saa7164_downloadfirmware()