/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 …]
|
/drivers/sfi/ |
D | sfi_core.c | 166 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 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 …]
|
D | sfi_acpi.c | 81 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/staging/lustre/lustre/include/ |
D | dt_object.h | 99 typedef void (*dt_cb_t)(struct lu_env *env, struct thandle *th, 133 struct dt_device *dev, struct thandle *th); 138 struct thandle *th); 142 int (*dt_trans_cb_add)(struct thandle *th, 394 struct thandle *th); 399 struct thandle *th); 408 struct thandle *th); 410 struct thandle *th); 428 struct dt_object *dt, struct thandle *th); 430 struct dt_object *dt, struct thandle *th); [all …]
|
D | lustre_log.h | 178 void *buf, struct thandle *th); 181 struct llog_rec_hdr *rec, struct thandle *th); 256 struct thandle *th); 258 struct thandle *th); 266 int idx, struct thandle *th); 271 void *buf, int idx, struct thandle *th); 278 struct llog_rec_hdr *rec, struct thandle *th); 281 void *buf, struct thandle *th); 515 struct llog_handle *loghandle, struct thandle *th); 517 struct thandle *th); [all …]
|
/drivers/net/slip/ |
D | slhc.c | 239 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/ |
D | ds1620.c | 335 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/staging/lustre/lustre/obdclass/ |
D | llog_cat.c | 64 struct thandle *th) in llog_cat_new_log() argument 85 rc = llog_create(env, loghandle, th); in llog_cat_new_log() 132 &loghandle->u.phd.phd_cookie, 1, NULL, index, th); in llog_cat_new_log() 268 struct thandle *th) in llog_cat_current_log() argument 326 void *buf, struct thandle *th) in llog_cat_add_rec() argument 332 loghandle = llog_cat_current_log(cathandle, th); in llog_cat_add_rec() 337 rc = llog_cat_new_log(env, cathandle, loghandle, th); in llog_cat_add_rec() 344 rc = llog_write_rec(env, loghandle, rec, reccookie, 1, buf, -1, th); in llog_cat_add_rec() 351 loghandle = llog_cat_current_log(cathandle, th); in llog_cat_add_rec() 355 rc = llog_cat_new_log(env, cathandle, loghandle, th); in llog_cat_add_rec() [all …]
|
D | llog.c | 603 struct llog_handle *loghandle, struct thandle *th) in llog_declare_create() argument 617 rc = lop->lop_declare_create(env, loghandle, th); in llog_declare_create() 625 struct thandle *th) in llog_create() argument 639 rc = lop->lop_create(env, handle, th); in llog_create() 649 struct thandle *th) in llog_declare_write_rec() argument 664 rc = lop->lop_declare_write_rec(env, handle, rec, idx, th); in llog_declare_write_rec() 673 int numcookies, void *buf, int idx, struct thandle *th) in llog_write_rec() argument 697 buf, idx, th); in llog_write_rec() 706 void *buf, struct thandle *th) in llog_add() argument 716 rc = lgh->lgh_logops->lop_add(env, lgh, rec, logcookies, buf, th); in llog_add() [all …]
|
D | dt_object.c | 81 struct dt_device *dev, struct thandle *th) in dt_txn_hook_start() argument 86 if (th->th_local) in dt_txn_hook_start() 93 rc = cb->dtc_txn_start(env, th, cb->dtc_cookie); in dt_txn_hook_start() 375 struct thandle *th; in dt_find_or_create() local 386 th = dt_trans_create(env, dt); in dt_find_or_create() 387 if (IS_ERR(th)) { in dt_find_or_create() 388 rc = PTR_ERR(th); in dt_find_or_create() 392 rc = dt_declare_create(env, dto, at, NULL, dof, th); in dt_find_or_create() 396 rc = dt_trans_start_local(env, dt, th); in dt_find_or_create() 408 rc = dt_create(env, dto, at, NULL, dof, th); in dt_find_or_create() [all …]
|
/drivers/misc/sgi-gru/ |
D | grulib.h | 62 #define CONTEXT_WINDOW_BYTES(th) (GRU_GSEG_PAGESIZE * (th)) argument 63 #define THREAD_POINTER(p, th) (p + GRU_GSEG_PAGESIZE * (th)) argument
|
/drivers/thermal/st/ |
D | st_thermal.c | 114 static int st_thermal_get_temp(struct thermal_zone_device *th, in st_thermal_get_temp() argument 117 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_temp() 143 static int st_thermal_get_trip_type(struct thermal_zone_device *th, in st_thermal_get_trip_type() argument 146 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_type() 161 static int st_thermal_get_trip_temp(struct thermal_zone_device *th, in st_thermal_get_trip_temp() argument 164 struct st_thermal_sensor *sensor = th->devdata; in st_thermal_get_trip_temp()
|
/drivers/staging/rts5208/ |
D | rtsx.c | 860 struct task_struct *th; in rtsx_probe() local 968 th = kthread_run(rtsx_control_thread, dev, CR_DRIVER_NAME); in rtsx_probe() 969 if (IS_ERR(th)) { in rtsx_probe() 971 err = PTR_ERR(th); in rtsx_probe() 974 dev->ctl_thread = th; in rtsx_probe() 983 th = kthread_run(rtsx_scan_thread, dev, "rtsx-scan"); in rtsx_probe() 984 if (IS_ERR(th)) { in rtsx_probe() 988 err = PTR_ERR(th); in rtsx_probe() 993 th = kthread_run(rtsx_polling_thread, dev, "rtsx-polling"); in rtsx_probe() 994 if (IS_ERR(th)) { in rtsx_probe() [all …]
|
/drivers/ata/ |
D | pata_mpc52xx.c | 83 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/ |
D | ctcm_mpc.h | 105 struct th_header th; member 154 struct th_header *th; member
|
D | ctcm_main.c | 634 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()
|
D | ctcm_mpc.c | 675 header->th.th_seg = 0x00 ; in ctcmpc_send_sweep_resp() 676 header->th.th_ch_flag = TH_SWEEP_RESP; in ctcmpc_send_sweep_resp() 677 header->th.th_blk_flag = 0x00; in ctcmpc_send_sweep_resp() 678 header->th.th_is_xid = 0x00; in ctcmpc_send_sweep_resp() 679 header->th.th_seq_num = 0x00; in ctcmpc_send_sweep_resp() 1196 mpcginfo->th = header; in ctcmpc_unpack_skb()
|
/drivers/usb/storage/ |
D | usb.c | 775 struct task_struct *th; in usb_stor_acquire_resources() local 792 th = kthread_run(usb_stor_control_thread, us, "usb-storage"); in usb_stor_acquire_resources() 793 if (IS_ERR(th)) { in usb_stor_acquire_resources() 796 return PTR_ERR(th); in usb_stor_acquire_resources() 798 us->ctl_thread = th; in usb_stor_acquire_resources()
|
/drivers/net/ethernet/qlogic/qlcnic/ |
D | qlcnic_io.c | 1260 struct tcphdr *th; in qlcnic_process_lro() local 1312 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_process_lro() 1313 length = (th->doff << 2) + lro_length; in qlcnic_process_lro() 1317 th = (struct tcphdr *)(skb->data + (iph->ihl << 2)); in qlcnic_process_lro() 1318 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in qlcnic_process_lro() 1323 th->psh = push; in qlcnic_process_lro() 1324 th->seq = htonl(seq_number); in qlcnic_process_lro() 1782 struct tcphdr *th; in qlcnic_83xx_process_lro() local 1834 th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr)); in qlcnic_83xx_process_lro() 1836 length = (th->doff << 2) + lro_length; in qlcnic_83xx_process_lro() [all …]
|
/drivers/net/ethernet/tile/ |
D | tilegx.c | 1726 struct tcphdr *th; in tso_headers_prepare() local 1754 th = tcp_hdr(skb); in tso_headers_prepare() 1758 tsum_seed = th->check + (0xFFFF ^ htons(skb->len)); in tso_headers_prepare() 1759 seq = ntohl(th->seq); in tso_headers_prepare() 1785 th = (struct tcphdr *)(buf + th_off); in tso_headers_prepare() 1786 th->seq = htonl(seq); in tso_headers_prepare() 1787 th->check = csum_long(tsum_seed + htons(sh_len + p_len)); in tso_headers_prepare() 1789 th->fin = 0; in tso_headers_prepare() 1790 th->psh = 0; in tso_headers_prepare()
|
/drivers/parport/ |
D | daisy.c | 96 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/staging/lustre/lustre/fld/ |
D | fld_internal.h | 182 const struct lu_seq_range *range, struct thandle *th);
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_txrx.c | 1658 struct tcphdr *th; in i40e_atr() local 1690 th = (struct tcphdr *)(hdr.network + hlen); in i40e_atr() 1693 if (th->syn && (pf->auto_disable_flags & I40E_FLAG_FD_ATR_ENABLED)) in i40e_atr() 1699 if (!th->fin && in i40e_atr() 1700 !th->syn && in i40e_atr() 1701 !th->rst && in i40e_atr() 1726 dtype_cmd |= (th->fin || th->rst) ? in i40e_atr()
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_main.c | 776 unsigned char *th; in fm10k_tso() local 789 th = skb_inner_transport_header(skb); in fm10k_tso() 791 th = skb_transport_header(skb); in fm10k_tso() 795 hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2); in fm10k_tso()
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_init.c | 1599 struct tcphdr *th; in netxen_process_lro() local 1642 th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2)); in netxen_process_lro() 1644 length = (iph->ihl << 2) + (th->doff << 2) + lro_length; in netxen_process_lro() 1647 th->psh = push; in netxen_process_lro() 1648 th->seq = htonl(seq_number); in netxen_process_lro()
|