etd                27 drivers/input/mouse/elantech.c 		if (etd->info.debug)					\
etd                72 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd                98 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               108 drivers/input/mouse/elantech.c 	switch (etd->info.hw_version) {
etd               140 drivers/input/mouse/elantech.c 	else if (etd->info.hw_version != 4)
etd               154 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               163 drivers/input/mouse/elantech.c 	switch (etd->info.hw_version) {
etd               282 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               286 drivers/input/mouse/elantech.c 	if (etd->info.fw_version < 0x020000) {
etd               301 drivers/input/mouse/elantech.c 	if (etd->info.jumpy_cursor) {
etd               303 drivers/input/mouse/elantech.c 			etd->single_finger_reports = 0;
etd               304 drivers/input/mouse/elantech.c 		} else if (etd->single_finger_reports < 2) {
etd               306 drivers/input/mouse/elantech.c 			etd->single_finger_reports++;
etd               322 drivers/input/mouse/elantech.c 			etd->y_max - (((packet[1] & 0x03) << 8) | packet[3]));
etd               331 drivers/input/mouse/elantech.c 	if (etd->info.fw_version < 0x020000 &&
etd               332 drivers/input/mouse/elantech.c 	    (etd->info.capabilities[0] & ETP_CAP_HAS_ROCKER)) {
etd               369 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               397 drivers/input/mouse/elantech.c 		y1 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
etd               412 drivers/input/mouse/elantech.c 		y1 = etd->y_max -
etd               420 drivers/input/mouse/elantech.c 		y2 = etd->y_max -
etd               440 drivers/input/mouse/elantech.c 	if (etd->info.reports_pressure) {
etd               466 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               467 drivers/input/mouse/elantech.c 	struct input_dev *tp_dev = etd->tp_dev;
etd               493 drivers/input/mouse/elantech.c 		if (etd->info.debug == 1)
etd               508 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               528 drivers/input/mouse/elantech.c 		y1 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
etd               537 drivers/input/mouse/elantech.c 			etd->mt[0].x = ((packet[1] & 0x0f) << 8) | packet[2];
etd               542 drivers/input/mouse/elantech.c 			etd->mt[0].y = etd->y_max -
etd               551 drivers/input/mouse/elantech.c 		x1 = etd->mt[0].x;
etd               552 drivers/input/mouse/elantech.c 		y1 = etd->mt[0].y;
etd               554 drivers/input/mouse/elantech.c 		y2 = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
etd               572 drivers/input/mouse/elantech.c 	if (elantech_is_buttonpad(&etd->info))
etd               586 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               590 drivers/input/mouse/elantech.c 	if (elantech_is_buttonpad(&etd->info))
etd               621 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               629 drivers/input/mouse/elantech.c 	etd->mt[id].x = ((packet[1] & 0x0f) << 8) | packet[2];
etd               630 drivers/input/mouse/elantech.c 	etd->mt[id].y = etd->y_max - (((packet[4] & 0x0f) << 8) | packet[5]);
etd               637 drivers/input/mouse/elantech.c 	input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x);
etd               638 drivers/input/mouse/elantech.c 	input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y);
etd               640 drivers/input/mouse/elantech.c 	input_report_abs(dev, ABS_MT_TOUCH_MAJOR, traces * etd->width);
etd               650 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               671 drivers/input/mouse/elantech.c 	etd->mt[id].x += delta_x1 * weight;
etd               672 drivers/input/mouse/elantech.c 	etd->mt[id].y -= delta_y1 * weight;
etd               674 drivers/input/mouse/elantech.c 	input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[id].x);
etd               675 drivers/input/mouse/elantech.c 	input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[id].y);
etd               678 drivers/input/mouse/elantech.c 		etd->mt[sid].x += delta_x2 * weight;
etd               679 drivers/input/mouse/elantech.c 		etd->mt[sid].y -= delta_y2 * weight;
etd               681 drivers/input/mouse/elantech.c 		input_report_abs(dev, ABS_MT_POSITION_X, etd->mt[sid].x);
etd               682 drivers/input/mouse/elantech.c 		input_report_abs(dev, ABS_MT_POSITION_Y, etd->mt[sid].y);
etd               713 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               718 drivers/input/mouse/elantech.c 	if (etd->info.fw_version < 0x020000) {
etd               730 drivers/input/mouse/elantech.c 	return etd->parity[packet[1]] == p1 &&
etd               731 drivers/input/mouse/elantech.c 	       etd->parity[packet[2]] == p2 &&
etd               732 drivers/input/mouse/elantech.c 	       etd->parity[packet[3]] == p3;
etd               751 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               763 drivers/input/mouse/elantech.c 	if (etd->info.reports_pressure)
etd               783 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               800 drivers/input/mouse/elantech.c 	if (etd->info.crc_enabled) {
etd               821 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               827 drivers/input/mouse/elantech.c 	if (etd->tp_dev && (packet[3] & 0x0f) == 0x06)
etd               831 drivers/input/mouse/elantech.c 	ic_version = (etd->info.fw_version & 0x0f0000) >> 16;
etd               840 drivers/input/mouse/elantech.c 	if (etd->info.crc_enabled)
etd               842 drivers/input/mouse/elantech.c 	else if (ic_version == 7 && etd->info.samples[1] == 0x2A)
etd               870 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               876 drivers/input/mouse/elantech.c 	if (etd->info.debug > 1)
etd               879 drivers/input/mouse/elantech.c 	switch (etd->info.hw_version) {
etd               881 drivers/input/mouse/elantech.c 		if (etd->info.paritycheck && !elantech_packet_check_v1(psmouse))
etd               892 drivers/input/mouse/elantech.c 		if (etd->info.paritycheck && !elantech_packet_check_v2(psmouse))
etd               948 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               950 drivers/input/mouse/elantech.c 	etd->original_set_rate(psmouse, rate);
etd               951 drivers/input/mouse/elantech.c 	if (elantech_write_reg(psmouse, 0x07, etd->reg_07))
etd               960 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd               965 drivers/input/mouse/elantech.c 	switch (etd->info.hw_version) {
etd               967 drivers/input/mouse/elantech.c 		etd->reg_10 = 0x16;
etd               968 drivers/input/mouse/elantech.c 		etd->reg_11 = 0x8f;
etd               969 drivers/input/mouse/elantech.c 		if (elantech_write_reg(psmouse, 0x10, etd->reg_10) ||
etd               970 drivers/input/mouse/elantech.c 		    elantech_write_reg(psmouse, 0x11, etd->reg_11)) {
etd               977 drivers/input/mouse/elantech.c 		etd->reg_10 = 0x54;
etd               978 drivers/input/mouse/elantech.c 		etd->reg_11 = 0x88;	/* 0x8a */
etd               979 drivers/input/mouse/elantech.c 		etd->reg_21 = 0x60;	/* 0x00 */
etd               980 drivers/input/mouse/elantech.c 		if (elantech_write_reg(psmouse, 0x10, etd->reg_10) ||
etd               981 drivers/input/mouse/elantech.c 		    elantech_write_reg(psmouse, 0x11, etd->reg_11) ||
etd               982 drivers/input/mouse/elantech.c 		    elantech_write_reg(psmouse, 0x21, etd->reg_21)) {
etd               988 drivers/input/mouse/elantech.c 		if (etd->info.set_hw_resolution)
etd               989 drivers/input/mouse/elantech.c 			etd->reg_10 = 0x0b;
etd               991 drivers/input/mouse/elantech.c 			etd->reg_10 = 0x01;
etd               993 drivers/input/mouse/elantech.c 		if (elantech_write_reg(psmouse, 0x10, etd->reg_10))
etd               999 drivers/input/mouse/elantech.c 		etd->reg_07 = 0x01;
etd              1000 drivers/input/mouse/elantech.c 		if (elantech_write_reg(psmouse, 0x07, etd->reg_07))
etd              1025 drivers/input/mouse/elantech.c 		} else if (etd->info.hw_version == 1 &&
etd              1069 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd              1071 drivers/input/mouse/elantech.c 	if (elantech_is_buttonpad(&etd->info)) {
etd              1113 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd              1114 drivers/input/mouse/elantech.c 	struct elantech_device_info *info = &etd->info;
etd              1202 drivers/input/mouse/elantech.c 	etd->y_max = y_max;
etd              1203 drivers/input/mouse/elantech.c 	etd->width = width;
etd              1219 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd              1221 drivers/input/mouse/elantech.c 	unsigned char *reg = (unsigned char *) etd + attr->field_offset;
etd              1236 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd              1238 drivers/input/mouse/elantech.c 	unsigned char *reg = (unsigned char *) etd + attr->field_offset;
etd              1247 drivers/input/mouse/elantech.c 	if (etd->info.hw_version == 1) {
etd              1408 drivers/input/mouse/elantech.c 	struct elantech_data *etd = psmouse->private;
etd              1416 drivers/input/mouse/elantech.c 	if (etd->tp_dev)
etd              1417 drivers/input/mouse/elantech.c 		input_unregister_device(etd->tp_dev);
etd              1926 drivers/input/mouse/elantech.c 	struct elantech_data *etd;
etd              1931 drivers/input/mouse/elantech.c 	psmouse->private = etd = kzalloc(sizeof(*etd), GFP_KERNEL);
etd              1932 drivers/input/mouse/elantech.c 	if (!etd)
etd              1935 drivers/input/mouse/elantech.c 	etd->info = *info;
etd              1937 drivers/input/mouse/elantech.c 	etd->parity[0] = 1;
etd              1939 drivers/input/mouse/elantech.c 		etd->parity[i] = etd->parity[i & (i - 1)] ^ 1;
etd              1948 drivers/input/mouse/elantech.c 		etd->original_set_rate = psmouse->set_rate;
etd              1974 drivers/input/mouse/elantech.c 		etd->tp_dev = tp_dev;
etd              1975 drivers/input/mouse/elantech.c 		snprintf(etd->tp_phys, sizeof(etd->tp_phys), "%s/input1",
etd              1977 drivers/input/mouse/elantech.c 		tp_dev->phys = etd->tp_phys;
etd              1994 drivers/input/mouse/elantech.c 		error = input_register_device(etd->tp_dev);
etd              2011 drivers/input/mouse/elantech.c 	kfree(etd);
etd               629 drivers/staging/wusbcore/host/hwa-hc.c 	struct usb_encryption_descriptor *etd;
etd               668 drivers/staging/wusbcore/host/hwa-hc.c 		etd = itr;
etd               669 drivers/staging/wusbcore/host/hwa-hc.c 		if (top - itr < sizeof(*etd)) {
etd               672 drivers/staging/wusbcore/host/hwa-hc.c 				top - itr, sizeof(*etd));
etd               675 drivers/staging/wusbcore/host/hwa-hc.c 		if (etd->bLength < sizeof(*etd)) {
etd               679 drivers/staging/wusbcore/host/hwa-hc.c 				(size_t)etd->bLength, sizeof(*etd));
etd               682 drivers/staging/wusbcore/host/hwa-hc.c 		itr += etd->bLength;
etd               685 drivers/staging/wusbcore/host/hwa-hc.c 				  wusb_et_name(etd->bEncryptionType),
etd               686 drivers/staging/wusbcore/host/hwa-hc.c 				  etd->bEncryptionValue);
etd               687 drivers/staging/wusbcore/host/hwa-hc.c 		wusbhc->ccm1_etd = etd;
etd               208 drivers/staging/wusbcore/security.c 	const struct usb_encryption_descriptor *etd, *ccm1_etd = NULL;
etd               245 drivers/staging/wusbcore/security.c 		etd = itr;
etd               246 drivers/staging/wusbcore/security.c 		if (top - itr < sizeof(*etd)) {
etd               249 drivers/staging/wusbcore/security.c 				top - itr, sizeof(*etd));
etd               252 drivers/staging/wusbcore/security.c 		if (etd->bLength < sizeof(*etd)) {
etd               256 drivers/staging/wusbcore/security.c 				etd->bLength, sizeof(*etd));
etd               259 drivers/staging/wusbcore/security.c 		itr += etd->bLength;
etd               262 drivers/staging/wusbcore/security.c 				  wusb_et_name(etd->bEncryptionType),
etd               263 drivers/staging/wusbcore/security.c 				  etd->bEncryptionValue, etd->bAuthKeyIndex);
etd               264 drivers/staging/wusbcore/security.c 		if (etd->bEncryptionType == USB_ENC_TYPE_CCM_1)
etd               265 drivers/staging/wusbcore/security.c 			ccm1_etd = etd;
etd               197 drivers/usb/host/imx21-dbg.c 	struct etd_priv *etd;
etd               206 drivers/usb/host/imx21-dbg.c 	for (i = 0, etd = imx21->etd; i < USB_NUM_ETD; i++, etd++) {
etd               207 drivers/usb/host/imx21-dbg.c 		if (etd->alloc)
etd               209 drivers/usb/host/imx21-dbg.c 		if (etd->urb)
etd               223 drivers/usb/host/imx21-dbg.c 	list_for_each_entry(etd, &imx21->queue_for_dmem, queue)
etd               275 drivers/usb/host/imx21-dbg.c 	struct etd_priv *etd;
etd               283 drivers/usb/host/imx21-dbg.c 	for (i = 0, etd = imx21->etd; i < USB_NUM_ETD; i++, etd++) {
etd               286 drivers/usb/host/imx21-dbg.c 		if (etd->urb) {
etd               287 drivers/usb/host/imx21-dbg.c 			urb_priv = etd->urb->hcpriv;
etd               303 drivers/usb/host/imx21-dbg.c 			format_ep(etd->ep, buf, sizeof(buf)),
etd               304 drivers/usb/host/imx21-dbg.c 			etd->alloc,
etd               305 drivers/usb/host/imx21-dbg.c 			etd->len,
etd               306 drivers/usb/host/imx21-dbg.c 			etd->urb != NULL,
etd               309 drivers/usb/host/imx21-dbg.c 			etd->urb);
etd               328 drivers/usb/host/imx21-dbg.c 				etd->submitted_dwords[j],
etd                57 drivers/usb/host/imx21-hcd.c #define DEBUG_LOG_FRAME(imx21, etd, event) \
etd                58 drivers/usb/host/imx21-hcd.c 	(etd)->event##_frame = readl((imx21)->regs + USBH_FRMNUB)
etd                60 drivers/usb/host/imx21-hcd.c #define DEBUG_LOG_FRAME(imx21, etd, event) do { } while (0)
etd               140 drivers/usb/host/imx21-hcd.c 	struct imx21 *imx21, struct etd_priv *etd, int status);
etd               142 drivers/usb/host/imx21-hcd.c static void free_dmem(struct imx21 *imx21, struct etd_priv *etd);
etd               151 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd = imx21->etd;
etd               153 drivers/usb/host/imx21-hcd.c 	for (i = 0; i < USB_NUM_ETD; i++, etd++) {
etd               154 drivers/usb/host/imx21-hcd.c 		if (etd->alloc == 0) {
etd               155 drivers/usb/host/imx21-hcd.c 			memset(etd, 0, sizeof(imx21->etd[0]));
etd               156 drivers/usb/host/imx21-hcd.c 			etd->alloc = 1;
etd               167 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd = &imx21->etd[num];
etd               174 drivers/usb/host/imx21-hcd.c 	etd->active_count = 0;
etd               176 drivers/usb/host/imx21-hcd.c 	DEBUG_LOG_FRAME(imx21, etd, disactivated);
etd               181 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd = imx21->etd + num;
etd               188 drivers/usb/host/imx21-hcd.c 	etd->urb = NULL;
etd               189 drivers/usb/host/imx21-hcd.c 	etd->ep = NULL;
etd               190 drivers/usb/host/imx21-hcd.c 	etd->td = NULL;
etd               191 drivers/usb/host/imx21-hcd.c 	etd->bounce_buffer = NULL;
etd               203 drivers/usb/host/imx21-hcd.c 	if (imx21->etd[num].alloc == 0) {
etd               210 drivers/usb/host/imx21-hcd.c 	memset(&imx21->etd[num], 0, sizeof(imx21->etd[0]));
etd               257 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd = &imx21->etd[etd_num];
etd               259 drivers/usb/host/imx21-hcd.c 	if (etd->dma_handle && unsuitable_for_dma(etd->dma_handle)) {
etd               261 drivers/usb/host/imx21-hcd.c 		if (etd->len <= etd->dmem_size) {
etd               265 drivers/usb/host/imx21-hcd.c 						etd->dmem_offset,
etd               266 drivers/usb/host/imx21-hcd.c 						etd->cpu_buffer, etd->len);
etd               268 drivers/usb/host/imx21-hcd.c 			etd->dma_handle = 0;
etd               276 drivers/usb/host/imx21-hcd.c 				etd->bounce_buffer = kmalloc(etd->len,
etd               280 drivers/usb/host/imx21-hcd.c 				etd->bounce_buffer = kmemdup(etd->cpu_buffer,
etd               281 drivers/usb/host/imx21-hcd.c 								etd->len,
etd               284 drivers/usb/host/imx21-hcd.c 			if (!etd->bounce_buffer) {
etd               289 drivers/usb/host/imx21-hcd.c 			etd->dma_handle =
etd               291 drivers/usb/host/imx21-hcd.c 						etd->bounce_buffer,
etd               292 drivers/usb/host/imx21-hcd.c 						etd->len,
etd               294 drivers/usb/host/imx21-hcd.c 			if (dma_mapping_error(imx21->dev, etd->dma_handle)) {
etd               306 drivers/usb/host/imx21-hcd.c 	if (etd->dma_handle) {
etd               310 drivers/usb/host/imx21-hcd.c 		writel(etd->dma_handle, imx21->regs + USB_ETDSMSA(etd_num));
etd               320 drivers/usb/host/imx21-hcd.c 	DEBUG_LOG_FRAME(imx21, etd, activated);
etd               323 drivers/usb/host/imx21-hcd.c 	if (!etd->active_count) {
etd               325 drivers/usb/host/imx21-hcd.c 		etd->activated_frame = readl(imx21->regs + USBH_FRMNUB);
etd               326 drivers/usb/host/imx21-hcd.c 		etd->disactivated_frame = -1;
etd               327 drivers/usb/host/imx21-hcd.c 		etd->last_int_frame = -1;
etd               328 drivers/usb/host/imx21-hcd.c 		etd->last_req_frame = -1;
etd               331 drivers/usb/host/imx21-hcd.c 			etd->submitted_dwords[i] = etd_readl(imx21, etd_num, i);
etd               335 drivers/usb/host/imx21-hcd.c 	etd->active_count = 1;
etd               340 drivers/usb/host/imx21-hcd.c 	kfree(etd->bounce_buffer);
etd               343 drivers/usb/host/imx21-hcd.c 	free_dmem(imx21, etd);
etd               344 drivers/usb/host/imx21-hcd.c 	nonisoc_urb_completed_for_etd(imx21, etd, -ENOMEM);
etd               393 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd, u32 dmem_offset)
etd               395 drivers/usb/host/imx21-hcd.c 	struct urb_priv *urb_priv = etd->urb->hcpriv;
etd               396 drivers/usb/host/imx21-hcd.c 	int etd_num = etd - &imx21->etd[0];
etd               405 drivers/usb/host/imx21-hcd.c 	etd->dmem_offset = dmem_offset;
etd               410 drivers/usb/host/imx21-hcd.c static void free_dmem(struct imx21 *imx21, struct etd_priv *etd)
etd               417 drivers/usb/host/imx21-hcd.c 	if (!etd->dmem_size)
etd               419 drivers/usb/host/imx21-hcd.c 	etd->dmem_size = 0;
etd               421 drivers/usb/host/imx21-hcd.c 	offset = etd->dmem_offset;
etd               439 drivers/usb/host/imx21-hcd.c 	list_for_each_entry_safe(etd, tmp, &imx21->queue_for_dmem, queue) {
etd               440 drivers/usb/host/imx21-hcd.c 		offset = alloc_dmem(imx21, etd->dmem_size, etd->ep);
etd               442 drivers/usb/host/imx21-hcd.c 			list_del(&etd->queue);
etd               443 drivers/usb/host/imx21-hcd.c 			activate_queued_etd(imx21, etd, (u32)offset);
etd               474 drivers/usb/host/imx21-hcd.c 		int etd_num = ep_priv->etd[i];
etd               475 drivers/usb/host/imx21-hcd.c 		struct etd_priv *etd;
etd               479 drivers/usb/host/imx21-hcd.c 		etd = &imx21->etd[etd_num];
etd               480 drivers/usb/host/imx21-hcd.c 		ep_priv->etd[i] = -1;
etd               482 drivers/usb/host/imx21-hcd.c 		free_dmem(imx21, etd); /* for isoc */
etd               496 drivers/usb/host/imx21-hcd.c 		ep_priv->etd[i] = etd_num;
etd               530 drivers/usb/host/imx21-hcd.c 	struct imx21 *imx21, struct etd_priv *etd, int status)
etd               532 drivers/usb/host/imx21-hcd.c 	struct usb_host_endpoint *ep = etd->ep;
etd               534 drivers/usb/host/imx21-hcd.c 	urb_done(imx21->hcd, etd->urb, status);
etd               535 drivers/usb/host/imx21-hcd.c 	etd->urb = NULL;
etd               556 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd;
etd               569 drivers/usb/host/imx21-hcd.c 		etd_num = ep_priv->etd[i];
etd               573 drivers/usb/host/imx21-hcd.c 		etd = &imx21->etd[etd_num];
etd               574 drivers/usb/host/imx21-hcd.c 		if (etd->urb)
etd               595 drivers/usb/host/imx21-hcd.c 		etd->td = td;
etd               596 drivers/usb/host/imx21-hcd.c 		etd->ep = td->ep;
etd               597 drivers/usb/host/imx21-hcd.c 		etd->urb = td->urb;
etd               598 drivers/usb/host/imx21-hcd.c 		etd->len = td->len;
etd               599 drivers/usb/host/imx21-hcd.c 		etd->dma_handle = td->dma_handle;
etd               600 drivers/usb/host/imx21-hcd.c 		etd->cpu_buffer = td->cpu_buffer;
etd               605 drivers/usb/host/imx21-hcd.c 		setup_etd_dword0(imx21, etd_num, td->urb, dir, etd->dmem_size);
etd               606 drivers/usb/host/imx21-hcd.c 		etd_writel(imx21, etd_num, 1, etd->dmem_offset);
etd               622 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd = imx21->etd + etd_num;
etd               623 drivers/usb/host/imx21-hcd.c 	struct urb *urb = etd->urb;
etd               625 drivers/usb/host/imx21-hcd.c 	struct td *td = etd->td;
etd               626 drivers/usb/host/imx21-hcd.c 	struct usb_host_endpoint *ep = etd->ep;
etd               660 drivers/usb/host/imx21-hcd.c 		if (!etd->dma_handle)
etd               661 drivers/usb/host/imx21-hcd.c 			memcpy_fromio(etd->cpu_buffer,
etd               662 drivers/usb/host/imx21-hcd.c 				imx21->regs + USBOTG_DMEM + etd->dmem_offset,
etd               670 drivers/usb/host/imx21-hcd.c 	etd->td = NULL;
etd               671 drivers/usb/host/imx21-hcd.c 	etd->urb = NULL;
etd               672 drivers/usb/host/imx21-hcd.c 	etd->ep = NULL;
etd               691 drivers/usb/host/imx21-hcd.c 		ep_priv->etd[i] = -1;
etd               706 drivers/usb/host/imx21-hcd.c 		if (ep_priv->etd[i] < 0) {
etd               711 drivers/usb/host/imx21-hcd.c 			ep_priv->etd[i] = etd_num;
etd               712 drivers/usb/host/imx21-hcd.c 			imx21->etd[etd_num].ep = ep_priv->ep;
etd               720 drivers/usb/host/imx21-hcd.c 		free_etd(imx21, ep_priv->etd[j]);
etd               721 drivers/usb/host/imx21-hcd.c 		ep_priv->etd[j] = -1;
etd               780 drivers/usb/host/imx21-hcd.c 		struct etd_priv *etd = &imx21->etd[ep_priv->etd[i]];
etd               782 drivers/usb/host/imx21-hcd.c 		if (etd->dmem_size > 0 && etd->dmem_size < maxpacket) {
etd               785 drivers/usb/host/imx21-hcd.c 				etd->dmem_size, maxpacket);
etd               790 drivers/usb/host/imx21-hcd.c 		if (etd->dmem_size == 0) {
etd               791 drivers/usb/host/imx21-hcd.c 			etd->dmem_offset = alloc_dmem(imx21, maxpacket, ep);
etd               792 drivers/usb/host/imx21-hcd.c 			if (etd->dmem_offset < 0) {
etd               797 drivers/usb/host/imx21-hcd.c 			etd->dmem_size = maxpacket;
etd               876 drivers/usb/host/imx21-hcd.c 			int etd_num = ep_priv->etd[i];
etd               877 drivers/usb/host/imx21-hcd.c 			if (etd_num != -1 && imx21->etd[etd_num].urb == urb) {
etd               878 drivers/usb/host/imx21-hcd.c 				struct etd_priv *etd = imx21->etd + etd_num;
etd               881 drivers/usb/host/imx21-hcd.c 				free_dmem(imx21, etd);
etd               904 drivers/usb/host/imx21-hcd.c 	int etd_num = ep_priv->etd[0];
etd               905 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd;
etd               922 drivers/usb/host/imx21-hcd.c 	etd = &imx21->etd[etd_num];
etd               933 drivers/usb/host/imx21-hcd.c 			etd->dma_handle = urb->setup_dma;
etd               934 drivers/usb/host/imx21-hcd.c 			etd->cpu_buffer = urb->setup_packet;
etd               950 drivers/usb/host/imx21-hcd.c 		etd->dma_handle = urb->transfer_dma;
etd               951 drivers/usb/host/imx21-hcd.c 		etd->cpu_buffer = urb->transfer_buffer;
etd               970 drivers/usb/host/imx21-hcd.c 	etd->urb = urb;
etd               971 drivers/usb/host/imx21-hcd.c 	etd->ep = urb_priv->ep;
etd               972 drivers/usb/host/imx21-hcd.c 	etd->len = count;
etd              1002 drivers/usb/host/imx21-hcd.c 		etd->dma_handle = 0;
etd              1005 drivers/usb/host/imx21-hcd.c 	etd->dmem_size = (count > maxpacket) ? maxpacket * 2 : maxpacket;
etd              1006 drivers/usb/host/imx21-hcd.c 	etd->dmem_offset = alloc_dmem(imx21, etd->dmem_size, urb_priv->ep);
etd              1007 drivers/usb/host/imx21-hcd.c 	if (etd->dmem_offset < 0) {
etd              1013 drivers/usb/host/imx21-hcd.c 		list_add_tail(&etd->queue, &imx21->queue_for_dmem);
etd              1018 drivers/usb/host/imx21-hcd.c 		(((u32) etd->dmem_offset + (u32) maxpacket) << DW1_YBUFSRTAD) |
etd              1019 drivers/usb/host/imx21-hcd.c 		(u32) etd->dmem_offset);
etd              1033 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd = &imx21->etd[etd_num];
etd              1034 drivers/usb/host/imx21-hcd.c 	struct urb *urb = etd->urb;
etd              1046 drivers/usb/host/imx21-hcd.c 	bytes_xfrd = etd->len - (etd_readl(imx21, etd_num, 3) & 0x1fffff);
etd              1057 drivers/usb/host/imx21-hcd.c 		if (etd->bounce_buffer) {
etd              1058 drivers/usb/host/imx21-hcd.c 			memcpy(etd->cpu_buffer, etd->bounce_buffer, bytes_xfrd);
etd              1060 drivers/usb/host/imx21-hcd.c 				etd->dma_handle, etd->len, DMA_FROM_DEVICE);
etd              1061 drivers/usb/host/imx21-hcd.c 		} else if (!etd->dma_handle && bytes_xfrd) {/* PIO */
etd              1062 drivers/usb/host/imx21-hcd.c 			memcpy_fromio(etd->cpu_buffer,
etd              1063 drivers/usb/host/imx21-hcd.c 				imx21->regs + USBOTG_DMEM + etd->dmem_offset,
etd              1068 drivers/usb/host/imx21-hcd.c 	kfree(etd->bounce_buffer);
etd              1069 drivers/usb/host/imx21-hcd.c 	etd->bounce_buffer = NULL;
etd              1070 drivers/usb/host/imx21-hcd.c 	free_dmem(imx21, etd);
etd              1128 drivers/usb/host/imx21-hcd.c 		nonisoc_urb_completed_for_etd(imx21, etd, cc_to_error[cc]);
etd              1146 drivers/usb/host/imx21-hcd.c 		ep_priv->etd[i] = -1;
etd              1158 drivers/usb/host/imx21-hcd.c 	struct etd_priv *etd;
etd              1210 drivers/usb/host/imx21-hcd.c 	if (ep_priv->etd[0] < 0) {
etd              1218 drivers/usb/host/imx21-hcd.c 		ep_priv->etd[0] = alloc_etd(imx21);
etd              1219 drivers/usb/host/imx21-hcd.c 		if (ep_priv->etd[0] < 0) {
etd              1230 drivers/usb/host/imx21-hcd.c 	etd = &imx21->etd[ep_priv->etd[0]];
etd              1231 drivers/usb/host/imx21-hcd.c 	if (etd->urb == NULL) {
etd              1232 drivers/usb/host/imx21-hcd.c 		DEBUG_LOG_FRAME(imx21, etd, last_req);
etd              1274 drivers/usb/host/imx21-hcd.c 		int etd_num = ep_priv->etd[0];
etd              1276 drivers/usb/host/imx21-hcd.c 			struct etd_priv *etd = &imx21->etd[etd_num];
etd              1279 drivers/usb/host/imx21-hcd.c 			free_dmem(imx21, etd);
etd              1280 drivers/usb/host/imx21-hcd.c 			etd->urb = NULL;
etd              1281 drivers/usb/host/imx21-hcd.c 			kfree(etd->bounce_buffer);
etd              1282 drivers/usb/host/imx21-hcd.c 			etd->bounce_buffer = NULL;
etd              1312 drivers/usb/host/imx21-hcd.c 		struct etd_priv *etd = &imx21->etd[etd_num];
etd              1316 drivers/usb/host/imx21-hcd.c 			DEBUG_LOG_FRAME(imx21, etd, last_int);
etd              1337 drivers/usb/host/imx21-hcd.c 			if (etd->active_count && !enabled) /* suspicious... */
etd              1340 drivers/usb/host/imx21-hcd.c 			if (!sof || enabled || !etd->active_count)
etd              1347 drivers/usb/host/imx21-hcd.c 			if (++etd->active_count < 10)
etd              1361 drivers/usb/host/imx21-hcd.c 				etd->activated_frame,
etd              1362 drivers/usb/host/imx21-hcd.c 				etd->disactivated_frame,
etd              1363 drivers/usb/host/imx21-hcd.c 				etd->last_int_frame,
etd              1364 drivers/usb/host/imx21-hcd.c 				etd->last_req_frame,
etd              1368 drivers/usb/host/imx21-hcd.c 			etd->active_count = 0;
etd              1372 drivers/usb/host/imx21-hcd.c 		if (etd->ep == NULL || etd->urb == NULL) {
etd              1376 drivers/usb/host/imx21-hcd.c 				etd_num, etd->ep, etd->urb);
etd              1381 drivers/usb/host/imx21-hcd.c 		if (usb_pipeisoc(etd->urb->pipe))
etd              1435 drivers/usb/host/imx21-hcd.c 			if (ep_priv->etd[i] > -1)
etd              1437 drivers/usb/host/imx21-hcd.c 					ep_priv->etd[i]);
etd              1439 drivers/usb/host/imx21-hcd.c 			free_etd(imx21, ep_priv->etd[i]);
etd              1446 drivers/usb/host/imx21-hcd.c 		if (imx21->etd[i].alloc && imx21->etd[i].ep == ep) {
etd               332 drivers/usb/host/imx21-hcd.h 	int etd[NUM_ISO_ETDS];
etd               414 drivers/usb/host/imx21-hcd.h 	struct etd_priv etd[USB_NUM_ETD];