Home
last modified time | relevance | path

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

12

/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 …]
/drivers/sfi/
Dsfi_core.c166 struct sfi_table_header *th; in sfi_map_table() local
170 th = sfi_map_memory(pa, sizeof(struct sfi_table_header)); in sfi_map_table()
172 th = (void *)syst_va + (pa - syst_pa); in sfi_map_table()
175 if (TABLE_ON_PAGE(th, th, th->len)) in sfi_map_table()
176 return th; in sfi_map_table()
179 length = th->len; in sfi_map_table()
181 sfi_unmap_memory(th, sizeof(struct sfi_table_header)); in sfi_map_table()
192 static void sfi_unmap_table(struct sfi_table_header *th) in sfi_unmap_table() argument
194 if (!TABLE_ON_PAGE(syst_va, th, th->len)) in sfi_unmap_table()
195 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/hwtracing/intel_th/
Dcore.c176 struct intel_th *th = to_intel_th(thdev); in intel_th_output_devnode() local
180 node = kasprintf(GFP_KERNEL, "intel_th%d/%s%d", th->id, in intel_th_output_devnode()
183 node = kasprintf(GFP_KERNEL, "intel_th%d/%s", th->id, in intel_th_output_devnode()
321 intel_th_device_alloc(struct intel_th *th, unsigned int type, const char *name, in intel_th_device_alloc() argument
328 parent = th->dev; in intel_th_device_alloc()
330 parent = &th->hub->dev; in intel_th_device_alloc()
348 dev_set_name(&thdev->dev, "%d-%s%d", th->id, name, id); in intel_th_device_alloc()
350 dev_set_name(&thdev->dev, "%d-%s", th->id, name); in intel_th_device_alloc()
498 struct intel_th *th = container_of(work, struct intel_th, in __intel_th_request_hub_module() local
501 request_module("intel_th_%s", th->hub->name); in __intel_th_request_hub_module()
[all …]
Dpci.c33 struct intel_th *th; in intel_th_pci_probe() local
44 th = intel_th_alloc(&pdev->dev, pdev->resource, in intel_th_pci_probe()
46 if (IS_ERR(th)) in intel_th_pci_probe()
47 return PTR_ERR(th); in intel_th_pci_probe()
54 struct intel_th *th = pci_get_drvdata(pdev); in intel_th_pci_remove() local
56 intel_th_free(th); in intel_th_pci_remove()
Dintel_th.h174 void intel_th_free(struct intel_th *th);
/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.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()
379 struct therm th, th_start; in ds1620_init() local
393 ds1620_read_state(&th); in ds1620_init()
400 ds1620_write_state(&th); in ds1620_init()
411 ds1620_read_state(&th); in ds1620_init()
416 th.hi >> 1, th.hi & 1 ? 5 : 0, in ds1620_init()
417 th.lo >> 1, th.lo & 1 ? 5 : 0, in ds1620_init()
/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/staging/lustre/lustre/include/
Dlustre_log.h185 struct thandle *th);
193 int idx, struct thandle *th);
198 void *buf, int idx, struct thandle *th);
205 struct llog_rec_hdr *rec, struct thandle *th);
208 void *buf, struct thandle *th);
365 struct thandle *th);
368 int numcookies, void *buf, int idx, struct thandle *th);
/drivers/thermal/st/
Dst_thermal.c114 static int st_thermal_get_temp(struct thermal_zone_device *th, int *temperature) in st_thermal_get_temp() argument
116 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_temp()
142 static int st_thermal_get_trip_type(struct thermal_zone_device *th, in st_thermal_get_trip_type() argument
145 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_type()
160 static int st_thermal_get_trip_temp(struct thermal_zone_device *th, in st_thermal_get_trip_temp() argument
163 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_temp()
/drivers/staging/rts5208/
Drtsx.c852 struct task_struct *th; in rtsx_probe() local
959 th = kthread_run(rtsx_control_thread, dev, CR_DRIVER_NAME); in rtsx_probe()
960 if (IS_ERR(th)) { in rtsx_probe()
962 err = PTR_ERR(th); in rtsx_probe()
965 dev->ctl_thread = th; in rtsx_probe()
974 th = kthread_run(rtsx_scan_thread, dev, "rtsx-scan"); in rtsx_probe()
975 if (IS_ERR(th)) { in rtsx_probe()
979 err = PTR_ERR(th); in rtsx_probe()
984 th = kthread_run(rtsx_polling_thread, dev, "rtsx-polling"); in rtsx_probe()
985 if (IS_ERR(th)) { in rtsx_probe()
[all …]
/drivers/pinctrl/aspeed/
DKconfig15 Say Y here to enable pin controller support for Aspeed's 4th
23 Say Y here to enable pin controller support for Aspeed's 5th
/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.h105 struct th_header th; member
154 struct th_header *th; member
Dctcm_main.c634 header->th.th_seg = 0x00 ; in ctcmpc_send_sweep_req()
635 header->th.th_ch_flag = TH_SWEEP_REQ; /* 0x0f */ in ctcmpc_send_sweep_req()
636 header->th.th_blk_flag = 0x00; in ctcmpc_send_sweep_req()
637 header->th.th_is_xid = 0x00; in ctcmpc_send_sweep_req()
638 header->th.th_seq_num = 0x00; in ctcmpc_send_sweep_req()
/drivers/usb/storage/
Dusb.c798 struct task_struct *th; in usb_stor_acquire_resources() local
815 th = kthread_run(usb_stor_control_thread, us, "usb-storage"); in usb_stor_acquire_resources()
816 if (IS_ERR(th)) { in usb_stor_acquire_resources()
819 return PTR_ERR(th); in usb_stor_acquire_resources()
821 us->ctl_thread = th; in usb_stor_acquire_resources()
/drivers/soc/fsl/qbman/
Dqman_ccsr.c355 static void qm_set_pfdr_threshold(u32 th, u8 k) in qm_set_pfdr_threshold() argument
357 qm_ccsr_out(REG_PFDR_FP_LWIT, th & 0xffffff); in qm_set_pfdr_threshold()
361 static void qm_set_sfdr_threshold(u16 th) in qm_set_sfdr_threshold() argument
363 qm_ccsr_out(REG_SFDR_CFG, th & 0x3ff); in qm_set_sfdr_threshold()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c1270 struct tcphdr *th; in qlcnic_process_lro() local
1322 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_process_lro()
1323 length = (th->doff << 2) + lro_length; in qlcnic_process_lro()
1327 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_process_lro()
1328 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_process_lro()
1333 th->psh = push; in qlcnic_process_lro()
1334 th->seq = htonl(seq_number); in qlcnic_process_lro()
1792 struct tcphdr *th; in qlcnic_83xx_process_lro() local
1844 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_83xx_process_lro()
1846 length = (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro()
[all …]
/drivers/net/ethernet/tile/
Dtilegx.c1727 struct tcphdr *th; in tso_headers_prepare() local
1755 th = tcp_hdr(skb); in tso_headers_prepare()
1759 tsum_seed = th->check + (0xFFFF ^ htons(skb->len)); in tso_headers_prepare()
1760 seq = ntohl(th->seq); in tso_headers_prepare()
1786 th = (struct tcphdr *)(buf + th_off); in tso_headers_prepare()
1787 th->seq = htonl(seq); in tso_headers_prepare()
1788 th->check = csum_long(tsum_seed + htons(sh_len + p_len)); in tso_headers_prepare()
1790 th->fin = 0; in tso_headers_prepare()
1791 th->psh = 0; in tso_headers_prepare()
/drivers/gpu/drm/amd/amdgpu/
Damdgpu_dpm.h64 int amdgpu_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th);
/drivers/parport/
Ddaisy.c96 static const char *th[] = { /*0*/"th", "st", "nd", "rd", "th" }; in parport_daisy_init() local
128 extra->name, i + 1, th[i + 1], num_ports, in parport_daisy_init()
/drivers/net/ethernet/intel/i40e/
Di40e_txrx.c2066 struct tcphdr *th; in i40e_atr() local
2107 th = (struct tcphdr *)(hdr.network + hlen); in i40e_atr()
2110 if (th->syn && (pf->auto_disable_flags & I40E_FLAG_FD_ATR_ENABLED)) in i40e_atr()
2117 if (th->fin || th->rst) in i40e_atr()
2124 if (!th->fin && in i40e_atr()
2125 !th->syn && in i40e_atr()
2126 !th->rst && in i40e_atr()
2151 dtype_cmd |= (th->fin || th->rst) ? in i40e_atr()
/drivers/staging/greybus/tools/
DREADME.loopback85 …ask - a bit mask of connections to include example: -m 8 = 4th connection -m 9 = 1st and 4th conne…
/drivers/net/ethernet/intel/fm10k/
Dfm10k_main.c772 unsigned char *th; in fm10k_tso() local
785 th = skb_inner_transport_header(skb); in fm10k_tso()
787 th = skb_transport_header(skb); in fm10k_tso()
791 hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2); in fm10k_tso()

12