Home
last modified time | relevance | path

Searched refs:counter_dev (Results 1 - 19 of 19) sorted by relevance

/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Dni_tio.c131 static bool ni_tio_has_gate2_registers(const struct ni_gpct_device *counter_dev) in ni_tio_has_gate2_registers() argument
133 switch (counter_dev->variant) { in ni_tio_has_gate2_registers()
153 counter->counter_dev->write(counter, value, reg); in ni_tio_write()
165 return counter->counter_dev->read(counter, reg); in ni_tio_read()
226 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_bits_transient() local
230 if (reg < NITIO_NUM_REGS && chip < counter_dev->num_chips) { in ni_tio_set_bits_transient()
231 unsigned int *regs = counter_dev->regs[chip]; in ni_tio_set_bits_transient()
233 spin_lock_irqsave(&counter_dev->regs_lock, flags); in ni_tio_set_bits_transient()
237 spin_unlock_irqrestore(&counter_dev in ni_tio_set_bits_transient()
271 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_get_soft_copy() local
287 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_clock_src_modifiers() local
306 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_m_series_clock_src_select() local
443 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_sync_mode() local
500 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_counter_mode() local
560 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_arm() local
726 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_source_subselect() local
756 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_clock_src() local
1028 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_gate_src_raw() local
1060 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_gate_src() local
1122 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_other_src() local
1159 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_get_other_src() local
1514 ni_tio_get_routing(struct ni_gpct_device *counter_dev, unsigned int dest) ni_tio_get_routing() argument
1555 ni_tio_set_routing(struct ni_gpct_device *counter_dev, unsigned int dest, unsigned int reg) ni_tio_set_routing() argument
1588 ni_tio_unset_routing(struct ni_gpct_device *counter_dev, unsigned int dest) ni_tio_unset_routing() argument
1638 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_insn_read() local
1679 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_insn_write() local
1725 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_init_counter() local
1774 struct ni_gpct_device *counter_dev; ni_gpct_device_construct() local
1819 ni_gpct_device_destroy(struct ni_gpct_device *counter_dev) ni_gpct_device_destroy() argument
[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()
214 dev_err(counter->counter_dev in ni_tio_cmd()
[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,
160 * @counter_dev:Pointer to general counter device.
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.c259 struct ni_gpct_device *counter_dev; member
297 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_write()
305 struct comedi_device *dev = counter->counter_dev->dev; in ni_660x_gpct_read()
785 reg = ni_tio_get_routing(devpriv->counter_dev, dest); in get_output_select_source()
879 ni_tio_set_routing(devpriv->counter_dev, dest, in connect_route()
941 ni_tio_unset_routing(devpriv->counter_dev, dest); in disconnect_route()
1063 devpriv->counter_dev = gpct_dev; in ni_660x_auto_attach()
1211 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.c618 struct ni_gpct *counter = &devpriv->counter_dev->counters[gpct_index]; in ni_request_gpct_mite_channel()
720 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()
727 counter_dev->counters[gpct_index], in ni_release_gpct_mite_channel()
1260 ni_tio_handle_interrupt(&devpriv->counter_dev->counters[counter_index], in handle_gpct_interrupt()
4014 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_write_register()
4060 struct comedi_device *dev = counter->counter_dev->dev; in ni_gpct_read_register()
5674 reg = ni_tio_get_routing(devpriv->counter_dev, dest); in get_output_select_source()
5768 ni_tio_set_routing(devpriv->counter_dev, dest, in connect_route()
5829 ni_tio_unset_routing(devpriv->counter_dev, des in disconnect_route()
[all...]
H A Dni_stc.h1007 struct ni_gpct_device *counter_dev; member
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Dni_tio.c131 static bool ni_tio_has_gate2_registers(const struct ni_gpct_device *counter_dev) in ni_tio_has_gate2_registers() argument
133 switch (counter_dev->variant) { in ni_tio_has_gate2_registers()
153 counter->counter_dev->write(counter, value, reg); in ni_tio_write()
165 return counter->counter_dev->read(counter, reg); in ni_tio_read()
226 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_set_bits_transient() local
230 if (reg < NITIO_NUM_REGS && chip < counter_dev->num_chips) { in ni_tio_set_bits_transient()
231 unsigned int *regs = counter_dev->regs[chip]; in ni_tio_set_bits_transient()
233 spin_lock_irqsave(&counter_dev->regs_lock, flags); in ni_tio_set_bits_transient()
237 spin_unlock_irqrestore(&counter_dev in ni_tio_set_bits_transient()
271 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_get_soft_copy() local
287 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_clock_src_modifiers() local
306 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_m_series_clock_src_select() local
443 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_sync_mode() local
500 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_counter_mode() local
560 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_arm() local
726 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_source_subselect() local
756 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_clock_src() local
1028 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_gate_src_raw() local
1060 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_gate_src() local
1122 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_set_other_src() local
1159 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_get_other_src() local
1514 ni_tio_get_routing(struct ni_gpct_device *counter_dev, unsigned int dest) ni_tio_get_routing() argument
1555 ni_tio_set_routing(struct ni_gpct_device *counter_dev, unsigned int dest, unsigned int reg) ni_tio_set_routing() argument
1588 ni_tio_unset_routing(struct ni_gpct_device *counter_dev, unsigned int dest) ni_tio_unset_routing() argument
1638 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_insn_read() local
1679 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_insn_write() local
1725 struct ni_gpct_device *counter_dev = counter->counter_dev; ni_tio_init_counter() local
1774 struct ni_gpct_device *counter_dev; ni_gpct_device_construct() local
1819 ni_gpct_device_destroy(struct ni_gpct_device *counter_dev) ni_gpct_device_destroy() argument
[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()
214 dev_err(counter->counter_dev in ni_tio_cmd()
[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,
160 * @counter_dev:Pointer to general counter device.
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.c618 struct ni_gpct *counter = &devpriv->counter_dev->counters[gpct_index]; in ni_request_gpct_mite_channel()
720 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()
726 ni_tio_set_mite_channel(&devpriv->counter_dev->counters[gpct_index], in ni_release_gpct_mite_channel()
1259 ni_tio_handle_interrupt(&devpriv->counter_dev->counters[counter_index], in handle_gpct_interrupt()
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, des in disconnect_route()
[all...]
H A Dni_stc.h1007 struct ni_gpct_device *counter_dev; member
/kernel/linux/linux-6.6/drivers/counter/
H A Dti-ecap-capture.c438 struct counter_device *counter_dev = dev_id; in ecap_cnt_isr() local
439 struct ecap_cnt_dev *ecap_dev = counter_priv(counter_dev); in ecap_cnt_isr()
449 counter_push_event(counter_dev, COUNTER_EVENT_CAPTURE, i); in ecap_cnt_isr()
458 counter_push_event(counter_dev, COUNTER_EVENT_OVERFLOW, i); in ecap_cnt_isr()
477 struct counter_device *counter_dev; in ecap_cnt_probe() local
482 counter_dev = devm_counter_alloc(dev, sizeof(*ecap_dev)); in ecap_cnt_probe()
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 in ecap_cnt_probe()
542 struct counter_device *counter_dev = platform_get_drvdata(pdev); ecap_cnt_remove() local
553 struct counter_device *counter_dev = dev_get_drvdata(dev); ecap_cnt_suspend() local
577 struct counter_device *counter_dev = dev_get_drvdata(dev); ecap_cnt_resume() local
[all...]
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.h399 struct mlx5_core_dev *counter_dev; member
H A Den_tc.c1433 counter = mlx5_fc_create(esw_attr->counter_dev, true); in mlx5e_tc_add_fdb_flow()
1506 mlx5_fc_destroy(attr->esw_attr->counter_dev, attr->counter); in mlx5e_tc_del_fdb_flow()
4705 esw_attr->counter_dev = in_mdev; in mlx5e_flow_esw_attr_init()
4707 esw_attr->counter_dev = priv->mdev; in mlx5e_flow_esw_attr_init()

Completed in 53 milliseconds