Lines Matching defs:index
1715 u32 index;
1728 u32 index;
1742 u32 index;
1896 if (sfi->index > VSC9959_PSFP_SFID_MAX)
1900 ocelot_write(ocelot, ANA_TABLES_SFIDTIDX_SFID_INDEX(sfi->index),
1920 ANA_TABLES_SFIDTIDX_SFID_INDEX(sfi->index),
1978 vsc9959_psfp_sfidmask_set(ocelot, sfi->index, sfi->portmask);
2003 sfi->index = tmp->index;
2007 /* Make sure that the index is increasing in order. */
2008 if (tmp->index == insert) {
2013 sfi->index = insert;
2033 /* Make sure that the index is increasing in order. */
2034 if (tmp->index >= insert + 2)
2037 insert = tmp->index + 1;
2040 sfi->index = insert;
2046 sfi2->index = insert + 1;
2052 vsc9959_psfp_sfi_table_get(struct list_head *sfi_list, u32 index)
2057 if (tmp->index == index)
2063 static void vsc9959_psfp_sfi_table_del(struct ocelot *ocelot, u32 index)
2072 if (tmp->index == index) {
2087 sgi->index = entry->hw_index;
2113 if (sgi->index > VSC9959_PSFP_GATE_ID_MAX)
2116 ocelot_write(ocelot, ANA_SG_ACCESS_CTRL_SGID(sgi->index),
2184 if (tmp->index == sgi->index) {
2199 tmp->index = sgi->index;
2207 u32 index)
2217 if (tmp->index == index) {
2220 sgi.index = index;
2244 u32 index;
2272 sfi.sgid = sgi->index;
2276 index = a->hw_index + VSC9959_PSFP_POLICER_BASE;
2277 if (index > VSC9959_PSFP_POLICER_MAX) {
2288 ret = ocelot_vcap_policer_add(ocelot, index, &pol);
2293 sfi.fmid = index;
2351 stream_entry->sfid = old_sfi.index;
2358 stream.sfid = sfi.index;
2438 u32 sfid = sfi->index;