Home
last modified time | relevance | path

Searched refs:flow_cfg (Results 1 – 11 of 11) sorted by relevance

/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c33 static void otx2_clear_ntuple_flow_info(struct otx2_nic *pfvf, struct otx2_flow_config *flow_cfg) in otx2_clear_ntuple_flow_info() argument
35 devm_kfree(pfvf->dev, flow_cfg->flow_ent); in otx2_clear_ntuple_flow_info()
36 flow_cfg->flow_ent = NULL; in otx2_clear_ntuple_flow_info()
37 flow_cfg->max_flows = 0; in otx2_clear_ntuple_flow_info()
42 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_free_ntuple_mcam_entries() local
46 if (!flow_cfg->max_flows) in otx2_free_ntuple_mcam_entries()
50 for (ent = 0; ent < flow_cfg->max_flows; ent++) { in otx2_free_ntuple_mcam_entries()
55 req->entry = flow_cfg->flow_ent[ent]; in otx2_free_ntuple_mcam_entries()
63 otx2_clear_ntuple_flow_info(pfvf, flow_cfg); in otx2_free_ntuple_mcam_entries()
74 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_alloc_mcam_entries() local
[all …]
Dotx2_devlink.c16 struct otx2_flow_config *flow_cfg; in otx2_dl_mcam_count_validate() local
18 if (!pfvf->flow_cfg) { in otx2_dl_mcam_count_validate()
24 flow_cfg = pfvf->flow_cfg; in otx2_dl_mcam_count_validate()
25 if (flow_cfg && flow_cfg->nr_flows) { in otx2_dl_mcam_count_validate()
40 if (!pfvf->flow_cfg) in otx2_dl_mcam_count_set()
54 struct otx2_flow_config *flow_cfg; in otx2_dl_mcam_count_get() local
56 if (!pfvf->flow_cfg) { in otx2_dl_mcam_count_get()
61 flow_cfg = pfvf->flow_cfg; in otx2_dl_mcam_count_get()
62 ctx->val.vu16 = flow_cfg->max_flows; in otx2_dl_mcam_count_get()
Dotx2_dmac_flt.c65 dmacindex = &pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_add()
115 u8 dmacindex = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_remove()
147 pf->flow_cfg->dmacflt_max_flows = rsp->max_dmac_filters; in otx2_dmacflt_get_max_cnt()
169 req->index = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_update()
Dotx2_tc.c61 if (!nic->flow_cfg->max_flows || is_otx2_vf(nic->pcifunc)) in otx2_tc_alloc_ent_bitmap()
68 kcalloc(BITS_TO_LONGS(nic->flow_cfg->max_flows), in otx2_tc_alloc_ent_bitmap()
624 struct otx2_flow_config *flow_cfg = nic->flow_cfg; in otx2_tc_del_flow() local
667 flow_cfg->nr_flows--; in otx2_tc_del_flow()
676 struct otx2_flow_config *flow_cfg = nic->flow_cfg; in otx2_tc_add_flow() local
685 if (bitmap_full(tc_info->tc_entries_bitmap, flow_cfg->max_flows)) { in otx2_tc_add_flow()
725 flow_cfg->max_flows); in otx2_tc_add_flow()
727 req->entry = flow_cfg->flow_ent[flow_cfg->max_flows - new_node->bitpos - 1]; in otx2_tc_add_flow()
752 flow_cfg->nr_flows++; in otx2_tc_add_flow()
1042 if (!nic->flow_cfg) { in otx2_init_tc()
Dotx2_pf.c1110 if (enable && bitmap_weight(&pf->flow_cfg->dmacflt_bmap, in otx2_cgx_config_loopback()
1111 pf->flow_cfg->dmacflt_max_flows)) in otx2_cgx_config_loopback()
1853 if (!pf->flow_cfg->max_flows) { in otx2_set_features()
1861 if (!pf->flow_cfg->max_flows) { in otx2_set_features()
1869 pf->flow_cfg && pf->flow_cfg->nr_flows) { in otx2_set_features()
2101 struct otx2_flow_config *flow_cfg = pf->flow_cfg; in otx2_do_set_vf_vlan() local
2142 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2155 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2169 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
2220 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
Dotx2_common.h358 struct otx2_flow_config *flow_cfg; member
842 int otx2_get_maxflows(struct otx2_flow_config *flow_cfg);
Dotx2_vf.c484 if (!otx2_get_maxflows(vf->flow_cfg)) { in otx2vf_set_features()
Dotx2_ethtool.c657 nfc->rule_cnt = pfvf->flow_cfg->nr_flows; in otx2_get_rxnfc()
/Linux-v5.15/drivers/dma/ti/
Dk3-udma-glue.c658 struct k3_udma_glue_rx_flow_cfg *flow_cfg) in k3_udma_glue_cfg_rx_flow() argument
686 rx_ring_id = flow_cfg->ring_rxq_id; in k3_udma_glue_cfg_rx_flow()
687 rx_ringfdq_id = flow_cfg->ring_rxfdq0_id; in k3_udma_glue_cfg_rx_flow()
701 flow_cfg->rx_cfg.dma_dev = k3_udma_glue_rx_get_dma_device(rx_chn); in k3_udma_glue_cfg_rx_flow()
702 flow_cfg->rxfdq_cfg.dma_dev = flow_cfg->rx_cfg.dma_dev; in k3_udma_glue_cfg_rx_flow()
706 flow_cfg->rx_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow()
707 flow_cfg->rxfdq_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow()
710 ret = k3_ringacc_ring_cfg(flow->ringrx, &flow_cfg->rx_cfg); in k3_udma_glue_cfg_rx_flow()
716 ret = k3_ringacc_ring_cfg(flow->ringrxfdq, &flow_cfg->rxfdq_cfg); in k3_udma_glue_cfg_rx_flow()
752 if (flow_cfg->rx_error_handling) in k3_udma_glue_cfg_rx_flow()
[all …]
/Linux-v5.15/include/linux/dma/
Dk3-udma-glue.h123 u32 flow_idx, struct k3_udma_glue_rx_flow_cfg *flow_cfg);
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_nix.c3198 static int get_flowkey_alg_idx(struct nix_hw *nix_hw, u32 flow_cfg) in get_flowkey_alg_idx() argument
3204 if (nix_hw->flowkey.flowkey[i] == flow_cfg) in get_flowkey_alg_idx()
3210 static int set_flowkey_fields(struct nix_rx_flowkey_alg *alg, u32 flow_cfg) in set_flowkey_fields() argument
3246 field = &tmp; max_bit_pos = fls(flow_cfg); in set_flowkey_fields()
3251 valid_key = flow_cfg & key_type; in set_flowkey_fields()
3474 static int reserve_flowkey_alg_idx(struct rvu *rvu, int blkaddr, u32 flow_cfg) in reserve_flowkey_alg_idx() argument
3489 rc = set_flowkey_fields((struct nix_rx_flowkey_alg *)field, flow_cfg); in reserve_flowkey_alg_idx()
3501 hw->flowkey.flowkey[rc] = flow_cfg; in reserve_flowkey_alg_idx()