Lines Matching refs:th
17 struct thermal_handler *th = thp->th;
24 return th->ops->sampling.tz_temp(
32 thermal_error_t thermal_sampling_handle(struct thermal_handler *th, void *arg)
34 struct thermal_handler_param thp = { .th = th, .arg = arg };
36 if (!th)
39 if (nl_cb_set(th->cb_sampling, NL_CB_VALID, NL_CB_CUSTOM,
43 return nl_recvmsgs(th->sk_sampling, th->cb_sampling);
46 int thermal_sampling_fd(struct thermal_handler *th)
48 if (!th)
51 return nl_socket_get_fd(th->sk_sampling);
54 thermal_error_t thermal_sampling_exit(struct thermal_handler *th)
56 if (nl_unsubscribe_thermal(th->sk_sampling, th->cb_sampling,
60 nl_thermal_disconnect(th->sk_sampling, th->cb_sampling);
65 thermal_error_t thermal_sampling_init(struct thermal_handler *th)
67 if (nl_thermal_connect(&th->sk_sampling, &th->cb_sampling))
70 if (nl_subscribe_thermal(th->sk_sampling, th->cb_sampling,