Lines Matching full:th
17 struct thermal_handler *th = thp->th; in handle_thermal_sample() local
26 return th->ops->sampling.tz_temp( in handle_thermal_sample()
34 thermal_error_t thermal_sampling_handle(struct thermal_handler *th, void *arg) in thermal_sampling_handle() argument
36 struct thermal_handler_param thp = { .th = th, .arg = arg }; in thermal_sampling_handle()
38 if (!th) in thermal_sampling_handle()
41 if (nl_cb_set(th->cb_sampling, NL_CB_VALID, NL_CB_CUSTOM, in thermal_sampling_handle()
45 return nl_recvmsgs(th->sk_sampling, th->cb_sampling); in thermal_sampling_handle()
48 int thermal_sampling_fd(struct thermal_handler *th) in thermal_sampling_fd() argument
50 if (!th) in thermal_sampling_fd()
53 return nl_socket_get_fd(th->sk_sampling); in thermal_sampling_fd()
56 thermal_error_t thermal_sampling_exit(struct thermal_handler *th) in thermal_sampling_exit() argument
58 if (nl_unsubscribe_thermal(th->sk_sampling, th->cb_sampling, in thermal_sampling_exit()
62 nl_thermal_disconnect(th->sk_sampling, th->cb_sampling); in thermal_sampling_exit()
67 thermal_error_t thermal_sampling_init(struct thermal_handler *th) in thermal_sampling_init() argument
69 if (nl_thermal_connect(&th->sk_sampling, &th->cb_sampling)) in thermal_sampling_init()
72 if (nl_subscribe_thermal(th->sk_sampling, th->cb_sampling, in thermal_sampling_init()