Home
last modified time | relevance | path

Searched refs:counter_index (Results 1 – 25 of 31) sorted by relevance

12

/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_mr_tcam.c183 u32 counter_index; member
194 u16 irif_index, u32 counter_index, in mlxsw_sp_mr_tcam_afa_block_create() argument
206 counter_index); in mlxsw_sp_mr_tcam_afa_block_create()
301 err = mlxsw_sp_flow_counter_alloc(mlxsw_sp, &route->counter_index); in mlxsw_sp_mr_tcam_route_create()
309 route->counter_index, in mlxsw_sp_mr_tcam_route_create()
336 mlxsw_sp_flow_counter_free(mlxsw_sp, route->counter_index); in mlxsw_sp_mr_tcam_route_create()
353 mlxsw_sp_flow_counter_free(mlxsw_sp, route->counter_index); in mlxsw_sp_mr_tcam_route_destroy()
363 return mlxsw_sp_flow_counter_get(mlxsw_sp, route->counter_index, in mlxsw_sp_mr_tcam_route_stats()
380 route->counter_index, in mlxsw_sp_mr_tcam_route_action_update()
413 route->counter_index, in mlxsw_sp_mr_tcam_route_min_mtu_update()
[all …]
Dcore_acl_flex_actions.c584 u32 counter_index; member
593 counter->counter_index); in mlxsw_afa_counter_destroy()
618 &counter->counter_index); in mlxsw_afa_counter_create()
1063 MLXSW_ITEM32(afa, polcnt, counter_index, 0x04, 0, 24);
1068 u32 counter_index) in mlxsw_afa_polcnt_pack() argument
1071 mlxsw_afa_polcnt_counter_index_set(payload, counter_index); in mlxsw_afa_polcnt_pack()
1075 u32 counter_index) in mlxsw_afa_block_append_allocated_counter() argument
1082 counter_index); in mlxsw_afa_block_append_allocated_counter()
1092 u32 counter_index; in mlxsw_afa_block_append_counter() local
1100 counter_index = counter->counter_index; in mlxsw_afa_block_append_counter()
[all …]
Dspectrum_cnt.c165 unsigned int counter_index) in mlxsw_sp_counter_free() argument
171 if (WARN_ON(counter_index >= pool->pool_size)) in mlxsw_sp_counter_free()
175 __clear_bit(counter_index + i, pool->usage); in mlxsw_sp_counter_free()
Dcore_acl_flex_actions.h22 void (*counter_index_put)(void *priv, unsigned int counter_index);
61 u32 counter_index);
Dspectrum_cnt.h19 unsigned int counter_index);
Dspectrum_acl_flex_actions.c127 mlxsw_sp_act_counter_index_put(void *priv, unsigned int counter_index) in mlxsw_sp_act_counter_index_put() argument
131 mlxsw_sp_flow_counter_free(mlxsw_sp, counter_index); in mlxsw_sp_act_counter_index_put()
Dspectrum.h359 unsigned int counter_index, u64 *packets,
364 unsigned int counter_index);
482 unsigned int counter_index; member
Dreg.h963 MLXSW_ITEM32(reg, sfgc, counter_index, 0x0C, 0, 24);
1534 MLXSW_ITEM32(reg, svfa, counter_index, 0x08, 0, 24);
5681 MLXSW_ITEM32(reg, ratr, counter_index, 0x28, 0, 24);
5710 static inline void mlxsw_reg_ratr_counter_pack(char *payload, u64 counter_index, in mlxsw_reg_ratr_counter_pack() argument
5720 mlxsw_reg_ratr_counter_index_set(payload, counter_index); in mlxsw_reg_ratr_counter_pack()
5773 MLXSW_ITEM32(reg, ricnt, counter_index, 0x04, 0, 24);
6491 MLXSW_ITEM32(reg, rauht, counter_index, 0x68, 0, 24);
6527 u64 counter_index) in mlxsw_reg_rauht_pack_counter() argument
6529 mlxsw_reg_rauht_counter_index_set(payload, counter_index); in mlxsw_reg_rauht_pack_counter()
8245 MLXSW_ITEM32(reg, mgpc, counter_index, 0x00, 0, 24);
[all …]
Dspectrum_acl.c612 &rulei->counter_index, extack); in mlxsw_sp_acl_rulei_act_count()
808 err = mlxsw_sp_flow_counter_get(mlxsw_sp, rulei->counter_index, in mlxsw_sp_acl_rule_get_stats()
Dspectrum_router.c190 unsigned int counter_index, bool enable, in mlxsw_sp_rif_counter_edit() argument
204 mlxsw_reg_ritr_counter_pack(ritr_pl, counter_index, enable, in mlxsw_sp_rif_counter_edit()
235 unsigned int counter_index) in mlxsw_sp_rif_counter_clear() argument
239 mlxsw_reg_ricnt_pack(ricnt_pl, counter_index, in mlxsw_sp_rif_counter_clear()
1783 unsigned int counter_index; member
1845 return mlxsw_sp_flow_counter_get(mlxsw_sp, neigh_entry->counter_index, in mlxsw_sp_neigh_counter_get()
1919 if (mlxsw_sp_flow_counter_alloc(mlxsw_sp, &neigh_entry->counter_index)) in mlxsw_sp_neigh_counter_alloc()
1932 neigh_entry->counter_index); in mlxsw_sp_neigh_counter_free()
2272 neigh_entry->counter_index); in mlxsw_sp_router_neigh_entry_op4()
2289 neigh_entry->counter_index); in mlxsw_sp_router_neigh_entry_op6()
[all …]
Dspectrum.c365 unsigned int counter_index, u64 *packets, in mlxsw_sp_flow_counter_get() argument
371 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_NOP, in mlxsw_sp_flow_counter_get()
384 unsigned int counter_index) in mlxsw_sp_flow_counter_clear() argument
388 mlxsw_reg_mgpc_pack(mgpc_pl, counter_index, MLXSW_REG_MGPC_OPCODE_CLEAR, in mlxsw_sp_flow_counter_clear()
414 unsigned int counter_index) in mlxsw_sp_flow_counter_free() argument
417 counter_index); in mlxsw_sp_flow_counter_free()
/Linux-v4.19/drivers/staging/comedi/drivers/
Dni_tio.c172 unsigned int cidx = counter->counter_index; in ni_tio_reset_count_and_disarm()
285 unsigned int cidx = counter->counter_index; in ni_tio_clock_src_modifiers()
304 unsigned int cidx = counter->counter_index; in ni_m_series_clock_src_select()
370 unsigned int cidx = counter->counter_index; in ni_660x_clock_src_select()
440 unsigned int cidx = counter->counter_index; in ni_tio_set_sync_mode()
497 unsigned int cidx = counter->counter_index; in ni_tio_set_counter_mode()
557 unsigned int cidx = counter->counter_index; in ni_tio_arm()
723 unsigned int cidx = counter->counter_index; in ni_tio_set_source_subselect()
752 unsigned int cidx = counter->counter_index; in ni_tio_set_clock_src()
824 unsigned int cidx = counter->counter_index; in ni_660x_set_gate()
[all …]
Dni_tiocmd.c41 unsigned int cidx = counter->counter_index; in ni_tio_configure_dma()
103 unsigned int cidx = counter->counter_index; in ni_tio_input_cmd()
150 unsigned int cidx = counter->counter_index; in ni_tio_cmd_setup()
276 unsigned int cidx = counter->counter_index; in ni_tio_cancel()
331 unsigned int cidx = counter->counter_index; in ni_tio_acknowledge_and_confirm()
393 unsigned int cidx = counter->counter_index; in ni_tio_handle_interrupt()
Dni_tio.h95 unsigned int counter_index; member
Dni_660x.c312 counter->counter_index); in ni_660x_set_dma_channel()
342 ring = devpriv->ring[counter->chip_index][counter->counter_index]; in ni_660x_request_mite_channel()
471 ring = devpriv->ring[counter->chip_index][counter->counter_index]; in ni_660x_buf_change()
835 counter->counter_index = i % NI660X_COUNTERS_PER_CHIP; in ni_660x_auto_attach()
Dni_mio_common.c1252 unsigned short counter_index) in handle_gpct_interrupt() argument
1258 s = &dev->subdevices[NI_GPCT_SUBDEV(counter_index)]; in handle_gpct_interrupt()
1260 ni_tio_handle_interrupt(&devpriv->counter_dev->counters[counter_index], in handle_gpct_interrupt()
5150 retval = ni_request_gpct_mite_channel(dev, counter->counter_index, in ni_gpct_cmd()
5158 ni_e_series_enable_second_irq(dev, counter->counter_index, 1); in ni_gpct_cmd()
5169 ni_e_series_enable_second_irq(dev, counter->counter_index, 0); in ni_gpct_cancel()
5170 ni_release_gpct_mite_channel(dev, counter->counter_index); in ni_gpct_cancel()
5521 gpct->counter_index = i; in ni_E_init()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_resources.c71 context->pri_path.counter_index = priv->counter_index; in mlx4_en_fill_qp_context()
76 context->pri_path.counter_index != in mlx4_en_fill_qp_context()
Den_port.c194 int i, counter_index; in mlx4_en_DUMP_ETH_STATS() local
217 counter_index = mlx4_get_default_counter_index(mdev->dev, port); in mlx4_en_DUMP_ETH_STATS()
218 err = mlx4_get_counter_stats(mdev->dev, counter_index, in mlx4_en_DUMP_ETH_STATS()
Dresource_tracker.c965 int counter_index) in handle_existing_counter() argument
971 if (counter_index == MLX4_SINK_COUNTER_INDEX(dev)) in handle_existing_counter()
975 r = find_res(dev, counter_index, RES_COUNTER); in handle_existing_counter()
1005 qpc->pri_path.counter_index = counter->com.res_id; in handle_unexisting_counter()
1021 qpc->pri_path.counter_index = counter_idx; in handle_unexisting_counter()
1023 __func__, slave, qpc->pri_path.counter_index); in handle_unexisting_counter()
1033 if (qpc->pri_path.counter_index != MLX4_SINK_COUNTER_INDEX(dev)) in handle_counter()
1035 qpc->pri_path.counter_index); in handle_counter()
/Linux-v4.19/drivers/net/ethernet/intel/ice/
Dice_switch.h136 u8 counter_index; member
/Linux-v4.19/drivers/infiniband/hw/mlx4/
Dqp.c529 mlx4_counter_free(dev->dev, qp->counter_index->index); in mlx4_ib_free_qp_counter()
530 list_del(&qp->counter_index->list); in mlx4_ib_free_qp_counter()
533 kfree(qp->counter_index); in mlx4_ib_free_qp_counter()
534 qp->counter_index = NULL; in mlx4_ib_free_qp_counter()
1606 if (mqp->counter_index) in _mlx4_ib_destroy_qp()
1890 struct counter_index *new_counter_index; in create_qp_lb_counter()
1912 qp->counter_index = new_counter_index; in create_qp_lb_counter()
2061 int counter_index; in __mlx4_ib_modify_qp() local
2153 if (new_state == IB_QPS_RESET && qp->counter_index) in __mlx4_ib_modify_qp()
2188 counter_index = in __mlx4_ib_modify_qp()
[all …]
Dmain.c1396 struct counter_index *counter, *tmp_count; in mlx4_ib_delete_counters_table()
2602 u32 counter_index; in mlx4_ib_add() local
2603 struct counter_index *new_counter_index = NULL; in mlx4_ib_add()
2812 err = mlx4_counter_alloc(ibdev->dev, &counter_index, in mlx4_ib_add()
2816 counter_index = in mlx4_ib_add()
2822 counter_index = mlx4_get_default_counter_index(dev, in mlx4_ib_add()
2829 mlx4_counter_free(ibdev->dev, counter_index); in mlx4_ib_add()
2832 new_counter_index->index = counter_index; in mlx4_ib_add()
2836 ibdev->counters_table[i].default_counter = counter_index; in mlx4_ib_add()
2838 counter_index, i + 1, allocated); in mlx4_ib_add()
[all …]
Dmlx4_ib.h352 struct counter_index *counter_index; member
565 struct counter_index { struct
/Linux-v4.19/include/linux/mlx4/
Dcmd.h306 int mlx4_get_counter_stats(struct mlx4_dev *dev, int counter_index,
Dqp.h144 u8 counter_index; member

12