Lines Matching defs:base
256 #define INIT_QC_COMMON(qc, base, pasid) do { \
259 (qc)->base_l = cpu_to_le32(lower_32_bits(base)); \
260 (qc)->base_h = cpu_to_le32(upper_32_bits(base)); \
386 int (*get_vft)(struct hisi_qm *qm, u32 *base, u32 *number);
603 u64 base, u16 queue, bool op)
609 mailbox->base_l = cpu_to_le32(lower_32_bits(base));
610 mailbox->base_h = cpu_to_le32(upper_32_bits(base));
1204 static void qm_vft_data_cfg(struct hisi_qm *qm, enum vft_type type, u32 base,
1217 (u64)base << QM_SQC_VFT_START_SQN_SHIFT;
1219 tmp = (u64)base << QM_SQC_VFT_START_SQN_SHIFT |
1251 u32 fun_num, u32 base, u32 number)
1269 fun_num |= base << QM_SHAPER_VFT_OFFSET;
1273 qm_vft_data_cfg(qm, type, base, number, factor);
1295 /* The base number of queue reuse for different alg type */
1305 static int qm_set_sqc_cqc_vft(struct hisi_qm *qm, u32 fun_num, u32 base,
1311 ret = qm_set_vft_common(qm, i, fun_num, base, number);
1331 static int qm_get_vft_v2(struct hisi_qm *qm, u32 *base, u32 *number)
1342 *base = QM_SQC_VFT_BASE_MASK_V2 & (sqc_vft >> QM_SQC_VFT_BASE_SHIFT_V2);
2967 * @base: The base number of queue in vft.
2976 static int hisi_qm_get_vft(struct hisi_qm *qm, u32 *base, u32 *number)
2978 if (!base || !number)
2986 return qm->ops->get_vft(qm, base, number);
2993 * @base: The base number of queue in vft.
3003 static int hisi_qm_set_vft(struct hisi_qm *qm, u32 fun_num, u32 base,
3008 if (base >= max_q_num || number > max_q_num ||
3009 (base + number) > max_q_num)
3012 return qm_set_sqc_cqc_vft(qm, fun_num, base, number);
3579 /* The base number of queue reuse for different alg type */