Lines Matching defs:index
172 read_attr->counters_buff[desc[i].index] += mread_attr.out[desc[i].description];
366 u32 port_num, int index)
428 u32 port_num, int index)
440 type = *(u32 *)cnts->descs[index].priv;
453 stats->value[index] = packets;
454 return index;
463 int index, ret, num_hw_counters;
468 for (index = num_hw_counters;
469 index < (num_hw_counters + cnts->num_op_counters); index++) {
470 ret = do_get_op_stat(ibdev, stats, port_num, index);
471 if (ret != index)
480 u32 port_num, int index)
491 if (index < 0 || index > num_counters)
493 else if (index > 0 && index < num_hw_counters)
494 return do_get_hw_stats(ibdev, stats, port_num, index);
495 else if (index >= num_hw_counters && index < num_counters)
496 return do_get_op_stat(ibdev, stats, port_num, index);
498 num_hw_counters = do_get_hw_stats(ibdev, stats, port_num, index);
869 /* each counter entry have both description and index pair */
874 if (cntrs_max_index <= desc_data[i].index)
875 cntrs_max_index = desc_data[i].index + 1;
975 unsigned int index, bool enable)
986 if (index < num_hw_counters ||
987 index >= (num_hw_counters + cnts->num_op_counters))
990 if (!(cnts->descs[index].flags & IB_STAT_FLAG_OPTIONAL))
993 type = *(u32 *)cnts->descs[index].priv;