/kernel/linux/linux-5.10/drivers/macintosh/ |
D | therm_adt746x.c | 91 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, ®_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-5.10/drivers/thermal/ |
D | db8500_thermal.c | 64 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-5.10/drivers/sfi/ |
D | sfi_core.c | 167 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 …]
|
D | sfi_acpi.c | 81 struct acpi_table_header *th) in acpi_to_sfi_th() argument 83 return (struct sfi_table_header *)th; in acpi_to_sfi_th() 87 struct sfi_table_header *th) in sfi_to_acpi_th() argument 89 return (struct acpi_table_header *)th; in sfi_to_acpi_th() 97 static int __init sfi_acpi_parse_xsdt(struct sfi_table_header *th) in sfi_acpi_parse_xsdt() argument 103 xsdt_va = (struct acpi_table_xsdt *)th; in sfi_acpi_parse_xsdt() 181 struct acpi_table_header *th = NULL; in sfi_acpi_table_show() local 189 th = sfi_acpi_get_table(&key); in sfi_acpi_table_show() 190 if (!th) in sfi_acpi_table_show() 194 th, th->length); in sfi_acpi_table_show() [all …]
|
/kernel/linux/linux-5.10/drivers/hwtracing/intel_th/ |
D | core.c | 106 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() 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 196 node = kasprintf(GFP_KERNEL, "intel_th%d/%s%d", th->id, in intel_th_output_devnode() [all …]
|
D | pci.c | 31 static int intel_th_pci_activate(struct intel_th *th) in intel_th_pci_activate() argument 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() 52 static void intel_th_pci_deactivate(struct intel_th *th) in intel_th_pci_deactivate() argument 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 102 th = intel_th_alloc(&pdev->dev, drvdata, resource, r); in intel_th_pci_probe() 103 if (IS_ERR(th)) { in intel_th_pci_probe() 104 err = PTR_ERR(th); in intel_th_pci_probe() [all …]
|
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()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | tcp_offload.c | 40 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-5.10/net/ceph/ |
D | auth_x.c | 119 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/net/netfilter/ |
D | nf_synproxy_core.c | 29 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 …]
|
D | nf_log_common.c | 58 const struct tcphdr *th; in nf_log_dump_tcp_header() local 67 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in nf_log_dump_tcp_header() 68 if (th == NULL) { in nf_log_dump_tcp_header() 75 ntohs(th->source), ntohs(th->dest)); in nf_log_dump_tcp_header() 79 ntohl(th->seq), ntohl(th->ack_seq)); in nf_log_dump_tcp_header() 83 nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window)); in nf_log_dump_tcp_header() 85 nf_log_buf_add(m, "RES=0x%02x ", (u_int8_t)(ntohl(tcp_flag_word(th) & in nf_log_dump_tcp_header() 88 if (th->cwr) in nf_log_dump_tcp_header() 90 if (th->ece) in nf_log_dump_tcp_header() 92 if (th->urg) in nf_log_dump_tcp_header() [all …]
|
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()
|
/kernel/linux/linux-5.10/net/ipv4/netfilter/ |
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()
|
/kernel/linux/linux-5.10/net/ipv6/netfilter/ |
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | test_btf_skc_cls_ingress.c | 27 static void test_syncookie_helper(struct ipv6hdr *ip6h, struct tcphdr *th, in test_syncookie_helper() argument 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() [all …]
|
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() 140 if (tcp_hdrlen(th) < skops->skb_len) 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() [all …]
|
/kernel/linux/linux-5.10/fs/reiserfs/ |
D | namei.c | 432 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, in reiserfs_add_entry() argument 453 BUG_ON(!th->t_trans_id); in reiserfs_add_entry() 547 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number); in reiserfs_add_entry() 566 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, in reiserfs_add_entry() 579 reiserfs_update_sd(th, dir); in reiserfs_add_entry() 635 struct reiserfs_transaction_handle th; in reiserfs_create() local 660 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create() 667 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_create() 677 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create() 682 reiserfs_update_sd(&th, inode); in reiserfs_create() [all …]
|
D | inode.c | 36 struct reiserfs_transaction_handle th; in reiserfs_evict_inode() local 57 if (journal_begin(&th, inode->i_sb, jbegin_count)) in reiserfs_evict_inode() 61 reiserfs_discard_prealloc(&th, inode); in reiserfs_evict_inode() 63 err = reiserfs_delete_object(&th, inode); in reiserfs_evict_inode() 76 if (journal_end(&th)) in reiserfs_evict_inode() 252 static int restart_transaction(struct reiserfs_transaction_handle *th, in restart_transaction() argument 255 struct super_block *s = th->t_super; in restart_transaction() 258 BUG_ON(!th->t_trans_id); in restart_transaction() 259 BUG_ON(!th->t_refcount); in restart_transaction() 264 if (th->t_refcount > 1) { in restart_transaction() [all …]
|
D | stree.c | 1034 static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, in prepare_for_delete_or_cut() argument 1053 BUG_ON(!th->t_trans_id); in prepare_for_delete_or_cut() 1112 reiserfs_transaction_free_space(th) < JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD) in prepare_for_delete_or_cut() 1121 journal_mark_dirty(th, bh); in prepare_for_delete_or_cut() 1122 reiserfs_free_block(th, inode, block, 1); in prepare_for_delete_or_cut() 1190 static void init_tb_struct(struct reiserfs_transaction_handle *th, in init_tb_struct() argument 1196 BUG_ON(!th->t_trans_id); in init_tb_struct() 1199 tb->transaction_handle = th; in init_tb_struct() 1251 int reiserfs_delete_item(struct reiserfs_transaction_handle *th, in reiserfs_delete_item() argument 1268 BUG_ON(!th->t_trans_id); in reiserfs_delete_item() [all …]
|
D | bitmap.c | 143 static int scan_bitmap_block(struct reiserfs_transaction_handle *th, in scan_bitmap_block() argument 147 struct super_block *s = th->t_super; in scan_bitmap_block() 153 BUG_ON(!th->t_trans_id); in scan_bitmap_block() 258 journal_mark_dirty(th, bh); in scan_bitmap_block() 265 journal_mark_dirty(th, SB_BUFFER_WITH_SB(s)); in scan_bitmap_block() 347 static int scan_bitmap(struct reiserfs_transaction_handle *th, in scan_bitmap() argument 352 struct super_block *s = th->t_super; in scan_bitmap() 357 BUG_ON(!th->t_trans_id); in scan_bitmap() 391 scan_bitmap_block(th, bm, &off, off_max, in scan_bitmap() 402 scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); in scan_bitmap() [all …]
|
D | journal.c | 91 static int journal_join(struct reiserfs_transaction_handle *th, 109 static int do_journal_begin_r(struct reiserfs_transaction_handle *th, 1903 static int do_journal_release(struct reiserfs_transaction_handle *th, in do_journal_release() argument 1915 BUG_ON(!th->t_trans_id); in do_journal_release() 1916 do_journal_end(th, FLUSH_ALL); in do_journal_release() 1967 int journal_release(struct reiserfs_transaction_handle *th, in journal_release() argument 1970 return do_journal_release(th, sb, 0); in journal_release() 1974 int journal_release_error(struct reiserfs_transaction_handle *th, in journal_release_error() argument 1977 return do_journal_release(th, sb, 1); in journal_release_error() 2915 int journal_transaction_should_end(struct reiserfs_transaction_handle *th, in journal_transaction_should_end() argument [all …]
|
/kernel/linux/linux-5.10/net/ipv6/ |
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 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() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | sharedbuffer_configuration.py | 36 def _get_static_size(self, th): argument 39 return th * 8000 * self._cell_size() 49 th = random.randint(3, 16) 51 return th 53 return self._get_static_size(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 [all …]
|
/kernel/linux/linux-5.10/drivers/net/slip/ |
D | slhc.c | 239 struct tcphdr *th, *oth; in slhc_compress() local 264 if (isize < nlen + sizeof(*th)) in slhc_compress() 267 th = (struct tcphdr *)(icp + nlen); in slhc_compress() 268 if (th->doff < sizeof(struct tcphdr) / 4) in slhc_compress() 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() 299 && th->source == cs->cs_tcp.source in slhc_compress() 300 && th->dest == cs->cs_tcp.dest) in slhc_compress() 357 || th->doff != cs->cs_tcp.doff in slhc_compress() [all …]
|
/kernel/linux/linux-5.10/drivers/char/ |
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()
|