Lines Matching defs:counters
145 /* read the per-device counters */
149 u64 *counters;
153 avail = dd->f_read_cntrs(dd, *ppos, NULL, &counters);
154 return simple_read_from_buffer(buf, count, ppos, counters, avail);
157 /* read the per-device counters */
191 /* read the per-port counters for port 1 (pidx 0) */
195 u64 *counters;
199 avail = dd->f_read_portcntrs(dd, *ppos, 0, NULL, &counters);
200 return simple_read_from_buffer(buf, count, ppos, counters, avail);
203 /* read the per-port counters for port 2 (pidx 1) */
207 u64 *counters;
211 avail = dd->f_read_portcntrs(dd, *ppos, 1, NULL, &counters);
212 return simple_read_from_buffer(buf, count, ppos, counters, avail);
376 ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp,
379 pr_err("create_file(%s/counters) failed: %d\n",
480 remove_file(dir, "counters");