Lines Matching defs:counters
143 /* read the per-device counters */
147 u64 *counters;
151 avail = dd->f_read_cntrs(dd, *ppos, NULL, &counters);
152 return simple_read_from_buffer(buf, count, ppos, counters, avail);
155 /* read the per-device counters */
189 /* read the per-port counters for port 1 (pidx 0) */
193 u64 *counters;
197 avail = dd->f_read_portcntrs(dd, *ppos, 0, NULL, &counters);
198 return simple_read_from_buffer(buf, count, ppos, counters, avail);
201 /* read the per-port counters for port 2 (pidx 1) */
205 u64 *counters;
209 avail = dd->f_read_portcntrs(dd, *ppos, 1, NULL, &counters);
210 return simple_read_from_buffer(buf, count, ppos, counters, avail);
374 ret = create_file("counters", S_IFREG|S_IRUGO, dir, &tmp,
377 pr_err("create_file(%s/counters) failed: %d\n",