| /linux-6.15/drivers/macintosh/ |
| H A D | therm_adt746x.c | 211 if (th->temps[0] != th->cached_temp[0] in display_stats() 212 || th->temps[1] != th->cached_temp[1] in display_stats() 213 || th->temps[2] != th->cached_temp[2]) { in display_stats() 218 th->temps[0], th->temps[1], th->temps[2], in display_stats() 219 th->limits[0], th->limits[1], th->limits[2], in display_stats() 222 th->cached_temp[0] = th->temps[0]; in display_stats() 223 th->cached_temp[1] = th->temps[1]; in display_stats() 224 th->cached_temp[2] = th->temps[2]; in display_stats() 237 int var = th->temps[i] - th->limits[i]; in update_fans_speed() 535 th->initial_limits[2], th->limits[0], th->limits[1], in probe_thermostat() [all …]
|
| /linux-6.15/tools/lib/thermal/ |
| H A D | sampling.c | 17 struct thermal_handler *th = thp->th; in handle_thermal_sample() local 26 return th->ops->sampling.tz_temp( in handle_thermal_sample() 36 struct thermal_handler_param thp = { .th = th, .arg = arg }; in thermal_sampling_handle() 38 if (!th) in thermal_sampling_handle() 45 return nl_recvmsgs(th->sk_sampling, th->cb_sampling); in thermal_sampling_handle() 50 if (!th) in thermal_sampling_fd() 53 return nl_socket_get_fd(th->sk_sampling); in thermal_sampling_fd() 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() 69 if (nl_thermal_connect(&th->sk_sampling, &th->cb_sampling)) in thermal_sampling_init() [all …]
|
| H A D | thermal.c | 13 if (!th) in for_each_thermal_threshold() 17 ret |= cb(&th[i], arg); in for_each_thermal_threshold() 121 thermal_cmd_exit(th); in thermal_exit() 122 thermal_events_exit(th); in thermal_exit() 125 free(th); in thermal_exit() 132 th = malloc(sizeof(*th)); in thermal_init() 133 if (!th) in thermal_init() 135 th->ops = ops; in thermal_init() 143 if (thermal_cmd_init(th)) in thermal_init() 146 return th; in thermal_init() [all …]
|
| H A D | events.c | 150 struct thermal_handler_param thp = { .th = th, .arg = arg }; in thermal_events_handle() 152 if (!th) in thermal_events_handle() 159 return nl_recvmsgs(th->sk_event, th->cb_event); in thermal_events_handle() 162 int thermal_events_fd(struct thermal_handler *th) in thermal_events_fd() argument 164 if (!th) in thermal_events_fd() 167 return nl_socket_get_fd(th->sk_event); in thermal_events_fd() 172 if (nl_unsubscribe_thermal(th->sk_event, th->cb_event, in thermal_events_exit() 176 nl_thermal_disconnect(th->sk_event, th->cb_event); in thermal_events_exit() 183 thermal_events_ops_init(&th->ops->events); in thermal_events_init() 185 if (nl_thermal_connect(&th->sk_event, &th->cb_event)) in thermal_events_init() [all …]
|
| H A D | commands.c | 394 if (nl_send_msg(th->sk_cmd, th->cb_cmd, msg, genl_handle_msg, arg)) in thermal_genl_auto() 420 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, in thermal_cmd_get_trip() 428 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, in thermal_cmd_get_governor() 436 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, in thermal_cmd_get_temp() 445 return thermal_genl_auto(th, thermal_genl_tz_id_encode, &p, in thermal_cmd_threshold_get() 480 thermal_error_t thermal_cmd_exit(struct thermal_handler *th) in thermal_cmd_exit() argument 485 nl_thermal_disconnect(th->sk_cmd, th->cb_cmd); in thermal_cmd_exit() 490 thermal_error_t thermal_cmd_init(struct thermal_handler *th) in thermal_cmd_init() argument 495 if (nl_thermal_connect(&th->sk_cmd, &th->cb_cmd)) in thermal_cmd_init() 502 ret = genl_ops_resolve(th->sk_cmd, &thermal_cmd_ops); in thermal_cmd_init() [all …]
|
| /linux-6.15/drivers/thermal/ |
| H A D | db8500_thermal.c | 87 th->cur_index = idx; in db8500_thermal_update_config() 118 dev_dbg(th->dev, in prcmu_low_irq_handler() 140 dev_dbg(th->dev, in prcmu_high_irq_handler() 157 th = devm_kzalloc(dev, sizeof(*th), GFP_KERNEL); in db8500_thermal_probe() 158 if (!th) in db8500_thermal_probe() 161 th->dev = dev; in db8500_thermal_probe() 169 "dbx500_temp_low", th); in db8500_thermal_probe() 181 "dbx500_temp_high", th); in db8500_thermal_probe() 188 th->tz = devm_thermal_of_zone_register(dev, 0, th, &thdev_ops); in db8500_thermal_probe() 189 if (IS_ERR(th->tz)) { in db8500_thermal_probe() [all …]
|
| /linux-6.15/drivers/hwtracing/intel_th/ |
| H A D | core.c | 129 th->thdev[lowest] = th->thdev[i]; in intel_th_remove() 250 ret = th->activate(th); in intel_th_output_activate() 267 th->deactivate(th); in intel_th_output_activate() 291 th->deactivate(th); in intel_th_output_deactivate() 760 th->thdev[th->num_thdevs++] = thdev; in intel_th_output_enable() 799 th->thdev[th->num_thdevs++] = thdev; in intel_th_populate() 871 th = kzalloc(sizeof(*th), GFP_KERNEL); in intel_th_alloc() 872 if (!th) in intel_th_alloc() 928 return th; in intel_th_alloc() 952 if (th->thdev[i] != th->hub) in intel_th_free() [all …]
|
| H A D | pci.c | 32 struct pci_dev *pdev = to_pci_dev(th->dev); in intel_th_pci_activate() 36 if (!INTEL_TH_CAP(th, tscu_enable)) in intel_th_pci_activate() 53 struct pci_dev *pdev = to_pci_dev(th->dev); in intel_th_pci_deactivate() 57 if (!INTEL_TH_CAP(th, tscu_enable)) in intel_th_pci_deactivate() 79 struct intel_th *th; in intel_th_pci_probe() local 108 if (IS_ERR(th)) { in intel_th_pci_probe() 109 err = PTR_ERR(th); in intel_th_pci_probe() 113 th->activate = intel_th_pci_activate; in intel_th_pci_probe() 114 th->deactivate = intel_th_pci_deactivate; in intel_th_pci_probe() 127 struct intel_th *th = pci_get_drvdata(pdev); in intel_th_pci_remove() local [all …]
|
| H A D | acpi.c | 42 struct intel_th *th; in intel_th_acpi_probe() local 54 th = intel_th_alloc(&pdev->dev, (void *)id->driver_data, resource, r); in intel_th_acpi_probe() 55 if (IS_ERR(th)) in intel_th_acpi_probe() 56 return PTR_ERR(th); in intel_th_acpi_probe() 58 adev->driver_data = th; in intel_th_acpi_probe() 65 struct intel_th *th = platform_get_drvdata(pdev); in intel_th_acpi_remove() local 67 intel_th_free(th); in intel_th_acpi_remove()
|
| /linux-6.15/net/ipv4/ |
| H A D | tcp_offload.c | 38 struct tcphdr *th; in __tcpv4_gso_segment_csum() local 44 th = tcp_hdr(seg); in __tcpv4_gso_segment_csum() 64 th = tcp_hdr(seg); in __tcpv4_gso_segment_list_csum() 124 th->check = 0; in tcp4_gso_segment() 208 th->fin = th->psh = 0; in tcp_gso_segment() 214 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 255 th->check = ~csum_fold(csum_add(csum_unfold(th->check), delta)); in tcp_gso_segment() 259 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 309 return th; in tcp_gro_pull_header() 410 if (th->cwr) in tcp_gro_complete() [all …]
|
| H A D | syncookies.c | 166 th->source, th->dest, ntohl(th->seq), in __cookie_v4_init_sequence() 174 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_init_sequence() local 185 __u32 cookie = ntohl(th->ack_seq) - 1; in __cookie_v4_check() 186 __u32 seq = ntohl(th->seq) - 1; in __cookie_v4_check() 190 th->source, th->dest, seq); in __cookie_v4_check() 269 const struct tcphdr *th = tcp_hdr(skb); in cookie_tcp_reqsk_init() local 273 ireq->ir_num = ntohs(th->dest); in cookie_tcp_reqsk_init() 274 ireq->ir_rmt_port = th->source; in cookie_tcp_reqsk_init() 285 treq->rcv_isn = ntohl(th->seq) - 1; in cookie_tcp_reqsk_init() 415 !th->ack || th->rst) in cookie_v4_check() [all …]
|
| /linux-6.15/net/ceph/ |
| H A D | auth_x.c | 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() 144 return th; in get_ticket_handler() 152 dout("remove_ticket_handler %p %d\n", th, th->service); in remove_ticket_handler() 157 kfree(th); in remove_ticket_handler() 360 (th->ticket_blob ? th->ticket_blob->vec.iov_len : 0); in ceph_x_build_authorizer() 399 dout(" th %p secret_id %lld %lld\n", th, th->secret_id, in ceph_x_build_authorizer() 451 ceph_entity_type_name(th->service), th->secret_id); in have_key() 499 if (IS_ERR(th)) in ceph_x_build_request() [all …]
|
| /linux-6.15/net/ipv6/ |
| H A D | tcpv6_offload.c | 18 struct tcphdr *th) in tcp6_check_fraglist_gro() argument 30 p = tcp_gro_lookup(head, th); in tcp6_check_fraglist_gro() 40 &hdr->saddr, th->source, in tcp6_check_fraglist_gro() 52 struct tcphdr *th; in tcp6_gro_receive() local 60 th = tcp_gro_pull_header(skb); in tcp6_gro_receive() 61 if (!th) in tcp6_gro_receive() 120 const struct tcphdr *th; in __tcpv6_gso_segment_list_csum() local 127 th = tcp_hdr(seg); in __tcpv6_gso_segment_list_csum() 144 &th2->dest, th->dest); in __tcpv6_gso_segment_list_csum() 163 struct tcphdr *th; in tcp6_gso_segment() local [all …]
|
| H A D | syncookies.c | 93 const struct tcphdr *th, __u16 *mssp) in __cookie_v6_init_sequence() argument 104 return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source, in __cookie_v6_init_sequence() 105 th->dest, ntohl(th->seq), mssind); in __cookie_v6_init_sequence() 112 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_init_sequence() local 114 return __cookie_v6_init_sequence(iph, th, mssp); in cookie_v6_init_sequence() 117 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th) in __cookie_v6_check() argument 119 __u32 cookie = ntohl(th->ack_seq) - 1; in __cookie_v6_check() 120 __u32 seq = ntohl(th->seq) - 1; in __cookie_v6_check() 124 th->source, th->dest, seq); in __cookie_v6_check() 170 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check() local [all …]
|
| /linux-6.15/net/netfilter/ |
| H A D | nf_synproxy_core.c | 31 int length = (th->doff * 4) - sizeof(*th); in synproxy_parse_options() 514 nth->dest = th->dest; in synproxy_send_server_syn() 597 nth->dest = th->dest; in synproxy_send_client_ack() 666 if (!th) in ipv4_synproxy_hook() 678 if (!th->syn || th->ack || in ipv4_synproxy_hook() 694 if (!th->syn && th->ack && in ipv4_synproxy_hook() 717 if (!th->syn || !th->ack) in ipv4_synproxy_hook() 1089 if (!th) in ipv6_synproxy_hook() 1101 if (!th->syn || th->ack || in ipv6_synproxy_hook() 1117 if (!th->syn && th->ack && in ipv6_synproxy_hook() [all …]
|
| H A D | xt_tcpmss.c | 28 const struct tcphdr *th; in tcpmss_mt() local 36 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph); in tcpmss_mt() 37 if (th == NULL) in tcpmss_mt() 41 if (th->doff*4 < sizeof(*th)) in tcpmss_mt() 44 optlen = th->doff*4 - sizeof(*th); in tcpmss_mt() 49 op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt); in tcpmss_mt()
|
| /linux-6.15/tools/lib/thermal/include/ |
| H A D | thermal.h | 116 LIBTHERMAL_API void thermal_exit(struct thermal_handler *th); 121 LIBTHERMAL_API thermal_error_t thermal_events_exit(struct thermal_handler *th); 123 LIBTHERMAL_API thermal_error_t thermal_events_init(struct thermal_handler *th); 127 LIBTHERMAL_API int thermal_events_fd(struct thermal_handler *th); 132 LIBTHERMAL_API thermal_error_t thermal_cmd_exit(struct thermal_handler *th); 134 LIBTHERMAL_API thermal_error_t thermal_cmd_init(struct thermal_handler *th); 136 LIBTHERMAL_API thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, 139 LIBTHERMAL_API thermal_error_t thermal_cmd_get_cdev(struct thermal_handler *th, 142 LIBTHERMAL_API thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, 148 LIBTHERMAL_API thermal_error_t thermal_cmd_get_temp(struct thermal_handler *th, [all …]
|
| /linux-6.15/net/ipv4/netfilter/ |
| H A D | ipt_SYNPROXY.c | 19 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()
|
| /linux-6.15/net/ipv6/netfilter/ |
| H A D | ip6t_SYNPROXY.c | 19 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()
|
| /linux-6.15/tools/testing/selftests/bpf/progs/ |
| H A D | test_btf_skc_cls_ingress.c | 27 if (th->syn) { in test_syncookie_helper() 33 if (th->doff * 4 != 40) { in test_syncookie_helper() 38 if ((void *)th + 40 > data_end) { in test_syncookie_helper() 44 th, 40); in test_syncookie_helper() 55 th, sizeof(*th)); in test_syncookie_helper() 74 struct tcphdr *th; in handle_ip_tcp() local 86 th = (struct tcphdr *)(ip4h + 1); in handle_ip_tcp() 87 if (th + 1 > data_end) in handle_ip_tcp() 90 if (th->dest != srv_sa4.sin_port) in handle_ip_tcp() 103 th = (struct tcphdr *)(ip6h + 1); in handle_ip_tcp() [all …]
|
| H A D | test_misc_tcp_hdr_options.c | 36 struct tcphdr th; in __check_active_hdr_in() member 119 if (hdr.th.dest != passive_lport_n || hdr.th.source != active_lport_n) in __check_active_hdr_in() 132 struct tcphdr *th; in check_active_hdr_in() local 137 th = skops->skb_data; in check_active_hdr_in() 138 if (th + 1 > skops->skb_data_end) in check_active_hdr_in() 144 if (th->fin) in check_active_hdr_in() 147 if (th->ack && !th->fin && tcp_hdrlen(th) == skops->skb_len) in check_active_hdr_in() 175 struct tcphdr *th; in write_active_opt() local 217 th = skops->skb_data; in write_active_opt() 221 if (th->syn) { in write_active_opt() [all …]
|
| /linux-6.15/drivers/net/slip/ |
| H A D | slhc.c | 276 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress() 277 ! (th->ack)){ in slhc_compress() 359 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress() 369 if(th->urg){ in slhc_compress() 436 if(th->psh) in slhc_compress() 441 csum = th->check; in slhc_compress() 480 if (th->doff > 5) in slhc_compress() 481 memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4); in slhc_compress() 691 memcpy(&cs->cs_tcp, th, sizeof(*th)); in slhc_remember() 694 if (th->doff > 5) in slhc_remember() [all …]
|
| /linux-6.15/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | sharedbuffer_configuration.py | 36 def _get_static_size(self, th): argument 49 th = random.randint(3, 16) 51 return th 82 th = self._get_th(pool) 84 return (pool_n, th) 89 th = self._get_th(pool) 90 return (th,) 237 def dl_set(self, pool, th): argument 271 tcbind.dl_set(pool, th) 311 def dl_set(self, th): argument [all …]
|
| /linux-6.15/drivers/char/ |
| H A D | ds1620.c | 336 struct therm th; in ds1620_proc_therm_show() local 339 ds1620_read_state(&th); in ds1620_proc_therm_show() 343 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_proc_therm_show() 344 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_proc_therm_show() 367 struct therm th, th_start; in ds1620_init() local 381 ds1620_read_state(&th); in ds1620_init() 388 ds1620_write_state(&th); in ds1620_init() 399 ds1620_read_state(&th); in ds1620_init() 404 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_init() 405 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
|
| /linux-6.15/net/netfilter/ipvs/ |
| H A D | ip_vs_app.c | 290 __u32 seq = ntohl(th->seq); in vs_fix_seq() 299 th->seq = htonl(seq + vseq->delta); in vs_fix_seq() 317 __u32 ack_seq = ntohl(th->ack_seq); in vs_fix_ack_seq() 366 struct tcphdr *th; in app_tcp_pkt_out() local 377 seq = ntohl(th->seq); in app_tcp_pkt_out() 383 vs_fix_seq(&cp->out_seq, th); in app_tcp_pkt_out() 385 vs_fix_ack_seq(&cp->in_seq, th); in app_tcp_pkt_out() 443 struct tcphdr *th; in app_tcp_pkt_in() local 454 seq = ntohl(th->seq); in app_tcp_pkt_in() 460 vs_fix_seq(&cp->in_seq, th); in app_tcp_pkt_in() [all …]
|