Searched refs:flow_cfg (Results 1 – 11 of 11) sorted by relevance
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 35 static void otx2_clear_ntuple_flow_info(struct otx2_nic *pfvf, struct otx2_flow_config *flow_cfg) in otx2_clear_ntuple_flow_info() argument 37 devm_kfree(pfvf->dev, flow_cfg->flow_ent); in otx2_clear_ntuple_flow_info() 38 flow_cfg->flow_ent = NULL; in otx2_clear_ntuple_flow_info() 39 flow_cfg->max_flows = 0; in otx2_clear_ntuple_flow_info() 44 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_free_ntuple_mcam_entries() local 48 if (!flow_cfg->max_flows) in otx2_free_ntuple_mcam_entries() 52 for (ent = 0; ent < flow_cfg->max_flows; ent++) { in otx2_free_ntuple_mcam_entries() 57 req->entry = flow_cfg->flow_ent[ent]; in otx2_free_ntuple_mcam_entries() 65 otx2_clear_ntuple_flow_info(pfvf, flow_cfg); in otx2_free_ntuple_mcam_entries() 76 struct otx2_flow_config *flow_cfg = pfvf->flow_cfg; in otx2_alloc_mcam_entries() local [all …]
|
D | otx2_devlink.c | 16 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()
|
D | otx2_dmac_flt.c | 81 dmacindex = &pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_add() 132 u32 dmacindex = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_remove() 170 pf->flow_cfg->dmacflt_max_flows = rsp->max_dmac_filters; in otx2_dmacflt_get_max_cnt() 193 req->index = pf->flow_cfg->bmap_to_dmacindex[bit_pos]; in otx2_dmacflt_update() 204 pf->flow_cfg->bmap_to_dmacindex[bit_pos] = rsp->index; in otx2_dmacflt_update()
|
D | otx2_tc.c | 67 if (!nic->flow_cfg->max_flows) in otx2_tc_alloc_ent_bitmap() 74 kcalloc(BITS_TO_LONGS(nic->flow_cfg->max_flows), in otx2_tc_alloc_ent_bitmap() 707 struct otx2_flow_config *flow_cfg = nic->flow_cfg; in otx2_tc_del_flow() local 750 flow_cfg->nr_flows--; in otx2_tc_del_flow() 759 struct otx2_flow_config *flow_cfg = nic->flow_cfg; in otx2_tc_add_flow() local 768 if (bitmap_full(tc_info->tc_entries_bitmap, flow_cfg->max_flows)) { in otx2_tc_add_flow() 808 flow_cfg->max_flows); in otx2_tc_add_flow() 810 req->entry = flow_cfg->flow_ent[flow_cfg->max_flows - new_node->bitpos - 1]; in otx2_tc_add_flow() 835 flow_cfg->nr_flows++; in otx2_tc_add_flow() 1126 if (!nic->flow_cfg) { in otx2_init_tc()
|
D | otx2_pf.c | 1134 if (enable && !bitmap_empty(pf->flow_cfg->dmacflt_bmap, in otx2_cgx_config_loopback() 1135 pf->flow_cfg->dmacflt_max_flows)) in otx2_cgx_config_loopback() 2252 struct otx2_flow_config *flow_cfg = pf->flow_cfg; in otx2_do_set_vf_vlan() local 2293 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan() 2306 flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan() 2320 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan() 2371 req->entry = flow_cfg->def_ent[flow_cfg->vf_vlan_offset + idx]; in otx2_do_set_vf_vlan()
|
D | otx2_common.h | 464 struct otx2_flow_config *flow_cfg; member 987 int otx2_get_maxflows(struct otx2_flow_config *flow_cfg);
|
D | otx2_common.c | 1781 if (!pfvf->flow_cfg->max_flows) { in otx2_handle_ntuple_tc_features() 1789 if (!pfvf->flow_cfg->max_flows) { in otx2_handle_ntuple_tc_features() 1797 pfvf->flow_cfg && pfvf->flow_cfg->nr_flows) { in otx2_handle_ntuple_tc_features()
|
D | otx2_ethtool.c | 730 nfc->rule_cnt = pfvf->flow_cfg->nr_flows; in otx2_get_rxnfc()
|
/Linux-v6.1/drivers/dma/ti/ |
D | k3-udma-glue.c | 659 struct k3_udma_glue_rx_flow_cfg *flow_cfg) in k3_udma_glue_cfg_rx_flow() argument 687 rx_ring_id = flow_cfg->ring_rxq_id; in k3_udma_glue_cfg_rx_flow() 688 rx_ringfdq_id = flow_cfg->ring_rxfdq0_id; in k3_udma_glue_cfg_rx_flow() 702 flow_cfg->rx_cfg.dma_dev = k3_udma_glue_rx_get_dma_device(rx_chn); in k3_udma_glue_cfg_rx_flow() 703 flow_cfg->rxfdq_cfg.dma_dev = flow_cfg->rx_cfg.dma_dev; in k3_udma_glue_cfg_rx_flow() 707 flow_cfg->rx_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow() 708 flow_cfg->rxfdq_cfg.asel = rx_chn->common.atype_asel; in k3_udma_glue_cfg_rx_flow() 711 ret = k3_ringacc_ring_cfg(flow->ringrx, &flow_cfg->rx_cfg); in k3_udma_glue_cfg_rx_flow() 717 ret = k3_ringacc_ring_cfg(flow->ringrxfdq, &flow_cfg->rxfdq_cfg); in k3_udma_glue_cfg_rx_flow() 753 if (flow_cfg->rx_error_handling) in k3_udma_glue_cfg_rx_flow() [all …]
|
/Linux-v6.1/include/linux/dma/ |
D | k3-udma-glue.h | 123 u32 flow_idx, struct k3_udma_glue_rx_flow_cfg *flow_cfg);
|
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rvu_nix.c | 3267 static int get_flowkey_alg_idx(struct nix_hw *nix_hw, u32 flow_cfg) in get_flowkey_alg_idx() argument 3273 if (nix_hw->flowkey.flowkey[i] == flow_cfg) in get_flowkey_alg_idx() 3279 static int set_flowkey_fields(struct nix_rx_flowkey_alg *alg, u32 flow_cfg) in set_flowkey_fields() argument 3315 field = &tmp; max_bit_pos = fls(flow_cfg); in set_flowkey_fields() 3320 valid_key = flow_cfg & key_type; in set_flowkey_fields() 3543 static int reserve_flowkey_alg_idx(struct rvu *rvu, int blkaddr, u32 flow_cfg) in reserve_flowkey_alg_idx() argument 3558 rc = set_flowkey_fields((struct nix_rx_flowkey_alg *)field, flow_cfg); in reserve_flowkey_alg_idx() 3570 hw->flowkey.flowkey[rc] = flow_cfg; in reserve_flowkey_alg_idx()
|