Lines Matching +full:0 +full:- +full:31

1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2018-2019, Vladimir Oltean <olteanv@gmail.com>
90 /* MAC-Level Diagnostic Counters */
94 .offset = 0,
95 .start = 31,
101 .offset = 0x0,
108 .offset = 0x0,
115 .offset = 0x0,
117 .end = 0,
119 /* MAC-Level Diagnostic Flags */
123 .offset = 0x1,
130 .offset = 0x1,
137 .offset = 0x1,
144 .offset = 0x1,
151 .offset = 0x1,
158 .offset = 0x1,
165 .offset = 0x1,
172 .offset = 0x1,
179 .offset = 0x1,
186 .offset = 0x1,
193 .offset = 0x1,
200 .offset = 0x1,
207 .offset = 0x1,
214 .offset = 0x1,
221 .offset = 0x1,
228 .offset = 0x1,
235 .offset = 0x1,
242 .offset = 0x1,
249 .offset = 0x1,
256 .offset = 0x1,
257 .start = 0,
258 .end = 0,
260 /* High-Level Diagnostic Counters */
264 .offset = 0xF,
265 .start = 31,
266 .end = 0,
271 .offset = 0xE,
272 .start = 31,
273 .end = 0,
278 .offset = 0xD,
279 .start = 31,
280 .end = 0,
285 .offset = 0xC,
286 .start = 31,
287 .end = 0,
292 .offset = 0xB,
293 .start = 31,
294 .end = 0,
299 .offset = 0xA,
300 .start = 31,
301 .end = 0,
306 .offset = 0x9,
307 .start = 31,
308 .end = 0,
313 .offset = 0x8,
314 .start = 31,
315 .end = 0,
320 .offset = 0x6,
321 .start = 31,
322 .end = 0,
328 .offset = 0x4,
329 .start = 31,
330 .end = 0,
336 .offset = 0x2,
337 .start = 31,
338 .end = 0,
344 .offset = 0x0,
345 .start = 31,
346 .end = 0,
352 .offset = 0x3,
353 .start = 31,
354 .end = 0,
359 .offset = 0x2,
360 .start = 31,
361 .end = 0,
366 .offset = 0x1,
367 .start = 31,
368 .end = 0,
373 .offset = 0x0,
374 .start = 31,
375 .end = 0,
381 .offset = 0x16,
382 .start = 31,
383 .end = 0,
388 .offset = 0x15,
389 .start = 31,
390 .end = 0,
395 .offset = 0x14,
396 .start = 31,
397 .end = 0,
402 .offset = 0x13,
403 .start = 31,
404 .end = 0,
409 .offset = 0x12,
410 .start = 31,
411 .end = 0,
416 .offset = 0x11,
417 .start = 31,
418 .end = 0,
423 .offset = 0x10,
424 .start = 31,
425 .end = 0,
430 .offset = 0x0F,
431 .start = 31,
432 .end = 0,
437 .offset = 0x0E,
438 .start = 31,
439 .end = 0,
444 .offset = 0x0D,
445 .start = 31,
446 .end = 0,
451 .offset = 0x0C,
452 .start = 31,
453 .end = 0,
458 .offset = 0x0B,
459 .start = 31,
460 .end = 0,
465 .offset = 0x0A,
466 .start = 31,
467 .end = 0,
472 .offset = 0x09,
473 .start = 31,
474 .end = 0,
479 .offset = 0x08,
480 .start = 31,
481 .end = 0,
486 .offset = 0x07,
487 .start = 31,
488 .end = 0,
493 .offset = 0x06,
494 .start = 31,
495 .end = 0,
500 .offset = 0x05,
501 .start = 31,
502 .end = 0,
507 .offset = 0x04,
508 .start = 31,
509 .end = 0,
514 .offset = 0x03,
515 .start = 31,
516 .end = 0,
521 .offset = 0x02,
522 .start = 31,
523 .end = 0,
528 .offset = 0x01,
529 .start = 31,
530 .end = 0,
535 .offset = 0x00,
536 .start = 31,
537 .end = 0,
545 size_t size = c->is_64bit ? 8 : 4; in sja1105_port_counter_read()
546 u8 buf[8] = {0}; in sja1105_port_counter_read()
550 regs = priv->info->regs->stats[c->area][port]; in sja1105_port_counter_read()
552 rc = sja1105_xfer_buf(priv, SPI_READ, regs + c->offset, buf, size); in sja1105_port_counter_read()
556 sja1105_unpack(buf, ctr, c->start, c->end, size); in sja1105_port_counter_read()
558 return 0; in sja1105_port_counter_read()
563 struct sja1105_private *priv = ds->priv; in sja1105_get_ethtool_stats()
565 int rc, k = 0; in sja1105_get_ethtool_stats()
567 if (priv->info->device_id == SJA1105E_DEVICE_ID || in sja1105_get_ethtool_stats()
568 priv->info->device_id == SJA1105T_DEVICE_ID) in sja1105_get_ethtool_stats()
573 for (i = 0; i < max_ctr; i++) { in sja1105_get_ethtool_stats()
576 dev_err(ds->dev, in sja1105_get_ethtool_stats()
587 struct sja1105_private *priv = ds->priv; in sja1105_get_strings()
594 if (priv->info->device_id == SJA1105E_DEVICE_ID || in sja1105_get_strings()
595 priv->info->device_id == SJA1105T_DEVICE_ID) in sja1105_get_strings()
600 for (i = 0; i < max_ctr; i++) { in sja1105_get_strings()
608 struct sja1105_private *priv = ds->priv; in sja1105_get_sset_count()
610 int sset_count = 0; in sja1105_get_sset_count()
613 return -EOPNOTSUPP; in sja1105_get_sset_count()
615 if (priv->info->device_id == SJA1105E_DEVICE_ID || in sja1105_get_sset_count()
616 priv->info->device_id == SJA1105T_DEVICE_ID) in sja1105_get_sset_count()
621 for (i = 0; i < max_ctr; i++) { in sja1105_get_sset_count()