Searched refs:th (Results 1 - 25 of 189) sorted by relevance

12345678

/linux-master/tools/lib/thermal/
H A Dsampling.c17 struct thermal_handler *th = thp->th; local
24 return th->ops->sampling.tz_temp(
32 thermal_error_t thermal_sampling_handle(struct thermal_handler *th, void *arg) argument
34 struct thermal_handler_param thp = { .th = th, .arg = arg };
36 if (!th)
39 if (nl_cb_set(th->cb_sampling, NL_CB_VALID, NL_CB_CUSTOM,
43 return nl_recvmsgs(th->sk_sampling, th
46 thermal_sampling_fd(struct thermal_handler *th) argument
54 thermal_sampling_exit(struct thermal_handler *th) argument
65 thermal_sampling_init(struct thermal_handler *th) argument
[all...]
H A Dthermal.c78 static int __thermal_zone_discover(struct thermal_zone *tz, void *th) argument
80 if (thermal_cmd_get_trip(th, tz) < 0)
83 if (thermal_cmd_get_governor(th, tz))
89 struct thermal_zone *thermal_zone_discover(struct thermal_handler *th) argument
93 if (thermal_cmd_get_tz(th, &tz) < 0)
96 if (for_each_thermal_zone(tz, __thermal_zone_discover, th))
102 void thermal_exit(struct thermal_handler *th) argument
104 thermal_cmd_exit(th);
105 thermal_events_exit(th);
106 thermal_sampling_exit(th);
113 struct thermal_handler *th; local
[all...]
H A Devents.c27 struct thermal_events_ops *ops = &thp->th->ops->events;
119 thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg) argument
121 struct thermal_handler_param thp = { .th = th, .arg = arg };
123 if (!th)
126 if (nl_cb_set(th->cb_event, NL_CB_VALID, NL_CB_CUSTOM,
130 return nl_recvmsgs(th->sk_event, th->cb_event);
133 int thermal_events_fd(struct thermal_handler *th) argument
135 if (!th)
141 thermal_events_exit(struct thermal_handler *th) argument
152 thermal_events_init(struct thermal_handler *th) argument
[all...]
H A Dcommands.c264 static thermal_error_t thermal_genl_auto(struct thermal_handler *th, int id, int cmd, argument
282 if (nl_send_msg(th->sk_cmd, th->cb_cmd, msg, genl_handle_msg, arg))
290 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz) argument
292 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_TZ_GET_ID,
296 thermal_error_t thermal_cmd_get_cdev(struct thermal_handler *th, struct thermal_cdev **tc) argument
298 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_CDEV_GET,
302 thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz) argument
304 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_TRIP,
308 thermal_error_t thermal_cmd_get_governor(struct thermal_handler *th, struc argument
313 thermal_cmd_get_temp(struct thermal_handler *th, struct thermal_zone *tz) argument
318 thermal_cmd_exit(struct thermal_handler *th) argument
328 thermal_cmd_init(struct thermal_handler *th) argument
[all...]
/linux-master/drivers/macintosh/
H A Dtherm_adt746x.c92 static void write_both_fan_speed(struct thermostat *th, int speed);
93 static void write_fan_speed(struct thermostat *th, int speed, int fan);
96 write_reg(struct thermostat* th, int reg, u8 data) argument
103 rc = i2c_master_send(th->clt, (const char *)tmp, 2);
112 read_reg(struct thermostat* th, int reg) argument
118 rc = i2c_master_send(th->clt, &reg_addr, 1);
123 rc = i2c_master_recv(th->clt, (char *)&data, 1);
129 static int read_fan_speed(struct thermostat *th, u8 addr) argument
135 tmp[1] = read_reg(th, addr);
136 tmp[0] = read_reg(th, add
143 write_both_fan_speed(struct thermostat *th, int speed) argument
150 write_fan_speed(struct thermostat *th, int speed, int fan) argument
200 read_sensors(struct thermostat *th) argument
209 display_stats(struct thermostat *th) argument
228 update_fans_speed(struct thermostat *th) argument
285 struct thermostat* th = arg; local
311 set_limit(struct thermostat *th, int i) argument
416 thermostat_create_files(struct thermostat *th) argument
447 thermostat_remove_files(struct thermostat *th) argument
473 struct thermostat* th; local
570 struct thermostat *th = i2c_get_clientdata(client); local
[all...]
/linux-master/drivers/thermal/
H A Ddb8500_thermal.c64 struct db8500_thermal_zone *th = thermal_zone_device_priv(tz); local
71 *temp = th->interpolated_temp;
80 static void db8500_thermal_update_config(struct db8500_thermal_zone *th, argument
87 th->cur_index = idx;
88 th->interpolated_temp = (next_low + next_high)/2;
100 struct db8500_thermal_zone *th = irq_data; local
101 unsigned int idx = th->cur_index;
117 db8500_thermal_update_config(th, idx, next_low, next_high);
118 dev_dbg(th->dev,
121 thermal_zone_device_update(th
128 struct db8500_thermal_zone *th = irq_data; local
153 struct db8500_thermal_zone *th = NULL; local
214 struct db8500_thermal_zone *th = platform_get_drvdata(pdev); local
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_btf_skc_cls_ingress.c21 static void test_syncookie_helper(struct ipv6hdr *ip6h, struct tcphdr *th, argument
25 if (th->syn) {
31 if (th->doff * 4 != 40) {
36 if ((void *)th + 40 > data_end) {
42 th, 40);
52 th, sizeof(*th));
58 recv_cookie = bpf_ntohl(th->ack_seq) - 1;
68 struct tcphdr *th; local
73 th
[all...]
/linux-master/drivers/hwtracing/intel_th/
H A Dcore.c105 struct intel_th *th = to_intel_th(hub); local
121 for (i = 0, lowest = -1; i < th->num_thdevs; i++) {
124 * th->thdev[] array to lower positions to maintain
127 if (th->thdev[i]->type != INTEL_TH_OUTPUT) {
129 th->thdev[lowest] = th->thdev[i];
130 th->thdev[i] = NULL;
140 intel_th_device_remove(th->thdev[i]);
141 th->thdev[i] = NULL;
145 th
192 const struct intel_th *th = to_intel_th(thdev); local
238 struct intel_th *th = to_intel_th(thdev); local
280 struct intel_th *th = to_intel_th(thdev); local
372 intel_th_device_alloc(struct intel_th *th, unsigned int type, const char *name, int id) argument
586 struct intel_th *th = container_of(work, struct intel_th, local
592 intel_th_request_hub_module(struct intel_th *th) argument
600 intel_th_request_hub_module_flush(struct intel_th *th) argument
605 intel_th_request_hub_module(struct intel_th *th) argument
610 intel_th_request_hub_module_flush(struct intel_th *th) argument
616 intel_th_subdevice_alloc(struct intel_th *th, const struct intel_th_subdevice *subdev) argument
715 intel_th_output_enable(struct intel_th *th, unsigned int otype) argument
766 intel_th_populate(struct intel_th *th) argument
840 struct intel_th *th = data; local
868 struct intel_th *th; local
943 intel_th_free(struct intel_th *th) argument
[all...]
H A Dacpi.c42 struct intel_th *th; local
54 th = intel_th_alloc(&pdev->dev, (void *)id->driver_data, resource, r);
55 if (IS_ERR(th))
56 return PTR_ERR(th);
58 adev->driver_data = th;
65 struct intel_th *th = platform_get_drvdata(pdev); local
67 intel_th_free(th);
H A Dpci.c31 static int intel_th_pci_activate(struct intel_th *th) argument
33 struct pci_dev *pdev = to_pci_dev(th->dev);
37 if (!INTEL_TH_CAP(th, tscu_enable))
52 static void intel_th_pci_deactivate(struct intel_th *th) argument
54 struct pci_dev *pdev = to_pci_dev(th->dev);
58 if (!INTEL_TH_CAP(th, tscu_enable))
80 struct intel_th *th; local
102 th = intel_th_alloc(&pdev->dev, drvdata, resource, r);
103 if (IS_ERR(th)) {
104 err = PTR_ERR(th);
122 struct intel_th *th = pci_get_drvdata(pdev); local
[all...]
/linux-master/net/ceph/
H A Dauth_x.c122 struct ceph_x_ticket_handler *th; local
128 th = rb_entry(parent, struct ceph_x_ticket_handler, node);
129 if (service < th->service)
131 else if (service > th->service)
134 return th;
138 th = kzalloc(sizeof(*th), GFP_NOFS);
139 if (!th)
141 th->service = service;
142 rb_link_node(&th
147 remove_ticket_handler(struct ceph_auth_client *ac, struct ceph_x_ticket_handler *th) argument
167 struct ceph_x_ticket_handler *th; local
351 ceph_x_build_authorizer(struct ceph_auth_client *ac, struct ceph_x_ticket_handler *th, struct ceph_x_authorizer *au) argument
418 ceph_x_encode_ticket(struct ceph_x_ticket_handler *th, void **p, void *end) argument
439 need_key(struct ceph_x_ticket_handler *th) argument
447 have_key(struct ceph_x_ticket_handler *th) argument
467 struct ceph_x_ticket_handler *th; local
496 struct ceph_x_ticket_handler *th = local
606 struct ceph_x_ticket_handler *th; local
671 struct ceph_x_ticket_handler *th; local
739 struct ceph_x_ticket_handler *th; local
774 struct ceph_x_ticket_handler *th; local
922 struct ceph_x_ticket_handler *th = local
935 struct ceph_x_ticket_handler *th; local
[all...]
/linux-master/net/ipv6/netfilter/
H A Dip6t_SYNPROXY.c19 struct tcphdr *th, _th; local
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th);
25 if (th == NULL)
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts))
31 if (th->syn && !(th->ack || th->fin || th->rst)) {
35 if (th->ece && th
[all...]
/linux-master/net/ipv4/netfilter/
H A Dipt_SYNPROXY.c19 struct tcphdr *th, _th; local
24 th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th);
25 if (th == NULL)
28 if (!synproxy_parse_options(skb, par->thoff, th, &opts))
31 if (th->syn && !(th->ack || th->fin || th->rst)) {
35 if (th->ece && th
[all...]
/linux-master/tools/lib/thermal/include/
H A Dthermal.h88 LIBTHERMAL_API struct thermal_zone *thermal_zone_discover(struct thermal_handler *th);
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);
101 LIBTHERMAL_API thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg);
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,
[all...]
/linux-master/net/ipv4/
H A Dtcp_offload.c35 struct tcphdr *th; local
41 th = tcp_hdr(seg);
44 inet_proto_csum_replace4(&th->check, seg, *oldip, newip, true);
45 inet_proto_csum_replace2(&th->check, seg, *oldport, newport, false);
54 const struct tcphdr *th; local
61 th = tcp_hdr(seg);
66 if (!(*(const u32 *)&th->source ^ *(const u32 *)&th2->source) &&
76 &th2->source, th->source);
79 &th2->dest, th->dest);
109 struct tcphdr *th local
128 struct tcphdr *th; local
248 tcp_gro_lookup(struct list_head *head, struct tcphdr *th) argument
272 struct tcphdr *th; local
296 tcp_gro_receive(struct list_head *head, struct sk_buff *skb, struct tcphdr *th) argument
381 struct tcphdr *th = tcp_hdr(skb); local
399 tcp4_check_fraglist_gro(struct list_head *head, struct sk_buff *skb, struct tcphdr *th) argument
432 struct tcphdr *th; local
457 struct tcphdr *th = tcp_hdr(skb); local
[all...]
/linux-master/net/netfilter/
H A Dxt_tcpmss.c28 const struct tcphdr *th; local
36 th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
37 if (th == NULL)
41 if (th->doff*4 < sizeof(*th))
44 optlen = th->doff*4 - sizeof(*th);
49 op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt);
H A Dnf_synproxy_core.c29 const struct tcphdr *th, struct synproxy_options *opts)
31 int length = (th->doff * 4) - sizeof(*th);
37 ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf);
115 synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts) argument
117 __be32 *ptr = (__be32 *)(th + 1);
186 struct tcphdr *th, struct nf_conn *ct,
197 optend = protoff + th->doff * 4;
229 inet_proto_csum_replace4(&th->check, skb,
448 const struct sk_buff *skb, const struct tcphdr *th,
28 synproxy_parse_options(const struct sk_buff *skb, unsigned int doff, const struct tcphdr *th, struct synproxy_options *opts) argument
185 synproxy_tstamp_adjust(struct sk_buff *skb, unsigned int protoff, struct tcphdr *th, struct nf_conn *ct, enum ip_conntrack_info ctinfo, const struct nf_conn_synproxy *synproxy) argument
447 synproxy_send_client_synack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) argument
490 synproxy_send_server_syn(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts, u32 recv_seq) argument
535 synproxy_send_server_ack(struct net *net, const struct ip_ct_tcp *state, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) argument
574 synproxy_send_client_ack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) argument
613 synproxy_recv_client_ack(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, struct synproxy_options *opts, u32 recv_seq) argument
649 struct tcphdr *th, _th; local
859 synproxy_send_client_synack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) argument
904 synproxy_send_server_syn_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts, u32 recv_seq) argument
949 synproxy_send_server_ack_ipv6(struct net *net, const struct ip_ct_tcp *state, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) argument
989 synproxy_send_client_ack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, const struct synproxy_options *opts) argument
1029 synproxy_recv_client_ack_ipv6(struct net *net, const struct sk_buff *skb, const struct tcphdr *th, struct synproxy_options *opts, u32 recv_seq) argument
1066 struct tcphdr *th, _th; local
[all...]
/linux-master/net/ipv6/
H A Dtcpv6_offload.c18 struct tcphdr *th)
30 p = tcp_gro_lookup(head, th);
40 &hdr->saddr, th->source,
41 &hdr->daddr, ntohs(th->dest),
52 struct tcphdr *th; local
60 th = tcp_gro_pull_header(skb);
61 if (!th)
64 tcp6_check_fraglist_gro(head, skb, th);
66 return tcp_gro_receive(head, skb, th);
77 struct tcphdr *th local
17 tcp6_check_fraglist_gro(struct list_head *head, struct sk_buff *skb, struct tcphdr *th) argument
99 struct tcphdr *th; local
111 const struct tcphdr *th; local
154 struct tcphdr *th; local
167 struct tcphdr *th = tcp_hdr(skb); local
[all...]
/linux-master/tools/perf/tests/workloads/
H A Dthloop.c35 pthread_t th; local
44 pthread_create(&th, NULL, thfunc, test_loop);
46 pthread_join(th, NULL);
/linux-master/tools/testing/selftests/drivers/net/mlxsw/
H A Dsharedbuffer_configuration.py36 def _get_static_size(self, th):
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)
[all...]
/linux-master/drivers/misc/sgi-gru/
H A Dgrulib.h62 #define CONTEXT_WINDOW_BYTES(th) (GRU_GSEG_PAGESIZE * (th))
63 #define THREAD_POINTER(p, th) (p + GRU_GSEG_PAGESIZE * (th))
/linux-master/include/net/netfilter/
H A Dnf_synproxy.h46 const struct tcphdr *th,
53 const struct tcphdr *th,
58 const struct tcphdr *th,
71 const struct tcphdr *th,
75 const struct tcphdr *th,
/linux-master/fs/reiserfs/
H A Dnamei.c198 /* take bits from 7-th to 30-th including both bounds */
431 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, argument
452 BUG_ON(!th->t_trans_id);
539 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number);
558 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer,
571 reiserfs_update_sd(th, dir);
627 struct reiserfs_transaction_handle th; local
652 retval = journal_begin(&th, dir->i_sb, jbegin_count);
659 reiserfs_new_inode(&th, di
699 struct reiserfs_transaction_handle th; local
783 struct reiserfs_transaction_handle th; local
897 struct reiserfs_transaction_handle th; local
997 struct reiserfs_transaction_handle th; local
1102 struct reiserfs_transaction_handle th; local
1201 struct reiserfs_transaction_handle th; local
1318 struct reiserfs_transaction_handle th; local
[all...]
H A Dinode.c36 struct reiserfs_transaction_handle th; local
57 if (journal_begin(&th, inode->i_sb, jbegin_count))
61 reiserfs_discard_prealloc(&th, inode);
63 err = reiserfs_delete_object(&th, inode);
76 if (journal_end(&th))
252 static int restart_transaction(struct reiserfs_transaction_handle *th, argument
255 struct super_block *s = th->t_super;
258 BUG_ON(!th->t_trans_id);
259 BUG_ON(!th->t_refcount);
264 if (th
631 _allocate_block(struct reiserfs_transaction_handle *th, sector_t block, struct inode *inode, b_blocknr_t * allocated_block_nr, struct treepath *path, int flags) argument
663 struct reiserfs_transaction_handle *th = NULL; local
1431 reiserfs_update_sd_size(struct reiserfs_transaction_handle *th, struct inode *inode, loff_t size) argument
1757 struct reiserfs_transaction_handle th; local
1784 reiserfs_new_directory(struct reiserfs_transaction_handle *th, struct inode *inode, struct item_head *ih, struct treepath *path, struct inode *dir) argument
1847 reiserfs_new_symlink(struct reiserfs_transaction_handle *th, struct inode *inode, struct item_head *ih, struct treepath *path, const char *symname, int item_len) argument
1906 reiserfs_new_inode(struct reiserfs_transaction_handle *th, struct inode *dir, umode_t mode, const char *symname, loff_t i_size, struct dentry *dentry, struct inode *inode, struct reiserfs_security_handle *security) argument
2248 struct reiserfs_transaction_handle th; local
2351 struct reiserfs_transaction_handle th; local
2518 struct reiserfs_transaction_handle th; local
2758 struct reiserfs_transaction_handle *th; local
2768 struct reiserfs_transaction_handle *th = current->journal_info; local
2817 struct reiserfs_transaction_handle *th; local
2828 struct reiserfs_transaction_handle *th = current->journal_info; local
2872 struct reiserfs_transaction_handle *th; local
2972 struct reiserfs_transaction_handle *th = NULL; local
3300 struct reiserfs_transaction_handle th; local
3333 struct reiserfs_transaction_handle th; local
[all...]
/linux-master/drivers/char/
H A Dds1620.c336 struct therm th; local
339 ds1620_read_state(&th);
343 th.hi >> 1, th.hi & 1 ? 5 : 0,
344 th.lo >> 1, th.lo & 1 ? 5 : 0,
368 struct therm th, th_start; local
382 ds1620_read_state(&th);
389 ds1620_write_state(&th);
400 ds1620_read_state(&th);
[all...]

Completed in 294 milliseconds

12345678