Searched refs:stat_attr (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/infiniband/core/ |
H A D | sysfs.c | 149 struct hw_stats_device_attribute *stat_attr = in hw_stat_device_show() local 153 return stat_attr->show(ibdev, ibdev->hw_stats_data->stats, in hw_stat_device_show() 154 stat_attr - ibdev->hw_stats_data->attrs, 0, buf); in hw_stat_device_show() 161 struct hw_stats_device_attribute *stat_attr = in hw_stat_device_store() local 166 stat_attr - ibdev->hw_stats_data->attrs, 0, buf, in hw_stat_device_store() 173 struct hw_stats_port_attribute *stat_attr = in hw_stat_port_show() local 177 return stat_attr->show(ibdev, port->hw_stats_data->stats, in hw_stat_port_show() 178 stat_attr - port->hw_stats_data->attrs, in hw_stat_port_show() 186 struct hw_stats_port_attribute *stat_attr = in hw_stat_port_store() local 190 return stat_attr->store(ibdev, port->hw_stats_data->stats, in hw_stat_port_store() [all …]
|
/openbmc/openbmc/poky/scripts/lib/ |
H A D | buildstats.py | 286 def diff_buildstats(bs1, bs2, stat_attr, min_val=None, min_absdiff=None, only_tasks=[]): argument 307 val1 = getattr(bs1[pkg].tasks[task], stat_attr) 312 val2 = getattr(bs2[pkg].tasks[task], stat_attr)
|