Searched refs:sfi (Results 1 – 2 of 2) sorted by relevance
604 struct enetc_psfp_filter *sfi, in enetc_streamfilter_hw_set() argument615 cbd.index = cpu_to_le16(sfi->index); in enetc_streamfilter_hw_set()626 if (sfi->handle >= 0) { in enetc_streamfilter_hw_set()628 cpu_to_le32(sfi->handle); in enetc_streamfilter_hw_set()632 sfi_config->sg_inst_table_index = cpu_to_le16(sfi->gate_id); in enetc_streamfilter_hw_set()638 if (sfi->prio >= 0) in enetc_streamfilter_hw_set()639 sfi_config->multi |= (sfi->prio & 0x7) | 0x8; in enetc_streamfilter_hw_set()645 if (sfi->maxsdu) { in enetc_streamfilter_hw_set()647 cpu_to_le16(sfi->maxsdu); in enetc_streamfilter_hw_set()651 if (sfi->meter_id >= 0) { in enetc_streamfilter_hw_set()[all …]
1892 struct felix_stream_filter *sfi) in vsc9959_psfp_sfi_set() argument1896 if (sfi->index > VSC9959_PSFP_SFID_MAX) in vsc9959_psfp_sfi_set()1899 if (!sfi->enable) { in vsc9959_psfp_sfi_set()1900 ocelot_write(ocelot, ANA_TABLES_SFIDTIDX_SFID_INDEX(sfi->index), in vsc9959_psfp_sfi_set()1911 if (sfi->sgid > VSC9959_PSFP_GATE_ID_MAX || in vsc9959_psfp_sfi_set()1912 sfi->fmid > VSC9959_PSFP_POLICER_MAX) in vsc9959_psfp_sfi_set()1916 (sfi->sg_valid ? ANA_TABLES_SFIDTIDX_SGID_VALID : 0) | in vsc9959_psfp_sfi_set()1917 ANA_TABLES_SFIDTIDX_SGID(sfi->sgid) | in vsc9959_psfp_sfi_set()1918 (sfi->fm_valid ? ANA_TABLES_SFIDTIDX_POL_ENA : 0) | in vsc9959_psfp_sfi_set()1919 ANA_TABLES_SFIDTIDX_POL_IDX(sfi->fmid) | in vsc9959_psfp_sfi_set()[all …]