Lines Matching refs:group

313 	wq->group = NULL;
498 static void idxd_group_config_write(struct idxd_group *group)
500 struct idxd_device *idxd = group->idxd;
505 dev_dbg(dev, "Writing group %d cfg registers\n", group->id);
510 group->id * 64 + i * sizeof(u64);
511 iowrite64(group->grpcfg.wqs[i],
514 group->id, i, grpcfg_offset,
519 grpcfg_offset = idxd->grpcfg_offset + group->id * 64 + 32;
520 iowrite64(group->grpcfg.engines, idxd->reg_base + grpcfg_offset);
521 dev_dbg(dev, "GRPCFG engs[%d: %#x]: %#llx\n", group->id,
525 grpcfg_offset = idxd->grpcfg_offset + group->id * 64 + 40;
526 iowrite32(group->grpcfg.flags.bits, idxd->reg_base + grpcfg_offset);
528 group->id, grpcfg_offset,
550 struct idxd_group *group = &idxd->groups[i];
552 idxd_group_config_write(group);
565 if (!wq->group)
630 struct idxd_group *group = &idxd->groups[i];
632 if (group->tc_a == -1)
633 group->tc_a = group->grpcfg.flags.tc_a = 0;
635 group->grpcfg.flags.tc_a = group->tc_a;
636 if (group->tc_b == -1)
637 group->tc_b = group->grpcfg.flags.tc_b = 1;
639 group->grpcfg.flags.tc_b = group->tc_b;
640 group->grpcfg.flags.use_token_limit = group->use_token_limit;
641 group->grpcfg.flags.tokens_reserved = group->tokens_reserved;
642 if (group->tokens_allowed)
643 group->grpcfg.flags.tokens_allowed =
644 group->tokens_allowed;
646 group->grpcfg.flags.tokens_allowed = idxd->max_tokens;
654 struct idxd_group *group;
657 group = &idxd->groups[i];
658 group->grpcfg.engines = 0;
663 group = eng->group;
665 if (!group)
668 group->grpcfg.engines |= BIT(eng->id);
681 struct idxd_group *group;
686 group = &idxd->groups[i];
688 group->grpcfg.wqs[j] = 0;
693 group = wq->group;
695 if (!wq->group)
705 group->grpcfg.wqs[wq->id / 64] |= BIT(wq->id % 64);