Home
last modified time | relevance | path

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

123

/drivers/macintosh/
Dtherm_adt746x.c91 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, &reg_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 …]
/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.c31 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 return PTR_ERR(th); in intel_th_pci_probe()
[all …]
Dacpi.c42 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()
Dintel_th.h227 void intel_th_free(struct intel_th *th);
237 int intel_th_output_enable(struct intel_th *th, unsigned int otype);
/drivers/thermal/
Ddb8500_thermal.c64 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 …]
/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 …]
/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 …]
/drivers/char/
Dds1620.c336 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()
/drivers/thermal/samsung/
Dexynos_tmu.c393 u32 th, con; in exynos4412_tmu_set_trip_temp() local
395 th = readl(data->base + EXYNOS_THD_TEMP_RISE); in exynos4412_tmu_set_trip_temp()
396 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_temp()
397 th |= temp_to_code(data, temp) << 8 * trip; in exynos4412_tmu_set_trip_temp()
398 writel(th, data->base + EXYNOS_THD_TEMP_RISE); in exynos4412_tmu_set_trip_temp()
410 u32 th; in exynos4412_tmu_set_trip_hyst() local
412 th = readl(data->base + EXYNOS_THD_TEMP_FALL); in exynos4412_tmu_set_trip_hyst()
413 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_hyst()
415 th |= temp_to_code(data, temp - hyst) << 8 * trip; in exynos4412_tmu_set_trip_hyst()
416 writel(th, data->base + EXYNOS_THD_TEMP_FALL); in exynos4412_tmu_set_trip_hyst()
[all …]
/drivers/misc/sgi-gru/
Dgrulib.h62 #define CONTEXT_WINDOW_BYTES(th) (GRU_GSEG_PAGESIZE * (th)) argument
63 #define THREAD_POINTER(p, th) (p + GRU_GSEG_PAGESIZE * (th)) argument
/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
Dtls_rxtx.c150 struct tcphdr *th; in mlx5e_tls_complete_sync_skb() local
162 th = tcp_hdr(nskb); in mlx5e_tls_complete_sync_skb()
165 th->seq = htonl(tcp_seq); in mlx5e_tls_complete_sync_skb()
315 struct tcphdr *th; in tls_update_resync_sn() local
323 th = ((void *)iph) + iph->ihl * 4; in tls_update_resync_sn()
327 iph->saddr, th->source, iph->daddr, in tls_update_resync_sn()
328 th->dest, netdev->ifindex); in tls_update_resync_sn()
334 &ipv6h->saddr, th->source, in tls_update_resync_sn()
335 &ipv6h->daddr, ntohs(th->dest), in tls_update_resync_sn()
/drivers/thermal/st/
Dstm_thermal.c263 int temp, u32 *th) in stm_thermal_calculate_threshold() argument
280 *th = clk_get_rate(sensor->clk); in stm_thermal_calculate_threshold()
281 if (!*th) in stm_thermal_calculate_threshold()
284 *th = *th / freqM; in stm_thermal_calculate_threshold()
286 *th *= sampling_time; in stm_thermal_calculate_threshold()
293 u32 value, th; in stm_thermal_set_threshold() local
302 ret = stm_thermal_calculate_threshold(sensor, sensor->high_temp, &th); in stm_thermal_set_threshold()
306 value |= th & TS1_LITTHD_MASK; in stm_thermal_set_threshold()
311 &th); in stm_thermal_set_threshold()
315 value |= (TS1_HITTHD_MASK & (th << TS1_HITTHD_POS)); in stm_thermal_set_threshold()
Dst_thermal.c109 static int st_thermal_get_temp(struct thermal_zone_device *th, int *temperature) in st_thermal_get_temp() argument
111 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_temp()
137 static int st_thermal_get_trip_type(struct thermal_zone_device *th, in st_thermal_get_trip_type() argument
140 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_type()
155 static int st_thermal_get_trip_temp(struct thermal_zone_device *th, in st_thermal_get_trip_temp() argument
158 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_temp()
/drivers/staging/rts5208/
Drtsx.c810 struct task_struct *th; in rtsx_probe() local
917 th = kthread_run(rtsx_control_thread, dev, CR_DRIVER_NAME); in rtsx_probe()
918 if (IS_ERR(th)) { in rtsx_probe()
920 err = PTR_ERR(th); in rtsx_probe()
923 dev->ctl_thread = th; in rtsx_probe()
932 th = kthread_run(rtsx_scan_thread, dev, "rtsx-scan"); in rtsx_probe()
933 if (IS_ERR(th)) { in rtsx_probe()
936 err = PTR_ERR(th); in rtsx_probe()
941 th = kthread_run(rtsx_polling_thread, dev, "rtsx-polling"); in rtsx_probe()
942 if (IS_ERR(th)) { in rtsx_probe()
[all …]
/drivers/pinctrl/aspeed/
DKconfig16 Say Y here to enable pin controller support for Aspeed's 4th
24 Say Y here to enable pin controller support for Aspeed's 5th
32 Say Y here to enable pin controller support for Aspeed's 6th
/drivers/ata/
Dpata_mpc52xx.c83 u8 th; member
91 { .t0M = 32, .td = 15, .th = 2, .tj = 2, .tkw = 15, .tm = 4, .tn = 1 },
92 { .t0M = 10, .td = 6, .th = 1, .tj = 1, .tkw = 4, .tm = 2, .tn = 1 },
93 { .t0M = 8, .td = 5, .th = 1, .tj = 1, .tkw = 2, .tm = 2, .tn = 1 },
97 { .t0M = 64, .td = 29, .th = 3, .tj = 3, .tkw = 29, .tm = 7, .tn = 2 },
98 { .t0M = 20, .td = 11, .th = 2, .tj = 1, .tkw = 7, .tm = 4, .tn = 1 },
99 { .t0M = 16, .td = 10, .th = 2, .tj = 1, .tkw = 4, .tm = 4, .tn = 1 },
303 t->mdma2 = ((u32)s->th << 24) | ((u32)s->tj << 16) | ((u32)s->tn << 8); in mpc52xx_ata_compute_mdma_timings()
/drivers/s390/net/
Dctcm_mpc.h106 struct th_header th; member
155 struct th_header *th; member
/drivers/net/ethernet/mellanox/mlx5/core/
DKconfig7 tristate "Mellanox 5th generation network adapters (ConnectX series) core driver"
34 bool "Mellanox 5th generation network adapters (ConnectX series) Ethernet support"
94 bool "Mellanox 5th generation network adapters (connectX series) IPoIB offloads support"
/drivers/usb/storage/
Dusb.c773 struct task_struct *th; in usb_stor_acquire_resources() local
790 th = kthread_run(usb_stor_control_thread, us, "usb-storage"); in usb_stor_acquire_resources()
791 if (IS_ERR(th)) { in usb_stor_acquire_resources()
794 return PTR_ERR(th); in usb_stor_acquire_resources()
796 us->ctl_thread = th; in usb_stor_acquire_resources()
/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_formats.c53 alpha, bp, flg, fm, np, th) \ argument
68 .tile_height = th \
110 flg, fm, np, th) \ argument
125 .tile_height = th \
147 flg, fm, np, th) \ argument
162 .tile_height = th \
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1272 struct tcphdr *th; in qlcnic_process_lro() local
1324 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_process_lro()
1325 length = (th->doff << 2) + lro_length; in qlcnic_process_lro()
1329 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_process_lro()
1330 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_process_lro()
1335 th->psh = push; in qlcnic_process_lro()
1336 th->seq = htonl(seq_number); in qlcnic_process_lro()
1794 struct tcphdr *th; in qlcnic_83xx_process_lro() local
1846 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_83xx_process_lro()
1848 length = (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro()
[all …]
/drivers/infiniband/hw/mlx5/
DKconfig3 tristate "Mellanox 5th generation network adapters (ConnectX series) support"
/drivers/soc/fsl/qbman/
Dqman_ccsr.c395 static void qm_set_pfdr_threshold(u32 th, u8 k) in qm_set_pfdr_threshold() argument
397 qm_ccsr_out(REG_PFDR_FP_LWIT, th & 0xffffff); in qm_set_pfdr_threshold()
401 static void qm_set_sfdr_threshold(u16 th) in qm_set_sfdr_threshold() argument
403 qm_ccsr_out(REG_SFDR_CFG, th & 0x3ff); in qm_set_sfdr_threshold()

123