Lines Matching refs:fmi

861 				  struct enetc_psfp_meter *fmi,  in enetc_flowmeter_hw_set()  argument
868 cbd.index = cpu_to_le16((u16)fmi->index); in enetc_flowmeter_hw_set()
878 if (fmi->cir) { in enetc_flowmeter_hw_set()
879 temp = (u64)8000 * fmi->cir; in enetc_flowmeter_hw_set()
884 fmi_config->cbs = cpu_to_le32(fmi->cbs); in enetc_flowmeter_hw_set()
1006 struct enetc_psfp_meter *fmi; in flow_meter_unref() local
1009 fmi = enetc_get_meter_by_index(index); in flow_meter_unref()
1010 WARN_ON(!fmi); in flow_meter_unref()
1011 z = refcount_dec_and_test(&fmi->refcount); in flow_meter_unref()
1013 enetc_flowmeter_hw_set(priv, fmi, false); in flow_meter_unref()
1014 hlist_del(&fmi->node); in flow_meter_unref()
1015 kfree(fmi); in flow_meter_unref()
1036 struct enetc_psfp_meter *fmi) in enetc_psfp_hw_set() argument
1054 if (fmi) { in enetc_psfp_hw_set()
1055 err = enetc_flowmeter_hw_set(priv, fmi, true); in enetc_psfp_hw_set()
1132 struct enetc_psfp_meter *fmi = NULL, *old_fmi; in enetc_psfp_parse_clsflower() local
1286 fmi = kzalloc(sizeof(*fmi), GFP_KERNEL); in enetc_psfp_parse_clsflower()
1287 if (!fmi) { in enetc_psfp_parse_clsflower()
1291 refcount_set(&fmi->refcount, 1); in enetc_psfp_parse_clsflower()
1292 fmi->cir = entryp->police.rate_bytes_ps; in enetc_psfp_parse_clsflower()
1293 fmi->cbs = entryp->police.burst; in enetc_psfp_parse_clsflower()
1294 fmi->index = entryp->hw_index; in enetc_psfp_parse_clsflower()
1296 filter->fmi_index = fmi->index; in enetc_psfp_parse_clsflower()
1297 sfi->meter_id = fmi->index; in enetc_psfp_parse_clsflower()
1334 sfi_overwrite ? NULL : sfi, sgi, fmi); in enetc_psfp_parse_clsflower()
1342 fmi->refcount = old_fmi->refcount; in enetc_psfp_parse_clsflower()
1343 refcount_set(&fmi->refcount, in enetc_psfp_parse_clsflower()
1348 hlist_add_head(&fmi->node, &epsfp.psfp_meter_list); in enetc_psfp_parse_clsflower()
1382 kfree(fmi); in enetc_psfp_parse_clsflower()