Lines Matching full:hmask
31 unsigned long hmask = 0; in __sbi_v01_cpumask_to_hartmask() local
46 hmask |= BIT(hartid); in __sbi_v01_cpumask_to_hartmask()
49 return hmask; in __sbi_v01_cpumask_to_hartmask()
204 static int __sbi_rfence_v02_call(unsigned long fid, unsigned long hmask, in __sbi_rfence_v02_call() argument
215 ret = sbi_ecall(ext, fid, hmask, hbase, 0, 0, 0, 0); in __sbi_rfence_v02_call()
218 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
222 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
227 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
231 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
235 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
239 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
250 pr_err("%s: hbase = [%lu] hmask = [0x%lx] failed (error [%d])\n", in __sbi_rfence_v02_call()
251 __func__, hbase, hmask, result); in __sbi_rfence_v02_call()
261 unsigned long hartid, cpuid, hmask = 0, hbase = 0, htop = 0; in __sbi_rfence_v02() local
269 if (hmask) { in __sbi_rfence_v02()
272 result = __sbi_rfence_v02_call(fid, hmask, in __sbi_rfence_v02()
276 hmask = 0; in __sbi_rfence_v02()
279 hmask <<= hbase - hartid; in __sbi_rfence_v02()
283 if (!hmask) { in __sbi_rfence_v02()
289 hmask |= BIT(hartid - hbase); in __sbi_rfence_v02()
292 if (hmask) { in __sbi_rfence_v02()
293 result = __sbi_rfence_v02_call(fid, hmask, hbase, in __sbi_rfence_v02()