Lines Matching defs:tag
492 if (ce->tag) {
493 /* Use a fixed tag for OA and friends */
494 GEM_BUG_ON(ce->tag <= BITS_PER_LONG);
495 ce->lrc.ccid = ce->tag;
497 /* We don't need a strict matching tag, just different values */
498 unsigned int tag = ffs(READ_ONCE(engine->context_tag));
500 GEM_BUG_ON(tag == 0 || tag >= BITS_PER_LONG);
501 clear_bit(tag - 1, &engine->context_tag);
502 ce->lrc.ccid = tag << (XEHP_SW_CTX_ID_SHIFT - 32);
507 /* We don't need a strict matching tag, just different values */
508 unsigned int tag = __ffs(engine->context_tag);
510 GEM_BUG_ON(tag >= BITS_PER_LONG);
511 __clear_bit(tag, &engine->context_tag);
512 ce->lrc.ccid = (1 + tag) << (GEN11_SW_CTX_ID_SHIFT - 32);