• Home
  • Raw
  • Download

Lines Matching refs:idx

732 	int size, idx;  in sparx5_vcap_is_known_etype()  local
752 for (idx = 0; idx < size; ++idx) in sparx5_vcap_is_known_etype()
753 if (known_etypes[idx] == etype) in sparx5_vcap_is_known_etype()
769 int idx, jdx, lookup; in sparx5_vcap_validate_keyset() local
804 for (idx = 0; idx < kslist->cnt; ++idx) in sparx5_vcap_validate_keyset()
806 if (kslist->keysets[idx] == keysets[jdx]) in sparx5_vcap_validate_keyset()
807 return kslist->keysets[idx]; in sparx5_vcap_validate_keyset()
925 int idx; in sparx5_vcap_is0_cache_write() local
933 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is0_cache_write()
935 spx5_wr(keystr[idx] & mskstr[idx], sparx5, in sparx5_vcap_is0_cache_write()
936 VCAP_SUPER_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_is0_cache_write()
937 spx5_wr(~mskstr[idx], sparx5, in sparx5_vcap_is0_cache_write()
938 VCAP_SUPER_VCAP_MASK_DAT(idx)); in sparx5_vcap_is0_cache_write()
942 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is0_cache_write()
943 spx5_wr(actstr[idx], sparx5, in sparx5_vcap_is0_cache_write()
944 VCAP_SUPER_VCAP_ACTION_DAT(idx)); in sparx5_vcap_is0_cache_write()
966 int idx; in sparx5_vcap_is2_cache_write() local
974 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is2_cache_write()
976 spx5_wr(keystr[idx] & mskstr[idx], sparx5, in sparx5_vcap_is2_cache_write()
977 VCAP_SUPER_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_is2_cache_write()
978 spx5_wr(~mskstr[idx], sparx5, in sparx5_vcap_is2_cache_write()
979 VCAP_SUPER_VCAP_MASK_DAT(idx)); in sparx5_vcap_is2_cache_write()
983 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is2_cache_write()
984 spx5_wr(actstr[idx], sparx5, in sparx5_vcap_is2_cache_write()
985 VCAP_SUPER_VCAP_ACTION_DAT(idx)); in sparx5_vcap_is2_cache_write()
1026 int idx; in sparx5_vcap_es0_cache_write() local
1034 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_es0_cache_write()
1036 spx5_wr(keystr[idx] & mskstr[idx], sparx5, in sparx5_vcap_es0_cache_write()
1037 VCAP_ES0_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_es0_cache_write()
1038 spx5_wr(~mskstr[idx], sparx5, in sparx5_vcap_es0_cache_write()
1039 VCAP_ES0_VCAP_MASK_DAT(idx)); in sparx5_vcap_es0_cache_write()
1043 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es0_cache_write()
1044 spx5_wr(actstr[idx], sparx5, in sparx5_vcap_es0_cache_write()
1045 VCAP_ES0_VCAP_ACTION_DAT(idx)); in sparx5_vcap_es0_cache_write()
1067 int idx; in sparx5_vcap_es2_cache_write() local
1075 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_es2_cache_write()
1077 spx5_wr(keystr[idx] & mskstr[idx], sparx5, in sparx5_vcap_es2_cache_write()
1078 VCAP_ES2_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_es2_cache_write()
1079 spx5_wr(~mskstr[idx], sparx5, in sparx5_vcap_es2_cache_write()
1080 VCAP_ES2_VCAP_MASK_DAT(idx)); in sparx5_vcap_es2_cache_write()
1084 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es2_cache_write()
1085 spx5_wr(actstr[idx], sparx5, in sparx5_vcap_es2_cache_write()
1086 VCAP_ES2_VCAP_ACTION_DAT(idx)); in sparx5_vcap_es2_cache_write()
1138 int idx; in sparx5_vcap_is0_cache_read() local
1145 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is0_cache_read()
1146 keystr[idx] = spx5_rd(sparx5, in sparx5_vcap_is0_cache_read()
1147 VCAP_SUPER_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_is0_cache_read()
1148 mskstr[idx] = ~spx5_rd(sparx5, in sparx5_vcap_is0_cache_read()
1149 VCAP_SUPER_VCAP_MASK_DAT(idx)); in sparx5_vcap_is0_cache_read()
1154 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is0_cache_read()
1155 actstr[idx] = spx5_rd(sparx5, in sparx5_vcap_is0_cache_read()
1156 VCAP_SUPER_VCAP_ACTION_DAT(idx)); in sparx5_vcap_is0_cache_read()
1173 int idx; in sparx5_vcap_is2_cache_read() local
1180 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_is2_cache_read()
1181 keystr[idx] = spx5_rd(sparx5, in sparx5_vcap_is2_cache_read()
1182 VCAP_SUPER_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_is2_cache_read()
1183 mskstr[idx] = ~spx5_rd(sparx5, in sparx5_vcap_is2_cache_read()
1184 VCAP_SUPER_VCAP_MASK_DAT(idx)); in sparx5_vcap_is2_cache_read()
1189 for (idx = 0; idx < count; ++idx) in sparx5_vcap_is2_cache_read()
1190 actstr[idx] = spx5_rd(sparx5, in sparx5_vcap_is2_cache_read()
1191 VCAP_SUPER_VCAP_ACTION_DAT(idx)); in sparx5_vcap_is2_cache_read()
1228 int idx; in sparx5_vcap_es0_cache_read() local
1235 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_es0_cache_read()
1236 keystr[idx] = in sparx5_vcap_es0_cache_read()
1237 spx5_rd(sparx5, VCAP_ES0_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_es0_cache_read()
1238 mskstr[idx] = in sparx5_vcap_es0_cache_read()
1239 ~spx5_rd(sparx5, VCAP_ES0_VCAP_MASK_DAT(idx)); in sparx5_vcap_es0_cache_read()
1244 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es0_cache_read()
1245 actstr[idx] = in sparx5_vcap_es0_cache_read()
1246 spx5_rd(sparx5, VCAP_ES0_VCAP_ACTION_DAT(idx)); in sparx5_vcap_es0_cache_read()
1263 int idx; in sparx5_vcap_es2_cache_read() local
1270 for (idx = 0; idx < count; ++idx) { in sparx5_vcap_es2_cache_read()
1271 keystr[idx] = in sparx5_vcap_es2_cache_read()
1272 spx5_rd(sparx5, VCAP_ES2_VCAP_ENTRY_DAT(idx)); in sparx5_vcap_es2_cache_read()
1273 mskstr[idx] = in sparx5_vcap_es2_cache_read()
1274 ~spx5_rd(sparx5, VCAP_ES2_VCAP_MASK_DAT(idx)); in sparx5_vcap_es2_cache_read()
1279 for (idx = 0; idx < count; ++idx) in sparx5_vcap_es2_cache_read()
1280 actstr[idx] = in sparx5_vcap_es2_cache_read()
1281 spx5_rd(sparx5, VCAP_ES2_VCAP_ACTION_DAT(idx)); in sparx5_vcap_es2_cache_read()
1991 int idx, cores; in sparx5_vcap_block_alloc() local
2000 for (idx = cfg->blockno; idx < cfg->blockno + cfg->blocks; in sparx5_vcap_block_alloc()
2001 ++idx) { in sparx5_vcap_block_alloc()
2002 spx5_wr(VCAP_SUPER_IDX_CORE_IDX_SET(idx), sparx5, in sparx5_vcap_block_alloc()
2017 for (idx = 0; idx < cores; ++idx) { in sparx5_vcap_block_alloc()
2018 spx5_wr(VCAP_ES0_IDX_CORE_IDX_SET(idx), sparx5, in sparx5_vcap_block_alloc()
2029 for (idx = 0; idx < cores; ++idx) { in sparx5_vcap_block_alloc()
2030 spx5_wr(VCAP_ES2_IDX_CORE_IDX_SET(idx), sparx5, in sparx5_vcap_block_alloc()
2049 int err = 0, idx; in sparx5_vcap_init() local
2072 for (idx = 0; idx < ARRAY_SIZE(sparx5_vcap_inst_cfg); ++idx) { in sparx5_vcap_init()
2073 cfg = &sparx5_vcap_inst_cfg[idx]; in sparx5_vcap_init()
2088 for (idx = 0; idx < SPX5_PORTS; ++idx) in sparx5_vcap_init()
2089 if (sparx5->ports[idx]) in sparx5_vcap_init()
2091 sparx5->ports[idx]->ndev); in sparx5_vcap_init()