Home
last modified time | relevance | path

Searched refs:xrs700x_mibs (Results 1 – 1 of 1) sorted by relevance

/linux-6.12.1/drivers/net/dsa/xrs700x/
Dxrs700x.c53 static const struct xrs700x_mib xrs700x_mibs[] = { variable
94 for (i = 0; i < ARRAY_SIZE(xrs700x_mibs); i++) { in xrs700x_get_strings()
95 strscpy(data, xrs700x_mibs[i].name, ETH_GSTRING_LEN); in xrs700x_get_strings()
105 return ARRAY_SIZE(xrs700x_mibs); in xrs700x_get_sset_count()
122 for (i = 0; i < ARRAY_SIZE(xrs700x_mibs); i++) { in xrs700x_read_port_counters()
125 reg = xrs700x_mibs[i].offset + XRS_PORT_OFFSET * port; in xrs700x_read_port_counters()
131 if (xrs700x_mibs[i].stats64_offset >= 0) { in xrs700x_read_port_counters()
132 u8 *s = (u8 *)&stats + xrs700x_mibs[i].stats64_offset; in xrs700x_read_port_counters()
170 memcpy(data, p->mib_data, sizeof(*data) * ARRAY_SIZE(xrs700x_mibs)); in xrs700x_get_ethtool_stats()
798 p->mib_data = devm_kcalloc(priv->dev, ARRAY_SIZE(xrs700x_mibs), in xrs700x_alloc_port_mib()