th                150 crypto/vmac.c  		int i; u64 th, tl;					\
th                153 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
th                155 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                161 crypto/vmac.c  		int i; u64 th, tl;					\
th                164 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
th                166 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                167 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i+2],	\
th                169 crypto/vmac.c  			ADD128(rh1, rl1, th, tl);			\
th                176 crypto/vmac.c  		int i; u64 th, tl;					\
th                179 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
th                181 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                182 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+2],	\
th                184 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                185 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+4],	\
th                187 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                188 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+6],	\
th                190 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                196 crypto/vmac.c  		int i; u64 th, tl;					\
th                199 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i],	\
th                201 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                202 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i)+(kp)[i+2],	\
th                204 crypto/vmac.c  			ADD128(rh1, rl1, th, tl);			\
th                205 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+2],	\
th                207 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                208 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+2)+(kp)[i+4],	\
th                210 crypto/vmac.c  			ADD128(rh1, rl1, th, tl);			\
th                211 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+4],	\
th                213 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                214 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+4)+(kp)[i+6],	\
th                216 crypto/vmac.c  			ADD128(rh1, rl1, th, tl);			\
th                217 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+6],	\
th                219 crypto/vmac.c  			ADD128(rh, rl, th, tl);				\
th                220 crypto/vmac.c  			MUL64(th, tl, pe64_to_cpup((mp)+i+6)+(kp)[i+8],	\
th                222 crypto/vmac.c  			ADD128(rh1, rl1, th, tl);			\
th                456 drivers/acpi/sysfs.c static int acpi_bert_data_init(void *th, struct acpi_data_attr *data_attr)
th                458 drivers/acpi/sysfs.c 	struct acpi_table_bert *bert = th;
th                481 drivers/acpi/sysfs.c static int acpi_table_data_init(struct acpi_table_header *th)
th                487 drivers/acpi/sysfs.c 		if (ACPI_COMPARE_NAMESEG(th->signature, acpi_data_objs[i].name)) {
th                494 drivers/acpi/sysfs.c 			return acpi_data_objs[i].fn(th, data_attr);
th                 83 drivers/ata/pata_mpc52xx.c 	u8 th;
th                 91 drivers/ata/pata_mpc52xx.c 	{ .t0M = 32, .td = 15, .th = 2, .tj = 2, .tkw = 15, .tm = 4, .tn = 1 },
th                 92 drivers/ata/pata_mpc52xx.c 	{ .t0M = 10, .td = 6,  .th = 1, .tj = 1, .tkw = 4,  .tm = 2, .tn = 1 },
th                 93 drivers/ata/pata_mpc52xx.c 	{ .t0M = 8,  .td = 5,  .th = 1, .tj = 1, .tkw = 2,  .tm = 2, .tn = 1 },
th                 97 drivers/ata/pata_mpc52xx.c 	{ .t0M = 64, .td = 29, .th = 3, .tj = 3, .tkw = 29, .tm = 7, .tn = 2 },
th                 98 drivers/ata/pata_mpc52xx.c 	{ .t0M = 20, .td = 11, .th = 2, .tj = 1, .tkw = 7,  .tm = 4, .tn = 1 },
th                 99 drivers/ata/pata_mpc52xx.c 	{ .t0M = 16, .td = 10, .th = 2, .tj = 1, .tkw = 4,  .tm = 4, .tn = 1 },
th                303 drivers/ata/pata_mpc52xx.c 	t->mdma2 = ((u32)s->th << 24) | ((u32)s->tj << 16) | ((u32)s->tn << 8);
th                336 drivers/char/ds1620.c 	struct therm th;
th                339 drivers/char/ds1620.c 	ds1620_read_state(&th);
th                343 drivers/char/ds1620.c 		   th.hi >> 1, th.hi & 1 ? 5 : 0,
th                344 drivers/char/ds1620.c 		   th.lo >> 1, th.lo & 1 ? 5 : 0,
th                368 drivers/char/ds1620.c 	struct therm th, th_start;
th                382 drivers/char/ds1620.c 	ds1620_read_state(&th);
th                389 drivers/char/ds1620.c 	ds1620_write_state(&th);
th                400 drivers/char/ds1620.c 	ds1620_read_state(&th);
th                405 drivers/char/ds1620.c 	       th.hi >> 1, th.hi & 1 ? 5 : 0,
th                406 drivers/char/ds1620.c 	       th.lo >> 1, th.lo & 1 ? 5 : 0,
th               3358 drivers/gpu/drm/amd/amdgpu/si_dpm.c static int r600_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th)
th               3373 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	*th = t - ah;
th                 53 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c alpha, bp, flg, fm, np, th)                                               \
th                 68 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.tile_height = th                                                 \
th                110 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c flg, fm, np, th)                                                          \
th                125 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.tile_height = th                                                 \
th                147 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c flg, fm, np, th)                                                          \
th                162 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c 	.tile_height = th                                                 \
th                221 drivers/gpu/drm/radeon/r600_dpm.c int r600_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th)
th                236 drivers/gpu/drm/radeon/r600_dpm.c 	*th = t - ah;
th                142 drivers/gpu/drm/radeon/r600_dpm.h int r600_calculate_at(u32 t, u32 h, u32 fh, u32 fl, u32 *tl, u32 *th);
th                 42 drivers/hwtracing/intel_th/acpi.c 	struct intel_th *th;
th                 54 drivers/hwtracing/intel_th/acpi.c 	th = intel_th_alloc(&pdev->dev, (void *)id->driver_data, resource, r);
th                 55 drivers/hwtracing/intel_th/acpi.c 	if (IS_ERR(th))
th                 56 drivers/hwtracing/intel_th/acpi.c 		return PTR_ERR(th);
th                 58 drivers/hwtracing/intel_th/acpi.c 	adev->driver_data = th;
th                 65 drivers/hwtracing/intel_th/acpi.c 	struct intel_th *th = platform_get_drvdata(pdev);
th                 67 drivers/hwtracing/intel_th/acpi.c 	intel_th_free(th);
th                106 drivers/hwtracing/intel_th/core.c 		struct intel_th *th = to_intel_th(hub);
th                119 drivers/hwtracing/intel_th/core.c 		for (i = 0, lowest = -1; i < th->num_thdevs; i++) {
th                125 drivers/hwtracing/intel_th/core.c 			if (th->thdev[i]->type != INTEL_TH_OUTPUT) {
th                127 drivers/hwtracing/intel_th/core.c 					th->thdev[lowest] = th->thdev[i];
th                128 drivers/hwtracing/intel_th/core.c 					th->thdev[i] = NULL;
th                138 drivers/hwtracing/intel_th/core.c 			intel_th_device_remove(th->thdev[i]);
th                139 drivers/hwtracing/intel_th/core.c 			th->thdev[i] = NULL;
th                143 drivers/hwtracing/intel_th/core.c 			th->num_thdevs = lowest;
th                192 drivers/hwtracing/intel_th/core.c 	struct intel_th *th = to_intel_th(thdev);
th                196 drivers/hwtracing/intel_th/core.c 		node = kasprintf(GFP_KERNEL, "intel_th%d/%s%d", th->id,
th                199 drivers/hwtracing/intel_th/core.c 		node = kasprintf(GFP_KERNEL, "intel_th%d/%s", th->id,
th                222 drivers/hwtracing/intel_th/core.c 	struct intel_th *th = to_intel_th(thdev);
th                233 drivers/hwtracing/intel_th/core.c 	if (th->activate)
th                234 drivers/hwtracing/intel_th/core.c 		ret = th->activate(th);
th                249 drivers/hwtracing/intel_th/core.c 	if (th->deactivate)
th                250 drivers/hwtracing/intel_th/core.c 		th->deactivate(th);
th                263 drivers/hwtracing/intel_th/core.c 	struct intel_th *th = to_intel_th(thdev);
th                273 drivers/hwtracing/intel_th/core.c 	if (th->deactivate)
th                274 drivers/hwtracing/intel_th/core.c 		th->deactivate(th);
th                355 drivers/hwtracing/intel_th/core.c intel_th_device_alloc(struct intel_th *th, unsigned int type, const char *name,
th                362 drivers/hwtracing/intel_th/core.c 		parent = &th->hub->dev;
th                364 drivers/hwtracing/intel_th/core.c 		parent = th->dev;
th                382 drivers/hwtracing/intel_th/core.c 		dev_set_name(&thdev->dev, "%d-%s%d", th->id, name, id);
th                384 drivers/hwtracing/intel_th/core.c 		dev_set_name(&thdev->dev, "%d-%s", th->id, name);
th                569 drivers/hwtracing/intel_th/core.c 	struct intel_th *th = container_of(work, struct intel_th,
th                572 drivers/hwtracing/intel_th/core.c 	request_module("intel_th_%s", th->hub->name);
th                575 drivers/hwtracing/intel_th/core.c static int intel_th_request_hub_module(struct intel_th *th)
th                577 drivers/hwtracing/intel_th/core.c 	INIT_WORK(&th->request_module_work, __intel_th_request_hub_module);
th                578 drivers/hwtracing/intel_th/core.c 	schedule_work(&th->request_module_work);
th                583 drivers/hwtracing/intel_th/core.c static void intel_th_request_hub_module_flush(struct intel_th *th)
th                585 drivers/hwtracing/intel_th/core.c 	flush_work(&th->request_module_work);
th                588 drivers/hwtracing/intel_th/core.c static inline int intel_th_request_hub_module(struct intel_th *th)
th                593 drivers/hwtracing/intel_th/core.c static inline void intel_th_request_hub_module_flush(struct intel_th *th)
th                599 drivers/hwtracing/intel_th/core.c intel_th_subdevice_alloc(struct intel_th *th,
th                607 drivers/hwtracing/intel_th/core.c 	thdev = intel_th_device_alloc(th, subdev->type, subdev->name,
th                612 drivers/hwtracing/intel_th/core.c 	thdev->drvdata = th->drvdata;
th                618 drivers/hwtracing/intel_th/core.c 		struct resource *devres = th->resource;
th                629 drivers/hwtracing/intel_th/core.c 			if (bar >= th->num_resources)
th                639 drivers/hwtracing/intel_th/core.c 			dev_dbg(th->dev, "%s:%d @ %pR\n",
th                646 drivers/hwtracing/intel_th/core.c 			if (INTEL_TH_CAP(th, has_mintctl) && th->irq != -1)
th                647 drivers/hwtracing/intel_th/core.c 				res[r].start = th->irq;
th                657 drivers/hwtracing/intel_th/core.c 			thdev->dev.devt = MKDEV(th->major, th->num_thdevs);
th                663 drivers/hwtracing/intel_th/core.c 			INTEL_TH_CAP(th, host_mode_only) ? true : host_mode;
th                664 drivers/hwtracing/intel_th/core.c 		th->hub = thdev;
th                673 drivers/hwtracing/intel_th/core.c 		err = intel_th_request_hub_module(th);
th                698 drivers/hwtracing/intel_th/core.c int intel_th_output_enable(struct intel_th *th, unsigned int otype)
th                703 drivers/hwtracing/intel_th/core.c 	for (src = 0, dst = 0; dst <= th->num_thdevs; src++, dst++) {
th                718 drivers/hwtracing/intel_th/core.c 		for (; dst < th->num_thdevs; dst++) {
th                719 drivers/hwtracing/intel_th/core.c 			if (th->thdev[dst]->type != INTEL_TH_OUTPUT)
th                722 drivers/hwtracing/intel_th/core.c 			if (th->thdev[dst]->output.type != otype)
th                732 drivers/hwtracing/intel_th/core.c 		if (dst == th->num_thdevs)
th                739 drivers/hwtracing/intel_th/core.c 	thdev = intel_th_subdevice_alloc(th, &intel_th_subdevices[src]);
th                743 drivers/hwtracing/intel_th/core.c 	th->thdev[th->num_thdevs++] = thdev;
th                749 drivers/hwtracing/intel_th/core.c static int intel_th_populate(struct intel_th *th)
th                760 drivers/hwtracing/intel_th/core.c 		if ((INTEL_TH_CAP(th, host_mode_only) || host_mode) &&
th                772 drivers/hwtracing/intel_th/core.c 		thdev = intel_th_subdevice_alloc(th, subdev);
th                782 drivers/hwtracing/intel_th/core.c 		th->thdev[th->num_thdevs++] = thdev;
th                823 drivers/hwtracing/intel_th/core.c 	struct intel_th *th = data;
th                828 drivers/hwtracing/intel_th/core.c 	for (i = 0; i < th->num_thdevs; i++) {
th                829 drivers/hwtracing/intel_th/core.c 		if (th->thdev[i]->type != INTEL_TH_OUTPUT)
th                832 drivers/hwtracing/intel_th/core.c 		d = to_intel_th_driver(th->thdev[i]->dev.driver);
th                834 drivers/hwtracing/intel_th/core.c 			ret |= d->irq(th->thdev[i]);
th                851 drivers/hwtracing/intel_th/core.c 	struct intel_th *th;
th                853 drivers/hwtracing/intel_th/core.c 	th = kzalloc(sizeof(*th), GFP_KERNEL);
th                854 drivers/hwtracing/intel_th/core.c 	if (!th)
th                857 drivers/hwtracing/intel_th/core.c 	th->id = ida_simple_get(&intel_th_ida, 0, 0, GFP_KERNEL);
th                858 drivers/hwtracing/intel_th/core.c 	if (th->id < 0) {
th                859 drivers/hwtracing/intel_th/core.c 		err = th->id;
th                863 drivers/hwtracing/intel_th/core.c 	th->major = __register_chrdev(0, 0, TH_POSSIBLE_OUTPUTS,
th                865 drivers/hwtracing/intel_th/core.c 	if (th->major < 0) {
th                866 drivers/hwtracing/intel_th/core.c 		err = th->major;
th                869 drivers/hwtracing/intel_th/core.c 	th->irq = -1;
th                870 drivers/hwtracing/intel_th/core.c 	th->dev = dev;
th                871 drivers/hwtracing/intel_th/core.c 	th->drvdata = drvdata;
th                876 drivers/hwtracing/intel_th/core.c 			th->resource[nr_mmios++] = devres[r];
th                881 drivers/hwtracing/intel_th/core.c 					       dev_name(dev), th);
th                885 drivers/hwtracing/intel_th/core.c 			if (th->irq == -1)
th                886 drivers/hwtracing/intel_th/core.c 				th->irq = devres[r].start;
th                887 drivers/hwtracing/intel_th/core.c 			th->num_irqs++;
th                895 drivers/hwtracing/intel_th/core.c 	th->num_resources = nr_mmios;
th                897 drivers/hwtracing/intel_th/core.c 	dev_set_drvdata(dev, th);
th                903 drivers/hwtracing/intel_th/core.c 	err = intel_th_populate(th);
th                906 drivers/hwtracing/intel_th/core.c 		intel_th_free(th);
th                910 drivers/hwtracing/intel_th/core.c 	return th;
th                913 drivers/hwtracing/intel_th/core.c 	__unregister_chrdev(th->major, 0, TH_POSSIBLE_OUTPUTS,
th                917 drivers/hwtracing/intel_th/core.c 	ida_simple_remove(&intel_th_ida, th->id);
th                920 drivers/hwtracing/intel_th/core.c 	kfree(th);
th                926 drivers/hwtracing/intel_th/core.c void intel_th_free(struct intel_th *th)
th                930 drivers/hwtracing/intel_th/core.c 	intel_th_request_hub_module_flush(th);
th                932 drivers/hwtracing/intel_th/core.c 	intel_th_device_remove(th->hub);
th                933 drivers/hwtracing/intel_th/core.c 	for (i = 0; i < th->num_thdevs; i++) {
th                934 drivers/hwtracing/intel_th/core.c 		if (th->thdev[i] != th->hub)
th                935 drivers/hwtracing/intel_th/core.c 			intel_th_device_remove(th->thdev[i]);
th                936 drivers/hwtracing/intel_th/core.c 		th->thdev[i] = NULL;
th                939 drivers/hwtracing/intel_th/core.c 	th->num_thdevs = 0;
th                941 drivers/hwtracing/intel_th/core.c 	for (i = 0; i < th->num_irqs; i++)
th                942 drivers/hwtracing/intel_th/core.c 		devm_free_irq(th->dev, th->irq + i, th);
th                944 drivers/hwtracing/intel_th/core.c 	pm_runtime_get_sync(th->dev);
th                945 drivers/hwtracing/intel_th/core.c 	pm_runtime_forbid(th->dev);
th                947 drivers/hwtracing/intel_th/core.c 	__unregister_chrdev(th->major, 0, TH_POSSIBLE_OUTPUTS,
th                950 drivers/hwtracing/intel_th/core.c 	ida_simple_remove(&intel_th_ida, th->id);
th                952 drivers/hwtracing/intel_th/core.c 	kfree(th);
th                579 drivers/hwtracing/intel_th/gth.c 	struct intel_th *th = to_intel_th(thdev);
th                592 drivers/hwtracing/intel_th/gth.c 	if (INTEL_TH_CAP(th, tscu_enable))
th                732 drivers/hwtracing/intel_th/gth.c 	struct intel_th *th = dev_get_drvdata(dev->parent);
th                786 drivers/hwtracing/intel_th/gth.c 		ret = intel_th_output_enable(th, gth->output[i].port_type);
th                227 drivers/hwtracing/intel_th/intel_th.h void intel_th_free(struct intel_th *th);
th                237 drivers/hwtracing/intel_th/intel_th.h int intel_th_output_enable(struct intel_th *th, unsigned int otype);
th                 31 drivers/hwtracing/intel_th/pci.c static int intel_th_pci_activate(struct intel_th *th)
th                 33 drivers/hwtracing/intel_th/pci.c 	struct pci_dev *pdev = to_pci_dev(th->dev);
th                 37 drivers/hwtracing/intel_th/pci.c 	if (!INTEL_TH_CAP(th, tscu_enable))
th                 52 drivers/hwtracing/intel_th/pci.c static void intel_th_pci_deactivate(struct intel_th *th)
th                 54 drivers/hwtracing/intel_th/pci.c 	struct pci_dev *pdev = to_pci_dev(th->dev);
th                 58 drivers/hwtracing/intel_th/pci.c 	if (!INTEL_TH_CAP(th, tscu_enable))
th                 80 drivers/hwtracing/intel_th/pci.c 	struct intel_th *th;
th                102 drivers/hwtracing/intel_th/pci.c 	th = intel_th_alloc(&pdev->dev, drvdata, resource, r);
th                103 drivers/hwtracing/intel_th/pci.c 	if (IS_ERR(th))
th                104 drivers/hwtracing/intel_th/pci.c 		return PTR_ERR(th);
th                106 drivers/hwtracing/intel_th/pci.c 	th->activate   = intel_th_pci_activate;
th                107 drivers/hwtracing/intel_th/pci.c 	th->deactivate = intel_th_pci_deactivate;
th                116 drivers/hwtracing/intel_th/pci.c 	struct intel_th *th = pci_get_drvdata(pdev);
th                118 drivers/hwtracing/intel_th/pci.c 	intel_th_free(th);
th                 91 drivers/macintosh/therm_adt746x.c static void write_both_fan_speed(struct thermostat *th, int speed);
th                 92 drivers/macintosh/therm_adt746x.c static void write_fan_speed(struct thermostat *th, int speed, int fan);
th                 95 drivers/macintosh/therm_adt746x.c write_reg(struct thermostat* th, int reg, u8 data)
th                102 drivers/macintosh/therm_adt746x.c 	rc = i2c_master_send(th->clt, (const char *)tmp, 2);
th                111 drivers/macintosh/therm_adt746x.c read_reg(struct thermostat* th, int reg)
th                117 drivers/macintosh/therm_adt746x.c 	rc = i2c_master_send(th->clt, &reg_addr, 1);
th                122 drivers/macintosh/therm_adt746x.c 	rc = i2c_master_recv(th->clt, (char *)&data, 1);
th                128 drivers/macintosh/therm_adt746x.c static int read_fan_speed(struct thermostat *th, u8 addr)
th                134 drivers/macintosh/therm_adt746x.c 	tmp[1] = read_reg(th, addr);
th                135 drivers/macintosh/therm_adt746x.c 	tmp[0] = read_reg(th, addr + 1);
th                142 drivers/macintosh/therm_adt746x.c static void write_both_fan_speed(struct thermostat *th, int speed)
th                144 drivers/macintosh/therm_adt746x.c 	write_fan_speed(th, speed, 0);
th                145 drivers/macintosh/therm_adt746x.c 	if (th->type == ADT7460)
th                146 drivers/macintosh/therm_adt746x.c 		write_fan_speed(th, speed, 1);
th                149 drivers/macintosh/therm_adt746x.c static void write_fan_speed(struct thermostat *th, int speed, int fan)
th                158 drivers/macintosh/therm_adt746x.c 	if (th->type == ADT7467 && fan == 1)
th                161 drivers/macintosh/therm_adt746x.c 	if (th->last_speed[fan] != speed) {
th                174 drivers/macintosh/therm_adt746x.c 		manual = read_reg(th, MANUAL_MODE[fan]);
th                176 drivers/macintosh/therm_adt746x.c 		write_reg(th, MANUAL_MODE[fan],
th                177 drivers/macintosh/therm_adt746x.c 			manual | MANUAL_MASK | th->pwm_inv[fan]);
th                178 drivers/macintosh/therm_adt746x.c 		write_reg(th, FAN_SPD_SET[fan], speed);
th                181 drivers/macintosh/therm_adt746x.c 		if(th->type == ADT7460) {
th                182 drivers/macintosh/therm_adt746x.c 			manual = read_reg(th,
th                185 drivers/macintosh/therm_adt746x.c 			manual |= th->pwm_inv[fan];
th                186 drivers/macintosh/therm_adt746x.c 			write_reg(th,
th                189 drivers/macintosh/therm_adt746x.c 			manual = read_reg(th, MANUAL_MODE[fan]);
th                191 drivers/macintosh/therm_adt746x.c 			manual |= th->pwm_inv[fan];
th                192 drivers/macintosh/therm_adt746x.c 			write_reg(th, MANUAL_MODE[fan], manual&(~AUTO_MASK));
th                196 drivers/macintosh/therm_adt746x.c 	th->last_speed[fan] = speed;			
th                199 drivers/macintosh/therm_adt746x.c static void read_sensors(struct thermostat *th)
th                204 drivers/macintosh/therm_adt746x.c 		th->temps[i]  = read_reg(th, TEMP_REG[i]);
th                208 drivers/macintosh/therm_adt746x.c static void display_stats(struct thermostat *th)
th                210 drivers/macintosh/therm_adt746x.c 	if (th->temps[0] != th->cached_temp[0]
th                211 drivers/macintosh/therm_adt746x.c 	||  th->temps[1] != th->cached_temp[1]
th                212 drivers/macintosh/therm_adt746x.c 	||  th->temps[2] != th->cached_temp[2]) {
th                217 drivers/macintosh/therm_adt746x.c 				 th->temps[0], th->temps[1], th->temps[2],
th                218 drivers/macintosh/therm_adt746x.c 				 th->limits[0],  th->limits[1],  th->limits[2],
th                219 drivers/macintosh/therm_adt746x.c 				 read_fan_speed(th, FAN_SPEED[0]));
th                221 drivers/macintosh/therm_adt746x.c 	th->cached_temp[0] = th->temps[0];
th                222 drivers/macintosh/therm_adt746x.c 	th->cached_temp[1] = th->temps[1];
th                223 drivers/macintosh/therm_adt746x.c 	th->cached_temp[2] = th->temps[2];
th                227 drivers/macintosh/therm_adt746x.c static void update_fans_speed (struct thermostat *th)
th                235 drivers/macintosh/therm_adt746x.c 		int fan_number = (th->type == ADT7460 && i == 2);
th                236 drivers/macintosh/therm_adt746x.c 		int var = th->temps[i] - th->limits[i];
th                244 drivers/macintosh/therm_adt746x.c 			if (abs(var - th->last_var[fan_number]) < 2)
th                260 drivers/macintosh/therm_adt746x.c 			write_both_fan_speed(th, new_speed);
th                261 drivers/macintosh/therm_adt746x.c 			th->last_var[fan_number] = var;
th                266 drivers/macintosh/therm_adt746x.c 				if (th->last_speed[fan_number] != 0)
th                270 drivers/macintosh/therm_adt746x.c 				write_both_fan_speed(th, 0);
th                284 drivers/macintosh/therm_adt746x.c 	struct thermostat* th = arg;
th                293 drivers/macintosh/therm_adt746x.c 			read_sensors(th);
th                295 drivers/macintosh/therm_adt746x.c 		read_sensors(th);
th                299 drivers/macintosh/therm_adt746x.c 			update_fans_speed(th);
th                302 drivers/macintosh/therm_adt746x.c 		display_stats(th);
th                310 drivers/macintosh/therm_adt746x.c static void set_limit(struct thermostat *th, int i)
th                313 drivers/macintosh/therm_adt746x.c 	th->limits[i] = default_limits_chip[i] + limit_adjust;
th                314 drivers/macintosh/therm_adt746x.c 	write_reg(th, LIMIT_REG[i], th->limits[i]);
th                317 drivers/macintosh/therm_adt746x.c 	th->limits[i] = default_limits_local[i] + limit_adjust;
th                323 drivers/macintosh/therm_adt746x.c 	struct thermostat *th = dev_get_drvdata(dev);		\
th                342 drivers/macintosh/therm_adt746x.c 	struct thermostat *th = dev_get_drvdata(dev);		\
th                344 drivers/macintosh/therm_adt746x.c 		th->last_speed[data],				\
th                345 drivers/macintosh/therm_adt746x.c 		read_fan_speed(th, FAN_SPEED[data])		\
th                352 drivers/macintosh/therm_adt746x.c 	struct thermostat *th = dev_get_drvdata(dev);		\
th                359 drivers/macintosh/therm_adt746x.c 		set_limit(th, i);				\
th                375 drivers/macintosh/therm_adt746x.c BUILD_SHOW_FUNC_INT(sensor1_temperature,	 (read_reg(th, TEMP_REG[1])))
th                376 drivers/macintosh/therm_adt746x.c BUILD_SHOW_FUNC_INT(sensor2_temperature,	 (read_reg(th, TEMP_REG[2])))
th                377 drivers/macintosh/therm_adt746x.c BUILD_SHOW_FUNC_INT(sensor1_limit,		 th->limits[1])
th                378 drivers/macintosh/therm_adt746x.c BUILD_SHOW_FUNC_INT(sensor2_limit,		 th->limits[2])
th                389 drivers/macintosh/therm_adt746x.c BUILD_STORE_FUNC_DEG(limit_adjust,	 th)
th                415 drivers/macintosh/therm_adt746x.c static void thermostat_create_files(struct thermostat *th)
th                417 drivers/macintosh/therm_adt746x.c 	struct device_node *np = th->clt->dev.of_node;
th                425 drivers/macintosh/therm_adt746x.c 	th->pdev = of_platform_device_create(np, "temperatures", NULL);
th                426 drivers/macintosh/therm_adt746x.c 	if (!th->pdev)
th                428 drivers/macintosh/therm_adt746x.c 	dev = &th->pdev->dev;
th                429 drivers/macintosh/therm_adt746x.c 	dev_set_drvdata(dev, th);
th                439 drivers/macintosh/therm_adt746x.c 	if(th->type == ADT7460)
th                446 drivers/macintosh/therm_adt746x.c static void thermostat_remove_files(struct thermostat *th)
th                450 drivers/macintosh/therm_adt746x.c 	if (!th->pdev)
th                452 drivers/macintosh/therm_adt746x.c 	dev = &th->pdev->dev;
th                462 drivers/macintosh/therm_adt746x.c 	if (th->type == ADT7460)
th                464 drivers/macintosh/therm_adt746x.c 	of_device_unregister(th->pdev);
th                472 drivers/macintosh/therm_adt746x.c 	struct thermostat* th;
th                500 drivers/macintosh/therm_adt746x.c 	th = kzalloc(sizeof(struct thermostat), GFP_KERNEL);
th                501 drivers/macintosh/therm_adt746x.c 	if (!th)
th                504 drivers/macintosh/therm_adt746x.c 	i2c_set_clientdata(client, th);
th                505 drivers/macintosh/therm_adt746x.c 	th->clt = client;
th                506 drivers/macintosh/therm_adt746x.c 	th->type = id->driver_data;
th                508 drivers/macintosh/therm_adt746x.c 	rc = read_reg(th, CONFIG_REG);
th                511 drivers/macintosh/therm_adt746x.c 		kfree(th);
th                519 drivers/macintosh/therm_adt746x.c 	if (th->type == ADT7460) {
th                522 drivers/macintosh/therm_adt746x.c 		write_reg(th, CONFIG_REG, 1);
th                527 drivers/macintosh/therm_adt746x.c 		th->initial_limits[i] = read_reg(th, LIMIT_REG[i]);
th                528 drivers/macintosh/therm_adt746x.c 		set_limit(th, i);
th                533 drivers/macintosh/therm_adt746x.c 			 th->initial_limits[0], th->initial_limits[1],
th                534 drivers/macintosh/therm_adt746x.c 			 th->initial_limits[2], th->limits[0], th->limits[1],
th                535 drivers/macintosh/therm_adt746x.c 			 th->limits[2]);
th                538 drivers/macintosh/therm_adt746x.c 	th->pwm_inv[0] = read_reg(th, MANUAL_MODE[0]) & INVERT_MASK;
th                539 drivers/macintosh/therm_adt746x.c 	th->pwm_inv[1] = read_reg(th, MANUAL_MODE[1]) & INVERT_MASK;
th                542 drivers/macintosh/therm_adt746x.c 	th->last_speed[0] = -2;
th                543 drivers/macintosh/therm_adt746x.c 	th->last_speed[1] = -2;
th                544 drivers/macintosh/therm_adt746x.c 	th->last_var[0] = -80;
th                545 drivers/macintosh/therm_adt746x.c 	th->last_var[1] = -80;
th                549 drivers/macintosh/therm_adt746x.c 		write_both_fan_speed(th, 0);
th                552 drivers/macintosh/therm_adt746x.c 		write_both_fan_speed(th, -1);
th                555 drivers/macintosh/therm_adt746x.c 	th->thread = kthread_run(monitor_task, th, "kfand");
th                556 drivers/macintosh/therm_adt746x.c 	if (th->thread == ERR_PTR(-ENOMEM)) {
th                558 drivers/macintosh/therm_adt746x.c 		th->thread = NULL;
th                562 drivers/macintosh/therm_adt746x.c 	thermostat_create_files(th);
th                569 drivers/macintosh/therm_adt746x.c 	struct thermostat *th = i2c_get_clientdata(client);
th                572 drivers/macintosh/therm_adt746x.c 	thermostat_remove_files(th);
th                574 drivers/macintosh/therm_adt746x.c 	if (th->thread != NULL)
th                575 drivers/macintosh/therm_adt746x.c 		kthread_stop(th->thread);
th                579 drivers/macintosh/therm_adt746x.c 		th->limits[0], th->limits[1], th->limits[2],
th                580 drivers/macintosh/therm_adt746x.c 		th->initial_limits[0], th->initial_limits[1],
th                581 drivers/macintosh/therm_adt746x.c 		th->initial_limits[2]);
th                584 drivers/macintosh/therm_adt746x.c 		write_reg(th, LIMIT_REG[i], th->initial_limits[i]);
th                586 drivers/macintosh/therm_adt746x.c 	write_both_fan_speed(th, -1);
th                588 drivers/macintosh/therm_adt746x.c 	kfree(th);
th                 62 drivers/misc/sgi-gru/grulib.h #define CONTEXT_WINDOW_BYTES(th)        (GRU_GSEG_PAGESIZE * (th))
th                 63 drivers/misc/sgi-gru/grulib.h #define THREAD_POINTER(p, th)		(p + GRU_GSEG_PAGESIZE * (th))
th                700 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	struct tcphdr *th;
th                703 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	th = tcp_hdr(skb);
th                705 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	th->check = ~tcp_v4_check(skb->len - skb_transport_offset(skb),
th                712 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	struct tcphdr *th;
th                715 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	th = tcp_hdr(skb);
th                717 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c 	th->check = ~tcp_v6_check(skb->len - skb_transport_offset(skb),
th               1324 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	struct tcphdr *th;
th               1364 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th = tcp_hdr(skb);
th               1365 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v6_check(len, &iph->saddr, &iph->daddr, 0);
th               1371 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th = tcp_hdr(skb);
th               1372 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v4_check(len, iph->saddr, iph->daddr, 0);
th               1422 drivers/net/ethernet/broadcom/bnxt/bnxt.c 	struct tcphdr *th;
th               1437 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th = tcp_hdr(skb);
th               1438 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v4_check(len, iph->saddr, iph->daddr, 0);
th               1448 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th = tcp_hdr(skb);
th               1449 drivers/net/ethernet/broadcom/bnxt/bnxt.c 		th->check = ~tcp_v6_check(len, &iph->saddr, &iph->daddr, 0);
th               13484 drivers/net/ethernet/broadcom/tg3.c 			struct tcphdr *th;
th               13486 drivers/net/ethernet/broadcom/tg3.c 			th = (struct tcphdr *)&tx_data[val];
th               13487 drivers/net/ethernet/broadcom/tg3.c 			th->check = 0;
th               2467 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 	struct tcphdr *th;
th               2488 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		th = tcp_hdr(skb);
th               2489 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		th->check = ~tcp_v4_check(skb->len - depth, iph->saddr,
th               2496 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		th = tcp_hdr(skb);
th               2497 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 		th->check = ~tcp_v6_check(skb->len - depth, &iph->saddr,
th               2507 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 	if (th->cwr)
th               2513 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c 	skb->csum_start = (unsigned char *)th - skb->head;
th                758 drivers/net/ethernet/intel/fm10k/fm10k_main.c 	unsigned char *th;
th                771 drivers/net/ethernet/intel/fm10k/fm10k_main.c 		th = skb_inner_transport_header(skb);
th                773 drivers/net/ethernet/intel/fm10k/fm10k_main.c 		th = skb_transport_header(skb);
th                777 drivers/net/ethernet/intel/fm10k/fm10k_main.c 	hdrlen = (th - skb->data) + (((struct tcphdr *)th)->doff << 2);
th               2677 drivers/net/ethernet/intel/i40e/i40e_txrx.c 	struct tcphdr *th;
th               2724 drivers/net/ethernet/intel/i40e/i40e_txrx.c 	th = (struct tcphdr *)(hdr.network + hlen);
th               2727 drivers/net/ethernet/intel/i40e/i40e_txrx.c 	if (th->syn && test_bit(__I40E_FD_ATR_AUTO_DISABLED, pf->state))
th               2733 drivers/net/ethernet/intel/i40e/i40e_txrx.c 		if (th->fin || th->rst)
th               2740 drivers/net/ethernet/intel/i40e/i40e_txrx.c 	if (!th->fin &&
th               2741 drivers/net/ethernet/intel/i40e/i40e_txrx.c 	    !th->syn &&
th               2742 drivers/net/ethernet/intel/i40e/i40e_txrx.c 	    !th->rst &&
th               2767 drivers/net/ethernet/intel/i40e/i40e_txrx.c 	dtype_cmd |= (th->fin || th->rst) ?
th               8365 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	struct tcphdr *th;
th               8439 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	th = (struct tcphdr *)(hdr.network + hlen);
th               8442 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	if (th->fin)
th               8446 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	if (!th->syn && (ring->atr_count < ring->atr_sample_rate))
th               8468 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		common.port.src ^= th->dest ^ htons(ETH_P_8021Q);
th               8470 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		common.port.src ^= th->dest ^ first->protocol;
th               8471 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	common.port.dst ^= th->source;
th                150 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	struct tcphdr *th;
th                162 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	th = tcp_hdr(nskb);
th                165 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	th->seq = htonl(tcp_seq);
th                315 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	struct tcphdr *th;
th                323 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 	th = ((void *)iph) + iph->ihl * 4;
th                327 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 					     iph->saddr, th->source, iph->daddr,
th                328 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 					     th->dest, netdev->ifindex);
th                334 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 						&ipv6h->saddr, th->source,
th                335 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c 						&ipv6h->daddr, ntohs(th->dest),
th               4036 drivers/net/ethernet/neterion/s2io.c 			struct tcphdr *th;
th               4040 drivers/net/ethernet/neterion/s2io.c 				th = (struct tcphdr *)(((unsigned char *)ip) +
th               4045 drivers/net/ethernet/neterion/s2io.c 					queue = (ntohs(th->source) +
th               4046 drivers/net/ethernet/neterion/s2io.c 						 ntohs(th->dest)) &
th               4052 drivers/net/ethernet/neterion/s2io.c 					queue = (ntohs(th->source) +
th               4053 drivers/net/ethernet/neterion/s2io.c 						 ntohs(th->dest)) &
th                636 drivers/net/ethernet/neterion/vxge/vxge-main.c 		struct tcphdr *th;
th                641 drivers/net/ethernet/neterion/vxge/vxge-main.c 			th = (struct tcphdr *)(((unsigned char *)ip) +
th                645 drivers/net/ethernet/neterion/vxge/vxge-main.c 			counter = (ntohs(th->source) +
th                646 drivers/net/ethernet/neterion/vxge/vxge-main.c 				ntohs(th->dest)) &
th               1579 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	struct tcphdr *th;
th               1622 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	th = (struct tcphdr *)((skb->data + vhdr_len) + (iph->ihl << 2));
th               1624 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	length = (iph->ihl << 2) + (th->doff << 2) + lro_length;
th               1627 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	th->psh = push;
th               1628 drivers/net/ethernet/qlogic/netxen/netxen_nic_init.c 	th->seq = htonl(seq_number);
th                866 drivers/net/ethernet/qlogic/qede/qede_fp.c 	struct tcphdr *th;
th                869 drivers/net/ethernet/qlogic/qede/qede_fp.c 	th = tcp_hdr(skb);
th                871 drivers/net/ethernet/qlogic/qede/qede_fp.c 	th->check = ~tcp_v4_check(skb->len - skb_transport_offset(skb),
th                880 drivers/net/ethernet/qlogic/qede/qede_fp.c 	struct tcphdr *th;
th                883 drivers/net/ethernet/qlogic/qede/qede_fp.c 	th = tcp_hdr(skb);
th                885 drivers/net/ethernet/qlogic/qede/qede_fp.c 	th->check = ~tcp_v6_check(skb->len - skb_transport_offset(skb),
th               1272 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	struct tcphdr *th;
th               1324 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr));
th               1325 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		length = (th->doff << 2) + lro_length;
th               1329 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
th               1330 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		length = (iph->ihl << 2) + (th->doff << 2) + lro_length;
th               1335 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	th->psh = push;
th               1336 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	th->seq = htonl(seq_number);
th               1794 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	struct tcphdr *th;
th               1846 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		th = (struct tcphdr *)(skb->data + sizeof(struct ipv6hdr));
th               1848 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		length = (th->doff << 2) + lro_length;
th               1852 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		th = (struct tcphdr *)(skb->data + (iph->ihl << 2));
th               1853 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 		length = (iph->ihl << 2) + (th->doff << 2) + lro_length;
th               1858 drivers/net/ethernet/qlogic/qlcnic/qlcnic_io.c 	th->psh = push;
th               5755 drivers/net/ethernet/realtek/r8169_main.c 	struct tcphdr *th;
th               5763 drivers/net/ethernet/realtek/r8169_main.c 	th = tcp_hdr(skb);
th               5765 drivers/net/ethernet/realtek/r8169_main.c 	th->check = 0;
th               5766 drivers/net/ethernet/realtek/r8169_main.c 	th->check = ~tcp_v6_check(0, &ipv6h->saddr, &ipv6h->daddr, 0);
th                239 drivers/net/slip/slhc.c 	struct tcphdr *th, *oth;
th                264 drivers/net/slip/slhc.c 	if (isize < nlen + sizeof(*th))
th                267 drivers/net/slip/slhc.c 	th = (struct tcphdr *)(icp + nlen);
th                268 drivers/net/slip/slhc.c 	if (th->doff < sizeof(struct tcphdr) / 4)
th                270 drivers/net/slip/slhc.c 	hlen = nlen + th->doff * 4;
th                276 drivers/net/slip/slhc.c 	if(hlen > isize || th->syn || th->fin || th->rst ||
th                277 drivers/net/slip/slhc.c 	    ! (th->ack)){
th                299 drivers/net/slip/slhc.c 		 && th->source == cs->cs_tcp.source
th                300 drivers/net/slip/slhc.c 		 && th->dest == cs->cs_tcp.dest)
th                357 drivers/net/slip/slhc.c 	 || th->doff != cs->cs_tcp.doff
th                359 drivers/net/slip/slhc.c 	 || (th->doff > 5 && memcmp(th+1,cs->cs_tcpopt,((th->doff)-5)*4) != 0)){
th                369 drivers/net/slip/slhc.c 	if(th->urg){
th                370 drivers/net/slip/slhc.c 		deltaS = ntohs(th->urg_ptr);
th                373 drivers/net/slip/slhc.c 	} else if(th->urg_ptr != oth->urg_ptr){
th                380 drivers/net/slip/slhc.c 	if((deltaS = ntohs(th->window) - ntohs(oth->window)) != 0){
th                384 drivers/net/slip/slhc.c 	if((deltaA = ntohl(th->ack_seq) - ntohl(oth->ack_seq)) != 0L){
th                390 drivers/net/slip/slhc.c 	if((deltaS = ntohl(th->seq) - ntohl(oth->seq)) != 0L){
th                436 drivers/net/slip/slhc.c 	if(th->psh)
th                441 drivers/net/slip/slhc.c 	csum = th->check;
th                443 drivers/net/slip/slhc.c 	memcpy(&cs->cs_tcp,th,20);
th                477 drivers/net/slip/slhc.c 	memcpy(&cs->cs_tcp,th,20);
th                480 drivers/net/slip/slhc.c 	if (th->doff > 5)
th                481 drivers/net/slip/slhc.c 	  memcpy(cs->cs_tcpopt, th+1, ((th->doff) - 5) * 4);
th               1754 drivers/net/usb/r8152.c 	struct tcphdr *th;
th               1762 drivers/net/usb/r8152.c 	th = tcp_hdr(skb);
th               1764 drivers/net/usb/r8152.c 	th->check = 0;
th               1765 drivers/net/usb/r8152.c 	th->check = ~tcp_v6_check(0, &ipv6h->saddr, &ipv6h->daddr, 0);
th                  9 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c 		   w_tolerance, tl, th, t_tolerance,	\
th                 20 drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c 	.t_high = th,					\
th                 96 drivers/parport/daisy.c 	static const char *th[] = { /*0*/"th", "st", "nd", "rd", "th" };
th                128 drivers/parport/daisy.c 				extra->name, i + 1, th[i + 1], num_ports,
th               1799 drivers/s390/net/ctcm_fsms.c 	switch (header->th.th_ch_flag) {
th                634 drivers/s390/net/ctcm_main.c 	header->th.th_seg	= 0x00 ;
th                635 drivers/s390/net/ctcm_main.c 	header->th.th_ch_flag	= TH_SWEEP_REQ;  /* 0x0f */
th                636 drivers/s390/net/ctcm_main.c 	header->th.th_blk_flag	= 0x00;
th                637 drivers/s390/net/ctcm_main.c 	header->th.th_is_xid	= 0x00;
th                638 drivers/s390/net/ctcm_main.c 	header->th.th_seq_num	= 0x00;
th                665 drivers/s390/net/ctcm_mpc.c 	header->th.th_seg	= 0x00 ;
th                666 drivers/s390/net/ctcm_mpc.c 	header->th.th_ch_flag	= TH_SWEEP_RESP;
th                667 drivers/s390/net/ctcm_mpc.c 	header->th.th_blk_flag	= 0x00;
th                668 drivers/s390/net/ctcm_mpc.c 	header->th.th_is_xid	= 0x00;
th                669 drivers/s390/net/ctcm_mpc.c 	header->th.th_seq_num	= 0x00;
th               1185 drivers/s390/net/ctcm_mpc.c 		mpcginfo->th = header;
th                106 drivers/s390/net/ctcm_mpc.h 	struct th_header th;
th                155 drivers/s390/net/ctcm_mpc.h 	struct th_header *th;
th               7400 drivers/scsi/ncr53c8xx.c 	int th = tn & 3;
th               7409 drivers/scsi/ncr53c8xx.c 	tp->jump_tcb.l_paddr = np->jump_tcb[th].l_paddr;
th               7457 drivers/scsi/ncr53c8xx.c 	np->jump_tcb[th].l_paddr = cpu_to_scr(vtobus (&tp->jump_tcb));
th                 81 drivers/sfi/sfi_acpi.c 				struct acpi_table_header *th)
th                 83 drivers/sfi/sfi_acpi.c 	return (struct sfi_table_header *)th;
th                 87 drivers/sfi/sfi_acpi.c 				struct sfi_table_header *th)
th                 89 drivers/sfi/sfi_acpi.c 	return (struct acpi_table_header *)th;
th                 97 drivers/sfi/sfi_acpi.c static int __init sfi_acpi_parse_xsdt(struct sfi_table_header *th)
th                103 drivers/sfi/sfi_acpi.c 	xsdt_va = (struct acpi_table_xsdt *)th;
th                181 drivers/sfi/sfi_acpi.c 	struct acpi_table_header *th = NULL;
th                189 drivers/sfi/sfi_acpi.c 	th = sfi_acpi_get_table(&key);
th                190 drivers/sfi/sfi_acpi.c 	if (!th)
th                194 drivers/sfi/sfi_acpi.c 					th, th->length);
th                195 drivers/sfi/sfi_acpi.c 	sfi_acpi_put_table(th);
th                167 drivers/sfi/sfi_core.c 	struct sfi_table_header *th;
th                171 drivers/sfi/sfi_core.c 		th = sfi_map_memory(pa, sizeof(struct sfi_table_header));
th                173 drivers/sfi/sfi_core.c 		th = (void *)syst_va + (pa - syst_pa);
th                176 drivers/sfi/sfi_core.c 	if (TABLE_ON_PAGE(th, th, th->len))
th                177 drivers/sfi/sfi_core.c 		return th;
th                180 drivers/sfi/sfi_core.c 	length = th->len;
th                182 drivers/sfi/sfi_core.c 		sfi_unmap_memory(th, sizeof(struct sfi_table_header));
th                193 drivers/sfi/sfi_core.c static void sfi_unmap_table(struct sfi_table_header *th)
th                195 drivers/sfi/sfi_core.c 	if (!TABLE_ON_PAGE(syst_va, th, th->len))
th                196 drivers/sfi/sfi_core.c 		sfi_unmap_memory(th, TABLE_ON_PAGE(th, th, th->len) ?
th                197 drivers/sfi/sfi_core.c 					sizeof(*th) : th->len);
th                200 drivers/sfi/sfi_core.c static int sfi_table_check_key(struct sfi_table_header *th,
th                204 drivers/sfi/sfi_core.c 	if (strncmp(th->sig, key->sig, SFI_SIGNATURE_SIZE)
th                205 drivers/sfi/sfi_core.c 		|| (key->oem_id && strncmp(th->oem_id,
th                207 drivers/sfi/sfi_core.c 		|| (key->oem_table_id && strncmp(th->oem_table_id,
th                234 drivers/sfi/sfi_core.c 	struct sfi_table_header *th;
th                237 drivers/sfi/sfi_core.c 	th = sfi_map_table(pa);
th                238 drivers/sfi/sfi_core.c 	if (!th)
th                242 drivers/sfi/sfi_core.c 		sfi_print_table_header(pa, th);
th                243 drivers/sfi/sfi_core.c 		if (sfi_verify_table(th))
th                246 drivers/sfi/sfi_core.c 		if (!sfi_table_check_key(th, key))
th                247 drivers/sfi/sfi_core.c 			return th;	/* Success */
th                250 drivers/sfi/sfi_core.c 	sfi_unmap_table(th);
th                262 drivers/sfi/sfi_core.c 	struct sfi_table_header *th;
th                267 drivers/sfi/sfi_core.c 		th = sfi_check_table(syst_va->pentry[i], key);
th                268 drivers/sfi/sfi_core.c 		if (!IS_ERR(th) && th)
th                269 drivers/sfi/sfi_core.c 			return th;
th                275 drivers/sfi/sfi_core.c void sfi_put_table(struct sfi_table_header *th)
th                277 drivers/sfi/sfi_core.c 	sfi_unmap_table(th);
th                396 drivers/sfi/sfi_core.c 	struct sfi_table_header *th = NULL;
th                405 drivers/sfi/sfi_core.c 		th = sfi_get_table(&key);
th                406 drivers/sfi/sfi_core.c 		if (!th)
th                410 drivers/sfi/sfi_core.c 						th, th->len);
th                411 drivers/sfi/sfi_core.c 		sfi_put_table(th);
th                422 drivers/sfi/sfi_core.c 	struct sfi_table_header *th;
th                429 drivers/sfi/sfi_core.c 	th = sfi_map_table(pa);
th                430 drivers/sfi/sfi_core.c 	if (!th || !th->sig[0]) {
th                436 drivers/sfi/sfi_core.c 	memcpy(tbl_attr->name, th->sig, SFI_SIGNATURE_SIZE);
th                450 drivers/sfi/sfi_core.c 	sfi_unmap_table(th);
th                395 drivers/soc/fsl/qbman/qman_ccsr.c static void qm_set_pfdr_threshold(u32 th, u8 k)
th                397 drivers/soc/fsl/qbman/qman_ccsr.c 	qm_ccsr_out(REG_PFDR_FP_LWIT, th & 0xffffff);
th                401 drivers/soc/fsl/qbman/qman_ccsr.c static void qm_set_sfdr_threshold(u16 th)
th                403 drivers/soc/fsl/qbman/qman_ccsr.c 	qm_ccsr_out(REG_SFDR_CFG, th & 0x3ff);
th               1990 drivers/staging/rtl8192u/ieee80211/ieee80211.h 	void (*enter_sleep_state)(struct net_device *dev, u32 th, u32 tl);
th               1688 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	u32 th, tl;
th               1706 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 	sleep = ieee80211_sta_ps_sleep(ieee, &th, &tl);
th               1713 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 			ieee->enter_sleep_state(ieee->dev, th, tl);
th               1725 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c 				ieee->ps_th = th;
th                810 drivers/staging/rts5208/rtsx.c 	struct task_struct *th;
th                917 drivers/staging/rts5208/rtsx.c 	th = kthread_run(rtsx_control_thread, dev, CR_DRIVER_NAME);
th                918 drivers/staging/rts5208/rtsx.c 	if (IS_ERR(th)) {
th                920 drivers/staging/rts5208/rtsx.c 		err = PTR_ERR(th);
th                923 drivers/staging/rts5208/rtsx.c 	dev->ctl_thread = th;
th                932 drivers/staging/rts5208/rtsx.c 	th = kthread_run(rtsx_scan_thread, dev, "rtsx-scan");
th                933 drivers/staging/rts5208/rtsx.c 	if (IS_ERR(th)) {
th                936 drivers/staging/rts5208/rtsx.c 		err = PTR_ERR(th);
th                941 drivers/staging/rts5208/rtsx.c 	th = kthread_run(rtsx_polling_thread, dev, "rtsx-polling");
th                942 drivers/staging/rts5208/rtsx.c 	if (IS_ERR(th)) {
th                944 drivers/staging/rts5208/rtsx.c 		err = PTR_ERR(th);
th                947 drivers/staging/rts5208/rtsx.c 	dev->polling_thread = th;
th                 64 drivers/thermal/db8500_thermal.c 	struct db8500_thermal_zone *th = data;
th                 71 drivers/thermal/db8500_thermal.c 	*temp = th->interpolated_temp;
th                 79 drivers/thermal/db8500_thermal.c 	struct db8500_thermal_zone *th = data;
th                 81 drivers/thermal/db8500_thermal.c 	*trend = th->trend;
th                 91 drivers/thermal/db8500_thermal.c static void db8500_thermal_update_config(struct db8500_thermal_zone *th,
th                 99 drivers/thermal/db8500_thermal.c 	th->cur_index = idx;
th                100 drivers/thermal/db8500_thermal.c 	th->interpolated_temp = (next_low + next_high)/2;
th                101 drivers/thermal/db8500_thermal.c 	th->trend = trend;
th                113 drivers/thermal/db8500_thermal.c 	struct db8500_thermal_zone *th = irq_data;
th                114 drivers/thermal/db8500_thermal.c 	unsigned int idx = th->cur_index;
th                130 drivers/thermal/db8500_thermal.c 	db8500_thermal_update_config(th, idx, THERMAL_TREND_DROPPING,
th                132 drivers/thermal/db8500_thermal.c 	dev_dbg(&th->tz->device,
th                135 drivers/thermal/db8500_thermal.c 	thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED);
th                142 drivers/thermal/db8500_thermal.c 	struct db8500_thermal_zone *th = irq_data;
th                143 drivers/thermal/db8500_thermal.c 	unsigned int idx = th->cur_index;
th                152 drivers/thermal/db8500_thermal.c 		db8500_thermal_update_config(th, idx, THERMAL_TREND_RAISING,
th                155 drivers/thermal/db8500_thermal.c 		dev_dbg(&th->tz->device,
th                159 drivers/thermal/db8500_thermal.c 		th->interpolated_temp = db8500_thermal_points[idx] + 1;
th                161 drivers/thermal/db8500_thermal.c 	thermal_zone_device_update(th->tz, THERMAL_EVENT_UNSPECIFIED);
th                168 drivers/thermal/db8500_thermal.c 	struct db8500_thermal_zone *th = NULL;
th                172 drivers/thermal/db8500_thermal.c 	th = devm_kzalloc(dev, sizeof(*th), GFP_KERNEL);
th                173 drivers/thermal/db8500_thermal.c 	if (!th)
th                184 drivers/thermal/db8500_thermal.c 		"dbx500_temp_low", th);
th                198 drivers/thermal/db8500_thermal.c 		"dbx500_temp_high", th);
th                205 drivers/thermal/db8500_thermal.c 	th->tz = devm_thermal_zone_of_sensor_register(dev, 0, th, &thdev_ops);
th                206 drivers/thermal/db8500_thermal.c 	if (IS_ERR(th->tz)) {
th                208 drivers/thermal/db8500_thermal.c 		return PTR_ERR(th->tz);
th                213 drivers/thermal/db8500_thermal.c 	db8500_thermal_update_config(th, 0, THERMAL_TREND_STABLE,
th                217 drivers/thermal/db8500_thermal.c 	platform_set_drvdata(pdev, th);
th                232 drivers/thermal/db8500_thermal.c 	struct db8500_thermal_zone *th = platform_get_drvdata(pdev);
th                235 drivers/thermal/db8500_thermal.c 	db8500_thermal_update_config(th, 0, THERMAL_TREND_STABLE,
th                393 drivers/thermal/samsung/exynos_tmu.c 	u32 th, con;
th                395 drivers/thermal/samsung/exynos_tmu.c 	th = readl(data->base + EXYNOS_THD_TEMP_RISE);
th                396 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(0xff << 8 * trip);
th                397 drivers/thermal/samsung/exynos_tmu.c 	th |= temp_to_code(data, temp) << 8 * trip;
th                398 drivers/thermal/samsung/exynos_tmu.c 	writel(th, data->base + EXYNOS_THD_TEMP_RISE);
th                410 drivers/thermal/samsung/exynos_tmu.c 	u32 th;
th                412 drivers/thermal/samsung/exynos_tmu.c 	th = readl(data->base + EXYNOS_THD_TEMP_FALL);
th                413 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(0xff << 8 * trip);
th                415 drivers/thermal/samsung/exynos_tmu.c 		th |= temp_to_code(data, temp - hyst) << 8 * trip;
th                416 drivers/thermal/samsung/exynos_tmu.c 	writel(th, data->base + EXYNOS_THD_TEMP_FALL);
th                450 drivers/thermal/samsung/exynos_tmu.c 	u32 th;
th                460 drivers/thermal/samsung/exynos_tmu.c 	th = readl(data->base + reg_off);
th                461 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(0xff << j * 8);
th                462 drivers/thermal/samsung/exynos_tmu.c 	th |= (temp_to_code(data, temp) << j * 8);
th                463 drivers/thermal/samsung/exynos_tmu.c 	writel(th, data->base + reg_off);
th                470 drivers/thermal/samsung/exynos_tmu.c 	u32 th;
th                480 drivers/thermal/samsung/exynos_tmu.c 	th = readl(data->base + reg_off);
th                481 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(0xff << j * 8);
th                482 drivers/thermal/samsung/exynos_tmu.c 	th |= (temp_to_code(data, temp - hyst) << j * 8);
th                483 drivers/thermal/samsung/exynos_tmu.c 	writel(th, data->base + reg_off);
th                523 drivers/thermal/samsung/exynos_tmu.c 	u32 th;
th                528 drivers/thermal/samsung/exynos_tmu.c 	th = readl(data->base + EXYNOS7_THD_TEMP_RISE7_6 + reg_off);
th                529 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off));
th                530 drivers/thermal/samsung/exynos_tmu.c 	th |= temp_to_code(data, temp) << (16 * bit_off);
th                531 drivers/thermal/samsung/exynos_tmu.c 	writel(th, data->base + EXYNOS7_THD_TEMP_RISE7_6 + reg_off);
th                538 drivers/thermal/samsung/exynos_tmu.c 	u32 th;
th                543 drivers/thermal/samsung/exynos_tmu.c 	th = readl(data->base + EXYNOS7_THD_TEMP_FALL7_6 + reg_off);
th                544 drivers/thermal/samsung/exynos_tmu.c 	th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off));
th                545 drivers/thermal/samsung/exynos_tmu.c 	th |= temp_to_code(data, temp - hyst) << (16 * bit_off);
th                546 drivers/thermal/samsung/exynos_tmu.c 	writel(th, data->base + EXYNOS7_THD_TEMP_FALL7_6 + reg_off);
th                109 drivers/thermal/st/st_thermal.c static int st_thermal_get_temp(struct thermal_zone_device *th, int *temperature)
th                111 drivers/thermal/st/st_thermal.c 	struct st_thermal_sensor *sensor = th->devdata;
th                137 drivers/thermal/st/st_thermal.c static int st_thermal_get_trip_type(struct thermal_zone_device *th,
th                140 drivers/thermal/st/st_thermal.c 	struct st_thermal_sensor *sensor = th->devdata;
th                155 drivers/thermal/st/st_thermal.c static int st_thermal_get_trip_temp(struct thermal_zone_device *th,
th                158 drivers/thermal/st/st_thermal.c 	struct st_thermal_sensor *sensor = th->devdata;
th                263 drivers/thermal/st/stm_thermal.c 					   int temp, u32 *th)
th                280 drivers/thermal/st/stm_thermal.c 	*th = clk_get_rate(sensor->clk);
th                281 drivers/thermal/st/stm_thermal.c 	if (!*th)
th                284 drivers/thermal/st/stm_thermal.c 	*th = *th / freqM;
th                286 drivers/thermal/st/stm_thermal.c 	*th *= sampling_time;
th                293 drivers/thermal/st/stm_thermal.c 	u32 value, th;
th                302 drivers/thermal/st/stm_thermal.c 	ret = stm_thermal_calculate_threshold(sensor, sensor->high_temp, &th);
th                306 drivers/thermal/st/stm_thermal.c 	value |= th & TS1_LITTHD_MASK;
th                311 drivers/thermal/st/stm_thermal.c 						      &th);
th                315 drivers/thermal/st/stm_thermal.c 		value |= (TS1_HITTHD_MASK  & (th << TS1_HITTHD_POS));
th                773 drivers/usb/storage/usb.c 	struct task_struct *th;
th                790 drivers/usb/storage/usb.c 	th = kthread_run(usb_stor_control_thread, us, "usb-storage");
th                791 drivers/usb/storage/usb.c 	if (IS_ERR(th)) {
th                794 drivers/usb/storage/usb.c 		return PTR_ERR(th);
th                796 drivers/usb/storage/usb.c 	us->ctl_thread = th;
th                570 fs/cifs/dfs_cache.c 	char *s, *th = NULL;
th                578 fs/cifs/dfs_cache.c 		th = kstrndup(s, strlen(s), GFP_KERNEL);
th                579 fs/cifs/dfs_cache.c 		if (!th)
th                586 fs/cifs/dfs_cache.c 	rc = copy_ref_data(refs, numrefs, ce, th);
th                587 fs/cifs/dfs_cache.c 	kfree(th);
th                 54 fs/reiserfs/acl.h int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th,
th                 71 fs/reiserfs/acl.h reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th,
th                143 fs/reiserfs/bitmap.c static int scan_bitmap_block(struct reiserfs_transaction_handle *th,
th                147 fs/reiserfs/bitmap.c 	struct super_block *s = th->t_super;
th                153 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                258 fs/reiserfs/bitmap.c 			journal_mark_dirty(th, bh);
th                265 fs/reiserfs/bitmap.c 			journal_mark_dirty(th, SB_BUFFER_WITH_SB(s));
th                347 fs/reiserfs/bitmap.c static int scan_bitmap(struct reiserfs_transaction_handle *th,
th                352 fs/reiserfs/bitmap.c 	struct super_block *s = th->t_super;
th                357 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                391 fs/reiserfs/bitmap.c 				    scan_bitmap_block(th, bm, &off, off_max,
th                402 fs/reiserfs/bitmap.c 		    scan_bitmap_block(th, bm, &off, off_max, min, max, unfm);
th                408 fs/reiserfs/bitmap.c 	    scan_bitmap_block(th, bm, &off, end_off + 1, min, max, unfm);
th                416 fs/reiserfs/bitmap.c static void _reiserfs_free_block(struct reiserfs_transaction_handle *th,
th                420 fs/reiserfs/bitmap.c 	struct super_block *s = th->t_super;
th                426 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                452 fs/reiserfs/bitmap.c 	journal_mark_dirty(th, bmbh);
th                459 fs/reiserfs/bitmap.c 	journal_mark_dirty(th, sbh);
th                467 fs/reiserfs/bitmap.c void reiserfs_free_block(struct reiserfs_transaction_handle *th,
th                471 fs/reiserfs/bitmap.c 	struct super_block *s = th->t_super;
th                473 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                479 fs/reiserfs/bitmap.c 		reiserfs_error(th->t_super, "bitmap-4072",
th                486 fs/reiserfs/bitmap.c 	journal_mark_freed(th, s, block);
th                487 fs/reiserfs/bitmap.c 	_reiserfs_free_block(th, inode, block, for_unformatted);
th                491 fs/reiserfs/bitmap.c static void reiserfs_free_prealloc_block(struct reiserfs_transaction_handle *th,
th                494 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                495 fs/reiserfs/bitmap.c 	RFALSE(!th->t_super,
th                497 fs/reiserfs/bitmap.c 	if (!is_reusable(th->t_super, block, 1))
th                499 fs/reiserfs/bitmap.c 	_reiserfs_free_block(th, inode, block, 1);
th                502 fs/reiserfs/bitmap.c static void __discard_prealloc(struct reiserfs_transaction_handle *th,
th                509 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                512 fs/reiserfs/bitmap.c 		reiserfs_error(th->t_super, "zam-4001",
th                526 fs/reiserfs/bitmap.c 		reiserfs_free_prealloc_block(th, inode, block_to_free);
th                530 fs/reiserfs/bitmap.c 		reiserfs_update_sd(th, inode);
th                536 fs/reiserfs/bitmap.c void reiserfs_discard_prealloc(struct reiserfs_transaction_handle *th,
th                541 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                543 fs/reiserfs/bitmap.c 		__discard_prealloc(th, ei);
th                546 fs/reiserfs/bitmap.c void reiserfs_discard_all_prealloc(struct reiserfs_transaction_handle *th)
th                548 fs/reiserfs/bitmap.c 	struct list_head *plist = &SB_JOURNAL(th->t_super)->j_prealloc_list;
th                550 fs/reiserfs/bitmap.c 	BUG_ON(!th->t_trans_id);
th                557 fs/reiserfs/bitmap.c 			reiserfs_error(th->t_super, "zam-4001",
th                562 fs/reiserfs/bitmap.c 		__discard_prealloc(th, ei);
th                784 fs/reiserfs/bitmap.c 		    if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super))
th                804 fs/reiserfs/bitmap.c 	struct super_block *sb = hint->th->t_super;
th                921 fs/reiserfs/bitmap.c 	if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super))
th                939 fs/reiserfs/bitmap.c 	else if (TEST_OPTION(displace_based_on_dirid, hint->th->t_super))
th                953 fs/reiserfs/bitmap.c 	    REISERFS_SB(hint->th->t_super)->s_alloc_options.large_file_size;
th                961 fs/reiserfs/bitmap.c 	hint->th->displace_new_blocks = 0;
th               1021 fs/reiserfs/bitmap.c 	struct super_block *s = hint->th->t_super;
th               1038 fs/reiserfs/bitmap.c 	    && hint->th->displace_new_blocks) {
th               1141 fs/reiserfs/bitmap.c 		    REISERFS_SB(hint->th->t_super)->s_alloc_options.
th               1144 fs/reiserfs/bitmap.c 			    REISERFS_SB(hint->th->t_super)->s_alloc_options.
th               1161 fs/reiserfs/bitmap.c 		nr_allocated = scan_bitmap(hint->th, &start, finish, min,
th               1182 fs/reiserfs/bitmap.c 				 &SB_JOURNAL(hint->th->t_super)->
th               1197 fs/reiserfs/bitmap.c 	struct super_block *s = hint->th->t_super;
th               1268 fs/reiserfs/bitmap.c 				reiserfs_free_block(hint->th, hint->inode,
th               1342 fs/reiserfs/bitmap.c 	struct super_block *s = hint->th->t_super;
th               1386 fs/reiserfs/bitmap.c 			reiserfs_free_block(hint->th, hint->inode,
th                 35 fs/reiserfs/file.c 	struct reiserfs_transaction_handle th;
th                 66 fs/reiserfs/file.c 	err = journal_begin(&th, inode->i_sb, 1);
th                 74 fs/reiserfs/file.c 		err = journal_join_abort(&th, inode->i_sb);
th                 97 fs/reiserfs/file.c 	reiserfs_discard_prealloc(&th, inode);
th                 99 fs/reiserfs/file.c 	err = journal_end(&th);
th                188 fs/reiserfs/file.c 	struct reiserfs_transaction_handle th;
th                191 fs/reiserfs/file.c 	th.t_trans_id = 0;
th                196 fs/reiserfs/file.c 		ret = journal_begin(&th, s, bh_per_page + 1);
th                215 fs/reiserfs/file.c 				journal_mark_dirty(&th, bh);
th                230 fs/reiserfs/file.c 		ret = journal_end(&th);
th                 36 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle th;
th                 57 fs/reiserfs/inode.c 		if (journal_begin(&th, inode->i_sb, jbegin_count))
th                 61 fs/reiserfs/inode.c 		reiserfs_discard_prealloc(&th, inode);
th                 63 fs/reiserfs/inode.c 		err = reiserfs_delete_object(&th, inode);
th                 76 fs/reiserfs/inode.c 		if (journal_end(&th))
th                252 fs/reiserfs/inode.c static int restart_transaction(struct reiserfs_transaction_handle *th,
th                255 fs/reiserfs/inode.c 	struct super_block *s = th->t_super;
th                258 fs/reiserfs/inode.c 	BUG_ON(!th->t_trans_id);
th                259 fs/reiserfs/inode.c 	BUG_ON(!th->t_refcount);
th                264 fs/reiserfs/inode.c 	if (th->t_refcount > 1) {
th                267 fs/reiserfs/inode.c 	reiserfs_update_sd(th, inode);
th                268 fs/reiserfs/inode.c 	err = journal_end(th);
th                270 fs/reiserfs/inode.c 		err = journal_begin(th, s, JOURNAL_PER_BALANCE_CNT * 6);
th                639 fs/reiserfs/inode.c static inline int _allocate_block(struct reiserfs_transaction_handle *th,
th                645 fs/reiserfs/inode.c 	BUG_ON(!th->t_trans_id);
th                649 fs/reiserfs/inode.c 		return reiserfs_new_unf_blocknrs2(th, inode, allocated_block_nr,
th                653 fs/reiserfs/inode.c 	return reiserfs_new_unf_blocknrs(th, inode, allocated_block_nr, path,
th                671 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle *th = NULL;
th                732 fs/reiserfs/inode.c 		th = reiserfs_persistent_transaction(inode->i_sb, jbegin_count);
th                733 fs/reiserfs/inode.c 		if (!th) {
th                758 fs/reiserfs/inode.c 		if (!th) {
th                764 fs/reiserfs/inode.c 		    _allocate_block(th, block, inode, &allocated_block_nr,
th                774 fs/reiserfs/inode.c 			retval = restart_transaction(th, inode, &path);
th                778 fs/reiserfs/inode.c 			    _allocate_block(th, block, inode,
th                820 fs/reiserfs/inode.c 			journal_mark_dirty(th, bh);
th                821 fs/reiserfs/inode.c 			reiserfs_update_sd(th, inode);
th                826 fs/reiserfs/inode.c 		if (!dangle && th)
th                827 fs/reiserfs/inode.c 			retval = reiserfs_end_persistent_transaction(th);
th                839 fs/reiserfs/inode.c 	if (!th) {
th                876 fs/reiserfs/inode.c 			    reiserfs_insert_item(th, &path, &tmp_key, &tmp_ih,
th                879 fs/reiserfs/inode.c 				reiserfs_free_block(th, inode,
th                918 fs/reiserfs/inode.c 				BUG_ON(!th->t_refcount);
th                919 fs/reiserfs/inode.c 				if (th->t_refcount == 1) {
th                922 fs/reiserfs/inode.c 					    (th);
th                923 fs/reiserfs/inode.c 					th = NULL;
th                944 fs/reiserfs/inode.c 						if (!th)
th                945 fs/reiserfs/inode.c 							th = reiserfs_persistent_transaction(inode->i_sb, 3);
th                946 fs/reiserfs/inode.c 						if (th)
th                947 fs/reiserfs/inode.c 							reiserfs_free_block(th,
th                957 fs/reiserfs/inode.c 			    direct2indirect(th, inode, &path, unbh,
th                961 fs/reiserfs/inode.c 				reiserfs_free_block(th, inode,
th               1077 fs/reiserfs/inode.c 			    reiserfs_paste_into_item(th, &path, &tmp_key, inode,
th               1086 fs/reiserfs/inode.c 				reiserfs_free_block(th, inode,
th               1113 fs/reiserfs/inode.c 		if (journal_transaction_should_end(th, th->t_blocks_allocated)) {
th               1114 fs/reiserfs/inode.c 			retval = restart_transaction(th, inode, &path);
th               1135 fs/reiserfs/inode.c 				reiserfs_free_block(th, inode,
th               1149 fs/reiserfs/inode.c 	if (th && (!dangle || (retval && !th->t_trans_id))) {
th               1151 fs/reiserfs/inode.c 		if (th->t_trans_id)
th               1152 fs/reiserfs/inode.c 			reiserfs_update_sd(th, inode);
th               1153 fs/reiserfs/inode.c 		err = reiserfs_end_persistent_transaction(th);
th               1447 fs/reiserfs/inode.c void reiserfs_update_sd_size(struct reiserfs_transaction_handle *th,
th               1457 fs/reiserfs/inode.c 	BUG_ON(!th->t_trans_id);
th               1508 fs/reiserfs/inode.c 	journal_mark_dirty(th, bh);
th               1777 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle th;
th               1791 fs/reiserfs/inode.c 		if (!journal_begin(&th, inode->i_sb, jbegin_count)) {
th               1792 fs/reiserfs/inode.c 			reiserfs_update_sd(&th, inode);
th               1793 fs/reiserfs/inode.c 			journal_end_sync(&th);
th               1804 fs/reiserfs/inode.c static int reiserfs_new_directory(struct reiserfs_transaction_handle *th,
th               1809 fs/reiserfs/inode.c 	struct super_block *sb = th->t_super;
th               1815 fs/reiserfs/inode.c 	BUG_ON(!th->t_trans_id);
th               1860 fs/reiserfs/inode.c 	return reiserfs_insert_item(th, path, &key, ih, inode, body);
th               1867 fs/reiserfs/inode.c static int reiserfs_new_symlink(struct reiserfs_transaction_handle *th,
th               1873 fs/reiserfs/inode.c 	struct super_block *sb = th->t_super;
th               1877 fs/reiserfs/inode.c 	BUG_ON(!th->t_trans_id);
th               1903 fs/reiserfs/inode.c 	return reiserfs_insert_item(th, path, &key, ih, inode, symname);
th               1926 fs/reiserfs/inode.c int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
th               1944 fs/reiserfs/inode.c 	BUG_ON(!th->t_trans_id);
th               1958 fs/reiserfs/inode.c 	ih.ih_key.k_objectid = cpu_to_le32(reiserfs_get_unused_objectid(th));
th               2065 fs/reiserfs/inode.c 		th->displace_new_blocks = 1;
th               2068 fs/reiserfs/inode.c 	    reiserfs_insert_item(th, &path_to_key, &key, &ih, inode,
th               2076 fs/reiserfs/inode.c 	if (!th->displace_new_blocks)
th               2082 fs/reiserfs/inode.c 		    reiserfs_new_directory(th, inode, &ih, &path_to_key, dir);
th               2090 fs/reiserfs/inode.c 		    reiserfs_new_symlink(th, inode, &ih, &path_to_key, symname,
th               2096 fs/reiserfs/inode.c 		journal_end(th);
th               2111 fs/reiserfs/inode.c 		retval = reiserfs_inherit_default_acl(th, dir, dentry, inode);
th               2116 fs/reiserfs/inode.c 			journal_end(th);
th               2127 fs/reiserfs/inode.c 		retval = reiserfs_security_write(th, inode, security);
th               2132 fs/reiserfs/inode.c 			retval = journal_end(th);
th               2139 fs/reiserfs/inode.c 	reiserfs_update_sd(th, inode);
th               2154 fs/reiserfs/inode.c 	journal_end(th);
th               2167 fs/reiserfs/inode.c 	th->t_trans_id = 0;	/* so the caller can't use this handle later */
th               2269 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle th;
th               2310 fs/reiserfs/inode.c 	error = journal_begin(&th, inode->i_sb,
th               2322 fs/reiserfs/inode.c 		add_save_link(&th, inode, 1);
th               2323 fs/reiserfs/inode.c 	err2 = reiserfs_do_truncate(&th, inode, page, update_timestamps);
th               2324 fs/reiserfs/inode.c 	error = journal_end(&th);
th               2372 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle th;
th               2393 fs/reiserfs/inode.c 	th.t_trans_id = 0;
th               2440 fs/reiserfs/inode.c 			retval = journal_begin(&th, inode->i_sb, jbegin_count);
th               2464 fs/reiserfs/inode.c 		journal_mark_dirty(&th, bh);
th               2487 fs/reiserfs/inode.c 		int err = journal_end(&th);
th               2539 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle th;
th               2542 fs/reiserfs/inode.c 	th.t_trans_id = 0;
th               2617 fs/reiserfs/inode.c 		error = journal_begin(&th, s, bh_per_page + 1);
th               2634 fs/reiserfs/inode.c 			journal_mark_dirty(&th, bh);
th               2657 fs/reiserfs/inode.c 		error = journal_end(&th);
th               2789 fs/reiserfs/inode.c 		struct reiserfs_transaction_handle *th;
th               2790 fs/reiserfs/inode.c 		th = (struct reiserfs_transaction_handle *)current->
th               2792 fs/reiserfs/inode.c 		BUG_ON(!th->t_refcount);
th               2793 fs/reiserfs/inode.c 		BUG_ON(!th->t_trans_id);
th               2794 fs/reiserfs/inode.c 		old_ref = th->t_refcount;
th               2795 fs/reiserfs/inode.c 		th->t_refcount++;
th               2799 fs/reiserfs/inode.c 		struct reiserfs_transaction_handle *th = current->journal_info;
th               2813 fs/reiserfs/inode.c 		if (th->t_refcount > old_ref) {
th               2815 fs/reiserfs/inode.c 				th->t_refcount--;
th               2819 fs/reiserfs/inode.c 				err = reiserfs_end_persistent_transaction(th);
th               2848 fs/reiserfs/inode.c 		struct reiserfs_transaction_handle *th;
th               2849 fs/reiserfs/inode.c 		th = (struct reiserfs_transaction_handle *)current->
th               2851 fs/reiserfs/inode.c 		BUG_ON(!th->t_refcount);
th               2852 fs/reiserfs/inode.c 		BUG_ON(!th->t_trans_id);
th               2853 fs/reiserfs/inode.c 		old_ref = th->t_refcount;
th               2854 fs/reiserfs/inode.c 		th->t_refcount++;
th               2859 fs/reiserfs/inode.c 		struct reiserfs_transaction_handle *th = current->journal_info;
th               2873 fs/reiserfs/inode.c 		if (th->t_refcount > old_ref) {
th               2875 fs/reiserfs/inode.c 				th->t_refcount--;
th               2879 fs/reiserfs/inode.c 				err = reiserfs_end_persistent_transaction(th);
th               2902 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle *th;
th               2911 fs/reiserfs/inode.c 		th = current->journal_info;
th               2913 fs/reiserfs/inode.c 		th = NULL;
th               2964 fs/reiserfs/inode.c 	if (th) {
th               2971 fs/reiserfs/inode.c 		ret = reiserfs_end_persistent_transaction(th);
th               2990 fs/reiserfs/inode.c 	if (th) {
th               2992 fs/reiserfs/inode.c 			reiserfs_update_sd(th, inode);
th               2993 fs/reiserfs/inode.c 		ret = reiserfs_end_persistent_transaction(th);
th               3005 fs/reiserfs/inode.c 	struct reiserfs_transaction_handle *th = NULL;
th               3013 fs/reiserfs/inode.c 		th = current->journal_info;
th               3053 fs/reiserfs/inode.c 	if (th) {
th               3056 fs/reiserfs/inode.c 		ret = reiserfs_end_persistent_transaction(th);
th               3065 fs/reiserfs/inode.c 	if (th) {
th               3067 fs/reiserfs/inode.c 			reiserfs_update_sd(th, inode);
th               3068 fs/reiserfs/inode.c 		ret = reiserfs_end_persistent_transaction(th);
th               3328 fs/reiserfs/inode.c 				struct reiserfs_transaction_handle th;
th               3330 fs/reiserfs/inode.c 				err = journal_begin(&th, inode->i_sb, 4);
th               3332 fs/reiserfs/inode.c 					reiserfs_discard_prealloc(&th, inode);
th               3333 fs/reiserfs/inode.c 					err = journal_end(&th);
th               3361 fs/reiserfs/inode.c 		struct reiserfs_transaction_handle th;
th               3378 fs/reiserfs/inode.c 		error = journal_begin(&th, inode->i_sb, jbegin_count);
th               3385 fs/reiserfs/inode.c 			journal_end(&th);
th               3399 fs/reiserfs/inode.c 		error = journal_end(&th);
th                 93 fs/reiserfs/journal.c static int journal_join(struct reiserfs_transaction_handle *th,
th                111 fs/reiserfs/journal.c static int do_journal_begin_r(struct reiserfs_transaction_handle *th,
th               1905 fs/reiserfs/journal.c static int do_journal_release(struct reiserfs_transaction_handle *th,
th               1917 fs/reiserfs/journal.c 		BUG_ON(!th->t_trans_id);
th               1918 fs/reiserfs/journal.c 		do_journal_end(th, FLUSH_ALL);
th               1969 fs/reiserfs/journal.c int journal_release(struct reiserfs_transaction_handle *th,
th               1972 fs/reiserfs/journal.c 	return do_journal_release(th, sb, 0);
th               1976 fs/reiserfs/journal.c int journal_release_error(struct reiserfs_transaction_handle *th,
th               1979 fs/reiserfs/journal.c 	return do_journal_release(th, sb, 1);
th               2904 fs/reiserfs/journal.c int journal_transaction_should_end(struct reiserfs_transaction_handle *th,
th               2907 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(th->t_super);
th               2910 fs/reiserfs/journal.c 	BUG_ON(!th->t_trans_id);
th               2911 fs/reiserfs/journal.c 	if (th->t_refcount > 1)
th               2922 fs/reiserfs/journal.c 	th->t_blocks_allocated += new_alloc ;
th               2927 fs/reiserfs/journal.c void reiserfs_block_writes(struct reiserfs_transaction_handle *th)
th               2929 fs/reiserfs/journal.c 	struct reiserfs_journal *journal = SB_JOURNAL(th->t_super);
th               2930 fs/reiserfs/journal.c 	BUG_ON(!th->t_trans_id);
th               3013 fs/reiserfs/journal.c static int do_journal_begin_r(struct reiserfs_transaction_handle *th,
th               3030 fs/reiserfs/journal.c 	th->t_refcount = 1;
th               3031 fs/reiserfs/journal.c 	th->t_super = sb;
th               3117 fs/reiserfs/journal.c 	th->t_blocks_logged = 0;
th               3118 fs/reiserfs/journal.c 	th->t_blocks_allocated = nblocks;
th               3119 fs/reiserfs/journal.c 	th->t_trans_id = journal->j_trans_id;
th               3121 fs/reiserfs/journal.c 	INIT_LIST_HEAD(&th->t_list);
th               3125 fs/reiserfs/journal.c 	memset(th, 0, sizeof(*th));
th               3131 fs/reiserfs/journal.c 	th->t_super = sb;
th               3141 fs/reiserfs/journal.c 	struct reiserfs_transaction_handle *th;
th               3148 fs/reiserfs/journal.c 		th = current->journal_info;
th               3149 fs/reiserfs/journal.c 		th->t_refcount++;
th               3150 fs/reiserfs/journal.c 		BUG_ON(th->t_refcount < 2);
th               3152 fs/reiserfs/journal.c 		return th;
th               3154 fs/reiserfs/journal.c 	th = kmalloc(sizeof(struct reiserfs_transaction_handle), GFP_NOFS);
th               3155 fs/reiserfs/journal.c 	if (!th)
th               3157 fs/reiserfs/journal.c 	ret = journal_begin(th, s, nblocks);
th               3159 fs/reiserfs/journal.c 		kfree(th);
th               3164 fs/reiserfs/journal.c 	return th;
th               3167 fs/reiserfs/journal.c int reiserfs_end_persistent_transaction(struct reiserfs_transaction_handle *th)
th               3169 fs/reiserfs/journal.c 	struct super_block *s = th->t_super;
th               3171 fs/reiserfs/journal.c 	if (th->t_trans_id)
th               3172 fs/reiserfs/journal.c 		ret = journal_end(th);
th               3175 fs/reiserfs/journal.c 	if (th->t_refcount == 0) {
th               3177 fs/reiserfs/journal.c 		kfree(th);
th               3182 fs/reiserfs/journal.c static int journal_join(struct reiserfs_transaction_handle *th,
th               3191 fs/reiserfs/journal.c 	th->t_handle_save = cur_th;
th               3193 fs/reiserfs/journal.c 	return do_journal_begin_r(th, sb, 1, JBEGIN_JOIN);
th               3196 fs/reiserfs/journal.c int journal_join_abort(struct reiserfs_transaction_handle *th,
th               3205 fs/reiserfs/journal.c 	th->t_handle_save = cur_th;
th               3207 fs/reiserfs/journal.c 	return do_journal_begin_r(th, sb, 1, JBEGIN_ABORT);
th               3210 fs/reiserfs/journal.c int journal_begin(struct reiserfs_transaction_handle *th,
th               3216 fs/reiserfs/journal.c 	th->t_handle_save = NULL;
th               3222 fs/reiserfs/journal.c 			memcpy(th, cur_th, sizeof(*th));
th               3223 fs/reiserfs/journal.c 			if (th->t_refcount <= 1)
th               3236 fs/reiserfs/journal.c 			th->t_handle_save = current->journal_info;
th               3237 fs/reiserfs/journal.c 			current->journal_info = th;
th               3240 fs/reiserfs/journal.c 		current->journal_info = th;
th               3242 fs/reiserfs/journal.c 	ret = do_journal_begin_r(th, sb, nblocks, JBEGIN_REG);
th               3243 fs/reiserfs/journal.c 	BUG_ON(current->journal_info != th);
th               3250 fs/reiserfs/journal.c 		current->journal_info = th->t_handle_save;
th               3252 fs/reiserfs/journal.c 		BUG_ON(!th->t_refcount);
th               3267 fs/reiserfs/journal.c int journal_mark_dirty(struct reiserfs_transaction_handle *th,
th               3270 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
th               3275 fs/reiserfs/journal.c 	BUG_ON(!th->t_trans_id);
th               3278 fs/reiserfs/journal.c 	if (th->t_trans_id != journal->j_trans_id) {
th               3279 fs/reiserfs/journal.c 		reiserfs_panic(th->t_super, "journal-1577",
th               3281 fs/reiserfs/journal.c 			       th->t_trans_id, journal->j_trans_id);
th               3320 fs/reiserfs/journal.c 		reiserfs_panic(th->t_super, "journal-1413",
th               3344 fs/reiserfs/journal.c 		if (th->t_blocks_logged == th->t_blocks_allocated) {
th               3345 fs/reiserfs/journal.c 			th->t_blocks_allocated += JOURNAL_PER_BALANCE_CNT;
th               3348 fs/reiserfs/journal.c 		th->t_blocks_logged++;
th               3374 fs/reiserfs/journal.c int journal_end(struct reiserfs_transaction_handle *th)
th               3376 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
th               3377 fs/reiserfs/journal.c 	if (!current->journal_info && th->t_refcount > 1)
th               3379 fs/reiserfs/journal.c 				 "th NULL, refcount %d", th->t_refcount);
th               3381 fs/reiserfs/journal.c 	if (!th->t_trans_id) {
th               3386 fs/reiserfs/journal.c 	th->t_refcount--;
th               3387 fs/reiserfs/journal.c 	if (th->t_refcount > 0) {
th               3395 fs/reiserfs/journal.c 		BUG_ON(cur_th->t_super != th->t_super);
th               3397 fs/reiserfs/journal.c 		if (th != cur_th) {
th               3398 fs/reiserfs/journal.c 			memcpy(current->journal_info, th, sizeof(*th));
th               3399 fs/reiserfs/journal.c 			th->t_trans_id = 0;
th               3403 fs/reiserfs/journal.c 		return do_journal_end(th, 0);
th               3511 fs/reiserfs/journal.c int journal_end_sync(struct reiserfs_transaction_handle *th)
th               3513 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
th               3516 fs/reiserfs/journal.c 	BUG_ON(!th->t_trans_id);
th               3518 fs/reiserfs/journal.c 	BUG_ON(th->t_refcount > 1);
th               3522 fs/reiserfs/journal.c 		journal_mark_dirty(th, SB_BUFFER_WITH_SB(sb));
th               3524 fs/reiserfs/journal.c 	return do_journal_end(th, COMMIT_NOW | WAIT);
th               3553 fs/reiserfs/journal.c 	struct reiserfs_transaction_handle th;
th               3572 fs/reiserfs/journal.c 		if (!journal_join(&th, sb)) {
th               3576 fs/reiserfs/journal.c 			journal_mark_dirty(&th, SB_BUFFER_WITH_SB(sb));
th               3583 fs/reiserfs/journal.c 			do_journal_end(&th, COMMIT_NOW | WAIT);
th               3603 fs/reiserfs/journal.c static int check_journal_end(struct reiserfs_transaction_handle *th, int flags)
th               3611 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
th               3614 fs/reiserfs/journal.c 	BUG_ON(!th->t_trans_id);
th               3616 fs/reiserfs/journal.c 	if (th->t_trans_id != journal->j_trans_id) {
th               3617 fs/reiserfs/journal.c 		reiserfs_panic(th->t_super, "journal-1577",
th               3619 fs/reiserfs/journal.c 			       th->t_trans_id, journal->j_trans_id);
th               3622 fs/reiserfs/journal.c 	journal->j_len_alloc -= (th->t_blocks_allocated - th->t_blocks_logged);
th               3728 fs/reiserfs/journal.c int journal_mark_freed(struct reiserfs_transaction_handle *th,
th               3736 fs/reiserfs/journal.c 	BUG_ON(!th->t_trans_id);
th               3833 fs/reiserfs/journal.c 	struct reiserfs_transaction_handle th;
th               3853 fs/reiserfs/journal.c 		ret = journal_begin(&th, sb, 1);
th               3861 fs/reiserfs/journal.c 			journal_mark_dirty(&th, SB_BUFFER_WITH_SB(sb));
th               3862 fs/reiserfs/journal.c 			ret = journal_end(&th);
th               3866 fs/reiserfs/journal.c 		ret = journal_end_sync(&th);
th               3972 fs/reiserfs/journal.c static int do_journal_end(struct reiserfs_transaction_handle *th, int flags)
th               3974 fs/reiserfs/journal.c 	struct super_block *sb = th->t_super;
th               3993 fs/reiserfs/journal.c 	BUG_ON(th->t_refcount > 1);
th               3994 fs/reiserfs/journal.c 	BUG_ON(!th->t_trans_id);
th               3995 fs/reiserfs/journal.c 	BUG_ON(!th->t_super);
th               4001 fs/reiserfs/journal.c 	if (th->t_trans_id == ~0U)
th               4006 fs/reiserfs/journal.c 	current->journal_info = th->t_handle_save;
th               4011 fs/reiserfs/journal.c 		journal_mark_dirty(th, SB_BUFFER_WITH_SB(sb));
th               4029 fs/reiserfs/journal.c 	if (!check_journal_end(th, flags)) {
th               4053 fs/reiserfs/journal.c 	current->journal_info = th;
th               4054 fs/reiserfs/journal.c 	th->t_refcount++;
th               4057 fs/reiserfs/journal.c 	reiserfs_discard_all_prealloc(th);
th               4059 fs/reiserfs/journal.c 	th->t_refcount--;
th               4060 fs/reiserfs/journal.c 	current->journal_info = th->t_handle_save;
th               4366 fs/reiserfs/journal.c 	memset(th, 0, sizeof(*th));
th               4372 fs/reiserfs/journal.c 	th->t_super = sb;
th                432 fs/reiserfs/namei.c static int reiserfs_add_entry(struct reiserfs_transaction_handle *th,
th                453 fs/reiserfs/namei.c 	BUG_ON(!th->t_trans_id);
th                547 fs/reiserfs/namei.c 	PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number);
th                566 fs/reiserfs/namei.c 	    reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer,
th                579 fs/reiserfs/namei.c 		reiserfs_update_sd(th, dir);
th                635 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th                660 fs/reiserfs/namei.c 	retval = journal_begin(&th, dir->i_sb, jbegin_count);
th                667 fs/reiserfs/namei.c 	    reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry,
th                677 fs/reiserfs/namei.c 	    reiserfs_add_entry(&th, dir, dentry->d_name.name,
th                682 fs/reiserfs/namei.c 		reiserfs_update_sd(&th, inode);
th                683 fs/reiserfs/namei.c 		err = journal_end(&th);
th                694 fs/reiserfs/namei.c 	retval = journal_end(&th);
th                706 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th                739 fs/reiserfs/namei.c 	retval = journal_begin(&th, dir->i_sb, jbegin_count);
th                746 fs/reiserfs/namei.c 	    reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry,
th                756 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, inode);
th                762 fs/reiserfs/namei.c 	    reiserfs_add_entry(&th, dir, dentry->d_name.name,
th                767 fs/reiserfs/namei.c 		reiserfs_update_sd(&th, inode);
th                768 fs/reiserfs/namei.c 		err = journal_end(&th);
th                777 fs/reiserfs/namei.c 	retval = journal_end(&th);
th                788 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th                829 fs/reiserfs/namei.c 	retval = journal_begin(&th, dir->i_sb, jbegin_count);
th                841 fs/reiserfs/namei.c 	    retval = reiserfs_new_inode(&th, dir, mode, NULL /*symlink */ ,
th                858 fs/reiserfs/namei.c 	    reiserfs_add_entry(&th, dir, dentry->d_name.name,
th                864 fs/reiserfs/namei.c 		reiserfs_update_sd(&th, inode);
th                865 fs/reiserfs/namei.c 		err = journal_end(&th);
th                873 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, dir);
th                876 fs/reiserfs/namei.c 	retval = journal_end(&th);
th                901 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th                921 fs/reiserfs/namei.c 	retval = journal_begin(&th, dir->i_sb, jbegin_count);
th                954 fs/reiserfs/namei.c 	retval = reiserfs_cut_from_item(&th, &path, &de.de_entry_key,
th                967 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, inode);
th                971 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, dir);
th                974 fs/reiserfs/namei.c 	add_save_link(&th, inode, 0 /* not truncate */ );
th                976 fs/reiserfs/namei.c 	retval = journal_end(&th);
th                989 fs/reiserfs/namei.c 	err = journal_end(&th);
th               1000 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th               1022 fs/reiserfs/namei.c 	retval = journal_begin(&th, dir->i_sb, jbegin_count);
th               1064 fs/reiserfs/namei.c 	    reiserfs_cut_from_item(&th, &path, &de.de_entry_key, dir, NULL,
th               1071 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, inode);
th               1075 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, dir);
th               1079 fs/reiserfs/namei.c 		add_save_link(&th, inode, 0 /* not truncate */ );
th               1081 fs/reiserfs/namei.c 	retval = journal_end(&th);
th               1088 fs/reiserfs/namei.c 	err = journal_end(&th);
th               1104 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th               1154 fs/reiserfs/namei.c 	retval = journal_begin(&th, parent_dir->i_sb, jbegin_count);
th               1162 fs/reiserfs/namei.c 	    reiserfs_new_inode(&th, parent_dir, mode, name, strlen(symname),
th               1176 fs/reiserfs/namei.c 	retval = reiserfs_add_entry(&th, parent_dir, dentry->d_name.name,
th               1181 fs/reiserfs/namei.c 		reiserfs_update_sd(&th, inode);
th               1182 fs/reiserfs/namei.c 		err = journal_end(&th);
th               1191 fs/reiserfs/namei.c 	retval = journal_end(&th);
th               1202 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th               1225 fs/reiserfs/namei.c 	retval = journal_begin(&th, dir->i_sb, jbegin_count);
th               1234 fs/reiserfs/namei.c 	    reiserfs_add_entry(&th, dir, dentry->d_name.name,
th               1243 fs/reiserfs/namei.c 		err = journal_end(&th);
th               1249 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, inode);
th               1253 fs/reiserfs/namei.c 	retval = journal_end(&th);
th               1318 fs/reiserfs/namei.c 	struct reiserfs_transaction_handle th;
th               1407 fs/reiserfs/namei.c 	retval = journal_begin(&th, old_dir->i_sb, jbegin_count);
th               1415 fs/reiserfs/namei.c 	    reiserfs_add_entry(&th, new_dir, new_dentry->d_name.name,
th               1423 fs/reiserfs/namei.c 		int err = journal_end(&th);
th               1450 fs/reiserfs/namei.c 			journal_end(&th);
th               1474 fs/reiserfs/namei.c 			journal_end(&th);
th               1492 fs/reiserfs/namei.c 				journal_end(&th);
th               1569 fs/reiserfs/namei.c 	journal_mark_dirty(&th, new_de.de_bh);
th               1572 fs/reiserfs/namei.c 	journal_mark_dirty(&th, old_de.de_bh);
th               1596 fs/reiserfs/namei.c 		journal_mark_dirty(&th, dot_dot_de.de_bh);
th               1621 fs/reiserfs/namei.c 	    (&th, &old_entry_path, &old_de.de_entry_key, old_dir, NULL,
th               1628 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, old_dir);
th               1629 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, new_dir);
th               1630 fs/reiserfs/namei.c 	reiserfs_update_sd(&th, old_inode);
th               1634 fs/reiserfs/namei.c 			add_save_link(&th, new_dentry_inode,
th               1636 fs/reiserfs/namei.c 		reiserfs_update_sd(&th, new_dentry_inode);
th               1639 fs/reiserfs/namei.c 	retval = journal_end(&th);
th                 49 fs/reiserfs/objectid.c __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th)
th                 51 fs/reiserfs/objectid.c 	struct super_block *s = th->t_super;
th                 56 fs/reiserfs/objectid.c 	BUG_ON(!th->t_trans_id);
th                 92 fs/reiserfs/objectid.c 	journal_mark_dirty(th, SB_BUFFER_WITH_SB(s));
th                 97 fs/reiserfs/objectid.c void reiserfs_release_objectid(struct reiserfs_transaction_handle *th,
th                100 fs/reiserfs/objectid.c 	struct super_block *s = th->t_super;
th                105 fs/reiserfs/objectid.c 	BUG_ON(!th->t_trans_id);
th                110 fs/reiserfs/objectid.c 	journal_mark_dirty(th, SB_BUFFER_WITH_SB(s));
th               2899 fs/reiserfs/reiserfs.h 	struct reiserfs_transaction_handle *th = current->journal_info;
th               2900 fs/reiserfs/reiserfs.h 	if (th && th->t_super == s)
th               2902 fs/reiserfs/reiserfs.h 	if (th && th->t_super == NULL)
th               2907 fs/reiserfs/reiserfs.h static inline int reiserfs_transaction_free_space(struct reiserfs_transaction_handle *th)
th               2909 fs/reiserfs/reiserfs.h 	return th->t_blocks_allocated - th->t_blocks_logged;
th               2925 fs/reiserfs/reiserfs.h void reiserfs_block_writes(struct reiserfs_transaction_handle *th);
th               2955 fs/reiserfs/reiserfs.h void add_save_link(struct reiserfs_transaction_handle *th,
th               2960 fs/reiserfs/reiserfs.h __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th);
th               2961 fs/reiserfs/reiserfs.h void reiserfs_release_objectid(struct reiserfs_transaction_handle *th,
th               3016 fs/reiserfs/reiserfs.h int reiserfs_insert_item(struct reiserfs_transaction_handle *th,
th               3022 fs/reiserfs/reiserfs.h int reiserfs_paste_into_item(struct reiserfs_transaction_handle *th,
th               3028 fs/reiserfs/reiserfs.h int reiserfs_cut_from_item(struct reiserfs_transaction_handle *th,
th               3034 fs/reiserfs/reiserfs.h int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
th               3039 fs/reiserfs/reiserfs.h void reiserfs_delete_solid_item(struct reiserfs_transaction_handle *th,
th               3041 fs/reiserfs/reiserfs.h int reiserfs_delete_object(struct reiserfs_transaction_handle *th,
th               3043 fs/reiserfs/reiserfs.h int reiserfs_do_truncate(struct reiserfs_transaction_handle *th,
th               3089 fs/reiserfs/reiserfs.h int reiserfs_new_inode(struct reiserfs_transaction_handle *th,
th               3095 fs/reiserfs/reiserfs.h void reiserfs_update_sd_size(struct reiserfs_transaction_handle *th,
th               3098 fs/reiserfs/reiserfs.h static inline void reiserfs_update_sd(struct reiserfs_transaction_handle *th,
th               3101 fs/reiserfs/reiserfs.h 	reiserfs_update_sd_size(th, inode, inode->i_size);
th               3283 fs/reiserfs/reiserfs.h 	struct reiserfs_transaction_handle *th;
th               3326 fs/reiserfs/reiserfs.h void reiserfs_free_block(struct reiserfs_transaction_handle *th, struct inode *,
th               3335 fs/reiserfs/reiserfs.h 		.th = tb->transaction_handle,
th               3347 fs/reiserfs/reiserfs.h 					    *th, struct inode *inode,
th               3353 fs/reiserfs/reiserfs.h 		.th = th,
th               3365 fs/reiserfs/reiserfs.h 					     *th, struct inode *inode,
th               3371 fs/reiserfs/reiserfs.h 		.th = th,
th               3381 fs/reiserfs/reiserfs.h void reiserfs_discard_prealloc(struct reiserfs_transaction_handle *th,
th               3383 fs/reiserfs/reiserfs.h void reiserfs_discard_all_prealloc(struct reiserfs_transaction_handle *th);
th                 27 fs/reiserfs/resize.c 	struct reiserfs_transaction_handle th;
th                178 fs/reiserfs/resize.c 	err = journal_begin(&th, s, 10);
th                186 fs/reiserfs/resize.c 		int jerr = journal_end(&th);
th                197 fs/reiserfs/resize.c 	journal_mark_dirty(&th, bh);
th                204 fs/reiserfs/resize.c 		int jerr = journal_end(&th);
th                213 fs/reiserfs/resize.c 	journal_mark_dirty(&th, bh);
th                226 fs/reiserfs/resize.c 	journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
th                229 fs/reiserfs/resize.c 	return journal_end(&th);
th               1013 fs/reiserfs/stree.c static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th,
th               1032 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1091 fs/reiserfs/stree.c 			reiserfs_transaction_free_space(th) < JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD)
th               1100 fs/reiserfs/stree.c 			journal_mark_dirty(th, bh);
th               1101 fs/reiserfs/stree.c 			reiserfs_free_block(th, inode, block, 1);
th               1169 fs/reiserfs/stree.c static void init_tb_struct(struct reiserfs_transaction_handle *th,
th               1175 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1178 fs/reiserfs/stree.c 	tb->transaction_handle = th;
th               1230 fs/reiserfs/stree.c int reiserfs_delete_item(struct reiserfs_transaction_handle *th,
th               1247 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1249 fs/reiserfs/stree.c 	init_tb_struct(th, &s_del_balance, sb, path,
th               1259 fs/reiserfs/stree.c 		    prepare_for_delete_or_cut(th, inode, path,
th               1383 fs/reiserfs/stree.c void reiserfs_delete_solid_item(struct reiserfs_transaction_handle *th,
th               1386 fs/reiserfs/stree.c 	struct super_block *sb = th->t_super;
th               1395 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1400 fs/reiserfs/stree.c 		retval = search_item(th->t_super, &cpu_key, &path);
th               1402 fs/reiserfs/stree.c 			reiserfs_error(th->t_super, "vs-5350",
th               1422 fs/reiserfs/stree.c 				reiserfs_warning(th->t_super, "vs-5355",
th               1429 fs/reiserfs/stree.c 			init_tb_struct(th, &tb, th->t_super, &path,
th               1436 fs/reiserfs/stree.c 			PROC_INFO_INC(th->t_super, delete_solid_item_restarted);
th               1449 fs/reiserfs/stree.c 				reiserfs_debug(th->t_super, REISERFS_DEBUG_CODE,
th               1463 fs/reiserfs/stree.c 		reiserfs_warning(th->t_super, "vs-5360",
th               1473 fs/reiserfs/stree.c int reiserfs_delete_object(struct reiserfs_transaction_handle *th,
th               1478 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1482 fs/reiserfs/stree.c 	    reiserfs_do_truncate(th, inode, NULL, 0 /*no timestamp updates */ );
th               1487 fs/reiserfs/stree.c 	if (!old_format_only(th->t_super)) {
th               1491 fs/reiserfs/stree.c 		    &REISERFS_SB(th->t_super)->s_rs->s_inode_generation;
th               1496 fs/reiserfs/stree.c 	reiserfs_delete_solid_item(th, inode, INODE_PKEY(inode));
th               1536 fs/reiserfs/stree.c static int maybe_indirect_to_direct(struct reiserfs_transaction_handle *th,
th               1546 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1566 fs/reiserfs/stree.c 	return indirect2direct(th, inode, page, path, item_key,
th               1576 fs/reiserfs/stree.c static void indirect_to_direct_roll_back(struct reiserfs_transaction_handle *th,
th               1582 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1601 fs/reiserfs/stree.c 		    reiserfs_delete_item(th, path, &tail_key, inode,
th               1618 fs/reiserfs/stree.c int reiserfs_cut_from_item(struct reiserfs_transaction_handle *th,
th               1643 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1645 fs/reiserfs/stree.c 	init_tb_struct(th, &s_cut_balance, inode->i_sb, path,
th               1661 fs/reiserfs/stree.c 		    prepare_for_delete_or_cut(th, inode, path,
th               1673 fs/reiserfs/stree.c 			    maybe_indirect_to_direct(th, inode, page,
th               1745 fs/reiserfs/stree.c 			indirect_to_direct_roll_back(th, inode, path);
th               1839 fs/reiserfs/stree.c static void truncate_directory(struct reiserfs_transaction_handle *th,
th               1842 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1848 fs/reiserfs/stree.c 	reiserfs_delete_solid_item(th, inode, INODE_PKEY(inode));
th               1849 fs/reiserfs/stree.c 	reiserfs_update_sd(th, inode);
th               1858 fs/reiserfs/stree.c int reiserfs_do_truncate(struct reiserfs_transaction_handle *th,
th               1879 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               1887 fs/reiserfs/stree.c 		truncate_directory(th, inode);
th               1952 fs/reiserfs/stree.c 		    reiserfs_cut_from_item(th, &s_search_path, &s_item_key,
th               1982 fs/reiserfs/stree.c 		if (journal_transaction_should_end(th, 0) ||
th               1983 fs/reiserfs/stree.c 		    reiserfs_transaction_free_space(th) <= JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD) {
th               1990 fs/reiserfs/stree.c 			reiserfs_update_sd(th, inode);
th               1992 fs/reiserfs/stree.c 			err = journal_end(th);
th               1995 fs/reiserfs/stree.c 			err = journal_begin(th, inode->i_sb,
th               2015 fs/reiserfs/stree.c 	reiserfs_update_sd(th, inode);
th               2061 fs/reiserfs/stree.c int reiserfs_paste_into_item(struct reiserfs_transaction_handle *th,
th               2079 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               2097 fs/reiserfs/stree.c 	init_tb_struct(th, &s_paste_balance, th->t_super, search_path,
th               2113 fs/reiserfs/stree.c 		PROC_INFO_INC(th->t_super, paste_into_item_restarted);
th               2115 fs/reiserfs/stree.c 		    search_for_position_by_key(th->t_super, key,
th               2164 fs/reiserfs/stree.c int reiserfs_insert_item(struct reiserfs_transaction_handle *th,
th               2174 fs/reiserfs/stree.c 	BUG_ON(!th->t_trans_id);
th               2205 fs/reiserfs/stree.c 	init_tb_struct(th, &s_ins_balance, th->t_super, path,
th               2223 fs/reiserfs/stree.c 		PROC_INFO_INC(th->t_super, insert_item_restarted);
th               2224 fs/reiserfs/stree.c 		retval = search_item(th->t_super, key, path);
th               2230 fs/reiserfs/stree.c 			reiserfs_warning(th->t_super, "PAP-5760",
th               2250 fs/reiserfs/stree.c 		reiserfs_debug(th->t_super, REISERFS_DEBUG_CODE,
th                 69 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th                 77 fs/reiserfs/super.c 	if (!journal_begin(&th, s, 1))
th                 78 fs/reiserfs/super.c 		if (!journal_end_sync(&th))
th                149 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th                155 fs/reiserfs/super.c 		int err = journal_begin(&th, s, 1);
th                157 fs/reiserfs/super.c 			reiserfs_block_writes(&th);
th                161 fs/reiserfs/super.c 			journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
th                162 fs/reiserfs/super.c 			reiserfs_block_writes(&th);
th                163 fs/reiserfs/super.c 			journal_end_sync(&th);
th                196 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th                200 fs/reiserfs/super.c 	err = journal_begin(&th, s, JOURNAL_PER_BALANCE_CNT);
th                204 fs/reiserfs/super.c 	reiserfs_delete_solid_item(&th, NULL, key);
th                207 fs/reiserfs/super.c 		reiserfs_release_objectid(&th, le32_to_cpu(key->k_objectid));
th                209 fs/reiserfs/super.c 	return journal_end(&th);
th                429 fs/reiserfs/super.c void add_save_link(struct reiserfs_transaction_handle *th,
th                438 fs/reiserfs/super.c 	BUG_ON(!th->t_trans_id);
th                495 fs/reiserfs/super.c 	    reiserfs_insert_item(th, &path, &key, &ih, NULL, (char *)&link);
th                512 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th                517 fs/reiserfs/super.c 	err = journal_begin(&th, inode->i_sb, JOURNAL_PER_BALANCE_CNT);
th                540 fs/reiserfs/super.c 		reiserfs_delete_solid_item(&th, NULL, &key);
th                542 fs/reiserfs/super.c 		reiserfs_release_objectid(&th, inode->i_ino);
th                547 fs/reiserfs/super.c 	return journal_end(&th);
th                591 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th                592 fs/reiserfs/super.c 	th.t_trans_id = 0;
th                603 fs/reiserfs/super.c 		if (!journal_begin(&th, s, 10)) {
th                608 fs/reiserfs/super.c 			journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
th                616 fs/reiserfs/super.c 	journal_release(&th, s);
th                694 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th                710 fs/reiserfs/super.c 	err = journal_begin(&th, inode->i_sb, 1);
th                714 fs/reiserfs/super.c 	reiserfs_update_sd(&th, inode);
th                715 fs/reiserfs/super.c 	journal_end(&th);
th               1434 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th               1539 fs/reiserfs/super.c 		err = journal_begin(&th, s, 10);
th               1546 fs/reiserfs/super.c 		journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
th               1566 fs/reiserfs/super.c 		err = journal_begin(&th, s, 10);
th               1578 fs/reiserfs/super.c 		journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
th               1583 fs/reiserfs/super.c 	err = journal_end(&th);
th               1899 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th               2106 fs/reiserfs/super.c 		errval = journal_begin(&th, s, 1);
th               2167 fs/reiserfs/super.c 		journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s));
th               2168 fs/reiserfs/super.c 		errval = journal_end(&th);
th               2272 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th               2278 fs/reiserfs/super.c 	    journal_begin(&th, dquot->dq_sb,
th               2285 fs/reiserfs/super.c 	err = journal_end(&th);
th               2295 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th               2301 fs/reiserfs/super.c 	    journal_begin(&th, dquot->dq_sb,
th               2308 fs/reiserfs/super.c 	err = journal_end(&th);
th               2318 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th               2323 fs/reiserfs/super.c 	    journal_begin(&th, dquot->dq_sb,
th               2333 fs/reiserfs/super.c 	err = journal_end(&th);
th               2354 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th               2360 fs/reiserfs/super.c 	ret = journal_begin(&th, sb, 2);
th               2366 fs/reiserfs/super.c 	err = journal_end(&th);
th               2391 fs/reiserfs/super.c 	struct reiserfs_transaction_handle th;
th               2436 fs/reiserfs/super.c 		err = journal_begin(&th, sb, 1);
th               2439 fs/reiserfs/super.c 		err = journal_end_sync(&th);
th                 25 fs/reiserfs/tail_conversion.c int direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode,
th                 48 fs/reiserfs/tail_conversion.c 	BUG_ON(!th->t_trans_id);
th                 84 fs/reiserfs/tail_conversion.c 		    reiserfs_insert_item(th, path, &end_key, &ind_ih, inode,
th                 88 fs/reiserfs/tail_conversion.c 		retval = reiserfs_paste_into_item(th, path, &end_key, inode,
th                139 fs/reiserfs/tail_conversion.c 		retval = reiserfs_delete_item(th, path, &end_key, inode,
th                202 fs/reiserfs/tail_conversion.c int indirect2direct(struct reiserfs_transaction_handle *th,
th                219 fs/reiserfs/tail_conversion.c 	BUG_ON(!th->t_trans_id);
th                283 fs/reiserfs/tail_conversion.c 	if (reiserfs_insert_item(th, path, &key, &s_ih, inode,
th                299 fs/reiserfs/tail_conversion.c 	reiserfs_update_sd(th, inode);
th                301 fs/reiserfs/xattr.c 		struct reiserfs_transaction_handle th;
th                304 fs/reiserfs/xattr.c 		err = journal_begin(&th, inode->i_sb, blocks);
th                313 fs/reiserfs/xattr.c 			jerror = journal_end(&th);
th                519 fs/reiserfs/xattr.c reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th,
th                622 fs/reiserfs/xattr.c 	struct reiserfs_transaction_handle th;
th                634 fs/reiserfs/xattr.c 	error = journal_begin(&th, inode->i_sb, jbegin_count);
th                640 fs/reiserfs/xattr.c 	error = reiserfs_xattr_set_handle(&th, inode, name,
th                644 fs/reiserfs/xattr.c 	error2 = journal_end(&th);
th                 38 fs/reiserfs/xattr.h int reiserfs_security_write(struct reiserfs_transaction_handle *th,
th                108 fs/reiserfs/xattr.h reiserfs_security_write(struct reiserfs_transaction_handle *th,
th                 15 fs/reiserfs/xattr_acl.c static int __reiserfs_set_acl(struct reiserfs_transaction_handle *th,
th                 24 fs/reiserfs/xattr_acl.c 	struct reiserfs_transaction_handle th;
th                 39 fs/reiserfs/xattr_acl.c 	error = journal_begin(&th, inode->i_sb, jcreate_blocks);
th                 48 fs/reiserfs/xattr_acl.c 		error = __reiserfs_set_acl(&th, inode, type, acl);
th                 53 fs/reiserfs/xattr_acl.c 		error2 = journal_end(&th);
th                244 fs/reiserfs/xattr_acl.c __reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode,
th                271 fs/reiserfs/xattr_acl.c 	error = reiserfs_xattr_set_handle(th, inode, name, value, size, 0);
th                300 fs/reiserfs/xattr_acl.c reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th,
th                331 fs/reiserfs/xattr_acl.c 		err = __reiserfs_set_acl(th, inode, ACL_TYPE_DEFAULT,
th                337 fs/reiserfs/xattr_acl.c 			err = __reiserfs_set_acl(th, inode, ACL_TYPE_ACCESS,
th                 79 fs/reiserfs/xattr_security.c int reiserfs_security_write(struct reiserfs_transaction_handle *th,
th                 87 fs/reiserfs/xattr_security.c 	error = reiserfs_xattr_set_handle(th, inode, sec->name, sec->value,
th                 52 include/linux/netfilter_ipv6.h 				    const struct tcphdr *th, u16 *mssp);
th                 54 include/linux/netfilter_ipv6.h 			       const struct tcphdr *th, __u32 cookie);
th                183 include/linux/netfilter_ipv6.h 					       const struct tcphdr *th,
th                191 include/linux/netfilter_ipv6.h 		return v6_ops->cookie_init_sequence(iph, th, mssp);
th                193 include/linux/netfilter_ipv6.h 	return __cookie_v6_init_sequence(iph, th, mssp);
th                200 include/linux/netfilter_ipv6.h 				     const struct tcphdr *th, __u32 cookie)
th                207 include/linux/netfilter_ipv6.h 		return v6_ops->cookie_v6_check(iph, th, cookie);
th                209 include/linux/netfilter_ipv6.h 	return __cookie_v6_check(iph, th, cookie);
th                 29 include/linux/tcp.h static inline unsigned int __tcp_hdrlen(const struct tcphdr *th)
th                 31 include/linux/tcp.h 	return th->doff * 4;
th                 71 include/net/arp.h 	      const unsigned char *src_hw, const unsigned char *th);
th                 66 include/net/ip6_checksum.h 	struct tcphdr *th = tcp_hdr(skb);
th                 69 include/net/ip6_checksum.h 		th->check = ~tcp_v6_check(skb->len, saddr, daddr, 0);
th                 73 include/net/ip6_checksum.h 		th->check = tcp_v6_check(skb->len, saddr, daddr,
th                 74 include/net/ip6_checksum.h 					 csum_partial(th, th->doff << 2,
th                 46 include/net/netfilter/nf_synproxy.h 			    const struct tcphdr *th,
th                 53 include/net/netfilter/nf_synproxy.h 				 const struct tcphdr *th,
th                 58 include/net/netfilter/nf_synproxy.h 			      const struct tcphdr *th,
th                 71 include/net/netfilter/nf_synproxy.h 				      const struct tcphdr *th,
th                 75 include/net/netfilter/nf_synproxy.h 				   const struct tcphdr *th,
th                376 include/net/tcp.h 					      const struct tcphdr *th);
th                415 include/net/tcp.h const u8 *tcp_parse_md5sig_option(const struct tcphdr *th);
th                421 include/net/tcp.h 			 struct tcphdr *th, u32 *cookie);
th                423 include/net/tcp.h 			 struct tcphdr *th, u32 *cookie);
th                426 include/net/tcp.h 			  struct sock *sk, struct tcphdr *th);
th                466 include/net/tcp.h int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
th                548 include/net/tcp.h u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
th                558 include/net/tcp.h int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th,
th                563 include/net/tcp.h 			      const struct tcphdr *th, u16 *mssp);
th                796 include/net/tcp.h #define tcp_flag_byte(th) (((u_int8_t *)th)[13])
th                577 include/soc/fsl/qman.h static inline u64 qm_cgr_cs_thres_get64(const struct qm_cgr_cs_thres *th)
th                579 include/soc/fsl/qman.h 	int thres = be16_to_cpu(th->word);
th                584 include/soc/fsl/qman.h static inline int qm_cgr_cs_thres_set64(struct qm_cgr_cs_thres *th, u64 val,
th                597 include/soc/fsl/qman.h 	th->word = cpu_to_be16(((val & 0xff) << 5) | (e & 0x1f));
th                254 include/trace/events/tcp.h 		const struct tcphdr *th = (const struct tcphdr *)skb->data;
th                268 include/trace/events/tcp.h 		__entry->data_len = skb->len - __tcp_hdrlen(th);
th                119 net/ceph/auth_x.c 	struct ceph_x_ticket_handler *th;
th                125 net/ceph/auth_x.c 		th = rb_entry(parent, struct ceph_x_ticket_handler, node);
th                126 net/ceph/auth_x.c 		if (service < th->service)
th                128 net/ceph/auth_x.c 		else if (service > th->service)
th                131 net/ceph/auth_x.c 			return th;
th                135 net/ceph/auth_x.c 	th = kzalloc(sizeof(*th), GFP_NOFS);
th                136 net/ceph/auth_x.c 	if (!th)
th                138 net/ceph/auth_x.c 	th->service = service;
th                139 net/ceph/auth_x.c 	rb_link_node(&th->node, parent, p);
th                140 net/ceph/auth_x.c 	rb_insert_color(&th->node, &xi->ticket_handlers);
th                141 net/ceph/auth_x.c 	return th;
th                145 net/ceph/auth_x.c 				  struct ceph_x_ticket_handler *th)
th                149 net/ceph/auth_x.c 	dout("remove_ticket_handler %p %d\n", th, th->service);
th                150 net/ceph/auth_x.c 	rb_erase(&th->node, &xi->ticket_handlers);
th                151 net/ceph/auth_x.c 	ceph_crypto_key_destroy(&th->session_key);
th                152 net/ceph/auth_x.c 	if (th->ticket_blob)
th                153 net/ceph/auth_x.c 		ceph_buffer_put(th->ticket_blob);
th                154 net/ceph/auth_x.c 	kfree(th);
th                164 net/ceph/auth_x.c 	struct ceph_x_ticket_handler *th;
th                186 net/ceph/auth_x.c 	th = get_ticket_handler(ac, type);
th                187 net/ceph/auth_x.c 	if (IS_ERR(th)) {
th                188 net/ceph/auth_x.c 		ret = PTR_ERR(th);
th                220 net/ceph/auth_x.c 		ret = ceph_x_decrypt(&th->session_key, p, end);
th                244 net/ceph/auth_x.c 	ceph_crypto_key_destroy(&th->session_key);
th                245 net/ceph/auth_x.c 	if (th->ticket_blob)
th                246 net/ceph/auth_x.c 		ceph_buffer_put(th->ticket_blob);
th                247 net/ceph/auth_x.c 	th->session_key = new_session_key;
th                248 net/ceph/auth_x.c 	th->ticket_blob = new_ticket_blob;
th                249 net/ceph/auth_x.c 	th->secret_id = new_secret_id;
th                250 net/ceph/auth_x.c 	th->expires = new_expires;
th                251 net/ceph/auth_x.c 	th->renew_after = new_renew_after;
th                252 net/ceph/auth_x.c 	th->have_key = true;
th                254 net/ceph/auth_x.c 	     type, ceph_entity_type_name(type), th->secret_id,
th                255 net/ceph/auth_x.c 	     (int)th->ticket_blob->vec.iov_len);
th                256 net/ceph/auth_x.c 	xi->have_keys |= th->service;
th                349 net/ceph/auth_x.c 				   struct ceph_x_ticket_handler *th,
th                357 net/ceph/auth_x.c 		(th->ticket_blob ? th->ticket_blob->vec.iov_len : 0);
th                360 net/ceph/auth_x.c 	     ceph_entity_type_name(th->service), au);
th                363 net/ceph/auth_x.c 	ret = ceph_crypto_key_clone(&au->session_key, &th->session_key);
th                381 net/ceph/auth_x.c 	au->service = th->service;
th                382 net/ceph/auth_x.c 	au->secret_id = th->secret_id;
th                387 net/ceph/auth_x.c 	msg_a->service_id = cpu_to_le32(th->service);
th                389 net/ceph/auth_x.c 	msg_a->ticket_blob.secret_id = cpu_to_le64(th->secret_id);
th                392 net/ceph/auth_x.c 		memcpy(msg_a->ticket_blob.blob, th->ticket_blob->vec.iov_base,
th                393 net/ceph/auth_x.c 		       th->ticket_blob->vec.iov_len);
th                395 net/ceph/auth_x.c 	dout(" th %p secret_id %lld %lld\n", th, th->secret_id,
th                414 net/ceph/auth_x.c static int ceph_x_encode_ticket(struct ceph_x_ticket_handler *th,
th                419 net/ceph/auth_x.c 	ceph_encode_64(p, th->secret_id);
th                420 net/ceph/auth_x.c 	if (th->ticket_blob) {
th                421 net/ceph/auth_x.c 		const char *buf = th->ticket_blob->vec.iov_base;
th                422 net/ceph/auth_x.c 		u32 len = th->ticket_blob->vec.iov_len;
th                435 net/ceph/auth_x.c static bool need_key(struct ceph_x_ticket_handler *th)
th                437 net/ceph/auth_x.c 	if (!th->have_key)
th                440 net/ceph/auth_x.c 	return ktime_get_real_seconds() >= th->renew_after;
th                443 net/ceph/auth_x.c static bool have_key(struct ceph_x_ticket_handler *th)
th                445 net/ceph/auth_x.c 	if (th->have_key) {
th                446 net/ceph/auth_x.c 		if (ktime_get_real_seconds() >= th->expires)
th                447 net/ceph/auth_x.c 			th->have_key = false;
th                450 net/ceph/auth_x.c 	return th->have_key;
th                462 net/ceph/auth_x.c 		struct ceph_x_ticket_handler *th;
th                470 net/ceph/auth_x.c 		th = get_ticket_handler(ac, service);
th                471 net/ceph/auth_x.c 		if (IS_ERR(th)) {
th                476 net/ceph/auth_x.c 		if (need_key(th))
th                478 net/ceph/auth_x.c 		if (!have_key(th))
th                490 net/ceph/auth_x.c 	struct ceph_x_ticket_handler *th =
th                493 net/ceph/auth_x.c 	if (IS_ERR(th))
th                494 net/ceph/auth_x.c 		return PTR_ERR(th);
th                533 net/ceph/auth_x.c 		ret = ceph_x_encode_ticket(th, &p, end);
th                548 net/ceph/auth_x.c 		ret = ceph_x_build_authorizer(ac, th, &xi->auth_authorizer);
th                568 net/ceph/auth_x.c 	struct ceph_x_ticket_handler *th;
th                601 net/ceph/auth_x.c 		th = get_ticket_handler(ac, CEPH_ENTITY_TYPE_AUTH);
th                602 net/ceph/auth_x.c 		if (IS_ERR(th))
th                603 net/ceph/auth_x.c 			return PTR_ERR(th);
th                604 net/ceph/auth_x.c 		ret = ceph_x_proc_ticket_reply(ac, &th->session_key,
th                631 net/ceph/auth_x.c 	struct ceph_x_ticket_handler *th;
th                634 net/ceph/auth_x.c 	th = get_ticket_handler(ac, peer_type);
th                635 net/ceph/auth_x.c 	if (IS_ERR(th))
th                636 net/ceph/auth_x.c 		return PTR_ERR(th);
th                644 net/ceph/auth_x.c 	ret = ceph_x_build_authorizer(ac, th, au);
th                666 net/ceph/auth_x.c 	struct ceph_x_ticket_handler *th;
th                668 net/ceph/auth_x.c 	th = get_ticket_handler(ac, peer_type);
th                669 net/ceph/auth_x.c 	if (IS_ERR(th))
th                670 net/ceph/auth_x.c 		return PTR_ERR(th);
th                673 net/ceph/auth_x.c 	if (au->secret_id < th->secret_id) {
th                675 net/ceph/auth_x.c 		     au->service, au->secret_id, th->secret_id);
th                676 net/ceph/auth_x.c 		return ceph_x_build_authorizer(ac, th, au);
th                772 net/ceph/auth_x.c 		struct ceph_x_ticket_handler *th =
th                774 net/ceph/auth_x.c 		remove_ticket_handler(ac, th);
th                785 net/ceph/auth_x.c 	struct ceph_x_ticket_handler *th;
th                787 net/ceph/auth_x.c 	th = get_ticket_handler(ac, peer_type);
th                788 net/ceph/auth_x.c 	if (!IS_ERR(th))
th                789 net/ceph/auth_x.c 		th->have_key = false;
th               3355 net/core/dev.c 			const struct tcphdr *th;
th               3358 net/core/dev.c 			th = skb_header_pointer(skb, skb_transport_offset(skb),
th               3360 net/core/dev.c 			if (likely(th))
th               3361 net/core/dev.c 				hdr_len += __tcp_hdrlen(th);
th               5795 net/core/filter.c 	   struct tcphdr *, th, u32, th_len)
th               5801 net/core/filter.c 	if (unlikely(th_len < sizeof(*th)))
th               5811 net/core/filter.c 	if (!th->ack || th->rst || th->syn)
th               5817 net/core/filter.c 	cookie = ntohl(th->ack_seq) - 1;
th               5824 net/core/filter.c 		ret = __cookie_v4_check((struct iphdr *)iph, th, cookie);
th               5832 net/core/filter.c 		ret = __cookie_v6_check((struct ipv6hdr *)iph, th, cookie);
th               5862 net/core/filter.c 	   struct tcphdr *, th, u32, th_len)
th               5868 net/core/filter.c 	if (unlikely(th_len < sizeof(*th) || th_len != th->doff * 4))
th               5877 net/core/filter.c 	if (!th->syn || th->ack || th->fin || th->rst)
th               5891 net/core/filter.c 		mss = tcp_v4_get_syncookie(sk, iph, th, &cookie);
th               5902 net/core/filter.c 		mss = tcp_v6_get_syncookie(sk, iph, th, &cookie);
th                684 net/core/flow_dissector.c 	struct tcphdr *th, _th;
th                689 net/core/flow_dissector.c 	th = __skb_header_pointer(skb, thoff, sizeof(_th), data, hlen, &_th);
th                690 net/core/flow_dissector.c 	if (!th)
th                693 net/core/flow_dissector.c 	if (unlikely(__tcp_hdrlen(th) < sizeof(_th)))
th                699 net/core/flow_dissector.c 	key_tcp->flags = (*(__be16 *) &tcp_flag_word(th) & htons(0x0FFF));
th                 19 net/ipv4/netfilter/ipt_SYNPROXY.c 	struct tcphdr *th, _th;
th                 24 net/ipv4/netfilter/ipt_SYNPROXY.c 	th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th);
th                 25 net/ipv4/netfilter/ipt_SYNPROXY.c 	if (th == NULL)
th                 28 net/ipv4/netfilter/ipt_SYNPROXY.c 	if (!synproxy_parse_options(skb, par->thoff, th, &opts))
th                 31 net/ipv4/netfilter/ipt_SYNPROXY.c 	if (th->syn && !(th->ack || th->fin || th->rst)) {
th                 35 net/ipv4/netfilter/ipt_SYNPROXY.c 		if (th->ece && th->cwr)
th                 48 net/ipv4/netfilter/ipt_SYNPROXY.c 		synproxy_send_client_synack(net, skb, th, &opts);
th                 51 net/ipv4/netfilter/ipt_SYNPROXY.c 	} else if (th->ack && !(th->fin || th->rst || th->syn)) {
th                 53 net/ipv4/netfilter/ipt_SYNPROXY.c 		if (synproxy_recv_client_ack(net, skb, th, &opts, ntohl(th->seq))) {
th                 33 net/ipv4/netfilter/nf_nat_h323.c 	const struct tcphdr *th;
th                 49 net/ipv4/netfilter/nf_nat_h323.c 		th = skb_header_pointer(skb, ip_hdrlen(skb),
th                 51 net/ipv4/netfilter/nf_nat_h323.c 		if (th == NULL)
th                 53 net/ipv4/netfilter/nf_nat_h323.c 		*data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff;
th                161 net/ipv4/syncookies.c u32 __cookie_v4_init_sequence(const struct iphdr *iph, const struct tcphdr *th,
th                173 net/ipv4/syncookies.c 				     th->source, th->dest, ntohl(th->seq),
th                181 net/ipv4/syncookies.c 	const struct tcphdr *th = tcp_hdr(skb);
th                183 net/ipv4/syncookies.c 	return __cookie_v4_init_sequence(iph, th, mssp);
th                190 net/ipv4/syncookies.c int __cookie_v4_check(const struct iphdr *iph, const struct tcphdr *th,
th                193 net/ipv4/syncookies.c 	__u32 seq = ntohl(th->seq) - 1;
th                195 net/ipv4/syncookies.c 					    th->source, th->dest, seq);
th                290 net/ipv4/syncookies.c 	const struct tcphdr *th = tcp_hdr(skb);
th                291 net/ipv4/syncookies.c 	__u32 cookie = ntohl(th->ack_seq) - 1;
th                300 net/ipv4/syncookies.c 	if (!sock_net(sk)->ipv4.sysctl_tcp_syncookies || !th->ack || th->rst)
th                306 net/ipv4/syncookies.c 	mss = __cookie_v4_check(ip_hdr(skb), th, cookie);
th                335 net/ipv4/syncookies.c 	treq->rcv_isn		= ntohl(th->seq) - 1;
th                340 net/ipv4/syncookies.c 	ireq->ir_num		= ntohs(th->dest);
th                341 net/ipv4/syncookies.c 	ireq->ir_rmt_port	= th->source;
th                379 net/ipv4/syncookies.c 			   ireq->ir_loc_addr, th->source, th->dest, sk->sk_uid);
th                310 net/ipv4/tcp_input.c static void tcp_ecn_rcv_synack(struct tcp_sock *tp, const struct tcphdr *th)
th                312 net/ipv4/tcp_input.c 	if ((tp->ecn_flags & TCP_ECN_OK) && (!th->ece || th->cwr))
th                316 net/ipv4/tcp_input.c static void tcp_ecn_rcv_syn(struct tcp_sock *tp, const struct tcphdr *th)
th                318 net/ipv4/tcp_input.c 	if ((tp->ecn_flags & TCP_ECN_OK) && (!th->ece || !th->cwr))
th                322 net/ipv4/tcp_input.c static bool tcp_ecn_rcv_ecn_echo(const struct tcp_sock *tp, const struct tcphdr *th)
th                324 net/ipv4/tcp_input.c 	if (th->ece && !th->syn && (tp->ecn_flags & TCP_ECN_OK))
th               3777 net/ipv4/tcp_input.c static void smc_parse_options(const struct tcphdr *th,
th               3784 net/ipv4/tcp_input.c 		if (th->syn && !(opsize & 1) &&
th               3795 net/ipv4/tcp_input.c static u16 tcp_parse_mss_option(const struct tcphdr *th, u16 user_mss)
th               3797 net/ipv4/tcp_input.c 	const unsigned char *ptr = (const unsigned char *)(th + 1);
th               3798 net/ipv4/tcp_input.c 	int length = (th->doff * 4) - sizeof(struct tcphdr);
th               3845 net/ipv4/tcp_input.c 	const struct tcphdr *th = tcp_hdr(skb);
th               3846 net/ipv4/tcp_input.c 	int length = (th->doff * 4) - sizeof(struct tcphdr);
th               3848 net/ipv4/tcp_input.c 	ptr = (const unsigned char *)(th + 1);
th               3871 net/ipv4/tcp_input.c 				if (opsize == TCPOLEN_MSS && th->syn && !estab) {
th               3882 net/ipv4/tcp_input.c 				if (opsize == TCPOLEN_WINDOW && th->syn &&
th               3906 net/ipv4/tcp_input.c 				if (opsize == TCPOLEN_SACK_PERM && th->syn &&
th               3917 net/ipv4/tcp_input.c 					TCP_SKB_CB(skb)->sacked = (ptr - 2) - (unsigned char *)th;
th               3931 net/ipv4/tcp_input.c 					ptr, th->syn, foc, false);
th               3943 net/ipv4/tcp_input.c 						ptr + 2, th->syn, foc, true);
th               3945 net/ipv4/tcp_input.c 					smc_parse_options(th, opt_rx, ptr,
th               3957 net/ipv4/tcp_input.c static bool tcp_parse_aligned_timestamp(struct tcp_sock *tp, const struct tcphdr *th)
th               3959 net/ipv4/tcp_input.c 	const __be32 *ptr = (const __be32 *)(th + 1);
th               3981 net/ipv4/tcp_input.c 				   const struct tcphdr *th, struct tcp_sock *tp)
th               3986 net/ipv4/tcp_input.c 	if (th->doff == (sizeof(*th) / 4)) {
th               3990 net/ipv4/tcp_input.c 		   th->doff == ((sizeof(*th) + TCPOLEN_TSTAMP_ALIGNED) / 4)) {
th               3991 net/ipv4/tcp_input.c 		if (tcp_parse_aligned_timestamp(tp, th))
th               4006 net/ipv4/tcp_input.c const u8 *tcp_parse_md5sig_option(const struct tcphdr *th)
th               4008 net/ipv4/tcp_input.c 	int length = (th->doff << 2) - sizeof(*th);
th               4009 net/ipv4/tcp_input.c 	const u8 *ptr = (const u8 *)(th + 1);
th               4063 net/ipv4/tcp_input.c 	const struct tcphdr *th = tcp_hdr(skb);
th               4068 net/ipv4/tcp_input.c 		(th->ack && seq == TCP_SKB_CB(skb)->end_seq && seq == tp->rcv_nxt) &&
th               4074 net/ipv4/tcp_input.c 		!tcp_may_update_window(tp, ack, seq, ntohs(th->window) << tp->rx_opt.snd_wscale) &&
th               5308 net/ipv4/tcp_input.c static void tcp_check_urg(struct sock *sk, const struct tcphdr *th)
th               5311 net/ipv4/tcp_input.c 	u32 ptr = ntohs(th->urg_ptr);
th               5315 net/ipv4/tcp_input.c 	ptr += ntohl(th->seq);
th               5374 net/ipv4/tcp_input.c static void tcp_urg(struct sock *sk, struct sk_buff *skb, const struct tcphdr *th)
th               5379 net/ipv4/tcp_input.c 	if (th->urg)
th               5380 net/ipv4/tcp_input.c 		tcp_check_urg(sk, th);
th               5384 net/ipv4/tcp_input.c 		u32 ptr = tp->urg_seq - ntohl(th->seq) + (th->doff * 4) -
th               5385 net/ipv4/tcp_input.c 			  th->syn;
th               5420 net/ipv4/tcp_input.c 				  const struct tcphdr *th, int syn_inerr)
th               5426 net/ipv4/tcp_input.c 	if (tcp_fast_parse_options(sock_net(sk), skb, th, tp) &&
th               5429 net/ipv4/tcp_input.c 		if (!th->rst) {
th               5448 net/ipv4/tcp_input.c 		if (!th->rst) {
th               5449 net/ipv4/tcp_input.c 			if (th->syn)
th               5462 net/ipv4/tcp_input.c 	if (th->rst) {
th               5511 net/ipv4/tcp_input.c 	if (th->syn) {
th               5552 net/ipv4/tcp_input.c 	const struct tcphdr *th = (const struct tcphdr *)skb->data;
th               5588 net/ipv4/tcp_input.c 	if ((tcp_flag_word(th) & TCP_HP_BITS) == tp->pred_flags &&
th               5601 net/ipv4/tcp_input.c 			if (!tcp_parse_aligned_timestamp(tp, th))
th               5690 net/ipv4/tcp_input.c 	if (len < (th->doff << 2) || tcp_checksum_complete(skb))
th               5693 net/ipv4/tcp_input.c 	if (!th->ack && !th->rst && !th->syn)
th               5700 net/ipv4/tcp_input.c 	if (!tcp_validate_incoming(sk, skb, th, 1))
th               5710 net/ipv4/tcp_input.c 	tcp_urg(sk, skb, th);
th               5871 net/ipv4/tcp_input.c 					 const struct tcphdr *th)
th               5883 net/ipv4/tcp_input.c 	if (th->ack) {
th               5912 net/ipv4/tcp_input.c 		if (th->rst) {
th               5924 net/ipv4/tcp_input.c 		if (!th->syn)
th               5934 net/ipv4/tcp_input.c 		tcp_ecn_rcv_synack(tp, th);
th               5949 net/ipv4/tcp_input.c 		tp->snd_wnd = ntohs(th->window);
th               6015 net/ipv4/tcp_input.c 	if (th->rst) {
th               6030 net/ipv4/tcp_input.c 	if (th->syn) {
th               6053 net/ipv4/tcp_input.c 		tp->snd_wnd    = ntohs(th->window);
th               6057 net/ipv4/tcp_input.c 		tcp_ecn_rcv_syn(tp, th);
th               6139 net/ipv4/tcp_input.c 	const struct tcphdr *th = tcp_hdr(skb);
th               6149 net/ipv4/tcp_input.c 		if (th->ack)
th               6152 net/ipv4/tcp_input.c 		if (th->rst)
th               6155 net/ipv4/tcp_input.c 		if (th->syn) {
th               6156 net/ipv4/tcp_input.c 			if (th->fin)
th               6177 net/ipv4/tcp_input.c 		queued = tcp_rcv_synsent_state_process(sk, skb, th);
th               6182 net/ipv4/tcp_input.c 		tcp_urg(sk, skb, th);
th               6202 net/ipv4/tcp_input.c 	if (!th->ack && !th->rst && !th->syn)
th               6205 net/ipv4/tcp_input.c 	if (!tcp_validate_incoming(sk, skb, th, 0))
th               6245 net/ipv4/tcp_input.c 		tp->snd_wnd = ntohs(th->window) << tp->rx_opt.snd_wscale;
th               6287 net/ipv4/tcp_input.c 		    after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) {
th               6289 net/ipv4/tcp_input.c 			if (tp->syn_fastopen && th->fin)
th               6299 net/ipv4/tcp_input.c 		} else if (th->fin || sock_owned_by_user(sk)) {
th               6331 net/ipv4/tcp_input.c 	tcp_urg(sk, skb, th);
th               6349 net/ipv4/tcp_input.c 			    after(TCP_SKB_CB(skb)->end_seq - th->fin, tp->rcv_nxt)) {
th               6412 net/ipv4/tcp_input.c 	const struct tcphdr *th = tcp_hdr(skb);
th               6414 net/ipv4/tcp_input.c 	bool th_ecn = th->ece && th->cwr;
th               6425 net/ipv4/tcp_input.c 	if (((!ect || th->res1) && ecn_ok) || tcp_ca_needs_ecn(listen_sk) ||
th               6533 net/ipv4/tcp_input.c 			  struct sock *sk, struct tcphdr *th)
th               6550 net/ipv4/tcp_input.c 	mss = tcp_parse_mss_option(th, tp->rx_opt.user_mss);
th                 87 net/ipv4/tcp_ipv4.c 			       __be32 daddr, __be32 saddr, const struct tcphdr *th);
th                427 net/ipv4/tcp_ipv4.c 	struct tcphdr *th = (struct tcphdr *)(icmp_skb->data + (iph->ihl << 2));
th                443 net/ipv4/tcp_ipv4.c 				       th->dest, iph->saddr, ntohs(th->source),
th                453 net/ipv4/tcp_ipv4.c 	seq = ntohl(th->seq);
th                622 net/ipv4/tcp_ipv4.c 	struct tcphdr *th = tcp_hdr(skb);
th                624 net/ipv4/tcp_ipv4.c 	th->check = ~tcp_v4_check(skb->len, saddr, daddr, 0);
th                653 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th = tcp_hdr(skb);
th                655 net/ipv4/tcp_ipv4.c 		struct tcphdr th;
th                673 net/ipv4/tcp_ipv4.c 	if (th->rst)
th                684 net/ipv4/tcp_ipv4.c 	rep.th.dest   = th->source;
th                685 net/ipv4/tcp_ipv4.c 	rep.th.source = th->dest;
th                686 net/ipv4/tcp_ipv4.c 	rep.th.doff   = sizeof(struct tcphdr) / 4;
th                687 net/ipv4/tcp_ipv4.c 	rep.th.rst    = 1;
th                689 net/ipv4/tcp_ipv4.c 	if (th->ack) {
th                690 net/ipv4/tcp_ipv4.c 		rep.th.seq = th->ack_seq;
th                692 net/ipv4/tcp_ipv4.c 		rep.th.ack = 1;
th                693 net/ipv4/tcp_ipv4.c 		rep.th.ack_seq = htonl(ntohl(th->seq) + th->syn + th->fin +
th                694 net/ipv4/tcp_ipv4.c 				       skb->len - (th->doff << 2));
th                699 net/ipv4/tcp_ipv4.c 	arg.iov[0].iov_len  = sizeof(rep.th);
th                704 net/ipv4/tcp_ipv4.c 	hash_location = tcp_parse_md5sig_option(th);
th                718 net/ipv4/tcp_ipv4.c 					     th->source, ip_hdr(skb)->daddr,
th                719 net/ipv4/tcp_ipv4.c 					     ntohs(th->source), inet_iif(skb),
th                744 net/ipv4/tcp_ipv4.c 		rep.th.doff = arg.iov[0].iov_len / 4;
th                748 net/ipv4/tcp_ipv4.c 				     ip_hdr(skb)->daddr, &rep.th);
th                808 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th = tcp_hdr(skb);
th                810 net/ipv4/tcp_ipv4.c 		struct tcphdr th;
th                822 net/ipv4/tcp_ipv4.c 	memset(&rep.th, 0, sizeof(struct tcphdr));
th                826 net/ipv4/tcp_ipv4.c 	arg.iov[0].iov_len  = sizeof(rep.th);
th                837 net/ipv4/tcp_ipv4.c 	rep.th.dest    = th->source;
th                838 net/ipv4/tcp_ipv4.c 	rep.th.source  = th->dest;
th                839 net/ipv4/tcp_ipv4.c 	rep.th.doff    = arg.iov[0].iov_len / 4;
th                840 net/ipv4/tcp_ipv4.c 	rep.th.seq     = htonl(seq);
th                841 net/ipv4/tcp_ipv4.c 	rep.th.ack_seq = htonl(ack);
th                842 net/ipv4/tcp_ipv4.c 	rep.th.ack     = 1;
th                843 net/ipv4/tcp_ipv4.c 	rep.th.window  = htons(win);
th                854 net/ipv4/tcp_ipv4.c 		rep.th.doff = arg.iov[0].iov_len/4;
th                858 net/ipv4/tcp_ipv4.c 				    ip_hdr(skb)->daddr, &rep.th);
th               1186 net/ipv4/tcp_ipv4.c 				   const struct tcphdr *th, int nbytes)
th               1200 net/ipv4/tcp_ipv4.c 	memcpy(_th, th, sizeof(*th));
th               1203 net/ipv4/tcp_ipv4.c 	sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th));
th               1205 net/ipv4/tcp_ipv4.c 				sizeof(*bp) + sizeof(*th));
th               1210 net/ipv4/tcp_ipv4.c 			       __be32 daddr, __be32 saddr, const struct tcphdr *th)
th               1222 net/ipv4/tcp_ipv4.c 	if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2))
th               1246 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th = tcp_hdr(skb);
th               1266 net/ipv4/tcp_ipv4.c 	if (tcp_v4_md5_hash_headers(hp, daddr, saddr, th, skb->len))
th               1268 net/ipv4/tcp_ipv4.c 	if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2))
th               1305 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th = tcp_hdr(skb);
th               1311 net/ipv4/tcp_ipv4.c 	hash_location = tcp_parse_md5sig_option(th);
th               1337 net/ipv4/tcp_ipv4.c 				     &iph->saddr, ntohs(th->source),
th               1338 net/ipv4/tcp_ipv4.c 				     &iph->daddr, ntohs(th->dest),
th               1517 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th = tcp_hdr(skb);
th               1519 net/ipv4/tcp_ipv4.c 	if (!th->syn)
th               1526 net/ipv4/tcp_ipv4.c 			 struct tcphdr *th, u32 *cookie)
th               1531 net/ipv4/tcp_ipv4.c 				    &tcp_request_sock_ipv4_ops, sk, th);
th               1533 net/ipv4/tcp_ipv4.c 		*cookie = __cookie_v4_init_sequence(iph, th, &mss);
th               1613 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th;
th               1623 net/ipv4/tcp_ipv4.c 	th = tcp_hdr(skb);
th               1625 net/ipv4/tcp_ipv4.c 	if (th->doff < sizeof(struct tcphdr) / 4)
th               1629 net/ipv4/tcp_ipv4.c 				       iph->saddr, th->source,
th               1630 net/ipv4/tcp_ipv4.c 				       iph->daddr, ntohs(th->dest),
th               1652 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th;
th               1681 net/ipv4/tcp_ipv4.c 	th = (const struct tcphdr *)skb->data;
th               1682 net/ipv4/tcp_ipv4.c 	hdrlen = th->doff * 4;
th               1707 net/ipv4/tcp_ipv4.c 	    thtail->doff != th->doff ||
th               1708 net/ipv4/tcp_ipv4.c 	    memcmp(thtail + 1, th + 1, hdrlen - sizeof(*th)))
th               1713 net/ipv4/tcp_ipv4.c 		thtail->window = th->window;
th               1728 net/ipv4/tcp_ipv4.c 		thtail->fin |= th->fin;
th               1770 net/ipv4/tcp_ipv4.c 	struct tcphdr *th = (struct tcphdr *)skb->data;
th               1772 net/ipv4/tcp_ipv4.c 	return sk_filter_trim_cap(sk, skb, th->doff * 4);
th               1783 net/ipv4/tcp_ipv4.c 			   const struct tcphdr *th)
th               1792 net/ipv4/tcp_ipv4.c 	TCP_SKB_CB(skb)->seq = ntohl(th->seq);
th               1793 net/ipv4/tcp_ipv4.c 	TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin +
th               1794 net/ipv4/tcp_ipv4.c 				    skb->len - th->doff * 4);
th               1795 net/ipv4/tcp_ipv4.c 	TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
th               1796 net/ipv4/tcp_ipv4.c 	TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th);
th               1814 net/ipv4/tcp_ipv4.c 	const struct tcphdr *th;
th               1828 net/ipv4/tcp_ipv4.c 	th = (const struct tcphdr *)skb->data;
th               1830 net/ipv4/tcp_ipv4.c 	if (unlikely(th->doff < sizeof(struct tcphdr) / 4))
th               1832 net/ipv4/tcp_ipv4.c 	if (!pskb_may_pull(skb, th->doff * 4))
th               1843 net/ipv4/tcp_ipv4.c 	th = (const struct tcphdr *)skb->data;
th               1846 net/ipv4/tcp_ipv4.c 	sk = __inet_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th), th->source,
th               1847 net/ipv4/tcp_ipv4.c 			       th->dest, sdif, &refcounted);
th               1881 net/ipv4/tcp_ipv4.c 			th = (const struct tcphdr *)skb->data;
th               1883 net/ipv4/tcp_ipv4.c 			tcp_v4_fill_cb(skb, iph, th);
th               1926 net/ipv4/tcp_ipv4.c 	th = (const struct tcphdr *)skb->data;
th               1928 net/ipv4/tcp_ipv4.c 	tcp_v4_fill_cb(skb, iph, th);
th               1965 net/ipv4/tcp_ipv4.c 	tcp_v4_fill_cb(skb, iph, th);
th               1993 net/ipv4/tcp_ipv4.c 	tcp_v4_fill_cb(skb, iph, th);
th               1999 net/ipv4/tcp_ipv4.c 	switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) {
th               2003 net/ipv4/tcp_ipv4.c 							__tcp_hdrlen(th),
th               2004 net/ipv4/tcp_ipv4.c 							iph->saddr, th->source,
th               2005 net/ipv4/tcp_ipv4.c 							iph->daddr, th->dest,
th                 93 net/ipv4/tcp_minisocks.c 			   const struct tcphdr *th)
th                100 net/ipv4/tcp_minisocks.c 	if (th->doff > (sizeof(*th) >> 2) && tcptw->tw_ts_recent_stamp) {
th                108 net/ipv4/tcp_minisocks.c 			paws_reject = tcp_paws_reject(&tmp_opt, th->rst);
th                123 net/ipv4/tcp_minisocks.c 		if (th->rst)
th                126 net/ipv4/tcp_minisocks.c 		if (th->syn && !before(TCP_SKB_CB(skb)->seq, tcptw->tw_rcv_nxt))
th                130 net/ipv4/tcp_minisocks.c 		if (!th->ack ||
th                140 net/ipv4/tcp_minisocks.c 		if (!th->fin ||
th                175 net/ipv4/tcp_minisocks.c 	     (TCP_SKB_CB(skb)->seq == TCP_SKB_CB(skb)->end_seq || th->rst))) {
th                178 net/ipv4/tcp_minisocks.c 		if (th->rst) {
th                218 net/ipv4/tcp_minisocks.c 	if (th->syn && !th->rst && !th->ack && !paws_reject &&
th                232 net/ipv4/tcp_minisocks.c 	if (!th->rst) {
th                239 net/ipv4/tcp_minisocks.c 		if (paws_reject || th->ack)
th                574 net/ipv4/tcp_minisocks.c 	const struct tcphdr *th = tcp_hdr(skb);
th                575 net/ipv4/tcp_minisocks.c 	__be32 flg = tcp_flag_word(th) & (TCP_FLAG_RST|TCP_FLAG_SYN|TCP_FLAG_ACK);
th                580 net/ipv4/tcp_minisocks.c 	if (th->doff > (sizeof(struct tcphdr)>>2)) {
th                592 net/ipv4/tcp_minisocks.c 			paws_reject = tcp_paws_reject(&tmp_opt, th->rst);
th                 40 net/ipv4/tcp_offload.c 		struct tcphdr *th = tcp_hdr(skb);
th                 46 net/ipv4/tcp_offload.c 		th->check = 0;
th                 59 net/ipv4/tcp_offload.c 	struct tcphdr *th;
th                 69 net/ipv4/tcp_offload.c 	th = tcp_hdr(skb);
th                 70 net/ipv4/tcp_offload.c 	thlen = th->doff * 4;
th                 71 net/ipv4/tcp_offload.c 	if (thlen < sizeof(*th))
th                115 net/ipv4/tcp_offload.c 	th = tcp_hdr(skb);
th                116 net/ipv4/tcp_offload.c 	seq = ntohl(th->seq);
th                121 net/ipv4/tcp_offload.c 	newcheck = ~csum_fold((__force __wsum)((__force u32)th->check +
th                125 net/ipv4/tcp_offload.c 		th->fin = th->psh = 0;
th                126 net/ipv4/tcp_offload.c 		th->check = newcheck;
th                129 net/ipv4/tcp_offload.c 			gso_reset_checksum(skb, ~th->check);
th                131 net/ipv4/tcp_offload.c 			th->check = gso_make_checksum(skb, ~th->check);
th                140 net/ipv4/tcp_offload.c 		th = tcp_hdr(skb);
th                142 net/ipv4/tcp_offload.c 		th->seq = htonl(seq);
th                143 net/ipv4/tcp_offload.c 		th->cwr = 0;
th                170 net/ipv4/tcp_offload.c 	th->check = ~csum_fold((__force __wsum)((__force u32)th->check +
th                173 net/ipv4/tcp_offload.c 		gso_reset_checksum(skb, ~th->check);
th                175 net/ipv4/tcp_offload.c 		th->check = gso_make_checksum(skb, ~th->check);
th                184 net/ipv4/tcp_offload.c 	struct tcphdr *th;
th                196 net/ipv4/tcp_offload.c 	hlen = off + sizeof(*th);
th                197 net/ipv4/tcp_offload.c 	th = skb_gro_header_fast(skb, off);
th                199 net/ipv4/tcp_offload.c 		th = skb_gro_header_slow(skb, hlen, off);
th                200 net/ipv4/tcp_offload.c 		if (unlikely(!th))
th                204 net/ipv4/tcp_offload.c 	thlen = th->doff * 4;
th                205 net/ipv4/tcp_offload.c 	if (thlen < sizeof(*th))
th                210 net/ipv4/tcp_offload.c 		th = skb_gro_header_slow(skb, hlen, off);
th                211 net/ipv4/tcp_offload.c 		if (unlikely(!th))
th                218 net/ipv4/tcp_offload.c 	flags = tcp_flag_word(th);
th                226 net/ipv4/tcp_offload.c 		if (*(u32 *)&th->source ^ *(u32 *)&th2->source) {
th                242 net/ipv4/tcp_offload.c 	flush |= (__force int)(th->ack_seq ^ th2->ack_seq);
th                243 net/ipv4/tcp_offload.c 	for (i = sizeof(*th); i < thlen; i += 4)
th                244 net/ipv4/tcp_offload.c 		flush |= *(u32 *)((u8 *)th + i) ^
th                261 net/ipv4/tcp_offload.c 	flush |= (ntohl(th2->seq) + skb_gro_len(p)) ^ ntohl(th->seq);
th                290 net/ipv4/tcp_offload.c 	struct tcphdr *th = tcp_hdr(skb);
th                292 net/ipv4/tcp_offload.c 	skb->csum_start = (unsigned char *)th - skb->head;
th                298 net/ipv4/tcp_offload.c 	if (th->cwr)
th                322 net/ipv4/tcp_offload.c 	struct tcphdr *th = tcp_hdr(skb);
th                324 net/ipv4/tcp_offload.c 	th->check = ~tcp_v4_check(skb->len - thoff, iph->saddr,
th                355 net/ipv4/tcp_output.c tcp_ecn_make_synack(const struct request_sock *req, struct tcphdr *th)
th                358 net/ipv4/tcp_output.c 		th->ece = 1;
th                365 net/ipv4/tcp_output.c 			 struct tcphdr *th, int tcp_header_len)
th                376 net/ipv4/tcp_output.c 				th->cwr = 1;
th                384 net/ipv4/tcp_output.c 			th->ece = 1;
th               1028 net/ipv4/tcp_output.c 	struct tcphdr *th;
th               1107 net/ipv4/tcp_output.c 	th = (struct tcphdr *)skb->data;
th               1108 net/ipv4/tcp_output.c 	th->source		= inet->inet_sport;
th               1109 net/ipv4/tcp_output.c 	th->dest		= inet->inet_dport;
th               1110 net/ipv4/tcp_output.c 	th->seq			= htonl(tcb->seq);
th               1111 net/ipv4/tcp_output.c 	th->ack_seq		= htonl(rcv_nxt);
th               1112 net/ipv4/tcp_output.c 	*(((__be16 *)th) + 6)	= htons(((tcp_header_size >> 2) << 12) |
th               1115 net/ipv4/tcp_output.c 	th->check		= 0;
th               1116 net/ipv4/tcp_output.c 	th->urg_ptr		= 0;
th               1121 net/ipv4/tcp_output.c 			th->urg_ptr = htons(tp->snd_up - tcb->seq);
th               1122 net/ipv4/tcp_output.c 			th->urg = 1;
th               1124 net/ipv4/tcp_output.c 			th->urg_ptr = htons(0xFFFF);
th               1125 net/ipv4/tcp_output.c 			th->urg = 1;
th               1129 net/ipv4/tcp_output.c 	tcp_options_write((__be32 *)(th + 1), tp, &opts);
th               1132 net/ipv4/tcp_output.c 		th->window      = htons(tcp_select_window(sk));
th               1133 net/ipv4/tcp_output.c 		tcp_ecn_send(sk, skb, th, tcp_header_size);
th               1138 net/ipv4/tcp_output.c 		th->window	= htons(min(tp->rcv_wnd, 65535U));
th               3277 net/ipv4/tcp_output.c 	struct tcphdr *th;
th               3329 net/ipv4/tcp_output.c 					     foc) + sizeof(*th);
th               3334 net/ipv4/tcp_output.c 	th = (struct tcphdr *)skb->data;
th               3335 net/ipv4/tcp_output.c 	memset(th, 0, sizeof(struct tcphdr));
th               3336 net/ipv4/tcp_output.c 	th->syn = 1;
th               3337 net/ipv4/tcp_output.c 	th->ack = 1;
th               3338 net/ipv4/tcp_output.c 	tcp_ecn_make_synack(req, th);
th               3339 net/ipv4/tcp_output.c 	th->source = htons(ireq->ir_num);
th               3340 net/ipv4/tcp_output.c 	th->dest = ireq->ir_rmt_port;
th               3343 net/ipv4/tcp_output.c 	th->seq = htonl(tcp_rsk(req)->snt_isn);
th               3345 net/ipv4/tcp_output.c 	th->ack_seq = htonl(tcp_rsk(req)->rcv_nxt);
th               3348 net/ipv4/tcp_output.c 	th->window = htons(min(req->rsk_rcv_wnd, 65535U));
th               3349 net/ipv4/tcp_output.c 	tcp_options_write((__be32 *)(th + 1), NULL, &opts);
th               3350 net/ipv4/tcp_output.c 	th->doff = (tcp_header_size >> 2);
th                 84 net/ipv6/ila/ila_common.c 			struct tcphdr *th = (struct tcphdr *)
th                 88 net/ipv6/ila/ila_common.c 			inet_proto_csum_replace_by_diff(&th->check, skb,
th                 19 net/ipv6/netfilter/ip6t_SYNPROXY.c 	struct tcphdr *th, _th;
th                 24 net/ipv6/netfilter/ip6t_SYNPROXY.c 	th = skb_header_pointer(skb, par->thoff, sizeof(_th), &_th);
th                 25 net/ipv6/netfilter/ip6t_SYNPROXY.c 	if (th == NULL)
th                 28 net/ipv6/netfilter/ip6t_SYNPROXY.c 	if (!synproxy_parse_options(skb, par->thoff, th, &opts))
th                 31 net/ipv6/netfilter/ip6t_SYNPROXY.c 	if (th->syn && !(th->ack || th->fin || th->rst)) {
th                 35 net/ipv6/netfilter/ip6t_SYNPROXY.c 		if (th->ece && th->cwr)
th                 48 net/ipv6/netfilter/ip6t_SYNPROXY.c 		synproxy_send_client_synack_ipv6(net, skb, th, &opts);
th                 52 net/ipv6/netfilter/ip6t_SYNPROXY.c 	} else if (th->ack && !(th->fin || th->rst || th->syn)) {
th                 54 net/ipv6/netfilter/ip6t_SYNPROXY.c 		if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts,
th                 55 net/ipv6/netfilter/ip6t_SYNPROXY.c 						  ntohl(th->seq))) {
th                 93 net/ipv6/syncookies.c 			      const struct tcphdr *th, __u16 *mssp)
th                104 net/ipv6/syncookies.c 	return secure_tcp_syn_cookie(&iph->saddr, &iph->daddr, th->source,
th                105 net/ipv6/syncookies.c 				     th->dest, ntohl(th->seq), mssind);
th                112 net/ipv6/syncookies.c 	const struct tcphdr *th = tcp_hdr(skb);
th                114 net/ipv6/syncookies.c 	return __cookie_v6_init_sequence(iph, th, mssp);
th                117 net/ipv6/syncookies.c int __cookie_v6_check(const struct ipv6hdr *iph, const struct tcphdr *th,
th                120 net/ipv6/syncookies.c 	__u32 seq = ntohl(th->seq) - 1;
th                122 net/ipv6/syncookies.c 					    th->source, th->dest, seq);
th                135 net/ipv6/syncookies.c 	const struct tcphdr *th = tcp_hdr(skb);
th                136 net/ipv6/syncookies.c 	__u32 cookie = ntohl(th->ack_seq) - 1;
th                144 net/ipv6/syncookies.c 	if (!sock_net(sk)->ipv4.sysctl_tcp_syncookies || !th->ack || th->rst)
th                150 net/ipv6/syncookies.c 	mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie);
th                185 net/ipv6/syncookies.c 	ireq->ir_rmt_port = th->source;
th                186 net/ipv6/syncookies.c 	ireq->ir_num = ntohs(th->dest);
th                211 net/ipv6/syncookies.c 	treq->rcv_isn = ntohl(th->seq) - 1;
th                364 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th = (struct tcphdr *)(skb->data+offset);
th                375 net/ipv6/tcp_ipv6.c 					&hdr->daddr, th->dest,
th                376 net/ipv6/tcp_ipv6.c 					&hdr->saddr, ntohs(th->source),
th                389 net/ipv6/tcp_ipv6.c 	seq = ntohl(th->seq);
th                596 net/ipv6/tcp_ipv6.c 				   const struct tcphdr *th, int nbytes)
th                610 net/ipv6/tcp_ipv6.c 	memcpy(_th, th, sizeof(*th));
th                613 net/ipv6/tcp_ipv6.c 	sg_init_one(&sg, bp, sizeof(*bp) + sizeof(*th));
th                615 net/ipv6/tcp_ipv6.c 				sizeof(*bp) + sizeof(*th));
th                621 net/ipv6/tcp_ipv6.c 			       const struct tcphdr *th)
th                633 net/ipv6/tcp_ipv6.c 	if (tcp_v6_md5_hash_headers(hp, daddr, saddr, th, th->doff << 2))
th                659 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th = tcp_hdr(skb);
th                678 net/ipv6/tcp_ipv6.c 	if (tcp_v6_md5_hash_headers(hp, daddr, saddr, th, skb->len))
th                680 net/ipv6/tcp_ipv6.c 	if (tcp_md5_hash_skb_data(hp, skb, th->doff << 2))
th                707 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th = tcp_hdr(skb);
th                712 net/ipv6/tcp_ipv6.c 	hash_location = tcp_parse_md5sig_option(th);
th                737 net/ipv6/tcp_ipv6.c 				     &ip6h->saddr, ntohs(th->source),
th                738 net/ipv6/tcp_ipv6.c 				     &ip6h->daddr, ntohs(th->dest));
th                810 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th = tcp_hdr(skb);
th                840 net/ipv6/tcp_ipv6.c 	t1->dest = th->source;
th                841 net/ipv6/tcp_ipv6.c 	t1->source = th->dest;
th                845 net/ipv6/tcp_ipv6.c 	t1->ack = !rst || !th->ack;
th                925 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th = tcp_hdr(skb);
th                940 net/ipv6/tcp_ipv6.c 	if (th->rst)
th                952 net/ipv6/tcp_ipv6.c 	hash_location = tcp_parse_md5sig_option(th);
th                966 net/ipv6/tcp_ipv6.c 					   th->source, &ipv6h->daddr,
th                967 net/ipv6/tcp_ipv6.c 					   ntohs(th->source),
th                983 net/ipv6/tcp_ipv6.c 	if (th->ack)
th                984 net/ipv6/tcp_ipv6.c 		seq = ntohl(th->ack_seq);
th                986 net/ipv6/tcp_ipv6.c 		ack_seq = ntohl(th->seq) + th->syn + th->fin + skb->len -
th                987 net/ipv6/tcp_ipv6.c 			  (th->doff << 2);
th               1065 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th = tcp_hdr(skb);
th               1067 net/ipv6/tcp_ipv6.c 	if (!th->syn)
th               1074 net/ipv6/tcp_ipv6.c 			 struct tcphdr *th, u32 *cookie)
th               1079 net/ipv6/tcp_ipv6.c 				    &tcp_request_sock_ipv6_ops, sk, th);
th               1081 net/ipv6/tcp_ipv6.c 		*cookie = __cookie_v6_init_sequence(iph, th, &mss);
th               1456 net/ipv6/tcp_ipv6.c 			   const struct tcphdr *th)
th               1467 net/ipv6/tcp_ipv6.c 	TCP_SKB_CB(skb)->seq = ntohl(th->seq);
th               1468 net/ipv6/tcp_ipv6.c 	TCP_SKB_CB(skb)->end_seq = (TCP_SKB_CB(skb)->seq + th->syn + th->fin +
th               1469 net/ipv6/tcp_ipv6.c 				    skb->len - th->doff*4);
th               1470 net/ipv6/tcp_ipv6.c 	TCP_SKB_CB(skb)->ack_seq = ntohl(th->ack_seq);
th               1471 net/ipv6/tcp_ipv6.c 	TCP_SKB_CB(skb)->tcp_flags = tcp_flag_byte(th);
th               1483 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th;
th               1501 net/ipv6/tcp_ipv6.c 	th = (const struct tcphdr *)skb->data;
th               1503 net/ipv6/tcp_ipv6.c 	if (unlikely(th->doff < sizeof(struct tcphdr)/4))
th               1505 net/ipv6/tcp_ipv6.c 	if (!pskb_may_pull(skb, th->doff*4))
th               1511 net/ipv6/tcp_ipv6.c 	th = (const struct tcphdr *)skb->data;
th               1515 net/ipv6/tcp_ipv6.c 	sk = __inet6_lookup_skb(&tcp_hashinfo, skb, __tcp_hdrlen(th),
th               1516 net/ipv6/tcp_ipv6.c 				th->source, th->dest, inet6_iif(skb), sdif,
th               1548 net/ipv6/tcp_ipv6.c 			th = (const struct tcphdr *)skb->data;
th               1550 net/ipv6/tcp_ipv6.c 			tcp_v6_fill_cb(skb, hdr, th);
th               1591 net/ipv6/tcp_ipv6.c 	th = (const struct tcphdr *)skb->data;
th               1593 net/ipv6/tcp_ipv6.c 	tcp_v6_fill_cb(skb, hdr, th);
th               1628 net/ipv6/tcp_ipv6.c 	tcp_v6_fill_cb(skb, hdr, th);
th               1655 net/ipv6/tcp_ipv6.c 	tcp_v6_fill_cb(skb, hdr, th);
th               1662 net/ipv6/tcp_ipv6.c 	switch (tcp_timewait_state_process(inet_twsk(sk), skb, th)) {
th               1668 net/ipv6/tcp_ipv6.c 					    skb, __tcp_hdrlen(th),
th               1669 net/ipv6/tcp_ipv6.c 					    &ipv6_hdr(skb)->saddr, th->source,
th               1671 net/ipv6/tcp_ipv6.c 					    ntohs(th->dest),
th               1701 net/ipv6/tcp_ipv6.c 	const struct tcphdr *th;
th               1711 net/ipv6/tcp_ipv6.c 	th = tcp_hdr(skb);
th               1713 net/ipv6/tcp_ipv6.c 	if (th->doff < sizeof(struct tcphdr) / 4)
th               1718 net/ipv6/tcp_ipv6.c 					&hdr->saddr, th->source,
th               1719 net/ipv6/tcp_ipv6.c 					&hdr->daddr, ntohs(th->dest),
th                 32 net/ipv6/tcpv6_offload.c 	struct tcphdr *th = tcp_hdr(skb);
th                 34 net/ipv6/tcpv6_offload.c 	th->check = ~tcp_v6_check(skb->len - thoff, &iph->saddr,
th                 44 net/ipv6/tcpv6_offload.c 	struct tcphdr *th;
th                 49 net/ipv6/tcpv6_offload.c 	if (!pskb_may_pull(skb, sizeof(*th)))
th                 54 net/ipv6/tcpv6_offload.c 		struct tcphdr *th = tcp_hdr(skb);
th                 60 net/ipv6/tcpv6_offload.c 		th->check = 0;
th                 31 net/netfilter/ipset/ip_set_getport.c 		const struct tcphdr *th;
th                 33 net/netfilter/ipset/ip_set_getport.c 		th = skb_header_pointer(skb, protooff, sizeof(_tcph), &_tcph);
th                 34 net/netfilter/ipset/ip_set_getport.c 		if (!th)
th                 38 net/netfilter/ipset/ip_set_getport.c 		*port = src ? th->source : th->dest;
th                288 net/netfilter/ipvs/ip_vs_app.c static inline void vs_fix_seq(const struct ip_vs_seq *vseq, struct tcphdr *th)
th                290 net/netfilter/ipvs/ip_vs_app.c 	__u32 seq = ntohl(th->seq);
th                299 net/netfilter/ipvs/ip_vs_app.c 			th->seq = htonl(seq + vseq->delta);
th                303 net/netfilter/ipvs/ip_vs_app.c 			th->seq = htonl(seq + vseq->previous_delta);
th                315 net/netfilter/ipvs/ip_vs_app.c vs_fix_ack_seq(const struct ip_vs_seq *vseq, struct tcphdr *th)
th                317 net/netfilter/ipvs/ip_vs_app.c 	__u32 ack_seq = ntohl(th->ack_seq);
th                328 net/netfilter/ipvs/ip_vs_app.c 			th->ack_seq = htonl(ack_seq - vseq->delta);
th                333 net/netfilter/ipvs/ip_vs_app.c 			th->ack_seq = htonl(ack_seq - vseq->previous_delta);
th                366 net/netfilter/ipvs/ip_vs_app.c 	struct tcphdr *th;
th                369 net/netfilter/ipvs/ip_vs_app.c 	if (skb_ensure_writable(skb, tcp_offset + sizeof(*th)))
th                372 net/netfilter/ipvs/ip_vs_app.c 	th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset);
th                377 net/netfilter/ipvs/ip_vs_app.c 	seq = ntohl(th->seq);
th                383 net/netfilter/ipvs/ip_vs_app.c 		vs_fix_seq(&cp->out_seq, th);
th                385 net/netfilter/ipvs/ip_vs_app.c 		vs_fix_ack_seq(&cp->in_seq, th);
th                443 net/netfilter/ipvs/ip_vs_app.c 	struct tcphdr *th;
th                446 net/netfilter/ipvs/ip_vs_app.c 	if (skb_ensure_writable(skb, tcp_offset + sizeof(*th)))
th                449 net/netfilter/ipvs/ip_vs_app.c 	th = (struct tcphdr *)(skb_network_header(skb) + tcp_offset);
th                454 net/netfilter/ipvs/ip_vs_app.c 	seq = ntohl(th->seq);
th                460 net/netfilter/ipvs/ip_vs_app.c 		vs_fix_seq(&cp->in_seq, th);
th                462 net/netfilter/ipvs/ip_vs_app.c 		vs_fix_ack_seq(&cp->out_seq, th);
th               1085 net/netfilter/ipvs/ip_vs_core.c 	struct tcphdr _tcph, *th;
th               1087 net/netfilter/ipvs/ip_vs_core.c 	th = skb_header_pointer(skb, nh_len, sizeof(_tcph), &_tcph);
th               1088 net/netfilter/ipvs/ip_vs_core.c 	if (th == NULL)
th               1090 net/netfilter/ipvs/ip_vs_core.c 	return th->rst;
th               1098 net/netfilter/ipvs/ip_vs_core.c 		struct tcphdr _tcph, *th;
th               1100 net/netfilter/ipvs/ip_vs_core.c 		th = skb_header_pointer(skb, iph->len, sizeof(_tcph), &_tcph);
th               1101 net/netfilter/ipvs/ip_vs_core.c 		if (th == NULL)
th               1103 net/netfilter/ipvs/ip_vs_core.c 		return th->syn;
th                 68 net/netfilter/ipvs/ip_vs_ftp.c 	struct tcphdr *th = (struct tcphdr *)((char *)skb->data + ipvsh->len);
th                 70 net/netfilter/ipvs/ip_vs_ftp.c 	if ((th->doff << 2) < sizeof(struct tcphdr))
th                 73 net/netfilter/ipvs/ip_vs_ftp.c 	return (char *)th + (th->doff << 2);
th                 41 net/netfilter/ipvs/ip_vs_proto_tcp.c 	struct tcphdr _tcph, *th;
th                 49 net/netfilter/ipvs/ip_vs_proto_tcp.c 		th = skb_header_pointer(skb, iph->len, sizeof(_tcph), &_tcph);
th                 50 net/netfilter/ipvs/ip_vs_proto_tcp.c 		if (th) {
th                 51 net/netfilter/ipvs/ip_vs_proto_tcp.c 			if (th->rst || !(sysctl_sloppy_tcp(ipvs) || th->syn))
th                 53 net/netfilter/ipvs/ip_vs_proto_tcp.c 			ports = &th->source;
th                498 net/netfilter/ipvs/ip_vs_proto_tcp.c static inline int tcp_state_idx(struct tcphdr *th)
th                500 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (th->rst)
th                502 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (th->syn)
th                504 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (th->fin)
th                506 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (th->ack)
th                513 net/netfilter/ipvs/ip_vs_proto_tcp.c 	      int direction, struct tcphdr *th)
th                530 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if ((state_idx = tcp_state_idx(th)) < 0) {
th                547 net/netfilter/ipvs/ip_vs_proto_tcp.c 			      th->syn ? 'S' : '.',
th                548 net/netfilter/ipvs/ip_vs_proto_tcp.c 			      th->fin ? 'F' : '.',
th                549 net/netfilter/ipvs/ip_vs_proto_tcp.c 			      th->ack ? 'A' : '.',
th                550 net/netfilter/ipvs/ip_vs_proto_tcp.c 			      th->rst ? 'R' : '.',
th                590 net/netfilter/ipvs/ip_vs_proto_tcp.c 	struct tcphdr _tcph, *th;
th                598 net/netfilter/ipvs/ip_vs_proto_tcp.c 	th = skb_header_pointer(skb, ihl, sizeof(_tcph), &_tcph);
th                599 net/netfilter/ipvs/ip_vs_proto_tcp.c 	if (th == NULL)
th                603 net/netfilter/ipvs/ip_vs_proto_tcp.c 	set_tcp_state(pd, cp, direction, th);
th                379 net/netfilter/nf_conntrack_ftp.c 	const struct tcphdr *th;
th                401 net/netfilter/nf_conntrack_ftp.c 	th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
th                402 net/netfilter/nf_conntrack_ftp.c 	if (th == NULL)
th                405 net/netfilter/nf_conntrack_ftp.c 	dataoff = protoff + th->doff * 4;
th                419 net/netfilter/nf_conntrack_ftp.c 	seq = ntohl(th->seq) + datalen;
th                422 net/netfilter/nf_conntrack_ftp.c 	if (!find_nl_seq(ntohl(th->seq), ct_ftp_info, dir)) {
th                473 net/netfilter/nf_conntrack_ftp.c 		 matchlen, ntohl(th->seq) + matchoff);
th                124 net/netfilter/nf_conntrack_h323_main.c 	const struct tcphdr *th;
th                133 net/netfilter/nf_conntrack_h323_main.c 	th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
th                134 net/netfilter/nf_conntrack_h323_main.c 	if (th == NULL)
th                138 net/netfilter/nf_conntrack_h323_main.c 	tcpdataoff = protoff + th->doff * 4;
th                111 net/netfilter/nf_conntrack_irc.c 	const struct tcphdr *th;
th                134 net/netfilter/nf_conntrack_irc.c 	th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
th                135 net/netfilter/nf_conntrack_irc.c 	if (th == NULL)
th                139 net/netfilter/nf_conntrack_irc.c 	dataoff = protoff + th->doff*4;
th                163 net/netfilter/nf_conntrack_irc.c 			 &iph->saddr, ntohs(th->source),
th                164 net/netfilter/nf_conntrack_irc.c 			 &iph->daddr, ntohs(th->dest));
th                722 net/netfilter/nf_conntrack_proto_tcp.c static bool tcp_error(const struct tcphdr *th,
th                731 net/netfilter/nf_conntrack_proto_tcp.c 	if (th->doff*4 < sizeof(struct tcphdr) || tcplen < th->doff*4) {
th                749 net/netfilter/nf_conntrack_proto_tcp.c 	tcpflags = (tcp_flag_byte(th) & ~(TCPHDR_ECE|TCPHDR_CWR|TCPHDR_PSH));
th                760 net/netfilter/nf_conntrack_proto_tcp.c 			     const struct tcphdr *th)
th                769 net/netfilter/nf_conntrack_proto_tcp.c 	new_state = tcp_conntracks[0][get_conntrack_index(th)][TCP_CONNTRACK_NONE];
th                781 net/netfilter/nf_conntrack_proto_tcp.c 			segment_seq_plus_len(ntohl(th->seq), skb->len,
th                782 net/netfilter/nf_conntrack_proto_tcp.c 					     dataoff, th);
th                783 net/netfilter/nf_conntrack_proto_tcp.c 		ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window);
th                789 net/netfilter/nf_conntrack_proto_tcp.c 		tcp_options(skb, dataoff, th, &ct->proto.tcp.seen[0]);
th                801 net/netfilter/nf_conntrack_proto_tcp.c 			segment_seq_plus_len(ntohl(th->seq), skb->len,
th                802 net/netfilter/nf_conntrack_proto_tcp.c 					     dataoff, th);
th                803 net/netfilter/nf_conntrack_proto_tcp.c 		ct->proto.tcp.seen[0].td_maxwin = ntohs(th->window);
th                849 net/netfilter/nf_conntrack_proto_tcp.c 	const struct tcphdr *th;
th                853 net/netfilter/nf_conntrack_proto_tcp.c 	th = skb_header_pointer(skb, dataoff, sizeof(_tcph), &_tcph);
th                854 net/netfilter/nf_conntrack_proto_tcp.c 	if (th == NULL)
th                857 net/netfilter/nf_conntrack_proto_tcp.c 	if (tcp_error(th, skb, dataoff, state))
th                860 net/netfilter/nf_conntrack_proto_tcp.c 	if (!nf_ct_is_confirmed(ct) && !tcp_new(ct, skb, dataoff, th))
th                866 net/netfilter/nf_conntrack_proto_tcp.c 	index = get_conntrack_index(th);
th                921 net/netfilter/nf_conntrack_proto_tcp.c 		    && ntohl(th->ack_seq) == ct->proto.tcp.last_end) {
th                948 net/netfilter/nf_conntrack_proto_tcp.c 		ct->proto.tcp.last_seq = ntohl(th->seq);
th                950 net/netfilter/nf_conntrack_proto_tcp.c 		    segment_seq_plus_len(ntohl(th->seq), skb->len, dataoff, th);
th                951 net/netfilter/nf_conntrack_proto_tcp.c 		ct->proto.tcp.last_win = ntohs(th->window);
th                965 net/netfilter/nf_conntrack_proto_tcp.c 			tcp_options(skb, dataoff, th, &seen);
th                997 net/netfilter/nf_conntrack_proto_tcp.c 		    ct->proto.tcp.seen[dir].td_end - 1 == ntohl(th->seq)) {
th               1005 net/netfilter/nf_conntrack_proto_tcp.c 			 dir, get_conntrack_index(th), old_state);
th               1042 net/netfilter/nf_conntrack_proto_tcp.c 			u32 seq = ntohl(th->seq);
th               1073 net/netfilter/nf_conntrack_proto_tcp.c 		    && ntohl(th->ack_seq) == ct->proto.tcp.last_end) {
th               1092 net/netfilter/nf_conntrack_proto_tcp.c 			   skb, dataoff, th)) {
th               1104 net/netfilter/nf_conntrack_proto_tcp.c 		 (th->syn ? 1 : 0), (th->ack ? 1 : 0),
th               1105 net/netfilter/nf_conntrack_proto_tcp.c 		 (th->fin ? 1 : 0), (th->rst ? 1 : 0),
th               1141 net/netfilter/nf_conntrack_proto_tcp.c 		if (th->rst) {
th                 68 net/netfilter/nf_conntrack_sane.c 	const struct tcphdr *th;
th                 85 net/netfilter/nf_conntrack_sane.c 	th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
th                 86 net/netfilter/nf_conntrack_sane.c 	if (th == NULL)
th                 90 net/netfilter/nf_conntrack_sane.c 	dataoff = protoff + th->doff * 4;
th                 64 net/netfilter/nf_conntrack_seqadj.c 	const struct tcphdr *th;
th                 69 net/netfilter/nf_conntrack_seqadj.c 	th = (struct tcphdr *)(skb_network_header(skb) + ip_hdrlen(skb));
th                 70 net/netfilter/nf_conntrack_seqadj.c 	nf_ct_seqadj_set(ct, ctinfo, th->seq, off);
th               1530 net/netfilter/nf_conntrack_sip.c 	struct tcphdr *th, _tcph;
th               1544 net/netfilter/nf_conntrack_sip.c 	th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph);
th               1545 net/netfilter/nf_conntrack_sip.c 	if (th == NULL)
th               1547 net/netfilter/nf_conntrack_sip.c 	dataoff = protoff + th->doff * 4;
th                 58 net/netfilter/nf_log_common.c 	const struct tcphdr *th;
th                 67 net/netfilter/nf_log_common.c 	th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
th                 68 net/netfilter/nf_log_common.c 	if (th == NULL) {
th                 75 net/netfilter/nf_log_common.c 		       ntohs(th->source), ntohs(th->dest));
th                 79 net/netfilter/nf_log_common.c 			       ntohl(th->seq), ntohl(th->ack_seq));
th                 83 net/netfilter/nf_log_common.c 	nf_log_buf_add(m, "WINDOW=%u ", ntohs(th->window));
th                 85 net/netfilter/nf_log_common.c 	nf_log_buf_add(m, "RES=0x%02x ", (u_int8_t)(ntohl(tcp_flag_word(th) &
th                 88 net/netfilter/nf_log_common.c 	if (th->cwr)
th                 90 net/netfilter/nf_log_common.c 	if (th->ece)
th                 92 net/netfilter/nf_log_common.c 	if (th->urg)
th                 94 net/netfilter/nf_log_common.c 	if (th->ack)
th                 96 net/netfilter/nf_log_common.c 	if (th->psh)
th                 98 net/netfilter/nf_log_common.c 	if (th->rst)
th                100 net/netfilter/nf_log_common.c 	if (th->syn)
th                102 net/netfilter/nf_log_common.c 	if (th->fin)
th                105 net/netfilter/nf_log_common.c 	nf_log_buf_add(m, "URGP=%u ", ntohs(th->urg_ptr));
th                107 net/netfilter/nf_log_common.c 	if ((logflags & NF_LOG_TCPOPT) && th->doff*4 > sizeof(struct tcphdr)) {
th                111 net/netfilter/nf_log_common.c 		unsigned int optsize = th->doff*4 - sizeof(struct tcphdr);
th                 42 net/netfilter/nf_nat_sip.c 	struct tcphdr *th;
th                 46 net/netfilter/nf_nat_sip.c 		th = (struct tcphdr *)(skb->data + protoff);
th                 47 net/netfilter/nf_nat_sip.c 		baseoff = protoff + th->doff * 4;
th                308 net/netfilter/nf_nat_sip.c 	const struct tcphdr *th;
th                313 net/netfilter/nf_nat_sip.c 	th = (struct tcphdr *)(skb->data + protoff);
th                314 net/netfilter/nf_nat_sip.c 	nf_ct_seqadj_set(ct, ctinfo, th->seq, off);
th                 29 net/netfilter/nf_synproxy_core.c 		       const struct tcphdr *th, struct synproxy_options *opts)
th                 31 net/netfilter/nf_synproxy_core.c 	int length = (th->doff * 4) - sizeof(*th);
th                 34 net/netfilter/nf_synproxy_core.c 	ptr = skb_header_pointer(skb, doff + sizeof(*th), length, buf);
th                110 net/netfilter/nf_synproxy_core.c synproxy_build_options(struct tcphdr *th, const struct synproxy_options *opts)
th                112 net/netfilter/nf_synproxy_core.c 	__be32 *ptr = (__be32 *)(th + 1);
th                181 net/netfilter/nf_synproxy_core.c 		       struct tcphdr *th, struct nf_conn *ct,
th                192 net/netfilter/nf_synproxy_core.c 	optend = protoff + th->doff * 4;
th                224 net/netfilter/nf_synproxy_core.c 				inet_proto_csum_replace4(&th->check, skb,
th                466 net/netfilter/nf_synproxy_core.c 			    const struct sk_buff *skb, const struct tcphdr *th,
th                488 net/netfilter/nf_synproxy_core.c 	nth->source	= th->dest;
th                489 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->source;
th                490 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(__cookie_v4_init_sequence(iph, th, &mss));
th                491 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= htonl(ntohl(th->seq) + 1);
th                509 net/netfilter/nf_synproxy_core.c 			 const struct sk_buff *skb, const struct tcphdr *th,
th                531 net/netfilter/nf_synproxy_core.c 	nth->source	= th->source;
th                532 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->dest;
th                537 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= htonl(ntohl(th->ack_seq) - 1);
th                542 net/netfilter/nf_synproxy_core.c 	nth->window	= th->window;
th                555 net/netfilter/nf_synproxy_core.c 			 const struct sk_buff *skb, const struct tcphdr *th,
th                576 net/netfilter/nf_synproxy_core.c 	nth->source	= th->dest;
th                577 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->source;
th                578 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(ntohl(th->ack_seq));
th                579 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= htonl(ntohl(th->seq) + 1);
th                593 net/netfilter/nf_synproxy_core.c 			 const struct sk_buff *skb, const struct tcphdr *th,
th                614 net/netfilter/nf_synproxy_core.c 	nth->source	= th->source;
th                615 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->dest;
th                616 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(ntohl(th->seq) + 1);
th                617 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= th->ack_seq;
th                620 net/netfilter/nf_synproxy_core.c 	nth->window	= htons(ntohs(th->window) >> opts->wscale);
th                632 net/netfilter/nf_synproxy_core.c 			 const struct sk_buff *skb, const struct tcphdr *th,
th                638 net/netfilter/nf_synproxy_core.c 	mss = __cookie_v4_check(ip_hdr(skb), th, ntohl(th->ack_seq) - 1);
th                651 net/netfilter/nf_synproxy_core.c 	synproxy_send_server_syn(net, skb, th, opts, recv_seq);
th                667 net/netfilter/nf_synproxy_core.c 	struct tcphdr *th, _th;
th                683 net/netfilter/nf_synproxy_core.c 	th = skb_header_pointer(skb, thoff, sizeof(_th), &_th);
th                684 net/netfilter/nf_synproxy_core.c 	if (!th)
th                690 net/netfilter/nf_synproxy_core.c 		if (th->rst && CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) {
th                692 net/netfilter/nf_synproxy_core.c 						      ntohl(th->seq) + 1);
th                696 net/netfilter/nf_synproxy_core.c 		if (!th->syn || th->ack ||
th                710 net/netfilter/nf_synproxy_core.c 		if (!synproxy_parse_options(skb, thoff, th, &opts))
th                713 net/netfilter/nf_synproxy_core.c 		if (!th->syn && th->ack &&
th                719 net/netfilter/nf_synproxy_core.c 			if (synproxy_recv_client_ack(net, skb, th, &opts,
th                720 net/netfilter/nf_synproxy_core.c 						     ntohl(th->seq) + 1)) {
th                729 net/netfilter/nf_synproxy_core.c 		synproxy->isn = ntohl(th->ack_seq);
th                736 net/netfilter/nf_synproxy_core.c 		if (!th->syn || !th->ack)
th                739 net/netfilter/nf_synproxy_core.c 		if (!synproxy_parse_options(skb, thoff, th, &opts))
th                752 net/netfilter/nf_synproxy_core.c 		synproxy_send_server_ack(net, state, skb, th, &opts);
th                754 net/netfilter/nf_synproxy_core.c 		nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - ntohl(th->seq));
th                758 net/netfilter/nf_synproxy_core.c 		synproxy_send_client_ack(net, skb, th, &opts);
th                766 net/netfilter/nf_synproxy_core.c 	synproxy_tstamp_adjust(skb, thoff, th, ct, ctinfo, synproxy);
th                880 net/netfilter/nf_synproxy_core.c 				 const struct tcphdr *th,
th                902 net/netfilter/nf_synproxy_core.c 	nth->source	= th->dest;
th                903 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->source;
th                904 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(nf_ipv6_cookie_init_sequence(iph, th, &mss));
th                905 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= htonl(ntohl(th->seq) + 1);
th                924 net/netfilter/nf_synproxy_core.c 			      const struct tcphdr *th,
th                946 net/netfilter/nf_synproxy_core.c 	nth->source	= th->source;
th                947 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->dest;
th                952 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= htonl(ntohl(th->ack_seq) - 1);
th                957 net/netfilter/nf_synproxy_core.c 	nth->window	= th->window;
th                970 net/netfilter/nf_synproxy_core.c 			      const struct tcphdr *th,
th                991 net/netfilter/nf_synproxy_core.c 	nth->source	= th->dest;
th                992 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->source;
th                993 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(ntohl(th->ack_seq));
th                994 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= htonl(ntohl(th->seq) + 1);
th               1009 net/netfilter/nf_synproxy_core.c 			      const struct tcphdr *th,
th               1030 net/netfilter/nf_synproxy_core.c 	nth->source	= th->source;
th               1031 net/netfilter/nf_synproxy_core.c 	nth->dest	= th->dest;
th               1032 net/netfilter/nf_synproxy_core.c 	nth->seq	= htonl(ntohl(th->seq) + 1);
th               1033 net/netfilter/nf_synproxy_core.c 	nth->ack_seq	= th->ack_seq;
th               1036 net/netfilter/nf_synproxy_core.c 	nth->window	= htons(ntohs(th->window) >> opts->wscale);
th               1050 net/netfilter/nf_synproxy_core.c 			      const struct tcphdr *th,
th               1056 net/netfilter/nf_synproxy_core.c 	mss = nf_cookie_v6_check(ipv6_hdr(skb), th, ntohl(th->ack_seq) - 1);
th               1069 net/netfilter/nf_synproxy_core.c 	synproxy_send_server_syn_ipv6(net, skb, th, opts, recv_seq);
th               1085 net/netfilter/nf_synproxy_core.c 	struct tcphdr *th, _th;
th               1107 net/netfilter/nf_synproxy_core.c 	th = skb_header_pointer(skb, thoff, sizeof(_th), &_th);
th               1108 net/netfilter/nf_synproxy_core.c 	if (!th)
th               1114 net/netfilter/nf_synproxy_core.c 		if (th->rst && CTINFO2DIR(ctinfo) != IP_CT_DIR_ORIGINAL) {
th               1116 net/netfilter/nf_synproxy_core.c 						      ntohl(th->seq) + 1);
th               1120 net/netfilter/nf_synproxy_core.c 		if (!th->syn || th->ack ||
th               1134 net/netfilter/nf_synproxy_core.c 		if (!synproxy_parse_options(skb, thoff, th, &opts))
th               1137 net/netfilter/nf_synproxy_core.c 		if (!th->syn && th->ack &&
th               1143 net/netfilter/nf_synproxy_core.c 			if (synproxy_recv_client_ack_ipv6(net, skb, th, &opts,
th               1144 net/netfilter/nf_synproxy_core.c 							  ntohl(th->seq) + 1)) {
th               1153 net/netfilter/nf_synproxy_core.c 		synproxy->isn = ntohl(th->ack_seq);
th               1160 net/netfilter/nf_synproxy_core.c 		if (!th->syn || !th->ack)
th               1163 net/netfilter/nf_synproxy_core.c 		if (!synproxy_parse_options(skb, thoff, th, &opts))
th               1176 net/netfilter/nf_synproxy_core.c 		synproxy_send_server_ack_ipv6(net, state, skb, th, &opts);
th               1178 net/netfilter/nf_synproxy_core.c 		nf_ct_seqadj_init(ct, ctinfo, synproxy->isn - ntohl(th->seq));
th               1182 net/netfilter/nf_synproxy_core.c 		synproxy_send_client_ack_ipv6(net, skb, th, &opts);
th               1190 net/netfilter/nf_synproxy_core.c 	synproxy_tstamp_adjust(skb, thoff, th, ct, ctinfo, synproxy);
th                 31 net/netfilter/xt_ecn.c 	const struct tcphdr *th;
th                 36 net/netfilter/xt_ecn.c 	th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
th                 37 net/netfilter/xt_ecn.c 	if (th == NULL)
th                 42 net/netfilter/xt_ecn.c 			if (th->ece == 1)
th                 45 net/netfilter/xt_ecn.c 			if (th->ece == 0)
th                 52 net/netfilter/xt_ecn.c 			if (th->cwr == 1)
th                 55 net/netfilter/xt_ecn.c 			if (th->cwr == 0)
th                 28 net/netfilter/xt_tcpmss.c 	const struct tcphdr *th;
th                 36 net/netfilter/xt_tcpmss.c 	th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
th                 37 net/netfilter/xt_tcpmss.c 	if (th == NULL)
th                 41 net/netfilter/xt_tcpmss.c 	if (th->doff*4 < sizeof(*th))
th                 44 net/netfilter/xt_tcpmss.c 	optlen = th->doff*4 - sizeof(*th);
th                 49 net/netfilter/xt_tcpmss.c 	op = skb_header_pointer(skb, par->thoff + sizeof(*th), optlen, _opt);
th                 68 net/netfilter/xt_tcpudp.c 	const struct tcphdr *th;
th                 87 net/netfilter/xt_tcpudp.c 	th = skb_header_pointer(skb, par->thoff, sizeof(_tcph), &_tcph);
th                 88 net/netfilter/xt_tcpudp.c 	if (th == NULL) {
th                 97 net/netfilter/xt_tcpudp.c 			ntohs(th->source),
th                101 net/netfilter/xt_tcpudp.c 			ntohs(th->dest),
th                105 net/netfilter/xt_tcpudp.c 		     (((unsigned char *)th)[13] & tcpinfo->flg_mask) == tcpinfo->flg_cmp))
th                108 net/netfilter/xt_tcpudp.c 		if (th->doff * 4 < sizeof(_tcph)) {
th                113 net/netfilter/xt_tcpudp.c 				     th->doff*4 - sizeof(_tcph),
th                684 net/openvswitch/actions.c 	struct tcphdr *th;
th                693 net/openvswitch/actions.c 	th = tcp_hdr(skb);
th                694 net/openvswitch/actions.c 	src = OVS_MASKED(th->source, key->tcp_src, mask->tcp_src);
th                695 net/openvswitch/actions.c 	if (likely(src != th->source)) {
th                696 net/openvswitch/actions.c 		set_tp_port(skb, &th->source, src, &th->check);
th                699 net/openvswitch/actions.c 	dst = OVS_MASKED(th->dest, key->tcp_dst, mask->tcp_dst);
th                700 net/openvswitch/actions.c 	if (likely(dst != th->dest)) {
th                701 net/openvswitch/actions.c 		set_tp_port(skb, &th->dest, dst, &th->check);
th                476 net/sched/cls_route.c 	unsigned int h, th;
th                530 net/sched/cls_route.c 		th = to_hash(fold->handle);
th                532 net/sched/cls_route.c 		b = rtnl_dereference(head->table[th]);
th               1328 net/sched/sch_cake.c 		const struct tcphdr *th;
th               1331 net/sched/sch_cake.c 		th = skb_header_pointer(skb, skb_transport_offset(skb),
th               1333 net/sched/sch_cake.c 		if (likely(th))
th               1334 net/sched/sch_cake.c 			hdr_len += __tcp_hdrlen(th);
th                169 net/tls/tls_device_fallback.c 	struct tcphdr *th = tcp_hdr(skb);
th                186 net/tls/tls_device_fallback.c 		th->check = ~csum_ipv6_magic(&ipv6h->saddr, &ipv6h->daddr,
th                190 net/tls/tls_device_fallback.c 		th->check = ~csum_tcpudp_magic(iph->saddr, iph->daddr, datalen,
th                 48 samples/bpf/xdp_tx_iptunnel_kern.c 	struct tcphdr *th;
th                 53 samples/bpf/xdp_tx_iptunnel_kern.c 		th = (struct tcphdr *)trans_data;
th                 54 samples/bpf/xdp_tx_iptunnel_kern.c 		if (th + 1 > data_end)
th                 56 samples/bpf/xdp_tx_iptunnel_kern.c 		return th->dest;
th                 80 security/apparmor/match.c 	struct table_header th;
th                 89 security/apparmor/match.c 	th.td_id = be16_to_cpu(*(__be16 *) (blob)) - 1;
th                 90 security/apparmor/match.c 	if (th.td_id > YYTD_ID_MAX)
th                 92 security/apparmor/match.c 	th.td_flags = be16_to_cpu(*(__be16 *) (blob + 2));
th                 93 security/apparmor/match.c 	th.td_lolen = be32_to_cpu(*(__be32 *) (blob + 8));
th                 96 security/apparmor/match.c 	if (!(th.td_flags == YYTD_DATA16 || th.td_flags == YYTD_DATA32 ||
th                 97 security/apparmor/match.c 	      th.td_flags == YYTD_DATA8))
th                100 security/apparmor/match.c 	tsize = table_size(th.td_lolen, th.td_flags);
th                106 security/apparmor/match.c 		table->td_id = th.td_id;
th                107 security/apparmor/match.c 		table->td_flags = th.td_flags;
th                108 security/apparmor/match.c 		table->td_lolen = th.td_lolen;
th                109 security/apparmor/match.c 		if (th.td_flags == YYTD_DATA8)
th                110 security/apparmor/match.c 			UNPACK_ARRAY(table->td_data, blob, th.td_lolen,
th                112 security/apparmor/match.c 		else if (th.td_flags == YYTD_DATA16)
th                113 security/apparmor/match.c 			UNPACK_ARRAY(table->td_data, blob, th.td_lolen,
th                115 security/apparmor/match.c 		else if (th.td_flags == YYTD_DATA32)
th                116 security/apparmor/match.c 			UNPACK_ARRAY(table->td_data, blob, th.td_lolen,
th                 60 security/lsm_audit.c 		struct tcphdr *th = tcp_hdr(skb);
th                 61 security/lsm_audit.c 		if (th == NULL)
th                 64 security/lsm_audit.c 		ad->u.net->sport = th->source;
th                 65 security/lsm_audit.c 		ad->u.net->dport = th->dest;
th                134 security/lsm_audit.c 		struct tcphdr _tcph, *th;
th                136 security/lsm_audit.c 		th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
th                137 security/lsm_audit.c 		if (th == NULL)
th                140 security/lsm_audit.c 		ad->u.net->sport = th->source;
th                141 security/lsm_audit.c 		ad->u.net->dport = th->dest;
th               4199 security/selinux/hooks.c 		struct tcphdr _tcph, *th;
th               4205 security/selinux/hooks.c 		th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
th               4206 security/selinux/hooks.c 		if (th == NULL)
th               4209 security/selinux/hooks.c 		ad->u.net->sport = th->source;
th               4210 security/selinux/hooks.c 		ad->u.net->dport = th->dest;
th               4301 security/selinux/hooks.c 		struct tcphdr _tcph, *th;
th               4303 security/selinux/hooks.c 		th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
th               4304 security/selinux/hooks.c 		if (th == NULL)
th               4307 security/selinux/hooks.c 		ad->u.net->sport = th->source;
th               4308 security/selinux/hooks.c 		ad->u.net->dport = th->dest;
th               3785 security/smack/smack_lsm.c 	struct tcphdr _tcph, *th;
th               3806 security/smack/smack_lsm.c 		th = skb_header_pointer(skb, offset, sizeof(_tcph), &_tcph);
th               3807 security/smack/smack_lsm.c 		if (th != NULL)
th               3808 security/smack/smack_lsm.c 			sip->sin6_port = th->source;
th               1122 sound/soc/uniphier/aio-core.c int aiodma_rb_set_threshold(struct uniphier_aio_sub *sub, u64 size, u32 th)
th               1126 sound/soc/uniphier/aio-core.c 	if (size <= th)
th               1129 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXBTH(sub->swm->rb.map), th);
th               1130 sound/soc/uniphier/aio-core.c 	regmap_write(r, CDA2D_RBMXRTH(sub->swm->rb.map), th);
th                346 sound/soc/uniphier/aio.h int aiodma_rb_set_threshold(struct uniphier_aio_sub *sub, u64 size, u32 th);
th               2192 tools/perf/util/cs-etm.c 	struct thread *th;
th               2201 tools/perf/util/cs-etm.c 	th = machine__findnew_thread(etm->machine,
th               2204 tools/perf/util/cs-etm.c 	if (!th)
th               2207 tools/perf/util/cs-etm.c 	thread__put(th);
th               2215 tools/perf/util/cs-etm.c 	struct thread *th;
th               2237 tools/perf/util/cs-etm.c 	th = machine__findnew_thread(etm->machine,
th               2240 tools/perf/util/cs-etm.c 	if (!th)
th               2243 tools/perf/util/cs-etm.c 	thread__put(th);
th               1780 tools/perf/util/evlist.c 	if (pthread_create(&evlist->thread.th, NULL, perf_evlist__poll_thread, evlist))
th               1796 tools/perf/util/evlist.c 	pthread_join(evlist->thread.th, NULL);
th                 74 tools/perf/util/evlist.h 		pthread_t		th;
th                 43 tools/perf/util/machine.c static void __machine__remove_thread(struct machine *machine, struct thread *th, bool lock);
th                394 tools/perf/util/machine.c 				       struct thread *th, pid_t pid)
th                398 tools/perf/util/machine.c 	if (pid == th->pid_ || pid == -1 || th->pid_ != -1)
th                401 tools/perf/util/machine.c 	th->pid_ = pid;
th                403 tools/perf/util/machine.c 	if (th->pid_ == th->tid)
th                406 tools/perf/util/machine.c 	leader = __machine__findnew_thread(machine, th->pid_, th->pid_);
th                416 tools/perf/util/machine.c 	if (th->mg == leader->mg)
th                419 tools/perf/util/machine.c 	if (th->mg) {
th                425 tools/perf/util/machine.c 		if (!map_groups__empty(th->mg))
th                427 tools/perf/util/machine.c 			       th->pid_, th->tid);
th                428 tools/perf/util/machine.c 		map_groups__put(th->mg);
th                431 tools/perf/util/machine.c 	th->mg = map_groups__get(leader->mg);
th                436 tools/perf/util/machine.c 	pr_err("Failed to join map groups for %d:%d\n", th->pid_, th->tid);
th                449 tools/perf/util/machine.c 	struct thread *th;
th                451 tools/perf/util/machine.c 	th = threads->last_match;
th                452 tools/perf/util/machine.c 	if (th != NULL) {
th                453 tools/perf/util/machine.c 		if (th->tid == tid) {
th                454 tools/perf/util/machine.c 			machine__update_thread_pid(machine, th, pid);
th                455 tools/perf/util/machine.c 			return thread__get(th);
th                468 tools/perf/util/machine.c 	struct thread *th = NULL;
th                471 tools/perf/util/machine.c 		th = __threads__get_last_match(threads, machine, pid, tid);
th                473 tools/perf/util/machine.c 	return th;
th                477 tools/perf/util/machine.c __threads__set_last_match(struct threads *threads, struct thread *th)
th                479 tools/perf/util/machine.c 	threads->last_match = th;
th                483 tools/perf/util/machine.c threads__set_last_match(struct threads *threads, struct thread *th)
th                486 tools/perf/util/machine.c 		__threads__set_last_match(threads, th);
th                500 tools/perf/util/machine.c 	struct thread *th;
th                503 tools/perf/util/machine.c 	th = threads__get_last_match(threads, machine, pid, tid);
th                504 tools/perf/util/machine.c 	if (th)
th                505 tools/perf/util/machine.c 		return th;
th                509 tools/perf/util/machine.c 		th = rb_entry(parent, struct thread, rb_node);
th                511 tools/perf/util/machine.c 		if (th->tid == tid) {
th                512 tools/perf/util/machine.c 			threads__set_last_match(threads, th);
th                513 tools/perf/util/machine.c 			machine__update_thread_pid(machine, th, pid);
th                514 tools/perf/util/machine.c 			return thread__get(th);
th                517 tools/perf/util/machine.c 		if (tid < th->tid)
th                528 tools/perf/util/machine.c 	th = thread__new(pid, tid);
th                529 tools/perf/util/machine.c 	if (th != NULL) {
th                530 tools/perf/util/machine.c 		rb_link_node(&th->rb_node, parent, p);
th                531 tools/perf/util/machine.c 		rb_insert_color_cached(&th->rb_node, &threads->entries, leftmost);
th                541 tools/perf/util/machine.c 		if (thread__init_map_groups(th, machine)) {
th                542 tools/perf/util/machine.c 			rb_erase_cached(&th->rb_node, &threads->entries);
th                543 tools/perf/util/machine.c 			RB_CLEAR_NODE(&th->rb_node);
th                544 tools/perf/util/machine.c 			thread__put(th);
th                550 tools/perf/util/machine.c 		thread__get(th);
th                551 tools/perf/util/machine.c 		threads__set_last_match(threads, th);
th                555 tools/perf/util/machine.c 	return th;
th                567 tools/perf/util/machine.c 	struct thread *th;
th                570 tools/perf/util/machine.c 	th = __machine__findnew_thread(machine, pid, tid);
th                572 tools/perf/util/machine.c 	return th;
th                579 tools/perf/util/machine.c 	struct thread *th;
th                582 tools/perf/util/machine.c 	th =  ____machine__findnew_thread(machine, threads, pid, tid, false);
th                584 tools/perf/util/machine.c 	return th;
th               1754 tools/perf/util/machine.c static void __machine__remove_thread(struct machine *machine, struct thread *th, bool lock)
th               1756 tools/perf/util/machine.c 	struct threads *threads = machine__threads(machine, th->tid);
th               1758 tools/perf/util/machine.c 	if (threads->last_match == th)
th               1764 tools/perf/util/machine.c 	BUG_ON(refcount_read(&th->refcnt) == 0);
th               1766 tools/perf/util/machine.c 	rb_erase_cached(&th->rb_node, &threads->entries);
th               1767 tools/perf/util/machine.c 	RB_CLEAR_NODE(&th->rb_node);
th               1774 tools/perf/util/machine.c 	list_add_tail(&th->node, &threads->dead);
th               1781 tools/perf/util/machine.c 	thread__put(th);
th               1787 tools/perf/util/machine.c void machine__remove_thread(struct machine *machine, struct thread *th)
th               1789 tools/perf/util/machine.c 	return __machine__remove_thread(machine, th, true);
th                168 tools/perf/util/machine.h void machine__remove_thread(struct machine *machine, struct thread *th);
th                109 tools/perf/util/sort.c 	const struct thread *th = arg;
th                114 tools/perf/util/sort.c 	return th && he->thread != th;
th                108 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c 		struct tcphdr *th = data;
th                110 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c 		if (th + 1 > data_end)
th                113 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c 		data_check.skb_ports[0] = th->source;
th                114 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c 		data_check.skb_ports[1] = th->dest;
th                116 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c 		if (th->fin)
th                122 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c 		if ((th->doff << 2) + sizeof(*cmd) > data_check.len)
th                124 tools/testing/selftests/bpf/progs/test_select_reuseport_kern.c 		if (bpf_skb_load_bytes(reuse_md, th->doff << 2, &cmd_copy,
th                 51 tools/testing/selftests/bpf/progs/test_xdp.c 	struct tcphdr *th;
th                 56 tools/testing/selftests/bpf/progs/test_xdp.c 		th = (struct tcphdr *)trans_data;
th                 57 tools/testing/selftests/bpf/progs/test_xdp.c 		if (th + 1 > data_end)
th                 59 tools/testing/selftests/bpf/progs/test_xdp.c 		return th->dest;
th                 47 tools/testing/selftests/bpf/progs/test_xdp_loop.c 	struct tcphdr *th;
th                 52 tools/testing/selftests/bpf/progs/test_xdp_loop.c 		th = (struct tcphdr *)trans_data;
th                 53 tools/testing/selftests/bpf/progs/test_xdp_loop.c 		if (th + 1 > data_end)
th                 55 tools/testing/selftests/bpf/progs/test_xdp_loop.c 		return th->dest;
th                 56 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c 	pthread_t th[NTHREAD];
th                 72 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c 		pthread_create(&th[i], NULL, thr, (void *)(uintptr_t)&tc);
th                 76 tools/testing/selftests/kvm/x86_64/mmio_warning_test.c 		pthread_join(th[i], NULL);
th                283 tools/testing/selftests/net/tcp_mmap.c 		pthread_t th;
th                291 tools/testing/selftests/net/tcp_mmap.c 		res = pthread_create(&th, NULL, child_thread,
th                398 tools/testing/selftests/powerpc/mm/tlbie_test.c static void set_pthread_cpu(pthread_t th, int cpu)
th                405 tools/testing/selftests/powerpc/mm/tlbie_test.c 	pthread_setaffinity_np(th, sizeof(cpu_set_t), &run_cpu_mask);