ns_thermal 24 drivers/thermal/broadcom/ns-thermal.c struct ns_thermal *ns_thermal = data; ns_thermal 25 drivers/thermal/broadcom/ns-thermal.c int offset = thermal_zone_get_offset(ns_thermal->tz); ns_thermal 26 drivers/thermal/broadcom/ns-thermal.c int slope = thermal_zone_get_slope(ns_thermal->tz); ns_thermal 29 drivers/thermal/broadcom/ns-thermal.c val = readl(ns_thermal->pvtmon + PVTMON_CONTROL0); ns_thermal 37 drivers/thermal/broadcom/ns-thermal.c writel(val, ns_thermal->pvtmon + PVTMON_CONTROL0); ns_thermal 40 drivers/thermal/broadcom/ns-thermal.c val = readl(ns_thermal->pvtmon + PVTMON_STATUS); ns_thermal 53 drivers/thermal/broadcom/ns-thermal.c struct ns_thermal *ns_thermal; ns_thermal 55 drivers/thermal/broadcom/ns-thermal.c ns_thermal = devm_kzalloc(dev, sizeof(*ns_thermal), GFP_KERNEL); ns_thermal 56 drivers/thermal/broadcom/ns-thermal.c if (!ns_thermal) ns_thermal 59 drivers/thermal/broadcom/ns-thermal.c ns_thermal->pvtmon = of_iomap(dev_of_node(dev), 0); ns_thermal 60 drivers/thermal/broadcom/ns-thermal.c if (WARN_ON(!ns_thermal->pvtmon)) ns_thermal 63 drivers/thermal/broadcom/ns-thermal.c ns_thermal->tz = devm_thermal_zone_of_sensor_register(dev, 0, ns_thermal 64 drivers/thermal/broadcom/ns-thermal.c ns_thermal, ns_thermal 66 drivers/thermal/broadcom/ns-thermal.c if (IS_ERR(ns_thermal->tz)) { ns_thermal 67 drivers/thermal/broadcom/ns-thermal.c iounmap(ns_thermal->pvtmon); ns_thermal 68 drivers/thermal/broadcom/ns-thermal.c return PTR_ERR(ns_thermal->tz); ns_thermal 71 drivers/thermal/broadcom/ns-thermal.c platform_set_drvdata(pdev, ns_thermal); ns_thermal 78 drivers/thermal/broadcom/ns-thermal.c struct ns_thermal *ns_thermal = platform_get_drvdata(pdev); ns_thermal 80 drivers/thermal/broadcom/ns-thermal.c iounmap(ns_thermal->pvtmon);