Home
last modified time | relevance | path

Searched full:th (Results 1 – 25 of 2019) sorted by relevance

12345678910>>...81

/kernel/linux/linux-5.10/drivers/macintosh/
Dtherm_adt746x.c91 static void write_both_fan_speed(struct thermostat *th, int speed);
92 static void write_fan_speed(struct thermostat *th, int speed, int fan);
95 write_reg(struct thermostat* th, int reg, u8 data) in write_reg() argument
102 rc = i2c_master_send(th->clt, (const char *)tmp, 2); in write_reg()
111 read_reg(struct thermostat* th, int reg) in read_reg() argument
117 rc = i2c_master_send(th->clt, &reg_addr, 1); in read_reg()
122 rc = i2c_master_recv(th->clt, (char *)&data, 1); in read_reg()
128 static int read_fan_speed(struct thermostat *th, u8 addr) in read_fan_speed() argument
134 tmp[1] = read_reg(th, addr); in read_fan_speed()
135 tmp[0] = read_reg(th, addr + 1); in read_fan_speed()
[all …]
/kernel/linux/linux-6.6/drivers/macintosh/
Dtherm_adt746x.c92 static void write_both_fan_speed(struct thermostat *th, int speed);
93 static void write_fan_speed(struct thermostat *th, int speed, int fan);
96 write_reg(struct thermostat* th, int reg, u8 data) in write_reg() argument
103 rc = i2c_master_send(th->clt, (const char *)tmp, 2); in write_reg()
112 read_reg(struct thermostat* th, int reg) in read_reg() argument
118 rc = i2c_master_send(th->clt, &reg_addr, 1); in read_reg()
123 rc = i2c_master_recv(th->clt, (char *)&data, 1); in read_reg()
129 static int read_fan_speed(struct thermostat *th, u8 addr) in read_fan_speed() argument
135 tmp[1] = read_reg(th, addr); in read_fan_speed()
136 tmp[0] = read_reg(th, addr + 1); in read_fan_speed()
[all …]
/kernel/linux/linux-6.6/tools/lib/thermal/
Dsampling.c17 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()
[all …]
Dthermal.c78 static int __thermal_zone_discover(struct thermal_zone *tz, void *th) in __thermal_zone_discover() argument
80 if (thermal_cmd_get_trip(th, tz) < 0) in __thermal_zone_discover()
83 if (thermal_cmd_get_governor(th, tz)) in __thermal_zone_discover()
89 struct thermal_zone *thermal_zone_discover(struct thermal_handler *th) in thermal_zone_discover() argument
93 if (thermal_cmd_get_tz(th, &tz) < 0) in thermal_zone_discover()
96 if (for_each_thermal_zone(tz, __thermal_zone_discover, th)) in thermal_zone_discover()
102 void thermal_exit(struct thermal_handler *th) in thermal_exit() argument
104 thermal_cmd_exit(th); in thermal_exit()
105 thermal_events_exit(th); in thermal_exit()
106 thermal_sampling_exit(th); in thermal_exit()
[all …]
Devents.c27 struct thermal_events_ops *ops = &thp->th->ops->events; in handle_thermal_event()
119 thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg) in thermal_events_handle() argument
121 struct thermal_handler_param thp = { .th = th, .arg = arg }; in thermal_events_handle()
123 if (!th) in thermal_events_handle()
126 if (nl_cb_set(th->cb_event, NL_CB_VALID, NL_CB_CUSTOM, in thermal_events_handle()
130 return nl_recvmsgs(th->sk_event, th->cb_event); in thermal_events_handle()
133 int thermal_events_fd(struct thermal_handler *th) in thermal_events_fd() argument
135 if (!th) in thermal_events_fd()
138 return nl_socket_get_fd(th->sk_event); in thermal_events_fd()
141 thermal_error_t thermal_events_exit(struct thermal_handler *th) in thermal_events_exit() argument
[all …]
/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/
Dcore.c106 struct intel_th *th = to_intel_th(hub); in intel_th_remove() local
119 for (i = 0, lowest = -1; i < th->num_thdevs; i++) { in intel_th_remove()
122 * th->thdev[] array to lower positions to maintain in intel_th_remove()
125 if (th->thdev[i]->type != INTEL_TH_OUTPUT) { in intel_th_remove()
127 th->thdev[lowest] = th->thdev[i]; in intel_th_remove()
128 th->thdev[i] = NULL; in intel_th_remove()
138 intel_th_device_remove(th->thdev[i]); in intel_th_remove()
139 th->thdev[i] = NULL; in intel_th_remove()
143 th->num_thdevs = lowest; in intel_th_remove()
192 struct intel_th *th = to_intel_th(thdev); in intel_th_output_devnode() local
[all …]
/kernel/linux/linux-6.6/drivers/hwtracing/intel_th/
Dcore.c105 struct intel_th *th = to_intel_th(hub); in intel_th_remove() local
121 for (i = 0, lowest = -1; i < th->num_thdevs; i++) { in intel_th_remove()
124 * th->thdev[] array to lower positions to maintain in intel_th_remove()
127 if (th->thdev[i]->type != INTEL_TH_OUTPUT) { in intel_th_remove()
129 th->thdev[lowest] = th->thdev[i]; in intel_th_remove()
130 th->thdev[i] = NULL; in intel_th_remove()
140 intel_th_device_remove(th->thdev[i]); in intel_th_remove()
141 th->thdev[i] = NULL; in intel_th_remove()
145 th->num_thdevs = lowest; in intel_th_remove()
192 const struct intel_th *th = to_intel_th(thdev); in intel_th_output_devnode() local
[all …]
/kernel/linux/linux-6.6/net/ceph/
Dauth_x.c122 struct ceph_x_ticket_handler *th; in get_ticket_handler() local
128 th = rb_entry(parent, struct ceph_x_ticket_handler, node); in get_ticket_handler()
129 if (service < th->service) in get_ticket_handler()
131 else if (service > th->service) in get_ticket_handler()
134 return th; in get_ticket_handler()
138 th = kzalloc(sizeof(*th), GFP_NOFS); in get_ticket_handler()
139 if (!th) in get_ticket_handler()
141 th->service = service; in get_ticket_handler()
142 rb_link_node(&th->node, parent, p); in get_ticket_handler()
143 rb_insert_color(&th->node, &xi->ticket_handlers); in get_ticket_handler()
[all …]
/kernel/linux/linux-5.10/net/ceph/
Dauth_x.c119 struct ceph_x_ticket_handler *th; in get_ticket_handler() local
125 th = rb_entry(parent, struct ceph_x_ticket_handler, node); in get_ticket_handler()
126 if (service < th->service) in get_ticket_handler()
128 else if (service > th->service) in get_ticket_handler()
131 return th; in get_ticket_handler()
135 th = kzalloc(sizeof(*th), GFP_NOFS); in get_ticket_handler()
136 if (!th) in get_ticket_handler()
138 th->service = service; in get_ticket_handler()
139 rb_link_node(&th->node, parent, p); in get_ticket_handler()
140 rb_insert_color(&th->node, &xi->ticket_handlers); in get_ticket_handler()
[all …]
/kernel/linux/linux-5.10/drivers/thermal/
Ddb8500_thermal.c64 struct db8500_thermal_zone *th = data; in db8500_thermal_get_temp() local
71 *temp = th->interpolated_temp; in db8500_thermal_get_temp()
79 struct db8500_thermal_zone *th = data; in db8500_thermal_get_trend() local
81 *trend = th->trend; in db8500_thermal_get_trend()
91 static void db8500_thermal_update_config(struct db8500_thermal_zone *th, in db8500_thermal_update_config() argument
99 th->cur_index = idx; in db8500_thermal_update_config()
100 th->interpolated_temp = (next_low + next_high)/2; in db8500_thermal_update_config()
101 th->trend = trend; in db8500_thermal_update_config()
113 struct db8500_thermal_zone *th = irq_data; in prcmu_low_irq_handler() local
114 unsigned int idx = th->cur_index; in prcmu_low_irq_handler()
[all …]
/kernel/linux/linux-6.6/drivers/thermal/
Ddb8500_thermal.c64 struct db8500_thermal_zone *th = thermal_zone_device_priv(tz); in db8500_thermal_get_temp() local
71 *temp = th->interpolated_temp; in db8500_thermal_get_temp()
80 static void db8500_thermal_update_config(struct db8500_thermal_zone *th, in db8500_thermal_update_config() argument
87 th->cur_index = idx; in db8500_thermal_update_config()
88 th->interpolated_temp = (next_low + next_high)/2; in db8500_thermal_update_config()
100 struct db8500_thermal_zone *th = irq_data; in prcmu_low_irq_handler() local
101 unsigned int idx = th->cur_index; in prcmu_low_irq_handler()
117 db8500_thermal_update_config(th, idx, next_low, next_high); in prcmu_low_irq_handler()
118 dev_dbg(th->dev, in prcmu_low_irq_handler()
121 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_low_irq_handler()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_offload.c40 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local
46 th->check = 0; in tcp4_gso_segment()
59 struct tcphdr *th; in tcp_gso_segment() local
69 th = tcp_hdr(skb); in tcp_gso_segment()
70 thlen = th->doff * 4; in tcp_gso_segment()
71 if (thlen < sizeof(*th)) in tcp_gso_segment()
115 th = tcp_hdr(skb); in tcp_gso_segment()
116 seq = ntohl(th->seq); in tcp_gso_segment()
121 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
125 th->fin = th->psh = 0; in tcp_gso_segment()
[all …]
/kernel/linux/linux-6.6/net/ipv4/
Dtcp_offload.c45 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local
51 th->check = 0; in tcp4_gso_segment()
64 struct tcphdr *th; in tcp_gso_segment() local
74 th = tcp_hdr(skb); in tcp_gso_segment()
75 thlen = th->doff * 4; in tcp_gso_segment()
76 if (thlen < sizeof(*th)) in tcp_gso_segment()
123 th = tcp_hdr(skb); in tcp_gso_segment()
124 seq = ntohl(th->seq); in tcp_gso_segment()
129 newcheck = ~csum_fold(csum_add(csum_unfold(th->check), delta)); in tcp_gso_segment()
132 th->fin = th->psh = 0; in tcp_gso_segment()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
Dregs-fimc.h30 /* Y 4th frame start address for output DMA */
38 /* Cb 4th frame start address for output DMA */
46 /* Cr 4th frame start address for output DMA */
120 /* Y 5th frame start address for output DMA */
122 /* Y 6th frame start address for output DMA */
124 /* Y 7th frame start address for output DMA */
126 /* Y 8th frame start address for output DMA */
128 /* Y 9th frame start address for output DMA */
130 /* Y 10th frame start address for output DMA */
132 /* Y 11th frame start address for output DMA */
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/
Dregs-fimc.h30 /* Y 4th frame start address for output DMA */
38 /* Cb 4th frame start address for output DMA */
46 /* Cr 4th frame start address for output DMA */
120 /* Y 5th frame start address for output DMA */
122 /* Y 6th frame start address for output DMA */
124 /* Y 7th frame start address for output DMA */
126 /* Y 8th frame start address for output DMA */
128 /* Y 9th frame start address for output DMA */
130 /* Y 10th frame start address for output DMA */
132 /* Y 11th frame start address for output DMA */
[all …]
/kernel/linux/linux-5.10/drivers/sfi/
Dsfi_core.c167 struct sfi_table_header *th; in sfi_map_table() local
171 th = sfi_map_memory(pa, sizeof(struct sfi_table_header)); in sfi_map_table()
173 th = (void *)syst_va + (pa - syst_pa); in sfi_map_table()
176 if (TABLE_ON_PAGE(th, th, th->len)) in sfi_map_table()
177 return th; in sfi_map_table()
180 length = th->len; in sfi_map_table()
182 sfi_unmap_memory(th, sizeof(struct sfi_table_header)); in sfi_map_table()
193 static void sfi_unmap_table(struct sfi_table_header *th) in sfi_unmap_table() argument
195 if (!TABLE_ON_PAGE(syst_va, th, th->len)) in sfi_unmap_table()
196 sfi_unmap_memory(th, TABLE_ON_PAGE(th, th, th->len) ? in sfi_unmap_table()
[all …]
/kernel/linux/linux-5.10/net/netfilter/
Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument
31 int length = (th->doff * 4) - sizeof(*th); in synproxy_parse_options()
37 ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf); in synproxy_parse_options()
115 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) in synproxy_build_options() argument
117 __be32 *ptr = (__be32 *)(th + 1); in synproxy_build_options()
186 struct tcphdr *th, struct nf_conn *ct, in synproxy_tstamp_adjust() argument
197 optend = protoff + th->doff * 4; in synproxy_tstamp_adjust()
229 inet_proto_csum_replace4(&th->check, skb, in synproxy_tstamp_adjust()
471 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() argument
493 nth->source = th->dest; in synproxy_send_client_synack()
[all …]
/kernel/linux/linux-6.6/net/netfilter/
Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts) in synproxy_parse_options() argument
31 int length = (th->doff * 4) - sizeof(*th); in synproxy_parse_options()
37 ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf); in synproxy_parse_options()
115 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) in synproxy_build_options() argument
117 __be32 *ptr = (__be32 *)(th + 1); in synproxy_build_options()
186 struct tcphdr *th, struct nf_conn *ct, in synproxy_tstamp_adjust() argument
197 optend = protoff + th->doff * 4; in synproxy_tstamp_adjust()
229 inet_proto_csum_replace4(&th->check, skb, in synproxy_tstamp_adjust()
448 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() argument
470 nth->source = th->dest; in synproxy_send_client_synack()
[all …]
/kernel/linux/linux-5.10/net/ipv4/netfilter/
Dipt_SYNPROXY.c19 struct tcphdr *th, _th; in synproxy_tg4() local
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg4()
25 if (th == NULL) in synproxy_tg4()
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4()
31 if (th->syn && !(th->ack || th->fin || th->rst)) { in synproxy_tg4()
35 if (th->ece && th->cwr) in synproxy_tg4()
48 synproxy_send_client_synack(net, skb, th, &opts); in synproxy_tg4()
51 } else if (th->ack && !(th->fin || th->rst || th->syn)) { in synproxy_tg4()
53 if (synproxy_recv_client_ack(net, skb, th, &opts, ntohl(th->seq))) { in synproxy_tg4()
/kernel/linux/linux-6.6/net/ipv4/netfilter/
Dipt_SYNPROXY.c19 struct tcphdr *th, _th; in synproxy_tg4() local
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg4()
25 if (th == NULL) in synproxy_tg4()
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg4()
31 if (th->syn && !(th->ack || th->fin || th->rst)) { in synproxy_tg4()
35 if (th->ece && th->cwr) in synproxy_tg4()
48 synproxy_send_client_synack(net, skb, th, &opts); in synproxy_tg4()
51 } else if (th->ack && !(th->fin || th->rst || th->syn)) { in synproxy_tg4()
53 if (synproxy_recv_client_ack(net, skb, th, &opts, ntohl(th->seq))) { in synproxy_tg4()
/kernel/linux/linux-5.10/net/ipv6/netfilter/
Dip6t_SYNPROXY.c19 struct tcphdr *th, _th; in synproxy_tg6() local
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg6()
25 if (th == NULL) in synproxy_tg6()
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg6()
31 if (th->syn && !(th->ack || th->fin || th->rst)) { in synproxy_tg6()
35 if (th->ece && th->cwr) in synproxy_tg6()
48 synproxy_send_client_synack_ipv6(net, skb, th, &opts); in synproxy_tg6()
52 } else if (th->ack && !(th->fin || th->rst || th->syn)) { in synproxy_tg6()
54 if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts, in synproxy_tg6()
55 ntohl(th->seq))) { in synproxy_tg6()
/kernel/linux/linux-6.6/net/ipv6/netfilter/
Dip6t_SYNPROXY.c19 struct tcphdr *th, _th; in synproxy_tg6() local
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th); in synproxy_tg6()
25 if (th == NULL) in synproxy_tg6()
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts)) in synproxy_tg6()
31 if (th->syn && !(th->ack || th->fin || th->rst)) { in synproxy_tg6()
35 if (th->ece && th->cwr) in synproxy_tg6()
48 synproxy_send_client_synack_ipv6(net, skb, th, &opts); in synproxy_tg6()
52 } else if (th->ack && !(th->fin || th->rst || th->syn)) { in synproxy_tg6()
54 if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts, in synproxy_tg6()
55 ntohl(th->seq))) { in synproxy_tg6()
/kernel/linux/linux-6.6/tools/lib/thermal/include/
Dthermal.h88 LIBTHERMAL_API struct thermal_zone *thermal_zone_discover(struct thermal_handler *th);
92 LIBTHERMAL_API void thermal_exit(struct thermal_handler *th);
97 LIBTHERMAL_API thermal_error_t thermal_events_exit(struct thermal_handler *th);
99 LIBTHERMAL_API thermal_error_t thermal_events_init(struct thermal_handler *th);
101 LIBTHERMAL_API thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg);
103 LIBTHERMAL_API int thermal_events_fd(struct thermal_handler *th);
108 LIBTHERMAL_API thermal_error_t thermal_cmd_exit(struct thermal_handler *th);
110 LIBTHERMAL_API thermal_error_t thermal_cmd_init(struct thermal_handler *th);
112 LIBTHERMAL_API thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th,
115 LIBTHERMAL_API thermal_error_t thermal_cmd_get_cdev(struct thermal_handler *th,
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dsysfb.h19 M_I24_8_1, /* 24-Inch iMac, 8,1th gen */
20 M_I24_10_1, /* 24-Inch iMac, 10,1th gen */
21 M_I27_11_1, /* 27-Inch iMac, 11,1th gen */
23 M_MINI_3_1, /* Mac Mini, 3,1th gen */
24 M_MINI_4_1, /* Mac Mini, 4,1th gen */
28 M_MB_5_1, /* MacBook, 5th rev. */
29 M_MB_6_1, /* MacBook, 6th rev. */
30 M_MB_7_1, /* MacBook, 7th rev. */
38 M_MBP_4, /* MacBook Pro, 4th gen */
39 M_MBP_5_1, /* MacBook Pro, 5,1th gen */
[all …]
/kernel/linux/linux-6.6/include/linux/
Dsysfb.h20 M_I24_8_1, /* 24-Inch iMac, 8,1th gen */
21 M_I24_10_1, /* 24-Inch iMac, 10,1th gen */
22 M_I27_11_1, /* 27-Inch iMac, 11,1th gen */
24 M_MINI_3_1, /* Mac Mini, 3,1th gen */
25 M_MINI_4_1, /* Mac Mini, 4,1th gen */
29 M_MB_5_1, /* MacBook, 5th rev. */
30 M_MB_6_1, /* MacBook, 6th rev. */
31 M_MB_7_1, /* MacBook, 7th rev. */
39 M_MBP_4, /* MacBook Pro, 4th gen */
40 M_MBP_5_1, /* MacBook Pro, 5,1th gen */
[all …]

12345678910>>...81