Home
last modified time | relevance | path

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

12

/drivers/staging/comedi/drivers/
Dni_tio.c172 unsigned int cidx = counter->counter_index; in ni_tio_reset_count_and_disarm()
288 unsigned int cidx = counter->counter_index; in ni_tio_clock_src_modifiers()
307 unsigned int cidx = counter->counter_index; in ni_m_series_clock_src_select()
374 unsigned int cidx = counter->counter_index; in ni_660x_clock_src_select()
444 unsigned int cidx = counter->counter_index; in ni_tio_set_sync_mode()
501 unsigned int cidx = counter->counter_index; in ni_tio_set_counter_mode()
561 unsigned int cidx = counter->counter_index; in ni_tio_arm()
727 unsigned int cidx = counter->counter_index; in ni_tio_set_source_subselect()
757 unsigned int cidx = counter->counter_index; in ni_tio_set_clock_src()
829 ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(counter->counter_index), in ni_tio_set_gate_raw()
[all …]
Dni_tiocmd.c42 unsigned int cidx = counter->counter_index; in ni_tio_configure_dma()
106 unsigned int cidx = counter->counter_index; in ni_tio_input_cmd()
164 unsigned int cidx = counter->counter_index; in ni_tio_cmd_setup()
238 unsigned int cidx = counter->counter_index; in ni_tio_cmdtest()
334 unsigned int cidx = counter->counter_index; in ni_tio_cancel()
389 unsigned int cidx = counter->counter_index; in ni_tio_acknowledge_and_confirm()
451 unsigned int cidx = counter->counter_index; in ni_tio_handle_interrupt()
Dni_tio.h95 unsigned int counter_index; member
Dni_660x.c319 counter->counter_index); in ni_660x_set_dma_channel()
347 ring = devpriv->ring[counter->chip_index][counter->counter_index]; in ni_660x_request_mite_channel()
476 ring = devpriv->ring[counter->chip_index][counter->counter_index]; in ni_660x_buf_change()
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()
5858 retval = ni_request_gpct_mite_channel(dev, counter->counter_index, in ni_gpct_cmd()
5866 ni_e_series_enable_second_irq(dev, counter->counter_index, 1); in ni_gpct_cmd()
5877 ni_e_series_enable_second_irq(dev, counter->counter_index, 0); in ni_gpct_cancel()
5878 ni_release_gpct_mite_channel(dev, counter->counter_index); in ni_gpct_cancel()
/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_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_cnt.h19 unsigned int counter_index);
Dspectrum.h489 unsigned int counter_index, u64 *packets,
494 unsigned int counter_index);
639 unsigned int counter_index; member
Dreg.h1083 MLXSW_ITEM32(reg, sfgc, counter_index, 0x0C, 0, 24);
1667 MLXSW_ITEM32(reg, svfa, counter_index, 0x08, 0, 24);
6352 MLXSW_ITEM32(reg, ratr, counter_index, 0x28, 0, 24);
6381 static inline void mlxsw_reg_ratr_counter_pack(char *payload, u64 counter_index, in mlxsw_reg_ratr_counter_pack() argument
6391 mlxsw_reg_ratr_counter_index_set(payload, counter_index); in mlxsw_reg_ratr_counter_pack()
6444 MLXSW_ITEM32(reg, ricnt, counter_index, 0x04, 0, 24);
7162 MLXSW_ITEM32(reg, rauht, counter_index, 0x68, 0, 24);
7198 u64 counter_index) in mlxsw_reg_rauht_pack_counter() argument
7200 mlxsw_reg_rauht_counter_index_set(payload, counter_index); in mlxsw_reg_rauht_pack_counter()
9213 MLXSW_ITEM32(reg, mgpc, counter_index, 0x00, 0, 24);
[all …]
Dspectrum_router.c197 unsigned int counter_index, bool enable, in mlxsw_sp_rif_counter_edit() argument
211 mlxsw_reg_ritr_counter_pack(ritr_pl, counter_index, enable, in mlxsw_sp_rif_counter_edit()
242 unsigned int counter_index) in mlxsw_sp_rif_counter_clear() argument
246 mlxsw_reg_ricnt_pack(ricnt_pl, counter_index, in mlxsw_sp_rif_counter_clear()
1882 unsigned int counter_index; member
1944 return mlxsw_sp_flow_counter_get(mlxsw_sp, neigh_entry->counter_index, in mlxsw_sp_neigh_counter_get()
2018 if (mlxsw_sp_flow_counter_alloc(mlxsw_sp, &neigh_entry->counter_index)) in mlxsw_sp_neigh_counter_alloc()
2031 neigh_entry->counter_index); in mlxsw_sp_neigh_counter_free()
2371 neigh_entry->counter_index); in mlxsw_sp_router_neigh_entry_op4()
2388 neigh_entry->counter_index); in mlxsw_sp_router_neigh_entry_op6()
[all …]
Dspectrum_acl.c622 &rulei->counter_index, extack); in mlxsw_sp_acl_rulei_act_count()
839 err = mlxsw_sp_flow_counter_get(mlxsw_sp, rulei->counter_index, in mlxsw_sp_acl_rule_get_stats()
/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.c975 int counter_index) in handle_existing_counter() argument
981 if (counter_index == MLX4_SINK_COUNTER_INDEX(dev)) in handle_existing_counter()
985 r = find_res(dev, counter_index, RES_COUNTER); in handle_existing_counter()
1015 qpc->pri_path.counter_index = counter->com.res_id; in handle_unexisting_counter()
1031 qpc->pri_path.counter_index = counter_idx; in handle_unexisting_counter()
1033 __func__, slave, qpc->pri_path.counter_index); in handle_unexisting_counter()
1043 if (qpc->pri_path.counter_index != MLX4_SINK_COUNTER_INDEX(dev)) in handle_counter()
1045 qpc->pri_path.counter_index); in handle_counter()
/drivers/infiniband/hw/mlx4/
Dqp.c531 mlx4_counter_free(dev->dev, qp->counter_index->index); in mlx4_ib_free_qp_counter()
532 list_del(&qp->counter_index->list); in mlx4_ib_free_qp_counter()
535 kfree(qp->counter_index); in mlx4_ib_free_qp_counter()
536 qp->counter_index = NULL; in mlx4_ib_free_qp_counter()
1694 if (mqp->counter_index) in _mlx4_ib_destroy_qp()
1975 struct counter_index *new_counter_index; in create_qp_lb_counter()
1997 qp->counter_index = new_counter_index; in create_qp_lb_counter()
2152 int counter_index; in __mlx4_ib_modify_qp() local
2242 if (new_state == IB_QPS_RESET && qp->counter_index) in __mlx4_ib_modify_qp()
2275 counter_index = in __mlx4_ib_modify_qp()
[all …]
Dmain.c1282 struct counter_index *counter, *tmp_count; in mlx4_ib_delete_counters_table()
2615 u32 counter_index; in mlx4_ib_add() local
2616 struct counter_index *new_counter_index = NULL; in mlx4_ib_add()
2757 err = mlx4_counter_alloc(ibdev->dev, &counter_index, in mlx4_ib_add()
2761 counter_index = in mlx4_ib_add()
2767 counter_index = mlx4_get_default_counter_index(dev, in mlx4_ib_add()
2774 mlx4_counter_free(ibdev->dev, counter_index); in mlx4_ib_add()
2777 new_counter_index->index = counter_index; in mlx4_ib_add()
2781 ibdev->counters_table[i].default_counter = counter_index; in mlx4_ib_add()
2783 counter_index, i + 1, allocated); in mlx4_ib_add()
[all …]
Dmlx4_ib.h347 struct counter_index *counter_index; member
562 struct counter_index { struct
/drivers/net/ethernet/google/gve/
Dgve_tx.c569 u32 counter_index = be32_to_cpu((tx->q_resources->counter_index)); in gve_tx_load_event_counter() local
571 return READ_ONCE(priv->counter_array[counter_index]); in gve_tx_load_event_counter()
Dgve_adminq.h142 __be32 counter_index; /* Device -> Guest */ member
/drivers/net/ethernet/intel/ice/
Dice_switch.h186 u8 counter_index; member
/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_counters.c199 int counter_index = counter->id - bulk_base_id; in mlx5_fc_stats_query_counter_range() local
207 update_counter_cache(counter_index, data, cache); in mlx5_fc_stats_query_counter_range()

12