Lines Matching refs:cfm
69 static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len);
136 int cycx_setup(struct cycx_hw *hw, void *cfm, u32 len, unsigned long dpmbase)
170 err = load_cyc2x(hw, cfm, len);
382 static int load_cyc2x(struct cycx_hw *hw, struct cycx_firmware *cfm, u32 len)
394 cfm->signature);
397 if (strcmp(cfm->signature, CFM_SIGNATURE)) {
403 printk(KERN_INFO "%s: firmware version=%u\n", modname, cfm->version);
406 if (cfm->version != CFM_VERSION) {
409 modname, __func__, cfm->version, CFM_VERSION);
414 cksum = checksum((u8*)&cfm->info, sizeof(struct cycx_fw_info) +
415 cfm->info.codesize);
416 if (cksum != cfm->checksum) {
421 cfm->info.codesize);
423 cksum, cfm->checksum);
428 img_hdr = (struct cycx_fw_header *)&cfm->image;
442 cfm->descr[0] ? cfm->descr : "unknown firmware",
443 cfm->info.codeid);