ptd                78 drivers/thermal/intel/intel_pch_thermal.c static void pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd,
ptd                83 drivers/thermal/intel/intel_pch_thermal.c 	ptd->psv_trip_id = -1;
ptd                85 drivers/thermal/intel/intel_pch_thermal.c 	adev = ACPI_COMPANION(&ptd->pdev->dev);
ptd                97 drivers/thermal/intel/intel_pch_thermal.c 				ptd->psv_temp = trip_temp;
ptd                98 drivers/thermal/intel/intel_pch_thermal.c 				ptd->psv_trip_id = *nr_trips;
ptd               105 drivers/thermal/intel/intel_pch_thermal.c static void pch_wpt_add_acpi_psv_trip(struct pch_thermal_device *ptd,
ptd               108 drivers/thermal/intel/intel_pch_thermal.c 	ptd->psv_trip_id = -1;
ptd               113 drivers/thermal/intel/intel_pch_thermal.c static int pch_wpt_init(struct pch_thermal_device *ptd, int *nr_trips)
ptd               121 drivers/thermal/intel/intel_pch_thermal.c 	if (WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL)) {
ptd               122 drivers/thermal/intel/intel_pch_thermal.c 		ptd->bios_enabled = true;
ptd               126 drivers/thermal/intel/intel_pch_thermal.c 	tsel = readb(ptd->hw_base + WPT_TSEL);
ptd               132 drivers/thermal/intel/intel_pch_thermal.c 		dev_err(&ptd->pdev->dev, "Sensor can't be enabled\n");
ptd               136 drivers/thermal/intel/intel_pch_thermal.c 	writeb(tsel|WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL);
ptd               137 drivers/thermal/intel/intel_pch_thermal.c 	if (!(WPT_TSEL_ETS & readb(ptd->hw_base + WPT_TSEL))) {
ptd               138 drivers/thermal/intel/intel_pch_thermal.c 		dev_err(&ptd->pdev->dev, "Sensor can't be enabled\n");
ptd               143 drivers/thermal/intel/intel_pch_thermal.c 	ptd->crt_trip_id = -1;
ptd               144 drivers/thermal/intel/intel_pch_thermal.c 	trip_temp = readw(ptd->hw_base + WPT_CTT);
ptd               148 drivers/thermal/intel/intel_pch_thermal.c 		ptd->crt_temp = trip_temp * 1000 / 2 - 50000;
ptd               149 drivers/thermal/intel/intel_pch_thermal.c 		ptd->crt_trip_id = 0;
ptd               153 drivers/thermal/intel/intel_pch_thermal.c 	ptd->hot_trip_id = -1;
ptd               154 drivers/thermal/intel/intel_pch_thermal.c 	trip_temp = readw(ptd->hw_base + WPT_PHL);
ptd               158 drivers/thermal/intel/intel_pch_thermal.c 		ptd->hot_temp = trip_temp * 1000 / 2 - 50000;
ptd               159 drivers/thermal/intel/intel_pch_thermal.c 		ptd->hot_trip_id = *nr_trips;
ptd               163 drivers/thermal/intel/intel_pch_thermal.c 	pch_wpt_add_acpi_psv_trip(ptd, nr_trips);
ptd               168 drivers/thermal/intel/intel_pch_thermal.c static int pch_wpt_get_temp(struct pch_thermal_device *ptd, int *temp)
ptd               172 drivers/thermal/intel/intel_pch_thermal.c 	wpt_temp = WPT_TEMP_TSR & readw(ptd->hw_base + WPT_TEMP);
ptd               180 drivers/thermal/intel/intel_pch_thermal.c static int pch_wpt_suspend(struct pch_thermal_device *ptd)
ptd               184 drivers/thermal/intel/intel_pch_thermal.c 	if (ptd->bios_enabled)
ptd               187 drivers/thermal/intel/intel_pch_thermal.c 	tsel = readb(ptd->hw_base + WPT_TSEL);
ptd               189 drivers/thermal/intel/intel_pch_thermal.c 	writeb(tsel & 0xFE, ptd->hw_base + WPT_TSEL);
ptd               194 drivers/thermal/intel/intel_pch_thermal.c static int pch_wpt_resume(struct pch_thermal_device *ptd)
ptd               198 drivers/thermal/intel/intel_pch_thermal.c 	if (ptd->bios_enabled)
ptd               201 drivers/thermal/intel/intel_pch_thermal.c 	tsel = readb(ptd->hw_base + WPT_TSEL);
ptd               203 drivers/thermal/intel/intel_pch_thermal.c 	writeb(tsel | WPT_TSEL_ETS, ptd->hw_base + WPT_TSEL);
ptd               209 drivers/thermal/intel/intel_pch_thermal.c 	int (*hw_init)(struct pch_thermal_device *ptd, int *nr_trips);
ptd               210 drivers/thermal/intel/intel_pch_thermal.c 	int (*get_temp)(struct pch_thermal_device *ptd, int *temp);
ptd               211 drivers/thermal/intel/intel_pch_thermal.c 	int (*suspend)(struct pch_thermal_device *ptd);
ptd               212 drivers/thermal/intel/intel_pch_thermal.c 	int (*resume)(struct pch_thermal_device *ptd);
ptd               226 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = tzd->devdata;
ptd               228 drivers/thermal/intel/intel_pch_thermal.c 	return	ptd->ops->get_temp(ptd, temp);
ptd               234 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = tzd->devdata;
ptd               236 drivers/thermal/intel/intel_pch_thermal.c 	if (ptd->crt_trip_id == trip)
ptd               238 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->hot_trip_id == trip)
ptd               240 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->psv_trip_id == trip)
ptd               250 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = tzd->devdata;
ptd               252 drivers/thermal/intel/intel_pch_thermal.c 	if (ptd->crt_trip_id == trip)
ptd               253 drivers/thermal/intel/intel_pch_thermal.c 		*temp = ptd->crt_temp;
ptd               254 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->hot_trip_id == trip)
ptd               255 drivers/thermal/intel/intel_pch_thermal.c 		*temp = ptd->hot_temp;
ptd               256 drivers/thermal/intel/intel_pch_thermal.c 	else if (ptd->psv_trip_id == trip)
ptd               257 drivers/thermal/intel/intel_pch_thermal.c 		*temp = ptd->psv_temp;
ptd               304 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd;
ptd               308 drivers/thermal/intel/intel_pch_thermal.c 	ptd = devm_kzalloc(&pdev->dev, sizeof(*ptd), GFP_KERNEL);
ptd               309 drivers/thermal/intel/intel_pch_thermal.c 	if (!ptd)
ptd               312 drivers/thermal/intel/intel_pch_thermal.c 	ptd->ops = bi->ops;
ptd               314 drivers/thermal/intel/intel_pch_thermal.c 	pci_set_drvdata(pdev, ptd);
ptd               315 drivers/thermal/intel/intel_pch_thermal.c 	ptd->pdev = pdev;
ptd               329 drivers/thermal/intel/intel_pch_thermal.c 	ptd->hw_base = pci_ioremap_bar(pdev, 0);
ptd               330 drivers/thermal/intel/intel_pch_thermal.c 	if (!ptd->hw_base) {
ptd               336 drivers/thermal/intel/intel_pch_thermal.c 	err = ptd->ops->hw_init(ptd, &nr_trips);
ptd               340 drivers/thermal/intel/intel_pch_thermal.c 	ptd->tzd = thermal_zone_device_register(bi->name, nr_trips, 0, ptd,
ptd               342 drivers/thermal/intel/intel_pch_thermal.c 	if (IS_ERR(ptd->tzd)) {
ptd               345 drivers/thermal/intel/intel_pch_thermal.c 		err = PTR_ERR(ptd->tzd);
ptd               352 drivers/thermal/intel/intel_pch_thermal.c 	iounmap(ptd->hw_base);
ptd               363 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = pci_get_drvdata(pdev);
ptd               365 drivers/thermal/intel/intel_pch_thermal.c 	thermal_zone_device_unregister(ptd->tzd);
ptd               366 drivers/thermal/intel/intel_pch_thermal.c 	iounmap(ptd->hw_base);
ptd               374 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = dev_get_drvdata(device);
ptd               376 drivers/thermal/intel/intel_pch_thermal.c 	return ptd->ops->suspend(ptd);
ptd               381 drivers/thermal/intel/intel_pch_thermal.c 	struct pch_thermal_device *ptd = dev_get_drvdata(device);
ptd               383 drivers/thermal/intel/intel_pch_thermal.c 	return ptd->ops->resume(ptd);
ptd               169 drivers/usb/host/isp116x-hcd.c 	struct ptd *ptd;
ptd               177 drivers/usb/host/isp116x-hcd.c 		ptd = &ep->ptd;
ptd               178 drivers/usb/host/isp116x-hcd.c 		dump_ptd(ptd);
ptd               179 drivers/usb/host/isp116x-hcd.c 		dump_ptd_out_data(ptd, ep->data);
ptd               180 drivers/usb/host/isp116x-hcd.c 		isp116x_write_data16(isp116x, ptd->count);
ptd               181 drivers/usb/host/isp116x-hcd.c 		isp116x_write_data16(isp116x, ptd->mps);
ptd               182 drivers/usb/host/isp116x-hcd.c 		isp116x_write_data16(isp116x, ptd->len);
ptd               183 drivers/usb/host/isp116x-hcd.c 		isp116x_write_data16(isp116x, ptd->faddr);
ptd               184 drivers/usb/host/isp116x-hcd.c 		buflen -= sizeof(struct ptd);
ptd               201 drivers/usb/host/isp116x-hcd.c 	struct ptd *ptd;
ptd               209 drivers/usb/host/isp116x-hcd.c 		ptd = &ep->ptd;
ptd               210 drivers/usb/host/isp116x-hcd.c 		ptd->count = isp116x_read_data16(isp116x);
ptd               211 drivers/usb/host/isp116x-hcd.c 		ptd->mps = isp116x_read_data16(isp116x);
ptd               212 drivers/usb/host/isp116x-hcd.c 		ptd->len = isp116x_read_data16(isp116x);
ptd               213 drivers/usb/host/isp116x-hcd.c 		ptd->faddr = isp116x_read_data16(isp116x);
ptd               214 drivers/usb/host/isp116x-hcd.c 		buflen -= sizeof(struct ptd);
ptd               220 drivers/usb/host/isp116x-hcd.c 		dump_ptd(ptd);
ptd               221 drivers/usb/host/isp116x-hcd.c 		dump_ptd_in_data(ptd, ep->data);
ptd               235 drivers/usb/host/isp116x-hcd.c 	struct ptd *ptd;
ptd               244 drivers/usb/host/isp116x-hcd.c 		ptd = &ep->ptd;
ptd               275 drivers/usb/host/isp116x-hcd.c 		ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle);
ptd               276 drivers/usb/host/isp116x-hcd.c 		ptd->mps = PTD_MPS(ep->maxpacket)
ptd               279 drivers/usb/host/isp116x-hcd.c 		ptd->len = PTD_LEN(len) | PTD_DIR(dir);
ptd               280 drivers/usb/host/isp116x-hcd.c 		ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe));
ptd               282 drivers/usb/host/isp116x-hcd.c 			ptd->mps |= PTD_LAST_MSK;
ptd               285 drivers/usb/host/isp116x-hcd.c 		isp116x->atl_bufshrt = sizeof(struct ptd) + isp116x->atl_buflen;
ptd               353 drivers/usb/host/isp116x-hcd.c 	struct ptd *ptd;
ptd               363 drivers/usb/host/isp116x-hcd.c 		ptd = &ep->ptd;
ptd               364 drivers/usb/host/isp116x-hcd.c 		cc = PTD_GET_CC(ptd);
ptd               383 drivers/usb/host/isp116x-hcd.c 					      PTD_GET_TOGGLE(ptd));
ptd               384 drivers/usb/host/isp116x-hcd.c 				urb->actual_length += PTD_GET_COUNT(ptd);
ptd               401 drivers/usb/host/isp116x-hcd.c 		if (usb_pipeint(urb->pipe) && !PTD_GET_LEN(ptd)) {
ptd               415 drivers/usb/host/isp116x-hcd.c 			usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd)
ptd               418 drivers/usb/host/isp116x-hcd.c 			usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd)
ptd               424 drivers/usb/host/isp116x-hcd.c 			urb->actual_length += PTD_GET_COUNT(ptd);
ptd               425 drivers/usb/host/isp116x-hcd.c 			if (PTD_GET_ACTIVE(ptd)
ptd               434 drivers/usb/host/isp116x-hcd.c 				    && !(PTD_GET_COUNT(ptd) % ep->maxpacket)) {
ptd               446 drivers/usb/host/isp116x-hcd.c 			if (PTD_GET_ACTIVE(ptd)
ptd               460 drivers/usb/host/isp116x-hcd.c 			if (PTD_GET_ACTIVE(ptd)
ptd               305 drivers/usb/host/isp116x.h 	struct ptd ptd;
ptd               543 drivers/usb/host/isp116x.h #define PTD_DIR_STR(ptd)  ({char __c;		\
ptd               544 drivers/usb/host/isp116x.h 	switch(PTD_GET_DIR(ptd)){		\
ptd               554 drivers/usb/host/isp116x.h static inline void dump_ptd(struct ptd *ptd)
ptd               557 drivers/usb/host/isp116x.h 	       PTD_GET_CC(ptd), PTD_GET_FA(ptd),
ptd               558 drivers/usb/host/isp116x.h 	       PTD_DIR_STR(ptd), PTD_GET_EP(ptd),
ptd               559 drivers/usb/host/isp116x.h 	       PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd),
ptd               560 drivers/usb/host/isp116x.h 	       PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd),
ptd               561 drivers/usb/host/isp116x.h 	       PTD_GET_SPD(ptd), PTD_GET_LAST(ptd));
ptd               564 drivers/usb/host/isp116x.h static inline void dump_ptd_out_data(struct ptd *ptd, u8 * buf)
ptd               568 drivers/usb/host/isp116x.h 	if (PTD_GET_DIR(ptd) != PTD_DIR_IN && PTD_GET_LEN(ptd)) {
ptd               570 drivers/usb/host/isp116x.h 		for (k = 0; k < PTD_GET_LEN(ptd); ++k)
ptd               576 drivers/usb/host/isp116x.h static inline void dump_ptd_in_data(struct ptd *ptd, u8 * buf)
ptd               580 drivers/usb/host/isp116x.h 	if (PTD_GET_DIR(ptd) == PTD_DIR_IN && PTD_GET_COUNT(ptd)) {
ptd               582 drivers/usb/host/isp116x.h 		for (k = 0; k < PTD_GET_COUNT(ptd); ++k)
ptd               586 drivers/usb/host/isp116x.h 	if (PTD_GET_LAST(ptd))
ptd               592 drivers/usb/host/isp116x.h #define dump_ptd(ptd)               do{}while(0)
ptd               593 drivers/usb/host/isp116x.h #define dump_ptd_in_data(ptd,buf)   do{}while(0)
ptd               594 drivers/usb/host/isp116x.h #define dump_ptd_out_data(ptd,buf)  do{}while(0)
ptd               264 drivers/usb/host/isp1362-hcd.c 	struct ptd *ptd;
ptd               272 drivers/usb/host/isp1362-hcd.c 	ptd = &ep->ptd;
ptd               329 drivers/usb/host/isp1362-hcd.c 	ptd->count = PTD_CC_MSK | PTD_ACTIVE_MSK | PTD_TOGGLE(toggle);
ptd               330 drivers/usb/host/isp1362-hcd.c 	ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) |
ptd               332 drivers/usb/host/isp1362-hcd.c 	ptd->len = PTD_LEN(len) | PTD_DIR(dir);
ptd               333 drivers/usb/host/isp1362-hcd.c 	ptd->faddr = PTD_FA(usb_pipedevice(urb->pipe));
ptd               336 drivers/usb/host/isp1362-hcd.c 		ptd->faddr |= PTD_SF_INT(ep->branch);
ptd               337 drivers/usb/host/isp1362-hcd.c 		ptd->faddr |= PTD_PR(ep->interval ? __ffs(ep->interval) : 0);
ptd               340 drivers/usb/host/isp1362-hcd.c 		ptd->faddr |= PTD_SF_ISO(fno);
ptd               348 drivers/usb/host/isp1362-hcd.c 	struct ptd *ptd = &ep->ptd;
ptd               349 drivers/usb/host/isp1362-hcd.c 	int len = PTD_GET_DIR(ptd) == PTD_DIR_IN ? 0 : ep->length;
ptd               351 drivers/usb/host/isp1362-hcd.c 	prefetch(ptd);
ptd               352 drivers/usb/host/isp1362-hcd.c 	isp1362_write_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE);
ptd               357 drivers/usb/host/isp1362-hcd.c 	dump_ptd(ptd);
ptd               358 drivers/usb/host/isp1362-hcd.c 	dump_ptd_out_data(ptd, ep->data);
ptd               364 drivers/usb/host/isp1362-hcd.c 	struct ptd *ptd = &ep->ptd;
ptd               373 drivers/usb/host/isp1362-hcd.c 	prefetchw(ptd);
ptd               374 drivers/usb/host/isp1362-hcd.c 	isp1362_read_buffer(isp1362_hcd, ptd, ep->ptd_offset, PTD_HEADER_SIZE);
ptd               375 drivers/usb/host/isp1362-hcd.c 	dump_ptd(ptd);
ptd               376 drivers/usb/host/isp1362-hcd.c 	act_len = PTD_GET_COUNT(ptd);
ptd               377 drivers/usb/host/isp1362-hcd.c 	if (PTD_GET_DIR(ptd) != PTD_DIR_IN || act_len == 0)
ptd               390 drivers/usb/host/isp1362-hcd.c 	dump_ptd_in_data(ptd, ep->data);
ptd               503 drivers/usb/host/isp1362-hcd.c 	struct ptd *ptd;
ptd               512 drivers/usb/host/isp1362-hcd.c 	ptd = &ep->ptd;
ptd               513 drivers/usb/host/isp1362-hcd.c 	cc = PTD_GET_CC(ptd);
ptd               516 drivers/usb/host/isp1362-hcd.c 		    ep->num_req, ptd);
ptd               533 drivers/usb/host/isp1362-hcd.c 			    PTD_GET_COUNT(ptd), ep->maxpacket, len);
ptd               541 drivers/usb/host/isp1362-hcd.c 			    PTD_GET_COUNT(ptd), ep->maxpacket, len);
ptd               545 drivers/usb/host/isp1362-hcd.c 			urb->actual_length += PTD_GET_COUNT(ptd);
ptd               554 drivers/usb/host/isp1362-hcd.c 					      PTD_GET_TOGGLE(ptd));
ptd               573 drivers/usb/host/isp1362-hcd.c 		if (PTD_GET_COUNT(ptd) != ep->length)
ptd               575 drivers/usb/host/isp1362-hcd.c 			   PTD_GET_COUNT(ptd), ep->length);
ptd               576 drivers/usb/host/isp1362-hcd.c 		BUG_ON(PTD_GET_COUNT(ptd) != ep->length);
ptd               579 drivers/usb/host/isp1362-hcd.c 		usb_settoggle(udev, ep->epnum, 1, PTD_GET_TOGGLE(ptd));
ptd               600 drivers/usb/host/isp1362-hcd.c 		len = PTD_GET_COUNT(ptd);
ptd               604 drivers/usb/host/isp1362-hcd.c 		usb_settoggle(udev, ep->epnum, 0, PTD_GET_TOGGLE(ptd));
ptd               915 drivers/usb/host/isp1362-hcd.c 			ep->ptd.mps |= PTD_LAST_MSK;
ptd               226 drivers/usb/host/isp1362.h #define PTD_HEADER_SIZE sizeof(struct ptd)
ptd               385 drivers/usb/host/isp1362.h 	struct ptd		ptd;
ptd               919 drivers/usb/host/isp1362.h static void dump_ptd(struct ptd *ptd)
ptd               922 drivers/usb/host/isp1362.h 	    container_of(ptd, struct isp1362_ep, ptd),
ptd               923 drivers/usb/host/isp1362.h 	    PTD_GET_CC(ptd), PTD_GET_EP(ptd), PTD_GET_DIR(ptd),
ptd               924 drivers/usb/host/isp1362.h 	    PTD_GET_COUNT(ptd), PTD_GET_LEN(ptd), PTD_GET_MPS(ptd),
ptd               925 drivers/usb/host/isp1362.h 	    PTD_GET_TOGGLE(ptd), PTD_GET_ACTIVE(ptd), PTD_GET_FA(ptd),
ptd               926 drivers/usb/host/isp1362.h 	    PTD_GET_SPD(ptd), PTD_GET_SF_INT(ptd), PTD_GET_PR(ptd), PTD_GET_LAST(ptd));
ptd               927 drivers/usb/host/isp1362.h 	DBG(0, "  %04x %04x %04x %04x\n", ptd->count, ptd->mps, ptd->len, ptd->faddr);
ptd               930 drivers/usb/host/isp1362.h static void dump_ptd_out_data(struct ptd *ptd, u8 *buf)
ptd               933 drivers/usb/host/isp1362.h 		if (PTD_GET_DIR(ptd) != PTD_DIR_IN && PTD_GET_LEN(ptd)) {
ptd               935 drivers/usb/host/isp1362.h 			dump_data(buf, PTD_GET_LEN(ptd));
ptd               940 drivers/usb/host/isp1362.h static void dump_ptd_in_data(struct ptd *ptd, u8 *buf)
ptd               943 drivers/usb/host/isp1362.h 		if (PTD_GET_DIR(ptd) == PTD_DIR_IN && PTD_GET_COUNT(ptd)) {
ptd               945 drivers/usb/host/isp1362.h 			dump_data(buf, PTD_GET_COUNT(ptd));
ptd               958 drivers/usb/host/isp1362.h 		dump_ptd(&ep->ptd);
ptd               964 drivers/usb/host/isp1362.h #define dump_ptd(ptd)			do {} while (0)
ptd               965 drivers/usb/host/isp1362.h #define dump_ptd_in_data(ptd, buf)	do {} while (0)
ptd               966 drivers/usb/host/isp1362.h #define dump_ptd_out_data(ptd, buf)	do {} while (0)
ptd               967 drivers/usb/host/isp1362.h #define dump_ptd_data(ptd, buf)		do {} while (0)
ptd               205 drivers/usb/host/uhci-q.c 		struct uhci_td *ptd;
ptd               207 drivers/usb/host/uhci-q.c 		ptd = list_entry(td->fl_list.prev, struct uhci_td, fl_list);
ptd               208 drivers/usb/host/uhci-q.c 		ptd->link = td->link;
ptd               336 drivers/usb/host/uhci-q.c 		struct uhci_td *ptd;
ptd               340 drivers/usb/host/uhci-q.c 		ptd = list_entry(purbp->td_list.prev, struct uhci_td,
ptd               344 drivers/usb/host/uhci-q.c 		ptd->link = td->link;
ptd               281 drivers/usb/isp1760/isp1760-hcd.c 								struct ptd *ptd)
ptd               284 drivers/usb/isp1760/isp1760-hcd.c 				ISP_BANK(0) + ptd_offset + slot*sizeof(*ptd));
ptd               286 drivers/usb/isp1760/isp1760-hcd.c 	bank_reads8(base, ptd_offset + slot*sizeof(*ptd), ISP_BANK(0),
ptd               287 drivers/usb/isp1760/isp1760-hcd.c 						(void *) ptd, sizeof(*ptd));
ptd               291 drivers/usb/isp1760/isp1760-hcd.c 								struct ptd *ptd)
ptd               293 drivers/usb/isp1760/isp1760-hcd.c 	mem_writes8(base, ptd_offset + slot*sizeof(*ptd) + sizeof(ptd->dw0),
ptd               294 drivers/usb/isp1760/isp1760-hcd.c 						&ptd->dw1, 7*sizeof(ptd->dw1));
ptd               298 drivers/usb/isp1760/isp1760-hcd.c 	mem_writes8(base, ptd_offset + slot*sizeof(*ptd), &ptd->dw0,
ptd               299 drivers/usb/isp1760/isp1760-hcd.c 							sizeof(ptd->dw0));
ptd               536 drivers/usb/isp1760/isp1760-hcd.c 			struct isp1760_qtd *qtd, struct ptd *ptd)
ptd               543 drivers/usb/isp1760/isp1760-hcd.c 	memset(ptd, 0, sizeof(*ptd));
ptd               552 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw0 = DW0_VALID_BIT;
ptd               553 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw0 |= TO_DW0_LENGTH(qtd->length);
ptd               554 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw0 |= TO_DW0_MAXPACKET(maxpacket);
ptd               555 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw0 |= TO_DW0_ENDPOINT(usb_pipeendpoint(qtd->urb->pipe));
ptd               558 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw1 = usb_pipeendpoint(qtd->urb->pipe) >> 1;
ptd               559 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw1 |= TO_DW1_DEVICE_ADDR(usb_pipedevice(qtd->urb->pipe));
ptd               560 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw1 |= TO_DW1_PID_TOKEN(qtd->packet_type);
ptd               563 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw1 |= DW1_TRANS_BULK;
ptd               565 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw1 |= DW1_TRANS_INT;
ptd               570 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw1 |= DW1_TRANS_SPLIT;
ptd               572 drivers/usb/isp1760/isp1760-hcd.c 			ptd->dw1 |= DW1_SE_USB_LOSPEED;
ptd               574 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw1 |= TO_DW1_PORT_NUM(qtd->urb->dev->ttport);
ptd               575 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw1 |= TO_DW1_HUB_NUM(qtd->urb->dev->tt->hub->devnum);
ptd               580 drivers/usb/isp1760/isp1760-hcd.c 			ptd->dw1 |= 2 << 16;
ptd               585 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw0 |= TO_DW0_MULTI(multi);
ptd               588 drivers/usb/isp1760/isp1760-hcd.c 			ptd->dw3 |= TO_DW3_PING(qh->ping);
ptd               591 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw2 = 0;
ptd               592 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw2 |= TO_DW2_DATA_START_ADDR(base_to_chip(qtd->payload_addr));
ptd               593 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw2 |= TO_DW2_RL(rl);
ptd               596 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw3 |= TO_DW3_NAKCOUNT(nak);
ptd               597 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw3 |= TO_DW3_DATA_TOGGLE(qh->toggle);
ptd               600 drivers/usb/isp1760/isp1760-hcd.c 			ptd->dw3 &= ~TO_DW3_DATA_TOGGLE(1);
ptd               602 drivers/usb/isp1760/isp1760-hcd.c 			ptd->dw3 |= TO_DW3_DATA_TOGGLE(1);
ptd               605 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw3 |= DW3_ACTIVE_BIT;
ptd               607 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw3 |= TO_DW3_CERR(ERR_COUNTER);
ptd               611 drivers/usb/isp1760/isp1760-hcd.c 			struct isp1760_qtd *qtd, struct ptd *ptd)
ptd               652 drivers/usb/isp1760/isp1760-hcd.c 		ptd->dw5 = 0xff; /* Execute Complete Split on any uFrame */
ptd               658 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw2 |= period;
ptd               659 drivers/usb/isp1760/isp1760-hcd.c 	ptd->dw4 = usof;
ptd               663 drivers/usb/isp1760/isp1760-hcd.c 			struct isp1760_qtd *qtd, struct ptd *ptd)
ptd               665 drivers/usb/isp1760/isp1760-hcd.c 	create_ptd_atl(qh, qtd, ptd);
ptd               666 drivers/usb/isp1760/isp1760-hcd.c 	transform_add_int(qh, qtd, ptd);
ptd               722 drivers/usb/isp1760/isp1760-hcd.c 				struct ptd *ptd)
ptd               749 drivers/usb/isp1760/isp1760-hcd.c 	ptd_write(hcd->regs, ptd_offset, slot, ptd);
ptd               838 drivers/usb/isp1760/isp1760-hcd.c 	struct ptd ptd;
ptd               894 drivers/usb/isp1760/isp1760-hcd.c 					create_ptd_int(qh, qtd, &ptd);
ptd               896 drivers/usb/isp1760/isp1760-hcd.c 					create_ptd_atl(qh, qtd, &ptd);
ptd               899 drivers/usb/isp1760/isp1760-hcd.c 							slots, qtd, qh, &ptd);
ptd               979 drivers/usb/isp1760/isp1760-hcd.c static int check_int_transfer(struct usb_hcd *hcd, struct ptd *ptd,
ptd               985 drivers/usb/isp1760/isp1760-hcd.c 	dw4 = ptd->dw4;
ptd               991 drivers/usb/isp1760/isp1760-hcd.c 	if (ptd->dw3 & DW3_HALT_BIT) {
ptd              1026 drivers/usb/isp1760/isp1760-hcd.c static int check_atl_transfer(struct usb_hcd *hcd, struct ptd *ptd,
ptd              1029 drivers/usb/isp1760/isp1760-hcd.c 	WARN_ON(!ptd);
ptd              1030 drivers/usb/isp1760/isp1760-hcd.c 	if (ptd->dw3 & DW3_HALT_BIT) {
ptd              1031 drivers/usb/isp1760/isp1760-hcd.c 		if (ptd->dw3 & DW3_BABBLE_BIT)
ptd              1033 drivers/usb/isp1760/isp1760-hcd.c 		else if (FROM_DW3_CERR(ptd->dw3))
ptd              1035 drivers/usb/isp1760/isp1760-hcd.c 		else if (ptd->dw3 & DW3_ERROR_BIT)
ptd              1050 drivers/usb/isp1760/isp1760-hcd.c 	if ((ptd->dw3 & DW3_ERROR_BIT) && (ptd->dw3 & DW3_ACTIVE_BIT)) {
ptd              1056 drivers/usb/isp1760/isp1760-hcd.c 	if (!FROM_DW3_NAKCOUNT(ptd->dw3) && (ptd->dw3 & DW3_ACTIVE_BIT)) {
ptd              1071 drivers/usb/isp1760/isp1760-hcd.c 	struct ptd ptd;
ptd              1101 drivers/usb/isp1760/isp1760-hcd.c 			ptd_read(hcd->regs, INT_PTD_OFFSET, slot, &ptd);
ptd              1102 drivers/usb/isp1760/isp1760-hcd.c 			state = check_int_transfer(hcd, &ptd,
ptd              1116 drivers/usb/isp1760/isp1760-hcd.c 			ptd_read(hcd->regs, ATL_PTD_OFFSET, slot, &ptd);
ptd              1117 drivers/usb/isp1760/isp1760-hcd.c 			state = check_atl_transfer(hcd, &ptd,
ptd              1134 drivers/usb/isp1760/isp1760-hcd.c 				       FROM_DW3_SCS_NRBYTESTRANSFERRED(ptd.dw3);
ptd              1137 drivers/usb/isp1760/isp1760-hcd.c 					FROM_DW3_NRBYTESTRANSFERRED(ptd.dw3);
ptd              1147 drivers/usb/isp1760/isp1760-hcd.c 			qh->toggle = FROM_DW3_DATA_TOGGLE(ptd.dw3);
ptd              1148 drivers/usb/isp1760/isp1760-hcd.c 			qh->ping = FROM_DW3_PING(ptd.dw3);
ptd              1153 drivers/usb/isp1760/isp1760-hcd.c 			ptd.dw0 |= DW0_VALID_BIT;
ptd              1155 drivers/usb/isp1760/isp1760-hcd.c 			ptd.dw3 &= ~TO_DW3_NAKCOUNT(0xf);
ptd              1156 drivers/usb/isp1760/isp1760-hcd.c 			ptd.dw3 |= TO_DW3_NAKCOUNT(FROM_DW2_RL(ptd.dw2));
ptd              1157 drivers/usb/isp1760/isp1760-hcd.c 			ptd.dw3 &= ~TO_DW3_CERR(3);
ptd              1158 drivers/usb/isp1760/isp1760-hcd.c 			ptd.dw3 |= TO_DW3_CERR(ERR_COUNTER);
ptd              1159 drivers/usb/isp1760/isp1760-hcd.c 			qh->toggle = FROM_DW3_DATA_TOGGLE(ptd.dw3);
ptd              1160 drivers/usb/isp1760/isp1760-hcd.c 			qh->ping = FROM_DW3_PING(ptd.dw3);
ptd              1191 drivers/usb/isp1760/isp1760-hcd.c 					create_ptd_int(qh, qtd, &ptd);
ptd              1194 drivers/usb/isp1760/isp1760-hcd.c 					create_ptd_atl(qh, qtd, &ptd);
ptd              1198 drivers/usb/isp1760/isp1760-hcd.c 				qh, &ptd);
ptd              1269 drivers/usb/isp1760/isp1760-hcd.c 	struct ptd ptd;
ptd              1278 drivers/usb/isp1760/isp1760-hcd.c 			ptd_read(hcd->regs, ATL_PTD_OFFSET, slot, &ptd);
ptd              1279 drivers/usb/isp1760/isp1760-hcd.c 			if (!FROM_DW0_VALID(ptd.dw0) &&
ptd              1280 drivers/usb/isp1760/isp1760-hcd.c 					!FROM_DW3_ACTIVE(ptd.dw3))