Lines Matching defs:counter

11 #include <linux/counter.h>
108 static int intel_qep_count_read(struct counter_device *counter,
111 struct intel_qep *const qep = counter_priv(counter);
124 static int intel_qep_function_read(struct counter_device *counter,
137 static int intel_qep_action_read(struct counter_device *counter,
175 static int intel_qep_ceiling_read(struct counter_device *counter,
178 struct intel_qep *qep = counter_priv(counter);
187 static int intel_qep_ceiling_write(struct counter_device *counter,
190 struct intel_qep *qep = counter_priv(counter);
212 static int intel_qep_enable_read(struct counter_device *counter,
215 struct intel_qep *qep = counter_priv(counter);
222 static int intel_qep_enable_write(struct counter_device *counter,
225 struct intel_qep *qep = counter_priv(counter);
254 static int intel_qep_spike_filter_ns_read(struct counter_device *counter,
258 struct intel_qep *qep = counter_priv(counter);
275 static int intel_qep_spike_filter_ns_write(struct counter_device *counter,
279 struct intel_qep *qep = counter_priv(counter);
324 static int intel_qep_preset_enable_read(struct counter_device *counter,
328 struct intel_qep *qep = counter_priv(counter);
340 static int intel_qep_preset_enable_write(struct counter_device *counter,
343 struct intel_qep *qep = counter_priv(counter);
394 struct counter_device *counter;
400 counter = devm_counter_alloc(dev, sizeof(*qep));
401 if (!counter)
403 qep = counter_priv(counter);
426 counter->name = pci_name(pci);
427 counter->parent = dev;
428 counter->ops = &intel_qep_counter_ops;
429 counter->counts = intel_qep_counter_count;
430 counter->num_counts = ARRAY_SIZE(intel_qep_counter_count);
431 counter->signals = intel_qep_signals;
432 counter->num_signals = ARRAY_SIZE(intel_qep_signals);
438 ret = devm_counter_add(&pci->dev, counter);
440 return dev_err_probe(&pci->dev, ret, "Failed to add counter\n");