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