Lines Matching full:drc
51 info = of_find_property(dn, "ibm,drc-info", NULL); in cpu_to_drc_index()
53 struct of_drc_info drc; in cpu_to_drc_index() local
66 of_read_drc_info_cell(&info, &value, &drc); in cpu_to_drc_index()
67 if (strncmp(drc.drc_type, "CPU", 3)) in cpu_to_drc_index()
70 if (thread_index < drc.last_drc_index) in cpu_to_drc_index()
74 ret = drc.drc_index_start + (thread_index * drc.sequential_inc); in cpu_to_drc_index()
79 * The first element of ibm,drc-indexes array is the in cpu_to_drc_index()
84 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
90 rc = of_property_read_u32_index(dn, "ibm,drc-indexes", in cpu_to_drc_index()
120 info = of_find_property(dn, "ibm,drc-info", NULL); in drc_index_to_cpu()
122 struct of_drc_info drc; in drc_index_to_cpu() local
135 of_read_drc_info_cell(&info, &value, &drc); in drc_index_to_cpu()
136 if (strncmp(drc.drc_type, "CPU", 3)) in drc_index_to_cpu()
139 if (drc_index > drc.last_drc_index) { in drc_index_to_cpu()
140 cpu += drc.num_sequential_elems; in drc_index_to_cpu()
143 cpu += ((drc_index - drc.drc_index_start) / in drc_index_to_cpu()
144 drc.sequential_inc); in drc_index_to_cpu()
153 indexes = of_get_property(dn, "ibm,drc-indexes", NULL); in drc_index_to_cpu()