Lines Matching refs:p_counter_index
239 unsigned int *p_counter_index; in mlxsw_sp_rif_counter_value_get() local
247 p_counter_index = mlxsw_sp_rif_p_counter_get(rif, dir); in mlxsw_sp_rif_counter_value_get()
248 if (!p_counter_index) in mlxsw_sp_rif_counter_value_get()
250 mlxsw_reg_ricnt_pack(ricnt_pl, *p_counter_index, in mlxsw_sp_rif_counter_value_get()
279 unsigned int *p_counter_index; in mlxsw_sp_rif_counter_fetch_clear() local
285 p_counter_index = mlxsw_sp_rif_p_counter_get(rif, dir); in mlxsw_sp_rif_counter_fetch_clear()
286 if (!p_counter_index) in mlxsw_sp_rif_counter_fetch_clear()
289 mlxsw_reg_ricnt_pack(ricnt_pl, *p_counter_index, in mlxsw_sp_rif_counter_fetch_clear()
331 unsigned int *p_counter_index; in mlxsw_sp_rif_counter_alloc() local
337 p_counter_index = mlxsw_sp_rif_p_counter_get(rif, dir); in mlxsw_sp_rif_counter_alloc()
338 if (!p_counter_index) in mlxsw_sp_rif_counter_alloc()
342 p_counter_index); in mlxsw_sp_rif_counter_alloc()
346 err = mlxsw_sp_rif_counter_clear(mlxsw_sp, *p_counter_index); in mlxsw_sp_rif_counter_alloc()
351 *p_counter_index, true, dir); in mlxsw_sp_rif_counter_alloc()
360 *p_counter_index); in mlxsw_sp_rif_counter_alloc()
368 unsigned int *p_counter_index; in mlxsw_sp_rif_counter_free() local
373 p_counter_index = mlxsw_sp_rif_p_counter_get(rif, dir); in mlxsw_sp_rif_counter_free()
374 if (WARN_ON(!p_counter_index)) in mlxsw_sp_rif_counter_free()
377 *p_counter_index, false, dir); in mlxsw_sp_rif_counter_free()
379 *p_counter_index); in mlxsw_sp_rif_counter_free()