Lines Matching refs:fw_hdr

1246 	if (pcm_dev->regbin.fw_hdr.binary_version_num >= 0x105) {  in pcmdevice_add_config()
1474 struct pcmdevice_regbin_hdr *fw_hdr; in pcmdev_regbin_ready() local
1481 fw_hdr = &(regbin->fw_hdr); in pcmdev_regbin_ready()
1491 fw_hdr->img_sz = get_unaligned_be32(&buf[offset]); in pcmdev_regbin_ready()
1493 if (fw_hdr->img_sz != fmw->size) { in pcmdev_regbin_ready()
1495 __func__, (int)fmw->size, fw_hdr->img_sz); in pcmdev_regbin_ready()
1501 fw_hdr->checksum = get_unaligned_be32(&buf[offset]); in pcmdev_regbin_ready()
1503 fw_hdr->binary_version_num = get_unaligned_be32(&buf[offset]); in pcmdev_regbin_ready()
1504 if (fw_hdr->binary_version_num < 0x103) { in pcmdev_regbin_ready()
1506 __func__, fw_hdr->binary_version_num); in pcmdev_regbin_ready()
1512 fw_hdr->drv_fw_version = get_unaligned_be32(&buf[offset]); in pcmdev_regbin_ready()
1514 fw_hdr->plat_type = buf[offset]; in pcmdev_regbin_ready()
1516 fw_hdr->dev_family = buf[offset]; in pcmdev_regbin_ready()
1518 fw_hdr->reserve = buf[offset]; in pcmdev_regbin_ready()
1520 fw_hdr->ndev = buf[offset]; in pcmdev_regbin_ready()
1522 if (fw_hdr->ndev != pcm_dev->ndev) { in pcmdev_regbin_ready()
1524 fw_hdr->ndev); in pcmdev_regbin_ready()
1530 if (offset + PCMDEVICE_MAX_REGBIN_DEVICES > fw_hdr->img_sz) { in pcmdev_regbin_ready()
1538 fw_hdr->devs[i] = buf[offset]; in pcmdev_regbin_ready()
1540 fw_hdr->nconfig = get_unaligned_be32(&buf[offset]); in pcmdev_regbin_ready()
1544 fw_hdr->config_size[i] = get_unaligned_be32(&buf[offset]); in pcmdev_regbin_ready()
1546 total_config_sz += fw_hdr->config_size[i]; in pcmdev_regbin_ready()
1549 if (fw_hdr->img_sz - total_config_sz != (unsigned int)offset) { in pcmdev_regbin_ready()
1555 cfg_info = kcalloc(fw_hdr->nconfig, sizeof(*cfg_info), GFP_KERNEL); in pcmdev_regbin_ready()
1563 for (i = 0; i < (int)fw_hdr->nconfig; i++) { in pcmdev_regbin_ready()
1565 fw_hdr->config_size[i], &ret); in pcmdev_regbin_ready()
1572 offset += (int)fw_hdr->config_size[i]; in pcmdev_regbin_ready()