ehci-mem.c (11e4afb49b7fa1fc8e1ffd850c1806dd86a08204) | ehci-mem.c (230f7ede6c2f0e403f29e03e0251a470aa9350dd) |
---|---|
1/* 2 * Copyright (c) 2001 by David Brownell 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 26 unchanged lines hidden (view full) --- 35 36/* Allocate the key transfer structures from the previously allocated pool */ 37 38static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, 39 dma_addr_t dma) 40{ 41 memset (qtd, 0, sizeof *qtd); 42 qtd->qtd_dma = dma; | 1/* 2 * Copyright (c) 2001 by David Brownell 3 * 4 * This program is free software; you can redistribute it and/or modify it 5 * under the terms of the GNU General Public License as published by the 6 * Free Software Foundation; either version 2 of the License, or (at your 7 * option) any later version. 8 * --- 26 unchanged lines hidden (view full) --- 35 36/* Allocate the key transfer structures from the previously allocated pool */ 37 38static inline void ehci_qtd_init(struct ehci_hcd *ehci, struct ehci_qtd *qtd, 39 dma_addr_t dma) 40{ 41 memset (qtd, 0, sizeof *qtd); 42 qtd->qtd_dma = dma; |
43 qtd->hw_token = cpu_to_le32 (QTD_STS_HALT); | 43 qtd->hw_token = cpu_to_hc32(ehci, QTD_STS_HALT); |
44 qtd->hw_next = EHCI_LIST_END(ehci); 45 qtd->hw_alt_next = EHCI_LIST_END(ehci); 46 INIT_LIST_HEAD (&qtd->qtd_list); 47} 48 49static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) 50{ 51 struct ehci_qtd *qtd; --- 191 unchanged lines hidden --- | 44 qtd->hw_next = EHCI_LIST_END(ehci); 45 qtd->hw_alt_next = EHCI_LIST_END(ehci); 46 INIT_LIST_HEAD (&qtd->qtd_list); 47} 48 49static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) 50{ 51 struct ehci_qtd *qtd; --- 191 unchanged lines hidden --- |