/linux/drivers/macintosh/ |
A D | therm_adt746x.c | 210 if (th->temps[0] != th->cached_temp[0] in display_stats() 211 || th->temps[1] != th->cached_temp[1] in display_stats() 212 || th->temps[2] != th->cached_temp[2]) { in display_stats() 217 th->temps[0], th->temps[1], th->temps[2], in display_stats() 218 th->limits[0], th->limits[1], th->limits[2], in display_stats() 221 th->cached_temp[0] = th->temps[0]; in display_stats() 222 th->cached_temp[1] = th->temps[1]; in display_stats() 223 th->cached_temp[2] = th->temps[2]; in display_stats() 236 int var = th->temps[i] - th->limits[i]; in update_fans_speed() 534 th->initial_limits[2], th->limits[0], th->limits[1], in probe_thermostat() [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 return PTR_ERR(th); in intel_th_pci_probe() 106 th->activate = intel_th_pci_activate; in intel_th_pci_probe() 107 th->deactivate = intel_th_pci_deactivate; in intel_th_pci_probe() 116 struct intel_th *th = pci_get_drvdata(pdev); in intel_th_pci_remove() local [all …]
|
/linux/drivers/thermal/ |
A D | db8500_thermal.c | 81 *trend = th->trend; in db8500_thermal_get_trend() 99 th->cur_index = idx; in db8500_thermal_update_config() 101 th->trend = trend; in db8500_thermal_update_config() 132 dev_dbg(&th->tz->device, in prcmu_low_irq_handler() 155 dev_dbg(&th->tz->device, in prcmu_high_irq_handler() 172 th = devm_kzalloc(dev, sizeof(*th), GFP_KERNEL); in db8500_thermal_probe() 173 if (!th) in db8500_thermal_probe() 184 "dbx500_temp_low", th); in db8500_thermal_probe() 205 th->tz = devm_thermal_zone_of_sensor_register(dev, 0, th, &thdev_ops); in db8500_thermal_probe() 206 if (IS_ERR(th->tz)) { in db8500_thermal_probe() [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/ipv4/ |
A D | tcp_offload.c | 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() 115 th = tcp_hdr(skb); in tcp_gso_segment() 125 th->fin = th->psh = 0; in tcp_gso_segment() 131 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 143 th->cwr = 0; in tcp_gso_segment() 170 th->check = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment() 175 th->check = gso_make_checksum(skb, ~th->check); in tcp_gso_segment() 184 struct tcphdr *th; in tcp_gro_receive() local [all …]
|
A D | tcp_ipv4.c | 478 th->dest, iph->saddr, ntohs(th->source), in tcp_v4_err() 586 ip_icmp_error(sk, skb, err, th->dest, info, (u8 *)th); in tcp_v4_err() 687 if (th->rst) in tcp_v4_send_reset() 698 rep.th.dest = th->source; in tcp_v4_send_reset() 699 rep.th.source = th->dest; in tcp_v4_send_reset() 704 rep.th.seq = th->ack_seq; in tcp_v4_send_reset() 707 rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin + in tcp_v4_send_reset() 877 rep.th.dest = th->source; in tcp_v4_send_ack() 878 rep.th.source = th->dest; in tcp_v4_send_ack() 1317 memcpy(_th, th, sizeof(*th)); in tcp_v4_md5_hash_headers() [all …]
|
A D | syncookies.c | 171 th->source, th->dest, ntohl(th->seq), in __cookie_v4_init_sequence() 179 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_init_sequence() local 191 __u32 seq = ntohl(th->seq) - 1; in __cookie_v4_check() 193 th->source, th->dest, seq); in __cookie_v4_check() 328 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_check() local 329 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v4_check() 338 if (!sock_net(sk)->ipv4.sysctl_tcp_syncookies || !th->ack || th->rst) in cookie_v4_check() 373 treq->rcv_isn = ntohl(th->seq) - 1; in cookie_v4_check() 378 ireq->ir_num = ntohs(th->dest); in cookie_v4_check() 379 ireq->ir_rmt_port = th->source; in cookie_v4_check() [all …]
|
/linux/net/netfilter/ |
A D | nf_synproxy_core.c | 31 int length = (th->doff * 4) - sizeof(*th); in synproxy_parse_options() 643 mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack() 689 if (!th) in ipv4_synproxy_hook() 701 if (!th->syn || th->ack || in ipv4_synproxy_hook() 717 if (!th->syn && th->ack && in ipv4_synproxy_hook() 740 if (!th->syn || !th->ack) in ipv4_synproxy_hook() 1060 mss = nf_cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1); in synproxy_recv_client_ack_ipv6() 1112 if (!th) in ipv6_synproxy_hook() 1124 if (!th->syn || th->ack || in ipv6_synproxy_hook() 1140 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/fs/reiserfs/ |
A D | inode.c | 733 if (!th) { in reiserfs_get_block() 758 if (!th) { in reiserfs_get_block() 839 if (!th) { in reiserfs_get_block() 922 (th); in reiserfs_get_block() 946 if (th) in reiserfs_get_block() 1149 if (th && (!dangle || (retval && !th->t_trans_id))) { in reiserfs_get_block() 2906 th = NULL; in reiserfs_write_end() 2957 if (th) { in reiserfs_write_end() 2983 if (th) { in reiserfs_write_end() 3046 if (th) { in reiserfs_commit_write() [all …]
|
A D | namei.c | 454 BUG_ON(!th->t_trans_id); in reiserfs_add_entry() 684 err = journal_end(&th); in reiserfs_create() 769 err = journal_end(&th); in reiserfs_mknod() 867 err = journal_end(&th); in reiserfs_mkdir() 991 err = journal_end(&th); in reiserfs_rmdir() 1090 err = journal_end(&th); in reiserfs_unlink() 1185 err = journal_end(&th); in reiserfs_symlink() 1246 err = journal_end(&th); in reiserfs_link() 1454 journal_end(&th); in reiserfs_rename() 1478 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() 1268 BUG_ON(!th->t_trans_id); in reiserfs_delete_item() 1416 BUG_ON(!th->t_trans_id); in reiserfs_delete_solid_item() 1450 init_tb_struct(th, &tb, th->t_super, &path, in reiserfs_delete_solid_item() 1499 BUG_ON(!th->t_trans_id); in reiserfs_delete_object() 1567 BUG_ON(!th->t_trans_id); in maybe_indirect_to_direct() 1603 BUG_ON(!th->t_trans_id); in indirect_to_direct_roll_back() 1664 BUG_ON(!th->t_trans_id); in reiserfs_cut_from_item() 2118 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 …]
|
A D | journal.c | 3040 th->t_super = sb; in do_journal_begin_r() 3134 memset(th, 0, sizeof(*th)); in do_journal_begin_r() 3161 return th; in reiserfs_persistent_transaction() 3164 if (!th) in reiserfs_persistent_transaction() 3168 kfree(th); in reiserfs_persistent_transaction() 3173 return th; in reiserfs_persistent_transaction() 3186 kfree(th); in reiserfs_end_persistent_transaction() 3231 memcpy(th, cur_th, sizeof(*th)); in journal_begin() 3353 if (th->t_blocks_logged == th->t_blocks_allocated) { in journal_mark_dirty() 3407 memcpy(current->journal_info, th, sizeof(*th)); in journal_end() [all …]
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | test_btf_skc_cls_ingress.c | 31 if (th->syn) { in test_syncookie_helper() 37 if (th->doff * 4 != 40) { in test_syncookie_helper() 42 if ((void *)th + 40 > data_end) { in test_syncookie_helper() 48 th, 40); in test_syncookie_helper() 58 th, sizeof(*th)); in test_syncookie_helper() 64 recv_cookie = bpf_ntohl(th->ack_seq) - 1; in test_syncookie_helper() 74 struct tcphdr *th; in handle_ip6_tcp() local 79 th = (struct tcphdr *)(ip6h + 1); in handle_ip6_tcp() 80 if (th + 1 > data_end) in handle_ip6_tcp() 84 if (th->dest != srv_sa6.sin6_port) in handle_ip6_tcp() [all …]
|
A D | test_misc_tcp_hdr_options.c | 35 struct tcphdr th; in __check_active_hdr_in() member 118 if (hdr.th.dest != passive_lport_n || hdr.th.source != active_lport_n) in __check_active_hdr_in() 131 struct tcphdr *th; in check_active_hdr_in() local 136 th = skops->skb_data; in check_active_hdr_in() 137 if (th + 1 > skops->skb_data_end) in check_active_hdr_in() 143 if (th->fin) in check_active_hdr_in() 146 if (th->ack && !th->fin && tcp_hdrlen(th) == skops->skb_len) in check_active_hdr_in() 171 struct tcphdr *th; in write_active_opt() local 213 th = skops->skb_data; in write_active_opt() 217 if (th->syn) { in write_active_opt() [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 …]
|
/linux/drivers/net/slip/ |
A D | slhc.c | 239 struct tcphdr *th, *oth; in slhc_compress() local 270 hlen = nlen + th->doff * 4; in slhc_compress() 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() 443 memcpy(&cs->cs_tcp,th,20); in slhc_compress() 480 if (th->doff > 5) in slhc_compress() [all …]
|
/linux/net/ipv6/ |
A D | syncookies.c | 93 const struct tcphdr *th, __u16 *mssp) in __cookie_v6_init_sequence() argument 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 120 __u32 seq = ntohl(th->seq) - 1; in __cookie_v6_check() 122 th->source, th->dest, seq); in __cookie_v6_check() 135 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check() local 136 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check() 144 if (!sock_net(sk)->ipv4.sysctl_tcp_syncookies || !th->ack || th->rst) in cookie_v6_check() 185 ireq->ir_rmt_port = th->source; in cookie_v6_check() 186 ireq->ir_num = ntohs(th->dest); in cookie_v6_check() [all …]
|
/linux/drivers/char/ |
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() 368 struct therm th, th_start; in ds1620_init() local 382 ds1620_read_state(&th); in ds1620_init() 389 ds1620_write_state(&th); in ds1620_init() 400 ds1620_read_state(&th); in ds1620_init() 405 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_init() 406 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
|
/linux/net/netfilter/ipvs/ |
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 …]
|
/linux/crypto/ |
A D | vmac.c | 151 int i; u64 th, tl; \ 156 ADD128(rh, rl, th, tl); \ 162 int i; u64 th, tl; \ 167 ADD128(rh, rl, th, tl); \ 177 int i; u64 th, tl; \ 182 ADD128(rh, rl, th, tl); \ 185 ADD128(rh, rl, th, tl); \ 188 ADD128(rh, rl, th, tl); \ 191 ADD128(rh, rl, th, tl); \ 197 int i; u64 th, tl; \ [all …]
|