Lines Matching defs:cluster
126 * mips_cps_cluster_config - return (GCR|CPC)_CONFIG from a cluster
127 * @cluster: the ID of the cluster whose config we want
129 * Read the value of GCR_CONFIG (or its CPC_CONFIG mirror) from a @cluster.
133 static inline uint64_t mips_cps_cluster_config(unsigned int cluster)
141 * within this cluster.
143 WARN_ON(cluster != 0);
151 mips_cm_lock_other(cluster, 0, 0, CM_GCR_Cx_OTHER_BLOCK_GLOBAL);
160 * mips_cps_numcores - return the number of cores present in a cluster
161 * @cluster: the ID of the cluster whose core count we want
166 static inline unsigned int mips_cps_numcores(unsigned int cluster)
172 return (mips_cps_cluster_config(cluster) + 1) & CM_GCR_CONFIG_PCORES;
176 * mips_cps_numiocu - return the number of IOCUs present in a cluster
177 * @cluster: the ID of the cluster whose IOCU count we want
182 static inline unsigned int mips_cps_numiocu(unsigned int cluster)
189 num_iocu = mips_cps_cluster_config(cluster) & CM_GCR_CONFIG_NUMIOCU;
196 * @cluster: the ID of the cluster containing the core we want to examine
200 * are supported by the given @core in the given @cluster. If the core or the
203 static inline unsigned int mips_cps_numvps(unsigned int cluster, unsigned int core)
214 mips_cm_lock_other(cluster, core, 0, CM_GCR_Cx_OTHER_BLOCK_LOCAL);
218 * Prior to CM 3.5 we can only have one cluster & don't have
226 * up the cluster's CM here.