| /linux/drivers/macintosh/ |
| 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/tools/lib/thermal/ |
| 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 …]
|
| A D | thermal.c | 104 thermal_cmd_exit(th); in thermal_exit() 105 thermal_events_exit(th); in thermal_exit() 106 thermal_sampling_exit(th); in thermal_exit() 108 free(th); in thermal_exit() 113 struct thermal_handler *th; in thermal_init() local 115 th = malloc(sizeof(*th)); in thermal_init() 116 if (!th) in thermal_init() 118 th->ops = ops; in thermal_init() 126 if (thermal_cmd_init(th)) in thermal_init() 129 return th; in thermal_init() [all …]
|
| A D | events.c | 121 struct thermal_handler_param thp = { .th = th, .arg = arg }; in thermal_events_handle() 123 if (!th) 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() 143 if (nl_unsubscribe_thermal(th->sk_event, th->cb_event, in thermal_events_exit() 147 nl_thermal_disconnect(th->sk_event, th->cb_event); in thermal_events_exit() 154 thermal_events_ops_init(&th->ops->events); in thermal_events_init() 156 if (nl_thermal_connect(&th->sk_event, &th->cb_event)) in thermal_events_init() [all …]
|
| A D | commands.c | 282 if (nl_send_msg(th->sk_cmd, th->cb_cmd, msg, genl_handle_msg, arg)) in thermal_genl_auto() 292 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_TZ_GET_ID, in thermal_cmd_get_tz() 298 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_CDEV_GET, in thermal_cmd_get_cdev() 304 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_TRIP, in thermal_cmd_get_trip() 310 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_GOV, 0, tz); in thermal_cmd_get_governor() 318 thermal_error_t thermal_cmd_exit(struct thermal_handler *th) in thermal_cmd_exit() argument 323 nl_thermal_disconnect(th->sk_cmd, th->cb_cmd); in thermal_cmd_exit() 328 thermal_error_t thermal_cmd_init(struct thermal_handler *th) in thermal_cmd_init() argument 333 if (nl_thermal_connect(&th->sk_cmd, &th->cb_cmd)) in thermal_cmd_init() 340 ret = genl_ops_resolve(th->sk_cmd, &thermal_cmd_ops); in thermal_cmd_init() [all …]
|
| /linux/drivers/thermal/ |
| 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/drivers/hwtracing/intel_th/ |
| 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() 870 th = kzalloc(sizeof(*th), GFP_KERNEL); in intel_th_alloc() 871 if (!th) in intel_th_alloc() 927 return th; in intel_th_alloc() 951 if (th->thdev[i] != th->hub) in intel_th_free() [all …]
|
| A D | pci.c | 33 struct pci_dev *pdev = to_pci_dev(th->dev); in intel_th_pci_activate() 37 if (!INTEL_TH_CAP(th, tscu_enable)) in intel_th_pci_activate() 54 struct pci_dev *pdev = to_pci_dev(th->dev); in intel_th_pci_deactivate() 58 if (!INTEL_TH_CAP(th, tscu_enable)) in intel_th_pci_deactivate() 80 struct intel_th *th; in intel_th_pci_probe() local 103 if (IS_ERR(th)) { in intel_th_pci_probe() 104 err = PTR_ERR(th); in intel_th_pci_probe() 108 th->activate = intel_th_pci_activate; in intel_th_pci_probe() 109 th->deactivate = intel_th_pci_deactivate; in intel_th_pci_probe() 122 struct intel_th *th = pci_get_drvdata(pdev); in intel_th_pci_remove() local [all …]
|
| 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/net/ipv4/ |
| A D | tcp_offload.c | 35 struct tcphdr *th; in __tcpv4_gso_segment_csum() local 41 th = tcp_hdr(seg); in __tcpv4_gso_segment_csum() 61 th = tcp_hdr(seg); in __tcpv4_gso_segment_list_csum() 121 th->check = 0; in tcp4_gso_segment() 202 th->fin = th->psh = 0; in tcp_gso_segment() 208 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 220 th->cwr = 0; in tcp_gso_segment() 252 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 302 return th; in tcp_gro_pull_header() 403 if (th->cwr) in tcp_gro_complete() [all …]
|
| /linux/net/ceph/ |
| 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/net/ipv6/ |
| 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 61 if (!th) in tcp6_gro_receive() 99 struct tcphdr *th; in __tcpv6_gso_segment_csum() local 104 th = tcp_hdr(seg); in __tcpv6_gso_segment_csum() 111 const struct tcphdr *th; in __tcpv6_gso_segment_list_csum() local 118 th = tcp_hdr(seg); in __tcpv6_gso_segment_list_csum() 154 struct tcphdr *th; in tcp6_gso_segment() local [all …]
|
| /linux/net/netfilter/ |
| 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 …]
|
| 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/net/ipv4/netfilter/ |
| 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/net/ipv6/netfilter/ |
| 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/tools/lib/thermal/include/ |
| A D | thermal.h | 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); 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, 118 LIBTHERMAL_API thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, 124 LIBTHERMAL_API thermal_error_t thermal_cmd_get_temp(struct thermal_handler *th, [all …]
|
| /linux/drivers/net/slip/ |
| 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/tools/testing/selftests/bpf/progs/ |
| A D | test_btf_skc_cls_ingress.c | 25 if (th->syn) { in test_syncookie_helper() 31 if (th->doff * 4 != 40) { in test_syncookie_helper() 36 if ((void *)th + 40 > data_end) { in test_syncookie_helper() 42 th, 40); in test_syncookie_helper() 52 th, sizeof(*th)); in test_syncookie_helper() 58 recv_cookie = bpf_ntohl(th->ack_seq) - 1; in test_syncookie_helper() 68 struct tcphdr *th; in handle_ip6_tcp() local 73 th = (struct tcphdr *)(ip6h + 1); in handle_ip6_tcp() 74 if (th + 1 > data_end) in handle_ip6_tcp() 78 if (th->dest != srv_sa6.sin6_port) in handle_ip6_tcp() [all …]
|
| 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/fs/reiserfs/ |
| A D | inode.c | 725 if (!th) { in reiserfs_get_block() 750 if (!th) { in reiserfs_get_block() 831 if (!th) { in reiserfs_get_block() 914 (th); in reiserfs_get_block() 938 if (th) in reiserfs_get_block() 1141 if (th && (!dangle || (retval && !th->t_trans_id))) { in reiserfs_get_block() 2878 th = NULL; in reiserfs_write_end() 2929 if (th) { in reiserfs_write_end() 2955 if (th) { in reiserfs_write_end() 3018 if (th) { in reiserfs_commit_write() [all …]
|
| A D | namei.c | 452 BUG_ON(!th->t_trans_id); in reiserfs_add_entry() 675 err = journal_end(&th); in reiserfs_create() 761 err = journal_end(&th); in reiserfs_mknod() 860 err = journal_end(&th); in reiserfs_mkdir() 986 err = journal_end(&th); in reiserfs_rmdir() 1085 err = journal_end(&th); in reiserfs_unlink() 1180 err = journal_end(&th); in reiserfs_symlink() 1242 err = journal_end(&th); in reiserfs_link() 1452 journal_end(&th); in reiserfs_rename() 1476 journal_end(&th); in reiserfs_rename() [all …]
|
| A D | stree.c | 1053 BUG_ON(!th->t_trans_id); in prepare_for_delete_or_cut() 1196 BUG_ON(!th->t_trans_id); in init_tb_struct() 1267 BUG_ON(!th->t_trans_id); in reiserfs_delete_item() 1414 BUG_ON(!th->t_trans_id); in reiserfs_delete_solid_item() 1448 init_tb_struct(th, &tb, th->t_super, &path, in reiserfs_delete_solid_item() 1497 BUG_ON(!th->t_trans_id); in reiserfs_delete_object() 1565 BUG_ON(!th->t_trans_id); in maybe_indirect_to_direct() 1601 BUG_ON(!th->t_trans_id); in indirect_to_direct_roll_back() 1662 BUG_ON(!th->t_trans_id); in reiserfs_cut_from_item() 2117 init_tb_struct(th, &s_paste_balance, th->t_super, search_path, in reiserfs_paste_into_item() [all …]
|
| A D | bitmap.c | 153 BUG_ON(!th->t_trans_id); in scan_bitmap_block() 258 journal_mark_dirty(th, bh); in scan_bitmap_block() 357 BUG_ON(!th->t_trans_id); in scan_bitmap() 426 BUG_ON(!th->t_trans_id); in _reiserfs_free_block() 459 journal_mark_dirty(th, sbh); in _reiserfs_free_block() 473 BUG_ON(!th->t_trans_id); in reiserfs_free_block() 494 BUG_ON(!th->t_trans_id); in reiserfs_free_prealloc_block() 495 RFALSE(!th->t_super, in reiserfs_free_prealloc_block() 509 BUG_ON(!th->t_trans_id); in __discard_prealloc() 541 BUG_ON(!th->t_trans_id); in reiserfs_discard_prealloc() [all …]
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| 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 …]
|