Searched refs:hpre_cap (Results 1 – 1 of 1) sorted by relevance
1107 struct hisi_qm_cap_record *hpre_cap; in hpre_pre_store_cap_reg() local1112 hpre_cap = devm_kzalloc(dev, sizeof(*hpre_cap) * size, GFP_KERNEL); in hpre_pre_store_cap_reg()1113 if (!hpre_cap) in hpre_pre_store_cap_reg()1117 hpre_cap[i].type = hpre_pre_store_caps[i]; in hpre_pre_store_cap_reg()1118 hpre_cap[i].cap_val = hisi_qm_get_hw_info(qm, hpre_basic_info, in hpre_pre_store_cap_reg()1122 if (hpre_cap[HPRE_CLUSTER_NUM_CAP_IDX].cap_val > HPRE_CLUSTERS_NUM_MAX) { in hpre_pre_store_cap_reg()1124 hpre_cap[HPRE_CLUSTER_NUM_CAP_IDX].cap_val, HPRE_CLUSTERS_NUM_MAX); in hpre_pre_store_cap_reg()1128 qm->cap_tables.dev_cap_table = hpre_cap; in hpre_pre_store_cap_reg()