Searched refs:counter_dev (Results 1 – 10 of 10) sorted by relevance
/linux-6.1.9/drivers/comedi/drivers/ |
D | ni_tio.c | 131 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->regs_lock, flags); in ni_tio_set_bits_transient() 271 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_get_soft_copy() local [all …]
|
D | ni_tiocmd.c | 41 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->dev->class_dev, in ni_tio_cmd() 216 dev_err(counter->counter_dev->dev->class_dev, in ni_tio_cmd() 240 counter->counter_dev->routing_tables; in ni_tio_cmdtest() [all …]
|
D | ni_tio.h | 94 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,
|
D | ni_660x.c | 258 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()
|
D | ni_tio_internal.h | 159 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()
|
D | ni_mio_common.c | 618 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, dest); in disconnect_route() [all …]
|
D | ni_stc.h | 1007 struct ni_gpct_device *counter_dev; member
|
/linux-6.1.9/drivers/counter/ |
D | ti-ecap-capture.c | 438 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->ops = &ecap_cnt_ops; in ecap_cnt_probe() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_tc.c | 1247 alloc_flow_attr_counter(struct mlx5_core_dev *counter_dev, in alloc_flow_attr_counter() argument 1253 counter = mlx5_fc_create(counter_dev, true); in alloc_flow_attr_counter() 1847 err = alloc_flow_attr_counter(esw_attr->counter_dev, attr); in mlx5e_tc_add_fdb_flow() 1930 mlx5_fc_destroy(esw_attr->counter_dev, attr->counter); in mlx5e_tc_del_fdb_flow() 3650 return mlx5e_is_eswitch_flow(flow) ? flow->attr->esw_attr->counter_dev : flow->priv->mdev; in get_flow_counter_dev() 3688 struct mlx5_core_dev *counter_dev = get_flow_counter_dev(flow); in free_flow_post_acts() local 3703 mlx5_fc_destroy(counter_dev, attr->counter); in free_flow_post_acts() 4271 esw_attr->counter_dev = in_mdev; in mlx5e_flow_esw_attr_init() 4273 esw_attr->counter_dev = priv->mdev; in mlx5e_flow_esw_attr_init()
|
D | eswitch.h | 470 struct mlx5_core_dev *counter_dev; member
|