Lines Matching refs:tpd
111 struct ssam_tmp_profile_device *tpd; in ssam_platform_profile_get() local
115 tpd = container_of(pprof, struct ssam_tmp_profile_device, handler); in ssam_platform_profile_get()
117 status = ssam_tmp_profile_get(tpd->sdev, &tp); in ssam_platform_profile_get()
121 status = convert_ssam_to_profile(tpd->sdev, tp); in ssam_platform_profile_get()
132 struct ssam_tmp_profile_device *tpd; in ssam_platform_profile_set() local
135 tpd = container_of(pprof, struct ssam_tmp_profile_device, handler); in ssam_platform_profile_set()
137 tp = convert_profile_to_ssam(tpd->sdev, profile); in ssam_platform_profile_set()
141 return ssam_tmp_profile_set(tpd->sdev, tp); in ssam_platform_profile_set()
146 struct ssam_tmp_profile_device *tpd; in surface_platform_profile_probe() local
148 tpd = devm_kzalloc(&sdev->dev, sizeof(*tpd), GFP_KERNEL); in surface_platform_profile_probe()
149 if (!tpd) in surface_platform_profile_probe()
152 tpd->sdev = sdev; in surface_platform_profile_probe()
154 tpd->handler.profile_get = ssam_platform_profile_get; in surface_platform_profile_probe()
155 tpd->handler.profile_set = ssam_platform_profile_set; in surface_platform_profile_probe()
157 set_bit(PLATFORM_PROFILE_LOW_POWER, tpd->handler.choices); in surface_platform_profile_probe()
158 set_bit(PLATFORM_PROFILE_BALANCED, tpd->handler.choices); in surface_platform_profile_probe()
159 set_bit(PLATFORM_PROFILE_BALANCED_PERFORMANCE, tpd->handler.choices); in surface_platform_profile_probe()
160 set_bit(PLATFORM_PROFILE_PERFORMANCE, tpd->handler.choices); in surface_platform_profile_probe()
162 return platform_profile_register(&tpd->handler); in surface_platform_profile_probe()