Lines Matching refs:wqcfg
305 union wqcfg wqcfg;
310 wqcfg.bits[WQCFG_PASID_IDX] = ioread32(idxd->reg_base + offset);
311 wqcfg.pasid_en = 1;
312 wqcfg.pasid = pasid;
313 wq->wqcfg->bits[WQCFG_PASID_IDX] = wqcfg.bits[WQCFG_PASID_IDX];
314 iowrite32(wqcfg.bits[WQCFG_PASID_IDX], idxd->reg_base + offset);
339 union wqcfg wqcfg;
348 wqcfg.bits[WQCFG_PASID_IDX] = ioread32(idxd->reg_base + offset);
349 wqcfg.pasid_en = 0;
350 wqcfg.pasid = 0;
351 iowrite32(wqcfg.bits[WQCFG_PASID_IDX], idxd->reg_base + offset);
367 memset(wq->wqcfg, 0, idxd->wqcfg_size);
922 wq->wqcfg->bits[i] |= ioread32(idxd->reg_base + wq_offset);
929 wq->wqcfg->wq_size = wq->size;
932 wq->wqcfg->wq_thresh = wq->threshold;
936 wq->wqcfg->mode = 1;
949 if (wq_dedicated(wq) && wq->wqcfg->pasid_en &&
956 wq->wqcfg->priority = wq->priority;
961 wq->wqcfg->bof = 1;
964 wq->wqcfg->wq_ats_disable = test_bit(WQ_FLAG_ATS_DISABLE, &wq->flags);
967 wq->wqcfg->wq_prs_disable = test_bit(WQ_FLAG_PRS_DISABLE, &wq->flags);
970 wq->wqcfg->max_xfer_shift = ilog2(wq->max_xfer_bytes);
971 idxd_wqcfg_set_max_batch_shift(idxd->data->type, wq->wqcfg, ilog2(wq->max_batch_size));
975 memset(wq->wqcfg->op_config, 0, IDXD_MAX_OPCAP_BITS / 8);
980 wq->wqcfg->op_config[idx] |= BIT(pos);
987 iowrite32(wq->wqcfg->bits[i], idxd->reg_base + wq_offset);
1135 memcpy_fromio(wq->wqcfg, idxd->reg_base + wqcfg_offset, idxd->wqcfg_size);
1137 wq->size = wq->wqcfg->wq_size;
1138 wq->threshold = wq->wqcfg->wq_thresh;
1141 if (wq->wqcfg->mode == 0 || wq->wqcfg->pasid_en)
1146 wq->priority = wq->wqcfg->priority;
1148 wq->max_xfer_bytes = 1ULL << wq->wqcfg->max_xfer_shift;
1149 idxd_wq_set_max_batch_size(idxd->data->type, wq, 1U << wq->wqcfg->max_batch_shift);
1153 dev_dbg(dev, "WQ[%d][%d][%#x]: %#x\n", wq->id, i, wqcfg_offset, wq->wqcfg->bits[i]);