Searched refs:xstat (Results 1 – 4 of 4) sorted by relevance
111 struct cnxk_sso_xstats_name *xstat; in cnxk_sso_xstats_get() local157 xstat = &xstats[ids[i] - start_offset]; in cnxk_sso_xstats_get()158 value = *(uint64_t *)((char *)rsp + xstat->offset); in cnxk_sso_xstats_get()159 value = (value >> xstat->shift) & xstat->mask; in cnxk_sso_xstats_get()162 values[i] -= xstat->reset_snap[queue_port_id]; in cnxk_sso_xstats_get()178 struct cnxk_sso_xstats_name *xstat; in cnxk_sso_xstats_reset() local222 xstat = &xstats[ids[i] - start_offset]; in cnxk_sso_xstats_reset()223 value = *(uint64_t *)((char *)rsp + xstat->offset); in cnxk_sso_xstats_reset()224 value = (value >> xstat->shift) & xstat->mask; in cnxk_sso_xstats_reset()226 xstat->reset_snap[queue_port_id] = value; in cnxk_sso_xstats_reset()
194 struct dsw_xstats_port *xstat = &dsw_port_xstats[stat_idx]; in dsw_xstats_port_foreach() local198 if (xstat->per_queue) { in dsw_xstats_port_foreach()213 if (!(xstat->per_queue && queue_id < dsw->num_queues)) { in dsw_xstats_port_foreach()286 struct dsw_xstat_dev *xstat = &dsw_dev_xstats[id]; in dsw_xstats_dev_get() local287 values[i] = xstat->get_value_fn(dsw); in dsw_xstats_dev_get()302 struct dsw_xstats_port *xstat = &dsw_port_xstats[stat_idx]; in dsw_xstats_port_get() local305 if (xstat->per_queue) in dsw_xstats_port_get()308 values[i] = xstat->get_value_fn(dsw, port_id, queue_id); in dsw_xstats_port_get()
513 printf("Cannot allocate memory for xstat names\n");519 printf("Cannot get xstat names\n");531 printf("Cannot get xstat values\n");
483 between the queue number and the rest of the xstat name: