Home
last modified time | relevance | path

Searched refs:counter_dev (Results 1 – 10 of 10) sorted by relevance

/openbmc/linux/drivers/comedi/drivers/
H A Dni_tio.c226 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_bits_transient() local
271 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_get_soft_copy() local
287 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_clock_src_modifiers() local
306 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_m_series_clock_src_select() local
443 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_sync_mode() local
500 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_counter_mode() local
560 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_arm() local
726 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_source_subselect() local
1798 counter_dev->regs = kcalloc(counter_dev->num_chips, in ni_gpct_device_construct()
1800 if (!counter_dev->regs || !counter_dev->counters) { in ni_gpct_device_construct()
[all …]
H A Dni_tiocmd.c41 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_configure_dma() local
57 switch (counter_dev->variant) { in ni_tio_configure_dma()
103 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_input_cmd() local
105 counter_dev->routing_tables; in ni_tio_input_cmd()
114 switch (counter_dev->variant) { in ni_tio_input_cmd()
155 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_output_cmd()
166 counter->counter_dev->routing_tables; in ni_tio_cmd_setup()
240 counter->counter_dev->routing_tables; in ni_tio_cmdtest()
355 switch (counter->counter_dev->variant) { in should_ack_gate()
411 if (counter->counter_dev->variant != in ni_tio_acknowledge_and_confirm()
[all …]
H A Dni_tio.h94 struct ni_gpct_device *counter_dev; member
127 void ni_gpct_device_destroy(struct ni_gpct_device *counter_dev);
155 int ni_tio_get_routing(struct ni_gpct_device *counter_dev,
170 int ni_tio_set_routing(struct ni_gpct_device *counter_dev,
178 int ni_tio_unset_routing(struct ni_gpct_device *counter_dev,
H A Dni_660x.c258 struct ni_gpct_device *counter_dev; member
296 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_write()
304 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_read()
784 reg = ni_tio_get_routing(devpriv->counter_dev, dest); in get_output_select_source()
878 ni_tio_set_routing(devpriv->counter_dev, dest, in connect_route()
940 ni_tio_unset_routing(devpriv->counter_dev, dest); in disconnect_route()
1062 devpriv->counter_dev = gpct_dev; in ni_660x_auto_attach()
1210 ni_gpct_device_destroy(devpriv->counter_dev); in ni_660x_detach()
H A Dni_tio_internal.h159 ni_tio_counting_mode_registers_present(const struct ni_gpct_device *counter_dev) in ni_tio_counting_mode_registers_present() argument
162 return counter_dev->variant != ni_gpct_variant_e_series; in ni_tio_counting_mode_registers_present()
H A Dni_mio_common.c720 if (devpriv->counter_dev->counters[gpct_index].mite_chan) { in ni_release_gpct_mite_channel()
722 devpriv->counter_dev->counters[gpct_index].mite_chan; in ni_release_gpct_mite_channel()
4013 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_write_register()
4059 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_read_register()
5673 reg = ni_tio_get_routing(devpriv->counter_dev, dest); in get_output_select_source()
5767 ni_tio_set_routing(devpriv->counter_dev, dest, in connect_route()
5828 ni_tio_unset_routing(devpriv->counter_dev, dest); in disconnect_route()
6247 devpriv->counter_dev = ni_gpct_device_construct(dev, in ni_E_init()
6256 if (!devpriv->counter_dev) in ni_E_init()
6261 struct ni_gpct *gpct = &devpriv->counter_dev->counters[i]; in ni_E_init()
[all …]
H A Dni_stc.h1007 struct ni_gpct_device *counter_dev; member
/openbmc/linux/drivers/counter/
H A Dti-ecap-capture.c477 struct counter_device *counter_dev; in ecap_cnt_probe() local
483 if (!counter_dev) in ecap_cnt_probe()
486 counter_dev->name = ECAP_DRV_NAME; in ecap_cnt_probe()
487 counter_dev->parent = dev; in ecap_cnt_probe()
488 counter_dev->ops = &ecap_cnt_ops; in ecap_cnt_probe()
489 counter_dev->signals = ecap_cnt_signals; in ecap_cnt_probe()
491 counter_dev->counts = ecap_cnt_counts; in ecap_cnt_probe()
494 ecap_dev = counter_priv(counter_dev); in ecap_cnt_probe()
546 ecap_cnt_capture_disable(counter_dev); in ecap_cnt_remove()
564 ecap_cnt_capture_disable(counter_dev); in ecap_cnt_suspend()
[all …]
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_tc.c644 return mlx5e_is_eswitch_flow(flow) ? flow->attr->esw_attr->counter_dev : flow->priv->mdev; in get_flow_counter_dev()
1344 alloc_flow_attr_counter(struct mlx5_core_dev *counter_dev, in alloc_flow_attr_counter() argument
1350 counter = mlx5_fc_create(counter_dev, true); in alloc_flow_attr_counter()
4283 struct mlx5_core_dev *counter_dev = get_flow_counter_dev(flow); in mlx5_free_flow_attr_actions() local
4295 mlx5_fc_destroy(counter_dev, attr->counter); in mlx5_free_flow_attr_actions()
4396 esw_attr->counter_dev = in_mdev; in mlx5e_flow_esw_attr_init()
4398 esw_attr->counter_dev = priv->mdev; in mlx5e_flow_esw_attr_init()
H A Deswitch.h516 struct mlx5_core_dev *counter_dev; member