Lines Matching refs:tlv

393 	struct avs_tlv *tlv;
411 tlv = (struct avs_tlv *)(payload + offset);
413 switch (tlv->type) {
415 memcpy(&cfg->fw_version, tlv->value, sizeof(cfg->fw_version));
419 cfg->memory_reclaimed = *tlv->value;
423 cfg->slow_clock_freq_hz = *tlv->value;
427 cfg->fast_clock_freq_hz = *tlv->value;
431 cfg->alh_support = *tlv->value;
435 cfg->ipc_dl_mailbox_bytes = *tlv->value;
439 cfg->ipc_ul_mailbox_bytes = *tlv->value;
443 cfg->trace_log_bytes = *tlv->value;
447 cfg->max_ppl_count = *tlv->value;
451 cfg->max_astate_count = *tlv->value;
455 cfg->max_module_pin_count = *tlv->value;
459 cfg->modules_count = *tlv->value;
463 cfg->max_mod_inst_count = *tlv->value;
467 cfg->max_ll_tasks_per_pri_count = *tlv->value;
471 cfg->ll_pri_count = *tlv->value;
475 cfg->max_dp_tasks_count = *tlv->value;
479 cfg->max_libs_count = *tlv->value;
483 cfg->xtal_freq_hz = *tlv->value;
487 cfg->power_gating_policy = *tlv->value;
498 dev_info(adev->dev, "Unrecognized fw param: %d\n", tlv->type);
502 offset += sizeof(*tlv) + tlv->length;
515 struct avs_tlv *tlv;
526 for (offset = i = 0; i < num_tlvs && offset < AVS_MAILBOX_SIZE - sizeof(*tlv); i++) {
527 tlv = (struct avs_tlv *)(payload + offset);
528 tlv->type = va_arg(args, u32);
529 tlv->length = va_arg(args, u32);
531 offset += sizeof(*tlv) + tlv->length;
535 memcpy(tlv->value, va_arg(args, u8*), tlv->length);
553 struct avs_tlv *tlv;
571 tlv = (struct avs_tlv *)(payload + offset);
573 switch (tlv->type) {
575 cfg->avs_version = *tlv->value;
579 cfg->dsp_cores = *tlv->value;
583 cfg->mem_page_bytes = *tlv->value;
587 cfg->total_phys_mem_pages = *tlv->value;
591 cfg->i2s_caps.i2s_version = tlv->value[0];
592 size = tlv->value[1];
600 &tlv->value[2],
609 cfg->gateway_count = *tlv->value;
613 cfg->hp_ebb_count = *tlv->value;
617 cfg->lp_ebb_count = *tlv->value;
621 cfg->ebb_size_bytes = *tlv->value;
628 dev_info(adev->dev, "Unrecognized hw config: %d\n", tlv->type);
632 offset += sizeof(*tlv) + tlv->length;
712 struct avs_tlv *tlv;
719 size += num_vols * sizeof(*tlv);
728 tlv = (struct avs_tlv *)(payload + offset);
730 tlv->type = AVS_PEAKVOL_VOLUME;
731 tlv->length = sizeof(*vols);
732 memcpy(tlv->value, &vols[i], tlv->length);
734 offset += sizeof(*tlv) + tlv->length;
775 struct avs_tlv *tlv;
782 size += num_mutes * sizeof(*tlv);
791 tlv = (struct avs_tlv *)(payload + offset);
793 tlv->type = AVS_PEAKVOL_MUTE;
794 tlv->length = sizeof(*mutes);
795 memcpy(tlv->value, &mutes[i], tlv->length);
797 offset += sizeof(*tlv) + tlv->length;