Lines Matching refs:bcm
135 int qcom_icc_bcm_init(struct qcom_icc_bcm *bcm, struct device *dev) in qcom_icc_bcm_init() argument
143 if (bcm->addr) in qcom_icc_bcm_init()
146 bcm->addr = cmd_db_read_addr(bcm->name); in qcom_icc_bcm_init()
147 if (!bcm->addr) { in qcom_icc_bcm_init()
149 bcm->name); in qcom_icc_bcm_init()
153 data = cmd_db_read_aux_data(bcm->name, &data_count); in qcom_icc_bcm_init()
156 bcm->name, PTR_ERR(data)); in qcom_icc_bcm_init()
161 bcm->name); in qcom_icc_bcm_init()
165 bcm->aux_data.unit = le32_to_cpu(data->unit); in qcom_icc_bcm_init()
166 bcm->aux_data.width = le16_to_cpu(data->width); in qcom_icc_bcm_init()
167 bcm->aux_data.vcd = data->vcd; in qcom_icc_bcm_init()
168 bcm->aux_data.reserved = data->reserved; in qcom_icc_bcm_init()
169 INIT_LIST_HEAD(&bcm->list); in qcom_icc_bcm_init()
170 INIT_LIST_HEAD(&bcm->ws_list); in qcom_icc_bcm_init()
172 if (!bcm->vote_scale) in qcom_icc_bcm_init()
173 bcm->vote_scale = 1000; in qcom_icc_bcm_init()
176 for (i = 0; i < bcm->num_nodes; i++) { in qcom_icc_bcm_init()
177 qn = bcm->nodes[i]; in qcom_icc_bcm_init()
178 qn->bcms[qn->num_bcms] = bcm; in qcom_icc_bcm_init()