| /dpdk/drivers/event/sw/ |
| H A D | sw_evdev_xstats.c | 396 unsigned int *ids, unsigned int size) in sw_xstats_get_names() argument 438 if (ids) in sw_xstats_get_names() 439 ids[xidx] = start_offset + xidx; in sw_xstats_get_names() 563 if (ids) { in sw_xstats_reset_queue() 566 queue_id, ids, NULL, nb_ids, in sw_xstats_reset_queue() 571 if (ids == NULL) in sw_xstats_reset_queue() 587 if (ids) { in sw_xstats_reset_port() 590 ids, NULL, nb_ids, in sw_xstats_reset_port() 603 if (ids) { in sw_xstats_reset_dev() 605 uint32_t id = ids[i]; in sw_xstats_reset_dev() [all …]
|
| H A D | sw_evdev_selftest.c | 94 uint32_t ids[XSTATS_MAX]; in xstats_print() local 99 ids[i] = i; in xstats_print() 112 0, ids, values, ret); in xstats_print() 127 ids, values, ret); in xstats_print() 142 1, ids, values, ret); in xstats_print() 865 uint32_t ids[XSTATS_MAX]; in xstats_tests() local 870 ids[i] = i; in xstats_tests() 882 0, ids, values, ret); in xstats_tests() 898 ids, values, ret); in xstats_tests() 1406 ids[i] = i; in xstats_brute_force() [all …]
|
| H A D | sw_evdev.h | 304 unsigned int *ids, unsigned int size); 307 const unsigned int ids[], uint64_t values[], unsigned int n); 313 const uint32_t ids[],
|
| /dpdk/drivers/event/opdl/ |
| H A D | opdl_evdev_xstats.c | 68 unsigned int *ids, unsigned int size) in opdl_xstats_get_names() argument 92 ids[j] = device->port_xstat[j + port_idx].id; in opdl_xstats_get_names() 102 const unsigned int ids[], in opdl_xstats_get() argument 125 if (ids[i] < p_start || ids[i] >= p_finish) in opdl_xstats_get() 128 values[i] = *(device->port_xstat[ids[i]].value); in opdl_xstats_get() 164 int16_t queue_port_id, const uint32_t ids[], in opdl_xstats_reset() argument 175 RTE_SET_USED(ids); in opdl_xstats_reset()
|
| H A D | opdl_evdev.h | 292 unsigned int *ids, unsigned int size); 295 const unsigned int ids[], uint64_t values[], unsigned int n); 301 const uint32_t ids[],
|
| /dpdk/drivers/event/dsw/ |
| H A D | dsw_xstats.c | 222 unsigned int *ids; member 240 ctx->ids[ctx->count] = xstats_id; in dsw_xstats_store_stat() 251 unsigned int *ids, unsigned int capacity) in dsw_xstats_get_names() argument 257 .ids = ids, in dsw_xstats_get_names() 279 const unsigned int ids[], uint64_t values[], unsigned int n) in dsw_xstats_dev_get() argument 285 unsigned int id = ids[i]; in dsw_xstats_dev_get() 294 const unsigned int ids[], uint64_t values[], unsigned int n) in dsw_xstats_port_get() argument 300 unsigned int id = ids[i]; in dsw_xstats_port_get() 316 const unsigned int ids[], uint64_t values[], unsigned int n) in dsw_xstats_get() argument 320 return dsw_xstats_dev_get(dev, ids, values, n); in dsw_xstats_get() [all …]
|
| /dpdk/drivers/event/dlb2/ |
| H A D | dlb2_xstats.c | 710 if (ids) in dlb2_eventdev_xstats_get_names() 883 if (ids) { in dlb2_xstats_reset_queue() 891 if (ids == NULL) in dlb2_xstats_reset_queue() 907 if (ids) { in dlb2_xstats_reset_port() 910 ids, NULL, nb_ids, in dlb2_xstats_reset_port() 925 if (ids) { in dlb2_xstats_reset_dev() 927 uint32_t id = ids[i]; in dlb2_xstats_reset_dev() 962 ids, nb_ids)) in dlb2_eventdev_xstats_reset() 967 ids, nb_ids)) in dlb2_eventdev_xstats_reset() 976 ids, nb_ids)) in dlb2_eventdev_xstats_reset() [all …]
|
| /dpdk/drivers/event/cnxk/ |
| H A D | cnxk_eventdev_stats.c | 106 const unsigned int ids[], uint64_t values[], unsigned int n) in cnxk_sso_xstats_get() argument 157 xstat = &xstats[ids[i] - start_offset]; in cnxk_sso_xstats_get() 173 int16_t queue_port_id, const uint32_t ids[], uint32_t n) in cnxk_sso_xstats_reset() argument 222 xstat = &xstats[ids[i] - start_offset]; in cnxk_sso_xstats_reset() 238 unsigned int *ids, unsigned int size) in cnxk_sso_xstats_get_names() argument 278 if (xstats_mode_count > size || !ids || !xstats_names) in cnxk_sso_xstats_get_names() 285 ids[i] = xidx; in cnxk_sso_xstats_get_names()
|
| /dpdk/drivers/raw/ioat/ |
| H A D | ioat_common.c | 18 ioat_xstats_get(const struct rte_rawdev *dev, const unsigned int ids[], in ioat_xstats_get() argument 26 if (ids[i] > sizeof(ioat->xstats)/sizeof(*stats)) in ioat_xstats_get() 29 values[i] = stats[ids[i]]; in ioat_xstats_get() 52 ioat_xstats_reset(struct rte_rawdev *dev, const uint32_t *ids, uint32_t nb_ids) in ioat_xstats_reset() argument 58 if (!ids) { in ioat_xstats_reset() 64 if (ids[i] < sizeof(ioat->xstats)/sizeof(*stats)) in ioat_xstats_reset() 65 stats[ids[i]] = 0; in ioat_xstats_reset()
|
| H A D | ioat_rawdev_test.c | 601 unsigned int *ids = NULL; in ioat_rawdev_test() local 657 ids = malloc(sizeof(*ids) * nb_xstats); in ioat_rawdev_test() 658 if (ids == NULL) { in ioat_rawdev_test() 663 ids[i] = i; in ioat_rawdev_test() 679 rte_rawdev_xstats_get(dev_id, ids, stats, nb_xstats); in ioat_rawdev_test() 694 rte_rawdev_xstats_get(dev_id, ids, stats, nb_xstats); in ioat_rawdev_test() 723 free(ids); in ioat_rawdev_test() 732 free(ids); in ioat_rawdev_test()
|
| H A D | ioat_private.h | 58 int ioat_xstats_get(const struct rte_rawdev *dev, const unsigned int ids[], 65 int ioat_xstats_reset(struct rte_rawdev *dev, const uint32_t *ids,
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_sw_stats.c | 292 const uint64_t *ids, in sfc_sw_xstat_get_names_by_id() argument 315 if (id_base <= ids[i] && ids[i] < id_end) { in sfc_sw_xstat_get_names_by_id() 318 name_size, ids[i] - id_base); in sfc_sw_xstat_get_names_by_id() 420 const uint64_t *ids, in sfc_sw_xstat_get_values_by_id() argument 451 if (id_base <= ids[i] && ids[i] < id_end) { in sfc_sw_xstat_get_values_by_id() 459 qid = ids[i] - id_base_q; in sfc_sw_xstat_get_values_by_id() 559 const uint64_t *ids, in sfc_sw_xstats_get_vals_by_id() argument 577 ids, values, n, nb_supported); in sfc_sw_xstats_get_vals_by_id() 581 if (sw_xstats_offset <= ids[i] && ids[i] < *nb_supported) in sfc_sw_xstats_get_vals_by_id() 590 const uint64_t *ids, in sfc_sw_xstats_get_names_by_id() argument [all …]
|
| H A D | sfc_sw_stats.h | 26 void sfc_sw_xstats_get_vals_by_id(struct sfc_adapter *sa, const uint64_t *ids, 30 int sfc_sw_xstats_get_names_by_id(struct sfc_adapter *sa, const uint64_t *ids,
|
| /dpdk/drivers/net/failsafe/ |
| H A D | failsafe_ether.c | 213 uint64_t ids; in fs_eth_dev_conf_apply() local 218 for (i = 0; i < RTE_DIM(vfc1->ids); i++) { in fs_eth_dev_conf_apply() 219 if (vfc1->ids[i] == 0) in fs_eth_dev_conf_apply() 221 ids = vfc1->ids[i]; in fs_eth_dev_conf_apply() 222 while (ids) { in fs_eth_dev_conf_apply() 225 vbit = ~ids & (ids - 1); in fs_eth_dev_conf_apply() 227 ids ^= (ids ^ (ids - 1)) ^ vbit; in fs_eth_dev_conf_apply()
|
| /dpdk/drivers/net/cnxk/ |
| H A D | cnxk_stats.c | 230 const uint64_t *ids, in cnxk_nix_xstats_get_names_by_id() argument 241 if (limit < stat_cnt && ids == NULL) in cnxk_nix_xstats_get_names_by_id() 253 if (ids[i] >= stat_cnt) in cnxk_nix_xstats_get_names_by_id() 256 rte_strscpy(xstats_names[i].name, xnames[ids[i]].name, in cnxk_nix_xstats_get_names_by_id() 264 cnxk_nix_xstats_get_by_id(struct rte_eth_dev *eth_dev, const uint64_t *ids, in cnxk_nix_xstats_get_by_id() argument 274 if (n < stat_cnt && ids == NULL) in cnxk_nix_xstats_get_by_id() 286 if (ids[i] >= stat_cnt) in cnxk_nix_xstats_get_by_id() 288 values[i] = xstats[ids[i]].value; in cnxk_nix_xstats_get_by_id()
|
| /dpdk/lib/rawdev/ |
| H A D | rte_rawdev.c | 283 const unsigned int ids[], in rte_rawdev_xstats_get() argument 291 return (*dev->dev_ops->xstats_get)(dev, ids, values, n); in rte_rawdev_xstats_get() 315 const uint32_t ids[], uint32_t nb_ids) in rte_rawdev_xstats_reset() argument 321 return (*dev->dev_ops->xstats_reset)(dev, ids, nb_ids); in rte_rawdev_xstats_reset() 566 unsigned int *ids; in handle_dev_xstats() local 590 ids = (void *)&xstat_names[num_xstats]; in handle_dev_xstats() 599 ids[i] = i; in handle_dev_xstats() 601 ret = rte_rawdev_xstats_get(dev_id, ids, rawdev_xstats, num_xstats); in handle_dev_xstats()
|
| H A D | rte_rawdev.h | 506 const unsigned int ids[], 548 const uint32_t ids[],
|
| /dpdk/drivers/net/ionic/ |
| H A D | ionic_ethdev.c | 50 const uint64_t *ids, uint64_t *values, unsigned int n); 55 const uint64_t *ids, struct rte_eth_xstat_name *xstats_names, 725 const uint64_t *ids, struct rte_eth_xstat_name *xstats_names, in ionic_dev_xstats_get_names_by_id() argument 731 if (!ids) { in ionic_dev_xstats_get_names_by_id() 747 if (ids[i] >= IONIC_NB_HW_STATS) { in ionic_dev_xstats_get_names_by_id() 752 strcpy(xstats_names[i].name, xstats_names_copy[ids[i]].name); in ionic_dev_xstats_get_names_by_id() 781 ionic_dev_xstats_get_by_id(struct rte_eth_dev *eth_dev, const uint64_t *ids, in ionic_dev_xstats_get_by_id() argument 789 if (!ids) { in ionic_dev_xstats_get_by_id() 790 if (!ids && n < IONIC_NB_HW_STATS) in ionic_dev_xstats_get_by_id() 807 if (ids[i] >= IONIC_NB_HW_STATS) { in ionic_dev_xstats_get_by_id() [all …]
|
| /dpdk/lib/regexdev/ |
| H A D | rte_regexdev.c | 482 rte_regexdev_xstats_get(uint8_t dev_id, const uint16_t *ids, in rte_regexdev_xstats_get() argument 490 if (ids == NULL) { in rte_regexdev_xstats_get() 498 return (*dev->dev_ops->dev_xstats_get)(dev, ids, values, n); in rte_regexdev_xstats_get() 527 rte_regexdev_xstats_reset(uint8_t dev_id, const uint16_t *ids, in rte_regexdev_xstats_reset() argument 535 if (ids == NULL) { in rte_regexdev_xstats_reset() 539 return (*dev->dev_ops->dev_xstats_reset)(dev, ids, nb_ids); in rte_regexdev_xstats_reset()
|
| H A D | rte_regexdev_core.h | 76 const uint16_t *ids, uint64_t *values, 86 const uint16_t *ids,
|
| /dpdk/lib/eal/common/ |
| H A D | rte_service.c | 412 uint32_t ids[RTE_MAX_LCORE] = {0}; in rte_service_may_be_active() local 413 int32_t lcore_count = rte_service_lcore_list(ids, RTE_MAX_LCORE); in rte_service_may_be_active() 420 if (lcore_states[ids[i]].service_active_on_lcore[id]) in rte_service_may_be_active() 553 uint32_t ids[RTE_MAX_LCORE] = {0}; in rte_service_start_with_defaults() local 554 int32_t lcore_count = rte_service_lcore_list(ids, RTE_MAX_LCORE); in rte_service_start_with_defaults() 560 rte_service_lcore_start(ids[i]); in rte_service_start_with_defaults() 568 ret = rte_service_map_lcore_set(i, ids[lcore_iter], 1); in rte_service_start_with_defaults()
|
| /dpdk/lib/eventdev/ |
| H A D | rte_eventdev.c | 1147 unsigned int *ids, unsigned int size) in rte_event_dev_xstats_names_get() argument 1178 ids, values, n); in rte_event_dev_xstats_get() 1203 const uint32_t ids[], uint32_t nb_ids) in rte_event_dev_xstats_reset() argument 1210 ids, nb_ids); in rte_event_dev_xstats_reset() 1640 unsigned int *ids; in eventdev_build_telemetry_data() local 1661 if (ids == NULL) { in eventdev_build_telemetry_data() 1669 free(ids); in eventdev_build_telemetry_data() 1677 free(ids); in eventdev_build_telemetry_data() 1683 ids, values, num_xstats); in eventdev_build_telemetry_data() 1686 free(ids); in eventdev_build_telemetry_data() [all …]
|
| /dpdk/drivers/net/cxgbe/ |
| H A D | cxgbe_pfvf.h | 56 const uint64_t *ids, uint64_t *values, 59 const uint64_t *ids,
|
| /dpdk/drivers/net/hns3/ |
| H A D | hns3_stats.c | 1329 if (ids == NULL && values == NULL) in hns3_dev_xstats_get_by_id() 1332 if (ids == NULL) in hns3_dev_xstats_get_by_id() 1350 if (ids == NULL && values != NULL) { in hns3_dev_xstats_get_by_id() 1360 if (ids[i] >= cnt_stats) { in hns3_dev_xstats_get_by_id() 1362 "should < %u", i, ids[i], cnt_stats); in hns3_dev_xstats_get_by_id() 1366 memcpy(&values[i], &values_copy[ids[i]].value, in hns3_dev_xstats_get_by_id() 1397 const uint64_t *ids, in hns3_dev_xstats_get_names_by_id() argument 1411 if (ids == NULL) { in hns3_dev_xstats_get_names_by_id() 1429 if (ids[i] >= cnt_stats) { in hns3_dev_xstats_get_names_by_id() 1431 "should < %u", i, ids[i], cnt_stats); in hns3_dev_xstats_get_names_by_id() [all …]
|
| /dpdk/examples/ntb/ |
| H A D | ntb_fwd.c | 864 uint32_t *ids; in ntb_stats_clear() local 872 ids = malloc(sizeof(uint32_t) * nb_ids); in ntb_stats_clear() 874 ids[i] = i; in ntb_stats_clear() 875 rte_rawdev_xstats_reset(dev_id, ids, nb_ids); in ntb_stats_clear() 919 uint32_t *ids; in ntb_stats_display() local 941 ids = malloc(sizeof(uint32_t) * nb_ids); in ntb_stats_display() 943 ids[i] = i; in ntb_stats_display() 945 if (nb_ids != rte_rawdev_xstats_get(dev_id, ids, values, nb_ids)) { in ntb_stats_display() 949 free(ids); in ntb_stats_display() 975 free(ids); in ntb_stats_display()
|