Lines Matching refs:bcm
111 int qcom_icc_bcm_init(struct qcom_icc_bcm *bcm, struct device *dev) in qcom_icc_bcm_init() argument
119 if (bcm->addr) in qcom_icc_bcm_init()
122 bcm->addr = cmd_db_read_addr(bcm->name); in qcom_icc_bcm_init()
123 if (!bcm->addr) { in qcom_icc_bcm_init()
125 bcm->name); in qcom_icc_bcm_init()
129 data = cmd_db_read_aux_data(bcm->name, &data_count); in qcom_icc_bcm_init()
132 bcm->name, PTR_ERR(data)); in qcom_icc_bcm_init()
137 bcm->name); in qcom_icc_bcm_init()
141 bcm->aux_data.unit = le32_to_cpu(data->unit); in qcom_icc_bcm_init()
142 bcm->aux_data.width = le16_to_cpu(data->width); in qcom_icc_bcm_init()
143 bcm->aux_data.vcd = data->vcd; in qcom_icc_bcm_init()
144 bcm->aux_data.reserved = data->reserved; in qcom_icc_bcm_init()
145 INIT_LIST_HEAD(&bcm->list); in qcom_icc_bcm_init()
146 INIT_LIST_HEAD(&bcm->ws_list); in qcom_icc_bcm_init()
148 if (!bcm->vote_scale) in qcom_icc_bcm_init()
149 bcm->vote_scale = 1000; in qcom_icc_bcm_init()
152 for (i = 0; i < bcm->num_nodes; i++) { in qcom_icc_bcm_init()
153 qn = bcm->nodes[i]; in qcom_icc_bcm_init()
154 qn->bcms[qn->num_bcms] = bcm; in qcom_icc_bcm_init()