Lines Matching defs:sid
63 * Allocate a free shadow id and setup a valid sid mapping in given entry.
72 unsigned long sid;
75 sid = __this_cpu_inc_return(pcpu_last_used_sid);
76 if (sid < NUM_TIDS) {
77 __this_cpu_write(pcpu_sids.entry[sid], entry);
78 entry->val = sid;
79 entry->pentry = this_cpu_ptr(&pcpu_sids.entry[sid]);
80 ret = sid;
84 * If sid == NUM_TIDS, we've run out of sids. We return -1, and
87 * sid > NUM_TIDS indicates a race, which we disable preemption to
90 WARN_ON(sid > NUM_TIDS);
190 int sid;
196 sid = local_sid_lookup(&idt->id[as][gid][pr]);
198 while (sid <= 0) {
200 sid = local_sid_setup_one(&idt->id[as][gid][pr]);
201 if (sid <= 0) {
211 return sid;