Lines Matching refs:psnet

28 static void snet_hwmon_read_reg(struct psnet *psnet, u32 reg, long *out)  in snet_hwmon_read_reg()  argument
30 *out = psnet_read64(psnet, psnet->cfg.hwmon_off + reg); in snet_hwmon_read_reg()
43 struct psnet *psnet = dev_get_drvdata(dev); in snet_howmon_read() local
50 snet_hwmon_read_reg(psnet, SNET_MON_VOLT_LCRIT_OFF, val); in snet_howmon_read()
53 snet_hwmon_read_reg(psnet, SNET_MON_VOLT_CRIT_OFF, val); in snet_howmon_read()
56 snet_hwmon_read_reg(psnet, SNET_MON_VOLT_IN_OFF, val); in snet_howmon_read()
67 snet_hwmon_read_reg(psnet, SNET_MON_PWR_IN_OFF, val); in snet_howmon_read()
79 snet_hwmon_read_reg(psnet, SNET_MON_CURR_IN_OFF, val); in snet_howmon_read()
82 snet_hwmon_read_reg(psnet, SNET_MON_CURR_MAX_OFF, val); in snet_howmon_read()
85 snet_hwmon_read_reg(psnet, SNET_MON_CURR_CRIT_OFF, val); in snet_howmon_read()
97 snet_hwmon_read_reg(psnet, SNET_MON_TMP0_IN_OFF, val); in snet_howmon_read()
99 snet_hwmon_read_reg(psnet, SNET_MON_TMP1_IN_OFF, val); in snet_howmon_read()
103 snet_hwmon_read_reg(psnet, SNET_MON_TMP0_MAX_OFF, val); in snet_howmon_read()
109 snet_hwmon_read_reg(psnet, SNET_MON_TMP0_CRIT_OFF, val); in snet_howmon_read()
111 snet_hwmon_read_reg(psnet, SNET_MON_TMP1_CRIT_OFF, val); in snet_howmon_read()
180 struct psnet *psnet = pci_get_drvdata(pdev); in psnet_create_hwmon() local
182 snprintf(psnet->hwmon_name, SNET_NAME_SIZE, "snet_%s", pci_name(pdev)); in psnet_create_hwmon()
183 hwmon = devm_hwmon_device_register_with_info(&pdev->dev, psnet->hwmon_name, psnet, in psnet_create_hwmon()