max3421_hcd       128 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *next;
max3421_hcd       179 drivers/usb/host/max3421-hcd.c static struct max3421_hcd *max3421_hcd_list;
max3421_hcd       340 drivers/usb/host/max3421-hcd.c static inline struct max3421_hcd *
max3421_hcd       343 drivers/usb/host/max3421-hcd.c 	return (struct max3421_hcd *) hcd->hcd_priv;
max3421_hcd       347 drivers/usb/host/max3421-hcd.c max3421_to_hcd(struct max3421_hcd *max3421_hcd)
max3421_hcd       349 drivers/usb/host/max3421-hcd.c 	return container_of((void *) max3421_hcd, struct usb_hcd, hcd_priv);
max3421_hcd       355 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       364 drivers/usb/host/max3421-hcd.c 	max3421_hcd->tx->data[0] =
max3421_hcd       368 drivers/usb/host/max3421-hcd.c 	transfer.tx_buf = max3421_hcd->tx->data;
max3421_hcd       369 drivers/usb/host/max3421-hcd.c 	transfer.rx_buf = max3421_hcd->rx->data;
max3421_hcd       375 drivers/usb/host/max3421-hcd.c 	return max3421_hcd->rx->data[1];
max3421_hcd       382 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       390 drivers/usb/host/max3421-hcd.c 	max3421_hcd->tx->data[0] =
max3421_hcd       393 drivers/usb/host/max3421-hcd.c 	max3421_hcd->tx->data[1] = val;
max3421_hcd       395 drivers/usb/host/max3421-hcd.c 	transfer.tx_buf = max3421_hcd->tx->data;
max3421_hcd       406 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       414 drivers/usb/host/max3421-hcd.c 	max3421_hcd->tx->data[0] =
max3421_hcd       417 drivers/usb/host/max3421-hcd.c 	transfer[0].tx_buf = max3421_hcd->tx->data;
max3421_hcd       432 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       440 drivers/usb/host/max3421-hcd.c 	max3421_hcd->tx->data[0] =
max3421_hcd       444 drivers/usb/host/max3421-hcd.c 	transfer[0].tx_buf = max3421_hcd->tx->data;
max3421_hcd       471 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       472 drivers/usb/host/max3421-hcd.c 	u8 mode_lowspeed, mode_hubpre, mode = max3421_hcd->mode;
max3421_hcd       476 drivers/usb/host/max3421-hcd.c 	if (max3421_hcd->port_status & USB_PORT_STAT_LOW_SPEED) {
max3421_hcd       484 drivers/usb/host/max3421-hcd.c 	if (mode != max3421_hcd->mode) {
max3421_hcd       485 drivers/usb/host/max3421-hcd.c 		max3421_hcd->mode = mode;
max3421_hcd       486 drivers/usb/host/max3421-hcd.c 		spi_wr8(hcd, MAX3421_REG_MODE, max3421_hcd->mode);
max3421_hcd       498 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       503 drivers/usb/host/max3421-hcd.c 	old_dev = max3421_hcd->loaded_dev;
max3421_hcd       504 drivers/usb/host/max3421-hcd.c 	old_epnum = max3421_hcd->loaded_epnum;
max3421_hcd       527 drivers/usb/host/max3421-hcd.c 	max3421_hcd->loaded_epnum = epnum;
max3421_hcd       535 drivers/usb/host/max3421-hcd.c 	max3421_hcd->loaded_dev = dev;
max3421_hcd       549 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       552 drivers/usb/host/max3421-hcd.c 	max3421_hcd->curr_len = 0;
max3421_hcd       553 drivers/usb/host/max3421-hcd.c 	max3421_hcd->hien |= BIT(MAX3421_HI_RCVDAV_BIT);
max3421_hcd       561 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       569 drivers/usb/host/max3421-hcd.c 		if (max3421_hcd->rev == 0x12) {
max3421_hcd       573 drivers/usb/host/max3421-hcd.c 			spi_wr8(hcd, MAX3421_REG_SNDBC, max3421_hcd->curr_len);
max3421_hcd       588 drivers/usb/host/max3421-hcd.c 		max3421_hcd->urb_done = -EMSGSIZE;
max3421_hcd       591 drivers/usb/host/max3421-hcd.c 	max3421_hcd->curr_len = min((urb->transfer_buffer_length -
max3421_hcd       594 drivers/usb/host/max3421-hcd.c 	spi_wr_buf(hcd, MAX3421_REG_SNDFIFO, src, max3421_hcd->curr_len);
max3421_hcd       595 drivers/usb/host/max3421-hcd.c 	spi_wr8(hcd, MAX3421_REG_SNDBC, max3421_hcd->curr_len);
max3421_hcd       606 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       607 drivers/usb/host/max3421-hcd.c 	struct urb *urb = max3421_hcd->curr_urb;
max3421_hcd       646 drivers/usb/host/max3421-hcd.c 	max3421_hcd->hien |= BIT(MAX3421_HI_HXFRDN_BIT);
max3421_hcd       667 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       675 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd       678 drivers/usb/host/max3421-hcd.c 	     max3421_hcd->sched_pass < SCHED_PASS_DONE;
max3421_hcd       679 drivers/usb/host/max3421-hcd.c 	     ++max3421_hcd->sched_pass)
max3421_hcd       680 drivers/usb/host/max3421-hcd.c 		list_for_each(pos, &max3421_hcd->ep_list) {
max3421_hcd       689 drivers/usb/host/max3421-hcd.c 				if (max3421_hcd->sched_pass !=
max3421_hcd       696 drivers/usb/host/max3421-hcd.c 				if (max3421_hcd->sched_pass !=
max3421_hcd       709 drivers/usb/host/max3421-hcd.c 				max3421_hcd->curr_urb = urb;
max3421_hcd       710 drivers/usb/host/max3421-hcd.c 				max3421_hcd->urb_done = 1;
max3421_hcd       711 drivers/usb/host/max3421-hcd.c 				spin_unlock_irqrestore(&max3421_hcd->lock,
max3421_hcd       723 drivers/usb/host/max3421-hcd.c 					       max3421_hcd->frame_number) == 0)
max3421_hcd       730 drivers/usb/host/max3421-hcd.c 						   max3421_hcd->frame_number)
max3421_hcd       742 drivers/usb/host/max3421-hcd.c 				if (frame_diff(max3421_hcd->frame_number,
max3421_hcd       755 drivers/usb/host/max3421-hcd.c 			list_move_tail(pos, &max3421_hcd->ep_list);
max3421_hcd       761 drivers/usb/host/max3421-hcd.c 		spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd       765 drivers/usb/host/max3421-hcd.c 	urb = max3421_hcd->curr_urb = curr_urb;
max3421_hcd       785 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd       787 drivers/usb/host/max3421-hcd.c 	max3421_ep->last_active = max3421_hcd->frame_number;
max3421_hcd       803 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       810 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd       811 drivers/usb/host/max3421-hcd.c 	list_for_each_entry(max3421_ep, &max3421_hcd->ep_list, ep_list) {
max3421_hcd       819 drivers/usb/host/max3421-hcd.c 				spin_unlock_irqrestore(&max3421_hcd->lock,
max3421_hcd       822 drivers/usb/host/max3421-hcd.c 				spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd       826 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd       836 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       837 drivers/usb/host/max3421-hcd.c 	struct urb *urb = max3421_hcd->curr_urb;
max3421_hcd       842 drivers/usb/host/max3421-hcd.c 	max3421_hcd->curr_urb = NULL;
max3421_hcd       851 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       852 drivers/usb/host/max3421-hcd.c 	struct urb *urb = max3421_hcd->curr_urb;
max3421_hcd       872 drivers/usb/host/max3421-hcd.c 		max3421_hcd->curr_len = transfer_size;
max3421_hcd       883 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       885 drivers/usb/host/max3421-hcd.c 	struct urb *urb = max3421_hcd->curr_urb;
max3421_hcd       912 drivers/usb/host/max3421-hcd.c 		max3421_hcd->urb_done = hrsl_to_error[result_code];
max3421_hcd       940 drivers/usb/host/max3421-hcd.c 			max3421_hcd->urb_done = hrsl_to_error[result_code];
max3421_hcd       949 drivers/usb/host/max3421-hcd.c 		max3421_hcd->urb_done = hrsl_to_error[result_code];
max3421_hcd       975 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd       997 drivers/usb/host/max3421-hcd.c 	if (max3421_hcd->curr_len < max_packet) {
max3421_hcd      1018 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1020 drivers/usb/host/max3421-hcd.c 	urb->actual_length += max3421_hcd->curr_len;
max3421_hcd      1033 drivers/usb/host/max3421-hcd.c 		if (max3421_hcd->curr_len == max_packet)
max3421_hcd      1045 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1046 drivers/usb/host/max3421-hcd.c 	struct urb *urb = max3421_hcd->curr_urb;
max3421_hcd      1051 drivers/usb/host/max3421-hcd.c 	max3421_hcd->hien &= ~(BIT(MAX3421_HI_HXFRDN_BIT) |
max3421_hcd      1058 drivers/usb/host/max3421-hcd.c 	++max3421_hcd->err_stat[result_code];
max3421_hcd      1089 drivers/usb/host/max3421-hcd.c 			max3421_hcd->urb_done = urb_done = 0;
max3421_hcd      1100 drivers/usb/host/max3421-hcd.c 		max3421_hcd->urb_done = urb_done;
max3421_hcd      1111 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1122 drivers/usb/host/max3421-hcd.c 	mode = max3421_hcd->mode;
max3421_hcd      1147 drivers/usb/host/max3421-hcd.c 	max3421_hcd->mode = mode;
max3421_hcd      1148 drivers/usb/host/max3421-hcd.c 	spi_wr8(hcd, MAX3421_REG_MODE, max3421_hcd->mode);
max3421_hcd      1150 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1151 drivers/usb/host/max3421-hcd.c 	old_port_status = max3421_hcd->port_status;
max3421_hcd      1153 drivers/usb/host/max3421-hcd.c 		max3421_hcd->port_status |=  USB_PORT_STAT_CONNECTION;
max3421_hcd      1155 drivers/usb/host/max3421-hcd.c 		max3421_hcd->port_status &= ~USB_PORT_STAT_CONNECTION;
max3421_hcd      1157 drivers/usb/host/max3421-hcd.c 		max3421_hcd->port_status |=  USB_PORT_STAT_LOW_SPEED;
max3421_hcd      1159 drivers/usb/host/max3421-hcd.c 		max3421_hcd->port_status &= ~USB_PORT_STAT_LOW_SPEED;
max3421_hcd      1160 drivers/usb/host/max3421-hcd.c 	chg = (old_port_status ^ max3421_hcd->port_status);
max3421_hcd      1161 drivers/usb/host/max3421-hcd.c 	max3421_hcd->port_status |= chg << 16;
max3421_hcd      1162 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1170 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1172 drivers/usb/host/max3421-hcd.c 	if (max3421_hcd->spi_thread &&
max3421_hcd      1173 drivers/usb/host/max3421-hcd.c 	    max3421_hcd->spi_thread->state != TASK_RUNNING)
max3421_hcd      1174 drivers/usb/host/max3421-hcd.c 		wake_up_process(max3421_hcd->spi_thread);
max3421_hcd      1175 drivers/usb/host/max3421-hcd.c 	if (!test_and_set_bit(ENABLE_IRQ, &max3421_hcd->todo))
max3421_hcd      1185 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1193 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1194 drivers/usb/host/max3421-hcd.c 	list_for_each_entry(max3421_ep, &max3421_hcd->ep_list, ep_list) {
max3421_hcd      1217 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1226 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1237 drivers/usb/host/max3421-hcd.c 	hirq &= max3421_hcd->hien;
max3421_hcd      1246 drivers/usb/host/max3421-hcd.c 		max3421_hcd->frame_number = ((max3421_hcd->frame_number + 1)
max3421_hcd      1248 drivers/usb/host/max3421-hcd.c 		max3421_hcd->sched_pass = SCHED_PASS_PERIODIC;
max3421_hcd      1264 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1266 drivers/usb/host/max3421-hcd.c 	old_port_status = max3421_hcd->port_status;
max3421_hcd      1268 drivers/usb/host/max3421-hcd.c 		if (max3421_hcd->port_status & USB_PORT_STAT_RESET) {
max3421_hcd      1270 drivers/usb/host/max3421-hcd.c 			max3421_hcd->port_status &= ~USB_PORT_STAT_RESET;
max3421_hcd      1271 drivers/usb/host/max3421-hcd.c 			max3421_hcd->port_status |=  USB_PORT_STAT_ENABLE;
max3421_hcd      1282 drivers/usb/host/max3421-hcd.c 	chg = (old_port_status ^ max3421_hcd->port_status);
max3421_hcd      1283 drivers/usb/host/max3421-hcd.c 	max3421_hcd->port_status |= chg << 16;
max3421_hcd      1285 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1299 drivers/usb/host/max3421-hcd.c 						   max3421_hcd->err_stat[i]);
max3421_hcd      1305 drivers/usb/host/max3421-hcd.c 			memset(max3421_hcd->err_stat, 0,
max3421_hcd      1306 drivers/usb/host/max3421-hcd.c 			       sizeof(max3421_hcd->err_stat));
max3421_hcd      1320 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1344 drivers/usb/host/max3421-hcd.c 	max3421_hcd->mode = (BIT(MAX3421_MODE_HOST_BIT) |
max3421_hcd      1348 drivers/usb/host/max3421-hcd.c 	spi_wr8(hcd, MAX3421_REG_MODE, max3421_hcd->mode);
max3421_hcd      1351 drivers/usb/host/max3421-hcd.c 	max3421_hcd->frame_number = USB_MAX_FRAME_NUMBER;
max3421_hcd      1359 drivers/usb/host/max3421-hcd.c 	max3421_hcd->hien = (BIT(MAX3421_HI_FRAME_BIT) |
max3421_hcd      1362 drivers/usb/host/max3421-hcd.c 	spi_wr8(hcd, MAX3421_REG_HIEN, max3421_hcd->hien);
max3421_hcd      1372 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1377 drivers/usb/host/max3421-hcd.c 	status = max3421_hcd->urb_done;
max3421_hcd      1378 drivers/usb/host/max3421-hcd.c 	max3421_hcd->urb_done = 0;
max3421_hcd      1381 drivers/usb/host/max3421-hcd.c 	urb = max3421_hcd->curr_urb;
max3421_hcd      1383 drivers/usb/host/max3421-hcd.c 		max3421_hcd->curr_urb = NULL;
max3421_hcd      1384 drivers/usb/host/max3421-hcd.c 		spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1386 drivers/usb/host/max3421-hcd.c 		spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1399 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1408 drivers/usb/host/max3421-hcd.c 		max3421_hcd->rev = spi_rd8(hcd, MAX3421_REG_REVISION);
max3421_hcd      1409 drivers/usb/host/max3421-hcd.c 		if (max3421_hcd->rev == 0x12 || max3421_hcd->rev == 0x13)
max3421_hcd      1411 drivers/usb/host/max3421-hcd.c 		dev_err(&spi->dev, "bad rev 0x%02x", max3421_hcd->rev);
max3421_hcd      1415 drivers/usb/host/max3421-hcd.c 		 max3421_hcd->rev, spi->max_speed_hz, spi->bits_per_word,
max3421_hcd      1425 drivers/usb/host/max3421-hcd.c 			spi_wr8(hcd, MAX3421_REG_HIEN, max3421_hcd->hien);
max3421_hcd      1428 drivers/usb/host/max3421-hcd.c 			if (test_and_clear_bit(ENABLE_IRQ, &max3421_hcd->todo))
max3421_hcd      1436 drivers/usb/host/max3421-hcd.c 		if (max3421_hcd->urb_done)
max3421_hcd      1440 drivers/usb/host/max3421-hcd.c 		else if (!max3421_hcd->curr_urb)
max3421_hcd      1443 drivers/usb/host/max3421-hcd.c 		if (test_and_clear_bit(RESET_HCD, &max3421_hcd->todo))
max3421_hcd      1446 drivers/usb/host/max3421-hcd.c 		if (test_and_clear_bit(RESET_PORT, &max3421_hcd->todo)) {
max3421_hcd      1452 drivers/usb/host/max3421-hcd.c 		if (test_and_clear_bit(CHECK_UNLINK, &max3421_hcd->todo))
max3421_hcd      1454 drivers/usb/host/max3421-hcd.c 		if (test_and_clear_bit(IOPIN_UPDATE, &max3421_hcd->todo)) {
max3421_hcd      1459 drivers/usb/host/max3421-hcd.c 			for (i = 0; i < ARRAY_SIZE(max3421_hcd->iopins); ++i) {
max3421_hcd      1463 drivers/usb/host/max3421-hcd.c 				       (max3421_hcd->iopins[i] & 0x0f));
max3421_hcd      1465 drivers/usb/host/max3421-hcd.c 				max3421_hcd->iopins[i] = val;
max3421_hcd      1478 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1480 drivers/usb/host/max3421-hcd.c 	max3421_hcd->port_status &= ~(USB_PORT_STAT_ENABLE |
max3421_hcd      1482 drivers/usb/host/max3421-hcd.c 	max3421_hcd->port_status |= USB_PORT_STAT_RESET;
max3421_hcd      1483 drivers/usb/host/max3421-hcd.c 	set_bit(RESET_PORT, &max3421_hcd->todo);
max3421_hcd      1484 drivers/usb/host/max3421-hcd.c 	wake_up_process(max3421_hcd->spi_thread);
max3421_hcd      1491 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1496 drivers/usb/host/max3421-hcd.c 	set_bit(RESET_HCD, &max3421_hcd->todo);
max3421_hcd      1497 drivers/usb/host/max3421-hcd.c 	wake_up_process(max3421_hcd->spi_thread);
max3421_hcd      1504 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1506 drivers/usb/host/max3421-hcd.c 	spin_lock_init(&max3421_hcd->lock);
max3421_hcd      1507 drivers/usb/host/max3421-hcd.c 	max3421_hcd->rh_state = MAX3421_RH_RUNNING;
max3421_hcd      1509 drivers/usb/host/max3421-hcd.c 	INIT_LIST_HEAD(&max3421_hcd->ep_list);
max3421_hcd      1526 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1544 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1555 drivers/usb/host/max3421-hcd.c 		max3421_ep->last_active = max3421_hcd->frame_number;
max3421_hcd      1558 drivers/usb/host/max3421-hcd.c 		list_add_tail(&max3421_ep->ep_list, &max3421_hcd->ep_list);
max3421_hcd      1564 drivers/usb/host/max3421-hcd.c 		max3421_hcd->sched_pass = SCHED_PASS_PERIODIC;
max3421_hcd      1565 drivers/usb/host/max3421-hcd.c 		wake_up_process(max3421_hcd->spi_thread);
max3421_hcd      1569 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1576 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1580 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1588 drivers/usb/host/max3421-hcd.c 		set_bit(CHECK_UNLINK, &max3421_hcd->todo);
max3421_hcd      1589 drivers/usb/host/max3421-hcd.c 		wake_up_process(max3421_hcd->spi_thread);
max3421_hcd      1591 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1598 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1601 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1613 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1619 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1620 drivers/usb/host/max3421-hcd.c 	return max3421_hcd->frame_number;
max3421_hcd      1630 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1634 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1639 drivers/usb/host/max3421-hcd.c 	if ((max3421_hcd->port_status & PORT_C_MASK) != 0) {
max3421_hcd      1643 drivers/usb/host/max3421-hcd.c 			max3421_hcd->port_status);
max3421_hcd      1645 drivers/usb/host/max3421-hcd.c 		if (max3421_hcd->rh_state == MAX3421_RH_SUSPENDED)
max3421_hcd      1649 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1675 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1686 drivers/usb/host/max3421-hcd.c 		max3421_hcd->iopins[idx] |=  mask;
max3421_hcd      1688 drivers/usb/host/max3421-hcd.c 		max3421_hcd->iopins[idx] &= ~mask;
max3421_hcd      1689 drivers/usb/host/max3421-hcd.c 	set_bit(IOPIN_UPDATE, &max3421_hcd->todo);
max3421_hcd      1690 drivers/usb/host/max3421-hcd.c 	wake_up_process(max3421_hcd->spi_thread);
max3421_hcd      1698 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1705 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1720 drivers/usb/host/max3421-hcd.c 			max3421_hcd->port_status &= ~(1 << value);
max3421_hcd      1742 drivers/usb/host/max3421-hcd.c 		((__le16 *) buf)[0] = cpu_to_le16(max3421_hcd->port_status);
max3421_hcd      1744 drivers/usb/host/max3421-hcd.c 			cpu_to_le16(max3421_hcd->port_status >> 16);
max3421_hcd      1759 drivers/usb/host/max3421-hcd.c 			if (max3421_hcd->active)
max3421_hcd      1760 drivers/usb/host/max3421-hcd.c 				max3421_hcd->port_status |=
max3421_hcd      1765 drivers/usb/host/max3421-hcd.c 			max3421_hcd->port_status |= USB_PORT_STAT_POWER;
max3421_hcd      1773 drivers/usb/host/max3421-hcd.c 			if ((max3421_hcd->port_status & USB_PORT_STAT_POWER)
max3421_hcd      1775 drivers/usb/host/max3421-hcd.c 				max3421_hcd->port_status |= (1 << value);
max3421_hcd      1787 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);
max3421_hcd      1806 drivers/usb/host/max3421-hcd.c 	.hcd_priv_size =	sizeof(struct max3421_hcd),
max3421_hcd      1847 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd;
max3421_hcd      1899 drivers/usb/host/max3421-hcd.c 	max3421_hcd = hcd_to_max3421(hcd);
max3421_hcd      1900 drivers/usb/host/max3421-hcd.c 	max3421_hcd->next = max3421_hcd_list;
max3421_hcd      1901 drivers/usb/host/max3421-hcd.c 	max3421_hcd_list = max3421_hcd;
max3421_hcd      1902 drivers/usb/host/max3421-hcd.c 	INIT_LIST_HEAD(&max3421_hcd->ep_list);
max3421_hcd      1904 drivers/usb/host/max3421-hcd.c 	max3421_hcd->tx = kmalloc(sizeof(*max3421_hcd->tx), GFP_KERNEL);
max3421_hcd      1905 drivers/usb/host/max3421-hcd.c 	if (!max3421_hcd->tx)
max3421_hcd      1907 drivers/usb/host/max3421-hcd.c 	max3421_hcd->rx = kmalloc(sizeof(*max3421_hcd->rx), GFP_KERNEL);
max3421_hcd      1908 drivers/usb/host/max3421-hcd.c 	if (!max3421_hcd->rx)
max3421_hcd      1911 drivers/usb/host/max3421-hcd.c 	max3421_hcd->spi_thread = kthread_run(max3421_spi_thread, hcd,
max3421_hcd      1913 drivers/usb/host/max3421-hcd.c 	if (max3421_hcd->spi_thread == ERR_PTR(-ENOMEM)) {
max3421_hcd      1940 drivers/usb/host/max3421-hcd.c 		kfree(max3421_hcd->tx);
max3421_hcd      1941 drivers/usb/host/max3421-hcd.c 		kfree(max3421_hcd->rx);
max3421_hcd      1942 drivers/usb/host/max3421-hcd.c 		if (max3421_hcd->spi_thread)
max3421_hcd      1943 drivers/usb/host/max3421-hcd.c 			kthread_stop(max3421_hcd->spi_thread);
max3421_hcd      1952 drivers/usb/host/max3421-hcd.c 	struct max3421_hcd *max3421_hcd = NULL, **prev;
max3421_hcd      1957 drivers/usb/host/max3421-hcd.c 		max3421_hcd = *prev;
max3421_hcd      1958 drivers/usb/host/max3421-hcd.c 		hcd = max3421_to_hcd(max3421_hcd);
max3421_hcd      1962 drivers/usb/host/max3421-hcd.c 	if (!max3421_hcd) {
max3421_hcd      1970 drivers/usb/host/max3421-hcd.c 	spin_lock_irqsave(&max3421_hcd->lock, flags);
max3421_hcd      1972 drivers/usb/host/max3421-hcd.c 	kthread_stop(max3421_hcd->spi_thread);
max3421_hcd      1973 drivers/usb/host/max3421-hcd.c 	*prev = max3421_hcd->next;
max3421_hcd      1975 drivers/usb/host/max3421-hcd.c 	spin_unlock_irqrestore(&max3421_hcd->lock, flags);