Lines Matching refs:pf
23 struct ice_pf *pf = dev_get_drvdata(dev);
29 ret = ice_aq_get_sensor_reading(&pf->hw, &resp);
88 static bool ice_is_internal_reading_supported(struct ice_pf *pf)
94 if (pf->hw.pf_id)
97 unsigned long sensors = pf->hw.dev_caps.supported_sensors;
102 void ice_hwmon_init(struct ice_pf *pf)
104 struct device *dev = ice_pf_to_dev(pf);
107 if (!ice_is_internal_reading_supported(pf))
110 hdev = hwmon_device_register_with_info(dev, "ice", pf, &ice_chip_info,
118 pf->hwmon_dev = hdev;
121 void ice_hwmon_exit(struct ice_pf *pf)
123 if (!pf->hwmon_dev)
125 hwmon_device_unregister(pf->hwmon_dev);