Lines Matching full: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) in mips_cps_cluster_config() argument
141 * within this cluster. in mips_cps_cluster_config()
143 WARN_ON(cluster != 0); in mips_cps_cluster_config()
151 mips_cm_lock_other(cluster, 0, 0, CM_GCR_Cx_OTHER_BLOCK_GLOBAL); in mips_cps_cluster_config()
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) in mips_cps_numcores() argument
172 return (mips_cps_cluster_config(cluster) + 1) & CM_GCR_CONFIG_PCORES; in mips_cps_numcores()
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) in mips_cps_numiocu() argument
189 num_iocu = mips_cps_cluster_config(cluster) & CM_GCR_CONFIG_NUMIOCU; in mips_cps_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) in mips_cps_numvps() argument
214 mips_cm_lock_other(cluster, core, 0, CM_GCR_Cx_OTHER_BLOCK_LOCAL); in mips_cps_numvps()
218 * Prior to CM 3.5 we can only have one cluster & don't have in mips_cps_numvps()
226 * up the cluster's CM here. in mips_cps_numvps()