Lines Matching refs:sid
76 unsigned long sid; in local_sid_setup_one() local
79 sid = __this_cpu_inc_return(pcpu_last_used_sid); in local_sid_setup_one()
80 if (sid < NUM_TIDS) { in local_sid_setup_one()
81 __this_cpu_write(pcpu_sids.entry[sid], entry); in local_sid_setup_one()
82 entry->val = sid; in local_sid_setup_one()
83 entry->pentry = this_cpu_ptr(&pcpu_sids.entry[sid]); in local_sid_setup_one()
84 ret = sid; in local_sid_setup_one()
94 WARN_ON(sid > NUM_TIDS); in local_sid_setup_one()
194 int sid; in kvmppc_e500_get_sid() local
200 sid = local_sid_lookup(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid()
202 while (sid <= 0) { in kvmppc_e500_get_sid()
204 sid = local_sid_setup_one(&idt->id[as][gid][pr]); in kvmppc_e500_get_sid()
205 if (sid <= 0) { in kvmppc_e500_get_sid()
215 return sid; in kvmppc_e500_get_sid()