Lines Matching refs:fmi
850 struct enetc_psfp_meter *fmi, in enetc_flowmeter_hw_set() argument
857 cbd.index = cpu_to_le16((u16)fmi->index); in enetc_flowmeter_hw_set()
867 if (fmi->cir) { in enetc_flowmeter_hw_set()
868 temp = (u64)8000 * fmi->cir; in enetc_flowmeter_hw_set()
873 fmi_config->cbs = cpu_to_le32(fmi->cbs); in enetc_flowmeter_hw_set()
995 struct enetc_psfp_meter *fmi; in flow_meter_unref() local
998 fmi = enetc_get_meter_by_index(index); in flow_meter_unref()
999 WARN_ON(!fmi); in flow_meter_unref()
1000 z = refcount_dec_and_test(&fmi->refcount); in flow_meter_unref()
1002 enetc_flowmeter_hw_set(priv, fmi, false); in flow_meter_unref()
1003 hlist_del(&fmi->node); in flow_meter_unref()
1004 kfree(fmi); in flow_meter_unref()
1025 struct enetc_psfp_meter *fmi) in enetc_psfp_hw_set() argument
1043 if (fmi) { in enetc_psfp_hw_set()
1044 err = enetc_flowmeter_hw_set(priv, fmi, true); in enetc_psfp_hw_set()
1081 struct enetc_psfp_meter *fmi = NULL, *old_fmi; in enetc_psfp_parse_clsflower() local
1231 fmi = kzalloc(sizeof(*fmi), GFP_KERNEL); in enetc_psfp_parse_clsflower()
1232 if (!fmi) { in enetc_psfp_parse_clsflower()
1236 refcount_set(&fmi->refcount, 1); in enetc_psfp_parse_clsflower()
1237 fmi->cir = entryp->police.rate_bytes_ps; in enetc_psfp_parse_clsflower()
1238 fmi->cbs = entryp->police.burst; in enetc_psfp_parse_clsflower()
1239 fmi->index = entryp->police.index; in enetc_psfp_parse_clsflower()
1241 filter->fmi_index = fmi->index; in enetc_psfp_parse_clsflower()
1242 sfi->meter_id = fmi->index; in enetc_psfp_parse_clsflower()
1279 sfi_overwrite ? NULL : sfi, sgi, fmi); in enetc_psfp_parse_clsflower()
1287 fmi->refcount = old_fmi->refcount; in enetc_psfp_parse_clsflower()
1288 refcount_set(&fmi->refcount, in enetc_psfp_parse_clsflower()
1293 hlist_add_head(&fmi->node, &epsfp.psfp_meter_list); in enetc_psfp_parse_clsflower()
1327 kfree(fmi); in enetc_psfp_parse_clsflower()