亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? ehci-q.c

?? host usb 主設(shè)備程序 支持sd卡 mouse keyboard 的最單單的驅(qū)動(dòng)程序 gcc編譯
?? C
?? 第 1 頁(yè) / 共 3 頁(yè)
字號(hào):
		if (type == PIPE_CONTROL) {			info1 |= (EHCI_TUNE_RL_HS << 28);			info1 |= 64 << 16;	/* usb2 fixed maxpacket */			info1 |= 1 << 14;	/* toggle from qtd */			info2 |= (EHCI_TUNE_MULT_HS << 30);		} else if (type == PIPE_BULK) {			info1 |= (EHCI_TUNE_RL_HS << 28);			info1 |= 512 << 16;	/* usb2 fixed maxpacket */			info2 |= (EHCI_TUNE_MULT_HS << 30);		} else {		/* PIPE_INTERRUPT */			info1 |= max_packet (maxp) << 16;			info2 |= hb_mult (maxp) << 30;		}		break;	default:		dbg ("bogus dev %p speed %d", urb->dev, urb->dev->speed);done:		qh_put (qh);		return NULL;	}	/* NOTE:  if (PIPE_INTERRUPT) { scheduler sets s-mask } */	/* init as live, toggle clear, advance to dummy */	qh->qh_state = QH_STATE_IDLE;	qh->hw_info1 = cpu_to_le32 (info1);	qh->hw_info2 = cpu_to_le32 (info2);	usb_settoggle (urb->dev, usb_pipeendpoint (urb->pipe), !is_input, 1);	qh_refresh (ehci, qh);	return qh;}/*-------------------------------------------------------------------------*//* move qh (and its qtds) onto async queue; maybe enable queue.  */static void qh_link_async (struct ehci_hcd *ehci, struct ehci_qh *qh){	__le32		dma = QH_NEXT (qh->qh_dma);	struct ehci_qh	*head;	/* (re)start the async schedule? */	head = ehci->async;	timer_action_done (ehci, TIMER_ASYNC_OFF);	if (!head->qh_next.qh) {		u32	cmd = ehci_readl(ehci, &ehci->regs->command);		if (!(cmd & CMD_ASE)) {			/* in case a clear of CMD_ASE didn't take yet */			(void)handshake(ehci, &ehci->regs->status,					STS_ASS, 0, 150);			cmd |= CMD_ASE | CMD_RUN;			ehci_writel(ehci, cmd, &ehci->regs->command);			ehci_to_hcd(ehci)->state = HC_STATE_RUNNING;			/* posted write need not be known to HC yet ... */		}	}	/* clear halt and/or toggle; and maybe recover from silicon quirk */	if (qh->qh_state == QH_STATE_IDLE)		qh_refresh (ehci, qh);	/* splice right after start */	qh->qh_next = head->qh_next;	qh->hw_next = head->hw_next;	wmb ();	head->qh_next.qh = qh;	head->hw_next = dma;	qh->qh_state = QH_STATE_LINKED;	/* qtd completions reported later by interrupt */}/*-------------------------------------------------------------------------*/#define	QH_ADDR_MASK	__constant_cpu_to_le32(0x7f)/* * For control/bulk/interrupt, return QH with these TDs appended. * Allocates and initializes the QH if necessary. * Returns null if it can't allocate a QH it needs to. * If the QH has TDs (urbs) already, that's great. */static struct ehci_qh *qh_append_tds (	struct ehci_hcd		*ehci,	struct urb		*urb,	struct list_head	*qtd_list,	int			epnum,	void			**ptr){	struct ehci_qh		*qh = NULL;	qh = (struct ehci_qh *) *ptr;	if (unlikely (qh == NULL)) {		/* can't sleep here, we have ehci->lock... */		qh = qh_make (ehci, urb, GFP_ATOMIC);		*ptr = qh;	}	if (likely (qh != NULL)) {		struct ehci_qtd	*qtd;		if (unlikely (list_empty (qtd_list)))			qtd = NULL;		else			qtd = list_entry (qtd_list->next, struct ehci_qtd,					qtd_list);		/* control qh may need patching ... */		if (unlikely (epnum == 0)) {                        /* usb_reset_device() briefly reverts to address 0 */                        if (usb_pipedevice (urb->pipe) == 0)                                qh->hw_info1 &= ~QH_ADDR_MASK;		}		/* just one way to queue requests: swap with the dummy qtd.		 * only hc or qh_refresh() ever modify the overlay.		 */		if (likely (qtd != NULL)) {			struct ehci_qtd		*dummy;			dma_addr_t		dma;			__le32			token;			/* to avoid racing the HC, use the dummy td instead of			 * the first td of our list (becomes new dummy).  both			 * tds stay deactivated until we're done, when the			 * HC is allowed to fetch the old dummy (4.10.2).			 */			token = qtd->hw_token;			qtd->hw_token = HALT_BIT;			wmb ();			dummy = qh->dummy;			dma = dummy->qtd_dma;			*dummy = *qtd;			dummy->qtd_dma = dma;			list_del (&qtd->qtd_list);			list_add (&dummy->qtd_list, qtd_list);			__list_splice (qtd_list, qh->qtd_list.prev);			ehci_qtd_init (qtd, qtd->qtd_dma);			qh->dummy = qtd;			/* hc must see the new dummy at list end */			dma = qtd->qtd_dma;			qtd = list_entry (qh->qtd_list.prev,					struct ehci_qtd, qtd_list);			qtd->hw_next = QTD_NEXT (dma);			/* let the hc process these next qtds */			wmb ();			dummy->hw_token = token;			urb->hcpriv = qh_get (qh);		}	}	return qh;}/*-------------------------------------------------------------------------*/static intsubmit_async (	struct ehci_hcd		*ehci,	struct usb_host_endpoint *ep,	struct urb		*urb,	struct list_head	*qtd_list,	gfp_t			mem_flags) {	struct ehci_qtd		*qtd;	int			epnum;	unsigned long		flags;	struct ehci_qh		*qh = NULL;	int			rc = 0;	qtd = list_entry (qtd_list->next, struct ehci_qtd, qtd_list);	epnum = ep->desc.bEndpointAddress;#ifdef EHCI_URB_TRACE	ehci_dbg (ehci,		"%s %s urb %p ep%d%s len %d, qtd %p [qh %p]\n",		__FUNCTION__, urb->dev->devpath, urb,		epnum & 0x0f, (epnum & USB_DIR_IN) ? "in" : "out",		urb->transfer_buffer_length,		qtd, ep->hcpriv);#endif	spin_lock_irqsave (&ehci->lock, flags);	if (unlikely(!test_bit(HCD_FLAG_HW_ACCESSIBLE,			       &ehci_to_hcd(ehci)->flags))) {		rc = -ESHUTDOWN;		goto done;	}	qh = qh_append_tds (ehci, urb, qtd_list, epnum, &ep->hcpriv);	if (unlikely(qh == NULL)) {		rc = -ENOMEM;		goto done;	}	/* Control/bulk operations through TTs don't need scheduling,	 * the HC and TT handle it when the TT has a buffer ready.	 */	if (likely (qh->qh_state == QH_STATE_IDLE))		qh_link_async (ehci, qh_get (qh)); done:	spin_unlock_irqrestore (&ehci->lock, flags);	if (unlikely (qh == NULL))		qtd_list_free (ehci, urb, qtd_list);	return rc;}/*-------------------------------------------------------------------------*//* the async qh for the qtds being reclaimed are now unlinked from the HC */static void end_unlink_async (struct ehci_hcd *ehci){	struct ehci_qh		*qh = ehci->reclaim;	struct ehci_qh		*next;	timer_action_done (ehci, TIMER_IAA_WATCHDOG);	// qh->hw_next = cpu_to_le32 (qh->qh_dma);	qh->qh_state = QH_STATE_IDLE;	qh->qh_next.qh = NULL;	qh_put (qh);			// refcount from reclaim	/* other unlink(s) may be pending (in QH_STATE_UNLINK_WAIT) */	next = qh->reclaim;	ehci->reclaim = next;	ehci->reclaim_ready = 0;	qh->reclaim = NULL;	qh_completions (ehci, qh);	if (!list_empty (&qh->qtd_list)			&& HC_IS_RUNNING (ehci_to_hcd(ehci)->state))		qh_link_async (ehci, qh);	else {		qh_put (qh);		// refcount from async list		/* it's not free to turn the async schedule on/off; leave it		 * active but idle for a while once it empties.		 */		if (HC_IS_RUNNING (ehci_to_hcd(ehci)->state)				&& ehci->async->qh_next.qh == NULL)			timer_action (ehci, TIMER_ASYNC_OFF);	}	if (next) {		ehci->reclaim = NULL;		start_unlink_async (ehci, next);	}}/* makes sure the async qh will become idle *//* caller must own ehci->lock */static void start_unlink_async (struct ehci_hcd *ehci, struct ehci_qh *qh){	int		cmd = ehci_readl(ehci, &ehci->regs->command);	struct ehci_qh	*prev;#ifdef DEBUG	assert_spin_locked(&ehci->lock);	if (ehci->reclaim			|| (qh->qh_state != QH_STATE_LINKED				&& qh->qh_state != QH_STATE_UNLINK_WAIT)			)		BUG ();#endif	/* stop async schedule right now? */	if (unlikely (qh == ehci->async)) {		/* can't get here without STS_ASS set */		if (ehci_to_hcd(ehci)->state != HC_STATE_HALT				&& !ehci->reclaim) {			/* ... and CMD_IAAD clear */			ehci_writel(ehci, cmd & ~CMD_ASE,				    &ehci->regs->command);			wmb ();			// handshake later, if we need to			timer_action_done (ehci, TIMER_ASYNC_OFF);		}		return;	}	qh->qh_state = QH_STATE_UNLINK;	ehci->reclaim = qh = qh_get (qh);	prev = ehci->async;	while (prev->qh_next.qh != qh)		prev = prev->qh_next.qh;	prev->hw_next = qh->hw_next;	prev->qh_next = qh->qh_next;	wmb ();	if (unlikely (ehci_to_hcd(ehci)->state == HC_STATE_HALT)) {		/* if (unlikely (qh->reclaim != 0))		 *	this will recurse, probably not much		 */		end_unlink_async (ehci);		return;	}	ehci->reclaim_ready = 0;	cmd |= CMD_IAAD;	ehci_writel(ehci, cmd, &ehci->regs->command);	(void)ehci_readl(ehci, &ehci->regs->command);	timer_action (ehci, TIMER_IAA_WATCHDOG);}/*-------------------------------------------------------------------------*/static void scan_async (struct ehci_hcd *ehci){	struct ehci_qh		*qh;	enum ehci_timer_action	action = TIMER_IO_WATCHDOG;	if (!++(ehci->stamp))		ehci->stamp++;	timer_action_done (ehci, TIMER_ASYNC_SHRINK);rescan:	qh = ehci->async->qh_next.qh;	if (likely (qh != NULL)) {		do {			/* clean any finished work for this qh */			if (!list_empty (&qh->qtd_list)					&& qh->stamp != ehci->stamp) {				int temp;				/* unlinks could happen here; completion				 * reporting drops the lock.  rescan using				 * the latest schedule, but don't rescan				 * qhs we already finished (no looping).				 */				qh = qh_get (qh);				qh->stamp = ehci->stamp;				temp = qh_completions (ehci, qh);				qh_put (qh);				if (temp != 0) {					goto rescan;				}			}			/* unlink idle entries, reducing HC PCI usage as well			 * as HCD schedule-scanning costs.  delay for any qh			 * we just scanned, there's a not-unusual case that it			 * doesn't stay idle for long.			 * (plus, avoids some kind of re-activation race.)			 */			if (list_empty (&qh->qtd_list)) {				if (qh->stamp == ehci->stamp)					action = TIMER_ASYNC_SHRINK;				else if (!ehci->reclaim					    && qh->qh_state == QH_STATE_LINKED)					start_unlink_async (ehci, qh);			}			qh = qh->qh_next.qh;		} while (qh);	}	if (action == TIMER_ASYNC_SHRINK)		timer_action (ehci, TIMER_ASYNC_SHRINK);}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产在线国偷精品产拍免费yy| 91片在线免费观看| 亚洲成人一区二区| 亚洲美女精品一区| 亚洲欧美日韩在线| 亚洲精品成人a在线观看| 亚洲人妖av一区二区| 亚洲男人电影天堂| 亚洲免费在线视频| 亚洲国产精品久久艾草纯爱| 亚洲一区二区三区不卡国产欧美| 99久久久精品免费观看国产蜜| 国产成人啪免费观看软件| 国产精品一区二区久激情瑜伽| 成人午夜激情片| 972aa.com艺术欧美| 欧美又粗又大又爽| 777色狠狠一区二区三区| 欧美一卡在线观看| 久久综合九色欧美综合狠狠| 久久久久久久综合狠狠综合| 国产精品久久久久久久久免费桃花 | 国产v日产∨综合v精品视频| 国产成人三级在线观看| 99视频一区二区| 欧美日韩亚洲综合| 欧美成人vr18sexvr| 欧美韩国日本不卡| 亚洲欧美日韩综合aⅴ视频| 亚洲成人7777| 狠狠色狠狠色综合系列| 成人午夜av电影| 欧美在线观看一二区| 日韩免费高清av| 国产精品天干天干在线综合| 一区二区三区免费看视频| 日本欧美一区二区| 成人深夜福利app| 欧美夫妻性生活| 中文字幕国产一区| 日日夜夜精品视频免费| 国产一区二区视频在线播放| 99v久久综合狠狠综合久久| 欧美肥妇free| 中文字幕欧美国产| 石原莉奈在线亚洲二区| 国产成人精品免费在线| 欧美日韩一级视频| 2021中文字幕一区亚洲| 一区二区日韩av| 久久se精品一区二区| 成人aa视频在线观看| 日韩视频免费观看高清完整版在线观看 | 国产人成一区二区三区影院| 亚洲免费在线观看视频| 久久精品国产久精国产爱| 92精品国产成人观看免费| 精品美女被调教视频大全网站| 亚洲精品中文在线| 国产精品一级二级三级| 欧美日韩免费视频| 国产精品久久久久久久久搜平片 | 国产婷婷色一区二区三区四区| 一区二区免费在线播放| 国产一区二区成人久久免费影院| 色久综合一二码| 国产日韩欧美激情| 久久精品国产99久久6| 欧美三级三级三级| 日韩毛片在线免费观看| 国产在线精品一区二区不卡了| 欧美色精品在线视频| 亚洲欧美日本韩国| 成人高清在线视频| 精品第一国产综合精品aⅴ| 午夜精品久久久久影视| 91麻豆国产精品久久| 国产日产欧美一区二区三区| 麻豆精品在线播放| 91精品国产一区二区三区香蕉| 一区二区三区美女视频| 91亚洲男人天堂| 国产精品素人视频| 成人一区二区视频| 久久蜜臀精品av| 国产在线播放一区三区四| 日韩欧美亚洲国产另类| 日本欧美加勒比视频| 欧美精品18+| 五月天欧美精品| 欧美在线啊v一区| 亚洲最新在线观看| 色狠狠一区二区| 亚洲精品国产精华液| 91蝌蚪porny成人天涯| 国产精品家庭影院| 成人高清免费观看| 久久久久久久久蜜桃| 国产精品香蕉一区二区三区| 国产亚洲一区二区在线观看| 国模大尺度一区二区三区| 精品少妇一区二区三区在线播放| 奇米影视一区二区三区小说| 91精品国产综合久久精品麻豆| 天天色综合天天| 日韩三级视频在线看| 久久av中文字幕片| 久久久久久电影| 成人看片黄a免费看在线| 国产精品你懂的在线欣赏| 波多野结衣91| 日韩美女视频19| 欧美伊人精品成人久久综合97| 亚洲成人av一区二区| 欧美一级欧美一级在线播放| 男女性色大片免费观看一区二区 | 欧美激情中文字幕| 成人av电影在线观看| 亚洲免费av观看| 欧美三级在线看| 麻豆精品在线视频| 国产日韩欧美制服另类| 91亚洲精品乱码久久久久久蜜桃| 亚洲一区国产视频| 欧美一区二区视频在线观看| 经典三级视频一区| 亚洲欧洲精品天堂一级| 欧美日韩日日骚| 国产一区视频导航| 亚洲免费色视频| 日韩一卡二卡三卡四卡| 国产91丝袜在线18| 亚洲午夜久久久久久久久电影院| 91精品国产一区二区人妖| 丁香婷婷综合色啪| 亚洲图片欧美色图| 欧美精品一区男女天堂| 成人动漫视频在线| 五月婷婷综合激情| 国产情人综合久久777777| 在线观看一区二区精品视频| 九九精品一区二区| 中文字幕在线不卡一区二区三区| 欧美日韩不卡一区二区| 国产福利91精品一区二区三区| 亚洲精品福利视频网站| 欧美电影免费观看高清完整版在| 成人av电影在线网| 蜜桃av一区二区三区电影| 国产精品卡一卡二卡三| 日韩一级欧美一级| 成人18视频日本| 人人爽香蕉精品| 亚洲图片另类小说| www久久久久| 欧美在线观看视频在线| 高清不卡一区二区| 秋霞电影网一区二区| 最新国产の精品合集bt伙计| 日韩欧美亚洲一区二区| 色一情一乱一乱一91av| 国产精品综合网| 日韩精品一卡二卡三卡四卡无卡| 欧美激情中文字幕| 欧美成人三级在线| 欧美日韩在线不卡| 99久久久国产精品免费蜜臀| 极品少妇一区二区| 偷拍一区二区三区| 中文字幕在线观看不卡| 久久久久久久性| 日韩一区二区三区视频在线| 色偷偷一区二区三区| 国产精品中文字幕一区二区三区| 亚洲国产你懂的| 日韩毛片在线免费观看| 国产日本欧美一区二区| 欧美电影精品一区二区| 欧美人伦禁忌dvd放荡欲情| 97久久人人超碰| 国产一区二区中文字幕| 免费日本视频一区| 午夜精品一区二区三区免费视频 | 精品一区二区三区日韩| 亚洲成av人片在www色猫咪| 国产精品护士白丝一区av| 日本一区二区三级电影在线观看 | 国产精品美女久久久久aⅴ | 日本视频在线一区| 午夜精品福利一区二区三区av| ㊣最新国产の精品bt伙计久久| 国产欧美1区2区3区| 久久久91精品国产一区二区精品 | 日韩av不卡在线观看| 亚洲午夜精品网| 亚洲国产精品久久久久婷婷884 | 国产精品免费视频网站| 国产午夜精品一区二区三区视频| 精品国免费一区二区三区| 精品精品欲导航|