Lines Matching refs:dglort
499 struct fm10k_dglort_cfg *dglort) in fm10k_configure_dglort_map_pf() argument
506 if (!dglort) in fm10k_configure_dglort_map_pf()
510 if ((dglort->idx > 7) || (dglort->rss_l > 7) || (dglort->pc_l > 3) || in fm10k_configure_dglort_map_pf()
511 (dglort->vsi_l > 6) || (dglort->vsi_b > 64) || in fm10k_configure_dglort_map_pf()
512 (dglort->queue_l > 8) || (dglort->queue_b >= 256)) in fm10k_configure_dglort_map_pf()
516 queue_count = BIT(dglort->rss_l + dglort->pc_l); in fm10k_configure_dglort_map_pf()
517 vsi_count = BIT(dglort->vsi_l + dglort->queue_l); in fm10k_configure_dglort_map_pf()
518 glort = dglort->glort; in fm10k_configure_dglort_map_pf()
519 q_idx = dglort->queue_b; in fm10k_configure_dglort_map_pf()
533 queue_count = BIT(dglort->queue_l + dglort->rss_l + dglort->vsi_l); in fm10k_configure_dglort_map_pf()
534 pc_count = BIT(dglort->pc_l); in fm10k_configure_dglort_map_pf()
538 q_idx = pc + dglort->queue_b; in fm10k_configure_dglort_map_pf()
553 dglortdec = ((u32)(dglort->rss_l) << FM10K_DGLORTDEC_RSSLENGTH_SHIFT) | in fm10k_configure_dglort_map_pf()
554 ((u32)(dglort->queue_b) << FM10K_DGLORTDEC_QBASE_SHIFT) | in fm10k_configure_dglort_map_pf()
555 ((u32)(dglort->pc_l) << FM10K_DGLORTDEC_PCLENGTH_SHIFT) | in fm10k_configure_dglort_map_pf()
556 ((u32)(dglort->vsi_b) << FM10K_DGLORTDEC_VSIBASE_SHIFT) | in fm10k_configure_dglort_map_pf()
557 ((u32)(dglort->vsi_l) << FM10K_DGLORTDEC_VSILENGTH_SHIFT) | in fm10k_configure_dglort_map_pf()
558 ((u32)(dglort->queue_l)); in fm10k_configure_dglort_map_pf()
559 if (dglort->inner_rss) in fm10k_configure_dglort_map_pf()
563 dglortmap = (dglort->idx == fm10k_dglort_default) ? in fm10k_configure_dglort_map_pf()
565 dglortmap <<= dglort->vsi_l + dglort->queue_l + dglort->shared_l; in fm10k_configure_dglort_map_pf()
566 dglortmap |= dglort->glort; in fm10k_configure_dglort_map_pf()
569 fm10k_write_reg(hw, FM10K_DGLORTDEC(dglort->idx), dglortdec); in fm10k_configure_dglort_map_pf()
570 fm10k_write_reg(hw, FM10K_DGLORTMAP(dglort->idx), dglortmap); in fm10k_configure_dglort_map_pf()