Home
last modified time | relevance | path

Searched refs:th (Results 1 – 25 of 247) sorted by relevance

12345678910

/Linux-v4.19/drivers/macintosh/
Dtherm_adt746x.c90 static void write_both_fan_speed(struct thermostat *th, int speed);
91 static void write_fan_speed(struct thermostat *th, int speed, int fan);
94 write_reg(struct thermostat* th, int reg, u8 data) in write_reg() argument
101 rc = i2c_master_send(th->clt, (const char *)tmp, 2); in write_reg()
110 read_reg(struct thermostat* th, int reg) in read_reg() argument
116 rc = i2c_master_send(th->clt, &reg_addr, 1); in read_reg()
121 rc = i2c_master_recv(th->clt, (char *)&data, 1); in read_reg()
127 static int read_fan_speed(struct thermostat *th, u8 addr) in read_fan_speed() argument
133 tmp[1] = read_reg(th, addr); in read_fan_speed()
134 tmp[0] = read_reg(th, addr + 1); in read_fan_speed()
[all …]
/Linux-v4.19/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 …]
Dsfi_acpi.c81 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 …]
/Linux-v4.19/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()
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 …]
Dpci.c25 static int intel_th_pci_activate(struct intel_th *th) in intel_th_pci_activate() argument
27 struct pci_dev *pdev = to_pci_dev(th->dev); in intel_th_pci_activate()
31 if (!INTEL_TH_CAP(th, tscu_enable)) in intel_th_pci_activate()
46 static void intel_th_pci_deactivate(struct intel_th *th) in intel_th_pci_deactivate() argument
48 struct pci_dev *pdev = to_pci_dev(th->dev); in intel_th_pci_deactivate()
52 if (!INTEL_TH_CAP(th, tscu_enable)) in intel_th_pci_deactivate()
69 struct intel_th *th; in intel_th_pci_probe() local
80 th = intel_th_alloc(&pdev->dev, drvdata, pdev->resource, in intel_th_pci_probe()
82 if (IS_ERR(th)) in intel_th_pci_probe()
83 return PTR_ERR(th); in intel_th_pci_probe()
[all …]
Dacpi.c41 struct intel_th *th; in intel_th_acpi_probe() local
47 th = intel_th_alloc(&pdev->dev, (void *)id->driver_data, in intel_th_acpi_probe()
49 if (IS_ERR(th)) in intel_th_acpi_probe()
50 return PTR_ERR(th); in intel_th_acpi_probe()
52 adev->driver_data = th; in intel_th_acpi_probe()
59 struct intel_th *th = platform_get_drvdata(pdev); in intel_th_acpi_remove() local
61 intel_th_free(th); in intel_th_acpi_remove()
/Linux-v4.19/net/ipv4/
Dtcp_offload.c43 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local
49 th->check = 0; in tcp4_gso_segment()
62 struct tcphdr *th; in tcp_gso_segment() local
72 th = tcp_hdr(skb); in tcp_gso_segment()
73 thlen = th->doff * 4; in tcp_gso_segment()
74 if (thlen < sizeof(*th)) in tcp_gso_segment()
118 th = tcp_hdr(skb); in tcp_gso_segment()
119 seq = ntohl(th->seq); in tcp_gso_segment()
124 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment()
128 th->fin = th->psh = 0; in tcp_gso_segment()
[all …]
Dsyncookies.c165 u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th, in __cookie_v4_init_sequence() argument
177 th->source, th->dest, ntohl(th->seq), in __cookie_v4_init_sequence()
185 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_init_sequence() local
187 return __cookie_v4_init_sequence(iph, th, mssp); in cookie_v4_init_sequence()
194 int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th, in __cookie_v4_check() argument
197 __u32 seq = ntohl(th->seq) - 1; in __cookie_v4_check()
199 th->source, th->dest, seq); in __cookie_v4_check()
290 const struct tcphdr *th = tcp_hdr(skb); in cookie_v4_check() local
291 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v4_check()
300 if (!sock_net(sk)->ipv4.sysctl_tcp_syncookies || !th->ack || th->rst) in cookie_v4_check()
[all …]
Dtcp_ipv4.c92 __be32 daddr, __be32 saddr, const struct tcphdr *th);
429 struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2)); in tcp_v4_err() local
445 th->dest, iph->saddr, ntohs(th->source), in tcp_v4_err()
455 seq = ntohl(th->seq); in tcp_v4_err()
620 struct tcphdr *th = tcp_hdr(skb); in __tcp_v4_send_check() local
622 th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0); in __tcp_v4_send_check()
651 const struct tcphdr *th = tcp_hdr(skb); in tcp_v4_send_reset() local
653 struct tcphdr th; in tcp_v4_send_reset() member
670 if (th->rst) in tcp_v4_send_reset()
681 rep.th.dest = th->source; in tcp_v4_send_reset()
[all …]
/Linux-v4.19/net/ipv4/netfilter/
Dipt_SYNPROXY.c74 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() argument
96 nth->source = th->dest; in synproxy_send_client_synack()
97 nth->dest = th->source; in synproxy_send_client_synack()
98 nth->seq = htonl(__cookie_v4_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
99 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack()
116 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn() argument
138 nth->source = th->source; in synproxy_send_server_syn()
139 nth->dest = th->dest; in synproxy_send_server_syn()
144 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn()
149 nth->window = th->window; in synproxy_send_server_syn()
[all …]
/Linux-v4.19/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 …]
/Linux-v4.19/net/ipv6/netfilter/
Dip6t_SYNPROXY.c88 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() argument
110 nth->source = th->dest; in synproxy_send_client_synack()
111 nth->dest = th->source; in synproxy_send_client_synack()
112 nth->seq = htonl(__cookie_v6_init_sequence(iph, th, &mss)); in synproxy_send_client_synack()
113 nth->ack_seq = htonl(ntohl(th->seq) + 1); in synproxy_send_client_synack()
130 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_server_syn() argument
152 nth->source = th->source; in synproxy_send_server_syn()
153 nth->dest = th->dest; in synproxy_send_server_syn()
158 nth->ack_seq = htonl(ntohl(th->ack_seq) - 1); in synproxy_send_server_syn()
163 nth->window = th->window; in synproxy_send_server_syn()
[all …]
/Linux-v4.19/net/netfilter/
Dnf_log_common.c61 const struct tcphdr *th; in nf_log_dump_tcp_header() local
70 th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph); in nf_log_dump_tcp_header()
71 if (th == NULL) { in nf_log_dump_tcp_header()
78 ntohs(th->source), ntohs(th->dest)); in nf_log_dump_tcp_header()
82 ntohl(th->seq), ntohl(th->ack_seq)); in nf_log_dump_tcp_header()
86 nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window)); in nf_log_dump_tcp_header()
88 nf_log_buf_add(m, "RES=0x%02x ", (u_int8_t)(ntohl(tcp_flag_word(th) & in nf_log_dump_tcp_header()
91 if (th->cwr) in nf_log_dump_tcp_header()
93 if (th->ece) in nf_log_dump_tcp_header()
95 if (th->urg) in nf_log_dump_tcp_header()
[all …]
Dxt_tcpmss.c31 const struct tcphdr *th; in tcpmss_mt() local
39 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph); in tcpmss_mt()
40 if (th == NULL) in tcpmss_mt()
44 if (th->doff*4 < sizeof(*th)) in tcpmss_mt()
47 optlen = th->doff*4 - sizeof(*th); in tcpmss_mt()
52 op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt); in tcpmss_mt()
/Linux-v4.19/fs/reiserfs/
Dnamei.c429 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, in reiserfs_add_entry() argument
450 BUG_ON(!th->t_trans_id); in reiserfs_add_entry()
544 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number); in reiserfs_add_entry()
563 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, in reiserfs_add_entry()
576 reiserfs_update_sd(th, dir); in reiserfs_add_entry()
632 struct reiserfs_transaction_handle th; in reiserfs_create() local
657 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create()
664 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_create()
674 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create()
679 reiserfs_update_sd(&th, inode); in reiserfs_create()
[all …]
Dinode.c36 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 …]
Dstree.c1017 static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, in prepare_for_delete_or_cut() argument
1036 BUG_ON(!th->t_trans_id); in prepare_for_delete_or_cut()
1095 reiserfs_transaction_free_space(th) < JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD) in prepare_for_delete_or_cut()
1104 journal_mark_dirty(th, bh); in prepare_for_delete_or_cut()
1105 reiserfs_free_block(th, inode, block, 1); in prepare_for_delete_or_cut()
1173 static void init_tb_struct(struct reiserfs_transaction_handle *th, in init_tb_struct() argument
1179 BUG_ON(!th->t_trans_id); in init_tb_struct()
1182 tb->transaction_handle = th; in init_tb_struct()
1234 int reiserfs_delete_item(struct reiserfs_transaction_handle *th, in reiserfs_delete_item() argument
1251 BUG_ON(!th->t_trans_id); in reiserfs_delete_item()
[all …]
Dbitmap.c143 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 …]
Djournal.c93 static int journal_join(struct reiserfs_transaction_handle *th,
111 static int do_journal_begin_r(struct reiserfs_transaction_handle *th,
1912 static int do_journal_release(struct reiserfs_transaction_handle *th, in do_journal_release() argument
1925 BUG_ON(!th->t_trans_id); in do_journal_release()
1926 do_journal_end(th, FLUSH_ALL); in do_journal_release()
1978 int journal_release(struct reiserfs_transaction_handle *th, in journal_release() argument
1981 return do_journal_release(th, sb, 0); in journal_release()
1985 int journal_release_error(struct reiserfs_transaction_handle *th, in journal_release_error() argument
1988 return do_journal_release(th, sb, 1); in journal_release_error()
2913 int journal_transaction_should_end(struct reiserfs_transaction_handle *th, in journal_transaction_should_end() argument
[all …]
Dfile.c35 struct reiserfs_transaction_handle th; in reiserfs_file_release() local
66 err = journal_begin(&th, inode->i_sb, 1); in reiserfs_file_release()
74 err = journal_join_abort(&th, inode->i_sb); in reiserfs_file_release()
97 reiserfs_discard_prealloc(&th, inode); in reiserfs_file_release()
99 err = journal_end(&th); in reiserfs_file_release()
188 struct reiserfs_transaction_handle th; in reiserfs_commit_page() local
191 th.t_trans_id = 0; in reiserfs_commit_page()
196 ret = journal_begin(&th, s, bh_per_page + 1); in reiserfs_commit_page()
215 journal_mark_dirty(&th, bh); in reiserfs_commit_page()
230 ret = journal_end(&th); in reiserfs_commit_page()
/Linux-v4.19/net/ipv6/
Dsyncookies.c98 const struct tcphdr *th, __u16 *mssp) in __cookie_v6_init_sequence() argument
109 return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source, in __cookie_v6_init_sequence()
110 th->dest, ntohl(th->seq), mssind); in __cookie_v6_init_sequence()
117 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_init_sequence() local
119 return __cookie_v6_init_sequence(iph, th, mssp); in cookie_v6_init_sequence()
122 int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th, in __cookie_v6_check() argument
125 __u32 seq = ntohl(th->seq) - 1; in __cookie_v6_check()
127 th->source, th->dest, seq); in __cookie_v6_check()
140 const struct tcphdr *th = tcp_hdr(skb); in cookie_v6_check() local
141 __u32 cookie = ntohl(th->ack_seq) - 1; in cookie_v6_check()
[all …]
/Linux-v4.19/drivers/net/slip/
Dslhc.c239 struct tcphdr *th, *oth; in slhc_compress() local
263 th = (struct tcphdr *)(((unsigned char *)ip) + ip->ihl*4); in slhc_compress()
264 hlen = ip->ihl*4 + th->doff*4; in slhc_compress()
270 if(hlen > isize || th->syn || th->fin || th->rst || in slhc_compress()
271 ! (th->ack)){ in slhc_compress()
293 && th->source == cs->cs_tcp.source in slhc_compress()
294 && th->dest == cs->cs_tcp.dest) in slhc_compress()
351 || th->doff != cs->cs_tcp.doff in slhc_compress()
353 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){ in slhc_compress()
363 if(th->urg){ in slhc_compress()
[all …]
/Linux-v4.19/drivers/char/
Dds1620.c335 struct therm th; in ds1620_proc_therm_show() local
338 ds1620_read_state(&th); in ds1620_proc_therm_show()
342 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_proc_therm_show()
343 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-v4.19/net/netfilter/ipvs/
Dip_vs_app.c285 static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_seq() argument
287 __u32 seq = ntohl(th->seq); in vs_fix_seq()
296 th->seq = htonl(seq + vseq->delta); in vs_fix_seq()
300 th->seq = htonl(seq + vseq->previous_delta); in vs_fix_seq()
312 vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th) in vs_fix_ack_seq() argument
314 __u32 ack_seq = ntohl(th->ack_seq); in vs_fix_ack_seq()
325 th->ack_seq = htonl(ack_seq - vseq->delta); in vs_fix_ack_seq()
330 th->ack_seq = htonl(ack_seq - vseq->previous_delta); in vs_fix_ack_seq()
363 struct tcphdr *th; in app_tcp_pkt_out() local
366 if (!skb_make_writable(skb, tcp_offset + sizeof(*th))) in app_tcp_pkt_out()
[all …]
/Linux-v4.19/crypto/
Dvmac.c150 int i; u64 th, tl; \
153 MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i], \
155 ADD128(rh, rl, th, tl); \
161 int i; u64 th, tl; \
164 MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i], \
166 ADD128(rh, rl, th, tl); \
167 MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i+2], \
169 ADD128(rh1, rl1, th, tl); \
176 int i; u64 th, tl; \
179 MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i], \
[all …]

12345678910