/Linux-v6.1/drivers/macintosh/ |
D | therm_adt746x.c | 90 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, ®_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-v6.1/drivers/hwtracing/intel_th/ |
D | core.c | 105 struct intel_th *th = to_intel_th(hub); in intel_th_remove() local 121 for (i = 0, lowest = -1; i < th->num_thdevs; i++) { in intel_th_remove() 124 * th->thdev[] array to lower positions to maintain in intel_th_remove() 127 if (th->thdev[i]->type != INTEL_TH_OUTPUT) { in intel_th_remove() 129 th->thdev[lowest] = th->thdev[i]; in intel_th_remove() 130 th->thdev[i] = NULL; in intel_th_remove() 140 intel_th_device_remove(th->thdev[i]); in intel_th_remove() 141 th->thdev[i] = NULL; in intel_th_remove() 145 th->num_thdevs = lowest; in intel_th_remove() 192 struct intel_th *th = to_intel_th(thdev); in intel_th_output_devnode() local [all …]
|
D | Kconfig | 6 Intel(R) Trace Hub (TH) is a set of hardware blocks (subdevices) that 12 This option enables intel_th bus and common code used by TH 14 platform glue layers to drive Intel TH devices. 25 support glue layer for PCI-based Intel TH. 27 Say Y here to enable PCI Intel TH support. 34 support glue layer for ACPI-based Intel TH. This typically implies 39 Say Y here to enable ACPI Intel TH support. 45 Intel TH infrastructure and acts as a switch for source 47 Intel TH subdevices to initialize. 69 Say Y here to enable MSU output device for Intel TH. [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 …]
|
/Linux-v6.1/tools/lib/thermal/ |
D | sampling.c | 17 struct thermal_handler *th = thp->th; in handle_thermal_sample() local 24 return th->ops->sampling.tz_temp( in handle_thermal_sample() 32 thermal_error_t thermal_sampling_handle(struct thermal_handler *th, void *arg) in thermal_sampling_handle() argument 34 struct thermal_handler_param thp = { .th = th, .arg = arg }; in thermal_sampling_handle() 36 if (!th) in thermal_sampling_handle() 39 if (nl_cb_set(th->cb_sampling, NL_CB_VALID, NL_CB_CUSTOM, in thermal_sampling_handle() 43 return nl_recvmsgs(th->sk_sampling, th->cb_sampling); in thermal_sampling_handle() 46 int thermal_sampling_fd(struct thermal_handler *th) in thermal_sampling_fd() argument 48 if (!th) in thermal_sampling_fd() 51 return nl_socket_get_fd(th->sk_sampling); in thermal_sampling_fd() [all …]
|
D | thermal.c | 78 static int __thermal_zone_discover(struct thermal_zone *tz, void *th) in __thermal_zone_discover() argument 80 if (thermal_cmd_get_trip(th, tz) < 0) in __thermal_zone_discover() 83 if (thermal_cmd_get_governor(th, tz)) in __thermal_zone_discover() 89 struct thermal_zone *thermal_zone_discover(struct thermal_handler *th) in thermal_zone_discover() argument 93 if (thermal_cmd_get_tz(th, &tz) < 0) in thermal_zone_discover() 96 if (for_each_thermal_zone(tz, __thermal_zone_discover, th)) in thermal_zone_discover() 102 void thermal_exit(struct thermal_handler *th) in thermal_exit() argument 104 thermal_cmd_exit(th); in thermal_exit() 105 thermal_events_exit(th); in thermal_exit() 106 thermal_sampling_exit(th); in thermal_exit() [all …]
|
D | events.c | 27 struct thermal_events_ops *ops = &thp->th->ops->events; in handle_thermal_event() 119 thermal_error_t thermal_events_handle(struct thermal_handler *th, void *arg) in thermal_events_handle() argument 121 struct thermal_handler_param thp = { .th = th, .arg = arg }; in thermal_events_handle() 123 if (!th) in thermal_events_handle() 126 if (nl_cb_set(th->cb_event, NL_CB_VALID, NL_CB_CUSTOM, 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() 141 thermal_error_t thermal_events_exit(struct thermal_handler *th) in thermal_events_exit() argument [all …]
|
D | commands.c | 264 static thermal_error_t thermal_genl_auto(struct thermal_handler *th, int id, int cmd, in thermal_genl_auto() argument 282 if (nl_send_msg(th->sk_cmd, th->cb_cmd, msg, genl_handle_msg, arg)) in thermal_genl_auto() 290 thermal_error_t thermal_cmd_get_tz(struct thermal_handler *th, struct thermal_zone **tz) in thermal_cmd_get_tz() argument 292 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_TZ_GET_ID, in thermal_cmd_get_tz() 296 thermal_error_t thermal_cmd_get_cdev(struct thermal_handler *th, struct thermal_cdev **tc) in thermal_cmd_get_cdev() argument 298 return thermal_genl_auto(th, -1, THERMAL_GENL_CMD_CDEV_GET, in thermal_cmd_get_cdev() 302 thermal_error_t thermal_cmd_get_trip(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_trip() argument 304 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_TRIP, in thermal_cmd_get_trip() 308 thermal_error_t thermal_cmd_get_governor(struct thermal_handler *th, struct thermal_zone *tz) in thermal_cmd_get_governor() argument 310 return thermal_genl_auto(th, tz->id, THERMAL_GENL_CMD_TZ_GET_GOV, 0, tz); in thermal_cmd_get_governor() [all …]
|
/Linux-v6.1/net/ceph/ |
D | auth_x.c | 122 struct ceph_x_ticket_handler *th; in get_ticket_handler() local 128 th = rb_entry(parent, struct ceph_x_ticket_handler, node); in get_ticket_handler() 129 if (service < th->service) in get_ticket_handler() 131 else if (service > th->service) in get_ticket_handler() 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() 141 th->service = service; in get_ticket_handler() 142 rb_link_node(&th->node, parent, p); in get_ticket_handler() 143 rb_insert_color(&th->node, &xi->ticket_handlers); in get_ticket_handler() [all …]
|
/Linux-v6.1/drivers/thermal/ |
D | db8500_thermal.c | 63 struct db8500_thermal_zone *th = tz->devdata; in db8500_thermal_get_temp() local 70 *temp = th->interpolated_temp; in db8500_thermal_get_temp() 79 static void db8500_thermal_update_config(struct db8500_thermal_zone *th, in db8500_thermal_update_config() argument 86 th->cur_index = idx; in db8500_thermal_update_config() 87 th->interpolated_temp = (next_low + next_high)/2; in db8500_thermal_update_config() 99 struct db8500_thermal_zone *th = irq_data; in prcmu_low_irq_handler() local 100 unsigned int idx = th->cur_index; in prcmu_low_irq_handler() 116 db8500_thermal_update_config(th, idx, next_low, next_high); in prcmu_low_irq_handler() 117 dev_dbg(&th->tz->device, in prcmu_low_irq_handler() 120 thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED); in prcmu_low_irq_handler() [all …]
|
/Linux-v6.1/net/ipv4/ |
D | tcp_offload.c | 41 struct tcphdr *th = tcp_hdr(skb); in tcp4_gso_segment() local 47 th->check = 0; in tcp4_gso_segment() 60 struct tcphdr *th; in tcp_gso_segment() local 70 th = tcp_hdr(skb); in tcp_gso_segment() 71 thlen = th->doff * 4; in tcp_gso_segment() 72 if (thlen < sizeof(*th)) in tcp_gso_segment() 116 th = tcp_hdr(skb); in tcp_gso_segment() 117 seq = ntohl(th->seq); in tcp_gso_segment() 122 newcheck = ~csum_fold((__force __wsum)((__force u32)th->check + in tcp_gso_segment() 126 th->fin = th->psh = 0; in tcp_gso_segment() [all …]
|
/Linux-v6.1/drivers/gpu/drm/exynos/ |
D | regs-fimc.h | 30 /* Y 4th frame start address for output DMA */ 38 /* Cb 4th frame start address for output DMA */ 46 /* Cr 4th frame start address for output DMA */ 120 /* Y 5th frame start address for output DMA */ 122 /* Y 6th frame start address for output DMA */ 124 /* Y 7th frame start address for output DMA */ 126 /* Y 8th frame start address for output DMA */ 128 /* Y 9th frame start address for output DMA */ 130 /* Y 10th frame start address for output DMA */ 132 /* Y 11th frame start address for output DMA */ [all …]
|
/Linux-v6.1/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() 448 const struct sk_buff *skb, const struct tcphdr *th, in synproxy_send_client_synack() argument 470 nth->source = th->dest; in synproxy_send_client_synack() [all …]
|
/Linux-v6.1/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()
|
/Linux-v6.1/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()
|
/Linux-v6.1/tools/lib/thermal/include/ |
D | thermal.h | 88 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-v6.1/include/linux/ |
D | sysfb.h | 19 M_I24_8_1, /* 24-Inch iMac, 8,1th gen */ 20 M_I24_10_1, /* 24-Inch iMac, 10,1th gen */ 21 M_I27_11_1, /* 27-Inch iMac, 11,1th gen */ 23 M_MINI_3_1, /* Mac Mini, 3,1th gen */ 24 M_MINI_4_1, /* Mac Mini, 4,1th gen */ 28 M_MB_5_1, /* MacBook, 5th rev. */ 29 M_MB_6_1, /* MacBook, 6th rev. */ 30 M_MB_7_1, /* MacBook, 7th rev. */ 38 M_MBP_4, /* MacBook Pro, 4th gen */ 39 M_MBP_5_1, /* MacBook Pro, 5,1th gen */ [all …]
|
/Linux-v6.1/fs/reiserfs/ |
D | namei.c | 198 /* take bits from 7-th to 30-th including both bounds */ in get_third_component() 433 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, in reiserfs_add_entry() argument 454 BUG_ON(!th->t_trans_id); in reiserfs_add_entry() 548 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number); in reiserfs_add_entry() 567 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, in reiserfs_add_entry() 580 reiserfs_update_sd(th, dir); in reiserfs_add_entry() 636 struct reiserfs_transaction_handle th; in reiserfs_create() local 661 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create() 668 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_create() 678 reiserfs_add_entry(&th, dir, dentry->d_name.name, 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 | 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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/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 …]
|
/Linux-v6.1/Documentation/driver-api/surface_aggregator/ |
D | overview.rst | 9 introduced on 4th generation devices (Surface Pro 4, Surface Book 1), but 17 Not much is currently known about SAM on 4th generation devices (Surface Pro 19 between host and EC (as detailed below). On 5th (Surface Pro 2017, Surface 28 restructured for 7th generation devices and on those, specifically Surface 32 While features have not changed much on a coarse level since the 5th 34 5th and 6th generation devices, both battery and temperature information is 37 requests. On 7th generation devices, this additional layer is gone and these 49 generation of the Surface device. On 4th generation devices, host and EC 51 5th and later generations, communication takes place via a USART serial 67 communication interface for SAM on 5th- and all later-generation Surface
|