Lines Matching refs:block
66 const struct mlxsw_afk_block *block = &mlxsw_afk->blocks[i];
68 for (j = 0; j < block->instances_count; j++) {
72 elinst = &block->instances[j];
154 const struct mlxsw_afk_block *block = &mlxsw_afk->blocks[i];
156 for (j = 0; j < block->instances_count; j++) {
159 elinst = &block->instances[j];
276 * we must find out optimal block list in order to make the
277 * block count as low as possible.
282 * Then in loop, we find block with most hits and add it to
283 * output key_info. Then we have to subtract this block hits so
284 * the next iteration will find most suitable block for
383 mlxsw_afk_block_elinst_get(const struct mlxsw_afk_block *block,
388 for (i = 0; i < block->instances_count; i++) {
391 elinst = &block->instances[i];
404 const struct mlxsw_afk_block *block;
410 block = key_info->blocks[block_index];
412 elinst = mlxsw_afk_block_elinst_get(block, element);