Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] gfp_t: drivers/usb

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Al Viro and committed by
Linus Torvalds
55016f10 970a9e73

+100 -100
+1 -1
drivers/usb/core/buffer.c
··· 106 106 void *hcd_buffer_alloc ( 107 107 struct usb_bus *bus, 108 108 size_t size, 109 - unsigned mem_flags, 109 + gfp_t mem_flags, 110 110 dma_addr_t *dma 111 111 ) 112 112 {
+1 -1
drivers/usb/core/hcd.c
··· 1112 1112 * expects usb_submit_urb() to have sanity checked and conditioned all 1113 1113 * inputs in the urb 1114 1114 */ 1115 - static int hcd_submit_urb (struct urb *urb, unsigned mem_flags) 1115 + static int hcd_submit_urb (struct urb *urb, gfp_t mem_flags) 1116 1116 { 1117 1117 int status; 1118 1118 struct usb_hcd *hcd = urb->dev->bus->hcpriv;
+4 -4
drivers/usb/core/hcd.h
··· 142 142 143 143 struct usb_operations { 144 144 int (*get_frame_number) (struct usb_device *usb_dev); 145 - int (*submit_urb) (struct urb *urb, unsigned mem_flags); 145 + int (*submit_urb) (struct urb *urb, gfp_t mem_flags); 146 146 int (*unlink_urb) (struct urb *urb, int status); 147 147 148 148 /* allocate dma-consistent buffer for URB_DMA_NOMAPPING */ 149 149 void *(*buffer_alloc)(struct usb_bus *bus, size_t size, 150 - unsigned mem_flags, 150 + gfp_t mem_flags, 151 151 dma_addr_t *dma); 152 152 void (*buffer_free)(struct usb_bus *bus, size_t size, 153 153 void *addr, dma_addr_t dma); ··· 200 200 int (*urb_enqueue) (struct usb_hcd *hcd, 201 201 struct usb_host_endpoint *ep, 202 202 struct urb *urb, 203 - unsigned mem_flags); 203 + gfp_t mem_flags); 204 204 int (*urb_dequeue) (struct usb_hcd *hcd, struct urb *urb); 205 205 206 206 /* hw synch, freeing endpoint resources that urb_dequeue can't */ ··· 247 247 void hcd_buffer_destroy (struct usb_hcd *hcd); 248 248 249 249 void *hcd_buffer_alloc (struct usb_bus *bus, size_t size, 250 - unsigned mem_flags, dma_addr_t *dma); 250 + gfp_t mem_flags, dma_addr_t *dma); 251 251 void hcd_buffer_free (struct usb_bus *bus, size_t size, 252 252 void *addr, dma_addr_t dma); 253 253
+1 -1
drivers/usb/core/message.c
··· 321 321 struct scatterlist *sg, 322 322 int nents, 323 323 size_t length, 324 - unsigned mem_flags 324 + gfp_t mem_flags 325 325 ) 326 326 { 327 327 int i;
+2 -2
drivers/usb/core/urb.c
··· 60 60 * 61 61 * The driver must call usb_free_urb() when it is finished with the urb. 62 62 */ 63 - struct urb *usb_alloc_urb(int iso_packets, unsigned mem_flags) 63 + struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags) 64 64 { 65 65 struct urb *urb; 66 66 ··· 224 224 * GFP_NOIO, unless b) or c) apply 225 225 * 226 226 */ 227 - int usb_submit_urb(struct urb *urb, unsigned mem_flags) 227 + int usb_submit_urb(struct urb *urb, gfp_t mem_flags) 228 228 { 229 229 int pipe, temp, max; 230 230 struct usb_device *dev;
+1 -1
drivers/usb/core/usb.c
··· 1147 1147 void *usb_buffer_alloc ( 1148 1148 struct usb_device *dev, 1149 1149 size_t size, 1150 - unsigned mem_flags, 1150 + gfp_t mem_flags, 1151 1151 dma_addr_t *dma 1152 1152 ) 1153 1153 {
+4 -4
drivers/usb/gadget/dummy_hcd.c
··· 470 470 } 471 471 472 472 static struct usb_request * 473 - dummy_alloc_request (struct usb_ep *_ep, unsigned mem_flags) 473 + dummy_alloc_request (struct usb_ep *_ep, gfp_t mem_flags) 474 474 { 475 475 struct dummy_ep *ep; 476 476 struct dummy_request *req; ··· 507 507 struct usb_ep *_ep, 508 508 unsigned bytes, 509 509 dma_addr_t *dma, 510 - unsigned mem_flags 510 + gfp_t mem_flags 511 511 ) { 512 512 char *retval; 513 513 struct dummy_ep *ep; ··· 541 541 542 542 static int 543 543 dummy_queue (struct usb_ep *_ep, struct usb_request *_req, 544 - unsigned mem_flags) 544 + gfp_t mem_flags) 545 545 { 546 546 struct dummy_ep *ep; 547 547 struct dummy_request *req; ··· 999 999 struct usb_hcd *hcd, 1000 1000 struct usb_host_endpoint *ep, 1001 1001 struct urb *urb, 1002 - unsigned mem_flags 1002 + gfp_t mem_flags 1003 1003 ) { 1004 1004 struct dummy *dum; 1005 1005 struct urbp *urbp;
+11 -11
drivers/usb/gadget/ether.c
··· 945 945 946 946 /*-------------------------------------------------------------------------*/ 947 947 948 - static void eth_start (struct eth_dev *dev, unsigned gfp_flags); 949 - static int alloc_requests (struct eth_dev *dev, unsigned n, unsigned gfp_flags); 948 + static void eth_start (struct eth_dev *dev, gfp_t gfp_flags); 949 + static int alloc_requests (struct eth_dev *dev, unsigned n, gfp_t gfp_flags); 950 950 951 951 static int 952 - set_ether_config (struct eth_dev *dev, unsigned gfp_flags) 952 + set_ether_config (struct eth_dev *dev, gfp_t gfp_flags) 953 953 { 954 954 int result = 0; 955 955 struct usb_gadget *gadget = dev->gadget; ··· 1081 1081 * that returns config descriptors, and altsetting code. 1082 1082 */ 1083 1083 static int 1084 - eth_set_config (struct eth_dev *dev, unsigned number, unsigned gfp_flags) 1084 + eth_set_config (struct eth_dev *dev, unsigned number, gfp_t gfp_flags) 1085 1085 { 1086 1086 int result = 0; 1087 1087 struct usb_gadget *gadget = dev->gadget; ··· 1598 1598 static void rx_complete (struct usb_ep *ep, struct usb_request *req); 1599 1599 1600 1600 static int 1601 - rx_submit (struct eth_dev *dev, struct usb_request *req, unsigned gfp_flags) 1601 + rx_submit (struct eth_dev *dev, struct usb_request *req, gfp_t gfp_flags) 1602 1602 { 1603 1603 struct sk_buff *skb; 1604 1604 int retval = -ENOMEM; ··· 1724 1724 } 1725 1725 1726 1726 static int prealloc (struct list_head *list, struct usb_ep *ep, 1727 - unsigned n, unsigned gfp_flags) 1727 + unsigned n, gfp_t gfp_flags) 1728 1728 { 1729 1729 unsigned i; 1730 1730 struct usb_request *req; ··· 1763 1763 return 0; 1764 1764 } 1765 1765 1766 - static int alloc_requests (struct eth_dev *dev, unsigned n, unsigned gfp_flags) 1766 + static int alloc_requests (struct eth_dev *dev, unsigned n, gfp_t gfp_flags) 1767 1767 { 1768 1768 int status; 1769 1769 ··· 1779 1779 return status; 1780 1780 } 1781 1781 1782 - static void rx_fill (struct eth_dev *dev, unsigned gfp_flags) 1782 + static void rx_fill (struct eth_dev *dev, gfp_t gfp_flags) 1783 1783 { 1784 1784 struct usb_request *req; 1785 1785 unsigned long flags; ··· 1962 1962 * normally just one notification will be queued. 1963 1963 */ 1964 1964 1965 - static struct usb_request *eth_req_alloc (struct usb_ep *, unsigned, unsigned); 1965 + static struct usb_request *eth_req_alloc (struct usb_ep *, unsigned, gfp_t); 1966 1966 static void eth_req_free (struct usb_ep *ep, struct usb_request *req); 1967 1967 1968 1968 static void ··· 2024 2024 2025 2025 #endif /* RNDIS */ 2026 2026 2027 - static void eth_start (struct eth_dev *dev, unsigned gfp_flags) 2027 + static void eth_start (struct eth_dev *dev, gfp_t gfp_flags) 2028 2028 { 2029 2029 DEBUG (dev, "%s\n", __FUNCTION__); 2030 2030 ··· 2092 2092 /*-------------------------------------------------------------------------*/ 2093 2093 2094 2094 static struct usb_request * 2095 - eth_req_alloc (struct usb_ep *ep, unsigned size, unsigned gfp_flags) 2095 + eth_req_alloc (struct usb_ep *ep, unsigned size, gfp_t gfp_flags) 2096 2096 { 2097 2097 struct usb_request *req; 2098 2098
+3 -3
drivers/usb/gadget/goku_udc.c
··· 269 269 /*-------------------------------------------------------------------------*/ 270 270 271 271 static struct usb_request * 272 - goku_alloc_request(struct usb_ep *_ep, unsigned gfp_flags) 272 + goku_alloc_request(struct usb_ep *_ep, gfp_t gfp_flags) 273 273 { 274 274 struct goku_request *req; 275 275 ··· 327 327 */ 328 328 static void * 329 329 goku_alloc_buffer(struct usb_ep *_ep, unsigned bytes, 330 - dma_addr_t *dma, unsigned gfp_flags) 330 + dma_addr_t *dma, gfp_t gfp_flags) 331 331 { 332 332 void *retval; 333 333 struct goku_ep *ep; ··· 789 789 /*-------------------------------------------------------------------------*/ 790 790 791 791 static int 792 - goku_queue(struct usb_ep *_ep, struct usb_request *_req, unsigned gfp_flags) 792 + goku_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) 793 793 { 794 794 struct goku_request *req; 795 795 struct goku_ep *ep;
+6 -6
drivers/usb/gadget/lh7a40x_udc.c
··· 71 71 static int lh7a40x_ep_enable(struct usb_ep *ep, 72 72 const struct usb_endpoint_descriptor *); 73 73 static int lh7a40x_ep_disable(struct usb_ep *ep); 74 - static struct usb_request *lh7a40x_alloc_request(struct usb_ep *ep, int); 74 + static struct usb_request *lh7a40x_alloc_request(struct usb_ep *ep, gfp_t); 75 75 static void lh7a40x_free_request(struct usb_ep *ep, struct usb_request *); 76 76 static void *lh7a40x_alloc_buffer(struct usb_ep *ep, unsigned, dma_addr_t *, 77 - int); 77 + gfp_t); 78 78 static void lh7a40x_free_buffer(struct usb_ep *ep, void *, dma_addr_t, 79 79 unsigned); 80 - static int lh7a40x_queue(struct usb_ep *ep, struct usb_request *, int); 80 + static int lh7a40x_queue(struct usb_ep *ep, struct usb_request *, gfp_t); 81 81 static int lh7a40x_dequeue(struct usb_ep *ep, struct usb_request *); 82 82 static int lh7a40x_set_halt(struct usb_ep *ep, int); 83 83 static int lh7a40x_fifo_status(struct usb_ep *ep); ··· 1106 1106 } 1107 1107 1108 1108 static struct usb_request *lh7a40x_alloc_request(struct usb_ep *ep, 1109 - unsigned gfp_flags) 1109 + gfp_t gfp_flags) 1110 1110 { 1111 1111 struct lh7a40x_request *req; 1112 1112 ··· 1134 1134 } 1135 1135 1136 1136 static void *lh7a40x_alloc_buffer(struct usb_ep *ep, unsigned bytes, 1137 - dma_addr_t * dma, unsigned gfp_flags) 1137 + dma_addr_t * dma, gfp_t gfp_flags) 1138 1138 { 1139 1139 char *retval; 1140 1140 ··· 1158 1158 * NOTE: Sets INDEX register 1159 1159 */ 1160 1160 static int lh7a40x_queue(struct usb_ep *_ep, struct usb_request *_req, 1161 - unsigned gfp_flags) 1161 + gfp_t gfp_flags) 1162 1162 { 1163 1163 struct lh7a40x_request *req; 1164 1164 struct lh7a40x_ep *ep;
+3 -3
drivers/usb/gadget/net2280.c
··· 376 376 /*-------------------------------------------------------------------------*/ 377 377 378 378 static struct usb_request * 379 - net2280_alloc_request (struct usb_ep *_ep, unsigned gfp_flags) 379 + net2280_alloc_request (struct usb_ep *_ep, gfp_t gfp_flags) 380 380 { 381 381 struct net2280_ep *ep; 382 382 struct net2280_request *req; ··· 463 463 struct usb_ep *_ep, 464 464 unsigned bytes, 465 465 dma_addr_t *dma, 466 - unsigned gfp_flags 466 + gfp_t gfp_flags 467 467 ) 468 468 { 469 469 void *retval; ··· 897 897 /*-------------------------------------------------------------------------*/ 898 898 899 899 static int 900 - net2280_queue (struct usb_ep *_ep, struct usb_request *_req, unsigned gfp_flags) 900 + net2280_queue (struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) 901 901 { 902 902 struct net2280_request *req; 903 903 struct net2280_ep *ep;
+3 -3
drivers/usb/gadget/omap_udc.c
··· 269 269 /*-------------------------------------------------------------------------*/ 270 270 271 271 static struct usb_request * 272 - omap_alloc_request(struct usb_ep *ep, unsigned gfp_flags) 272 + omap_alloc_request(struct usb_ep *ep, gfp_t gfp_flags) 273 273 { 274 274 struct omap_req *req; 275 275 ··· 298 298 struct usb_ep *_ep, 299 299 unsigned bytes, 300 300 dma_addr_t *dma, 301 - unsigned gfp_flags 301 + gfp_t gfp_flags 302 302 ) 303 303 { 304 304 void *retval; ··· 937 937 /*-------------------------------------------------------------------------*/ 938 938 939 939 static int 940 - omap_ep_queue(struct usb_ep *_ep, struct usb_request *_req, unsigned gfp_flags) 940 + omap_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) 941 941 { 942 942 struct omap_ep *ep = container_of(_ep, struct omap_ep, ep); 943 943 struct omap_req *req = container_of(_req, struct omap_req, req);
+3 -3
drivers/usb/gadget/pxa2xx_udc.c
··· 332 332 * pxa2xx_ep_alloc_request - allocate a request data structure 333 333 */ 334 334 static struct usb_request * 335 - pxa2xx_ep_alloc_request (struct usb_ep *_ep, unsigned gfp_flags) 335 + pxa2xx_ep_alloc_request (struct usb_ep *_ep, gfp_t gfp_flags) 336 336 { 337 337 struct pxa2xx_request *req; 338 338 ··· 367 367 */ 368 368 static void * 369 369 pxa2xx_ep_alloc_buffer(struct usb_ep *_ep, unsigned bytes, 370 - dma_addr_t *dma, unsigned gfp_flags) 370 + dma_addr_t *dma, gfp_t gfp_flags) 371 371 { 372 372 char *retval; 373 373 ··· 874 874 /*-------------------------------------------------------------------------*/ 875 875 876 876 static int 877 - pxa2xx_ep_queue(struct usb_ep *_ep, struct usb_request *_req, unsigned gfp_flags) 877 + pxa2xx_ep_queue(struct usb_ep *_ep, struct usb_request *_req, gfp_t gfp_flags) 878 878 { 879 879 struct pxa2xx_request *req; 880 880 struct pxa2xx_ep *ep;
+8 -8
drivers/usb/gadget/serial.c
··· 300 300 u8 type, unsigned int index, int is_otg); 301 301 302 302 static struct usb_request *gs_alloc_req(struct usb_ep *ep, unsigned int len, 303 - unsigned kmalloc_flags); 303 + gfp_t kmalloc_flags); 304 304 static void gs_free_req(struct usb_ep *ep, struct usb_request *req); 305 305 306 306 static struct gs_req_entry *gs_alloc_req_entry(struct usb_ep *ep, unsigned len, 307 - unsigned kmalloc_flags); 307 + gfp_t kmalloc_flags); 308 308 static void gs_free_req_entry(struct usb_ep *ep, struct gs_req_entry *req); 309 309 310 - static int gs_alloc_ports(struct gs_dev *dev, unsigned kmalloc_flags); 310 + static int gs_alloc_ports(struct gs_dev *dev, gfp_t kmalloc_flags); 311 311 static void gs_free_ports(struct gs_dev *dev); 312 312 313 313 /* circular buffer */ 314 - static struct gs_buf *gs_buf_alloc(unsigned int size, unsigned kmalloc_flags); 314 + static struct gs_buf *gs_buf_alloc(unsigned int size, gfp_t kmalloc_flags); 315 315 static void gs_buf_free(struct gs_buf *gb); 316 316 static void gs_buf_clear(struct gs_buf *gb); 317 317 static unsigned int gs_buf_data_avail(struct gs_buf *gb); ··· 2091 2091 * usb_request or NULL if there is an error. 2092 2092 */ 2093 2093 static struct usb_request * 2094 - gs_alloc_req(struct usb_ep *ep, unsigned int len, unsigned kmalloc_flags) 2094 + gs_alloc_req(struct usb_ep *ep, unsigned int len, gfp_t kmalloc_flags) 2095 2095 { 2096 2096 struct usb_request *req; 2097 2097 ··· 2132 2132 * endpoint, buffer len, and kmalloc flags. 2133 2133 */ 2134 2134 static struct gs_req_entry * 2135 - gs_alloc_req_entry(struct usb_ep *ep, unsigned len, unsigned kmalloc_flags) 2135 + gs_alloc_req_entry(struct usb_ep *ep, unsigned len, gfp_t kmalloc_flags) 2136 2136 { 2137 2137 struct gs_req_entry *req; 2138 2138 ··· 2173 2173 * 2174 2174 * The device lock is normally held when calling this function. 2175 2175 */ 2176 - static int gs_alloc_ports(struct gs_dev *dev, unsigned kmalloc_flags) 2176 + static int gs_alloc_ports(struct gs_dev *dev, gfp_t kmalloc_flags) 2177 2177 { 2178 2178 int i; 2179 2179 struct gs_port *port; ··· 2255 2255 * 2256 2256 * Allocate a circular buffer and all associated memory. 2257 2257 */ 2258 - static struct gs_buf *gs_buf_alloc(unsigned int size, unsigned kmalloc_flags) 2258 + static struct gs_buf *gs_buf_alloc(unsigned int size, gfp_t kmalloc_flags) 2259 2259 { 2260 2260 struct gs_buf *gb; 2261 2261
+4 -4
drivers/usb/gadget/zero.c
··· 612 612 } 613 613 614 614 static struct usb_request * 615 - source_sink_start_ep (struct usb_ep *ep, unsigned gfp_flags) 615 + source_sink_start_ep (struct usb_ep *ep, gfp_t gfp_flags) 616 616 { 617 617 struct usb_request *req; 618 618 int status; ··· 640 640 } 641 641 642 642 static int 643 - set_source_sink_config (struct zero_dev *dev, unsigned gfp_flags) 643 + set_source_sink_config (struct zero_dev *dev, gfp_t gfp_flags) 644 644 { 645 645 int result = 0; 646 646 struct usb_ep *ep; ··· 744 744 } 745 745 746 746 static int 747 - set_loopback_config (struct zero_dev *dev, unsigned gfp_flags) 747 + set_loopback_config (struct zero_dev *dev, gfp_t gfp_flags) 748 748 { 749 749 int result = 0; 750 750 struct usb_ep *ep; ··· 845 845 * by limiting configuration choices (like the pxa2xx). 846 846 */ 847 847 static int 848 - zero_set_config (struct zero_dev *dev, unsigned number, unsigned gfp_flags) 848 + zero_set_config (struct zero_dev *dev, unsigned number, gfp_t gfp_flags) 849 849 { 850 850 int result = 0; 851 851 struct usb_gadget *gadget = dev->gadget;
+1 -1
drivers/usb/host/ehci-hcd.c
··· 983 983 struct usb_hcd *hcd, 984 984 struct usb_host_endpoint *ep, 985 985 struct urb *urb, 986 - unsigned mem_flags 986 + gfp_t mem_flags 987 987 ) { 988 988 struct ehci_hcd *ehci = hcd_to_ehci (hcd); 989 989 struct list_head qtd_list;
+3 -3
drivers/usb/host/ehci-mem.c
··· 45 45 INIT_LIST_HEAD (&qtd->qtd_list); 46 46 } 47 47 48 - static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, int flags) 48 + static struct ehci_qtd *ehci_qtd_alloc (struct ehci_hcd *ehci, gfp_t flags) 49 49 { 50 50 struct ehci_qtd *qtd; 51 51 dma_addr_t dma; ··· 79 79 dma_pool_free (ehci->qh_pool, qh, qh->qh_dma); 80 80 } 81 81 82 - static struct ehci_qh *ehci_qh_alloc (struct ehci_hcd *ehci, int flags) 82 + static struct ehci_qh *ehci_qh_alloc (struct ehci_hcd *ehci, gfp_t flags) 83 83 { 84 84 struct ehci_qh *qh; 85 85 dma_addr_t dma; ··· 161 161 } 162 162 163 163 /* remember to add cleanup code (above) if you add anything here */ 164 - static int ehci_mem_init (struct ehci_hcd *ehci, int flags) 164 + static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags) 165 165 { 166 166 int i; 167 167
+3 -3
drivers/usb/host/ehci-q.c
··· 477 477 struct ehci_hcd *ehci, 478 478 struct urb *urb, 479 479 struct list_head *head, 480 - int flags 480 + gfp_t flags 481 481 ) { 482 482 struct ehci_qtd *qtd, *qtd_prev; 483 483 dma_addr_t buf; ··· 629 629 qh_make ( 630 630 struct ehci_hcd *ehci, 631 631 struct urb *urb, 632 - int flags 632 + gfp_t flags 633 633 ) { 634 634 struct ehci_qh *qh = ehci_qh_alloc (ehci, flags); 635 635 u32 info1 = 0, info2 = 0; ··· 906 906 struct usb_host_endpoint *ep, 907 907 struct urb *urb, 908 908 struct list_head *qtd_list, 909 - unsigned mem_flags 909 + gfp_t mem_flags 910 910 ) { 911 911 struct ehci_qtd *qtd; 912 912 int epnum;
+7 -7
drivers/usb/host/ehci-sched.c
··· 589 589 struct usb_host_endpoint *ep, 590 590 struct urb *urb, 591 591 struct list_head *qtd_list, 592 - unsigned mem_flags 592 + gfp_t mem_flags 593 593 ) { 594 594 unsigned epnum; 595 595 unsigned long flags; ··· 634 634 /* ehci_iso_stream ops work with both ITD and SITD */ 635 635 636 636 static struct ehci_iso_stream * 637 - iso_stream_alloc (unsigned mem_flags) 637 + iso_stream_alloc (gfp_t mem_flags) 638 638 { 639 639 struct ehci_iso_stream *stream; 640 640 ··· 851 851 /* ehci_iso_sched ops can be ITD-only or SITD-only */ 852 852 853 853 static struct ehci_iso_sched * 854 - iso_sched_alloc (unsigned packets, unsigned mem_flags) 854 + iso_sched_alloc (unsigned packets, gfp_t mem_flags) 855 855 { 856 856 struct ehci_iso_sched *iso_sched; 857 857 int size = sizeof *iso_sched; ··· 924 924 struct ehci_iso_stream *stream, 925 925 struct ehci_hcd *ehci, 926 926 struct urb *urb, 927 - unsigned mem_flags 927 + gfp_t mem_flags 928 928 ) 929 929 { 930 930 struct ehci_itd *itd; ··· 1418 1418 /*-------------------------------------------------------------------------*/ 1419 1419 1420 1420 static int itd_submit (struct ehci_hcd *ehci, struct urb *urb, 1421 - unsigned mem_flags) 1421 + gfp_t mem_flags) 1422 1422 { 1423 1423 int status = -EINVAL; 1424 1424 unsigned long flags; ··· 1529 1529 struct ehci_iso_stream *stream, 1530 1530 struct ehci_hcd *ehci, 1531 1531 struct urb *urb, 1532 - unsigned mem_flags 1532 + gfp_t mem_flags 1533 1533 ) 1534 1534 { 1535 1535 struct ehci_sitd *sitd; ··· 1779 1779 1780 1780 1781 1781 static int sitd_submit (struct ehci_hcd *ehci, struct urb *urb, 1782 - unsigned mem_flags) 1782 + gfp_t mem_flags) 1783 1783 { 1784 1784 int status = -EINVAL; 1785 1785 unsigned long flags;
+1 -1
drivers/usb/host/isp116x-hcd.c
··· 694 694 695 695 static int isp116x_urb_enqueue(struct usb_hcd *hcd, 696 696 struct usb_host_endpoint *hep, struct urb *urb, 697 - unsigned mem_flags) 697 + gfp_t mem_flags) 698 698 { 699 699 struct isp116x *isp116x = hcd_to_isp116x(hcd); 700 700 struct usb_device *udev = urb->dev;
+1 -1
drivers/usb/host/ohci-hcd.c
··· 180 180 struct usb_hcd *hcd, 181 181 struct usb_host_endpoint *ep, 182 182 struct urb *urb, 183 - unsigned mem_flags 183 + gfp_t mem_flags 184 184 ) { 185 185 struct ohci_hcd *ohci = hcd_to_ohci (hcd); 186 186 struct ed *ed;
+2 -2
drivers/usb/host/ohci-mem.c
··· 84 84 85 85 /* TDs ... */ 86 86 static struct td * 87 - td_alloc (struct ohci_hcd *hc, unsigned mem_flags) 87 + td_alloc (struct ohci_hcd *hc, gfp_t mem_flags) 88 88 { 89 89 dma_addr_t dma; 90 90 struct td *td; ··· 118 118 119 119 /* EDs ... */ 120 120 static struct ed * 121 - ed_alloc (struct ohci_hcd *hc, unsigned mem_flags) 121 + ed_alloc (struct ohci_hcd *hc, gfp_t mem_flags) 122 122 { 123 123 dma_addr_t dma; 124 124 struct ed *ed;
+1 -1
drivers/usb/host/sl811-hcd.c
··· 818 818 struct usb_hcd *hcd, 819 819 struct usb_host_endpoint *hep, 820 820 struct urb *urb, 821 - unsigned mem_flags 821 + gfp_t mem_flags 822 822 ) { 823 823 struct sl811 *sl811 = hcd_to_sl811(hcd); 824 824 struct usb_device *udev = urb->dev;
+1 -1
drivers/usb/host/uhci-q.c
··· 1164 1164 1165 1165 static int uhci_urb_enqueue(struct usb_hcd *hcd, 1166 1166 struct usb_host_endpoint *ep, 1167 - struct urb *urb, unsigned mem_flags) 1167 + struct urb *urb, gfp_t mem_flags) 1168 1168 { 1169 1169 int ret; 1170 1170 struct uhci_hcd *uhci = hcd_to_uhci(hcd);
+3 -3
drivers/usb/misc/uss720.c
··· 137 137 138 138 static struct uss720_async_request *submit_async_request(struct parport_uss720_private *priv, 139 139 __u8 request, __u8 requesttype, __u16 value, __u16 index, 140 - unsigned int mem_flags) 140 + gfp_t mem_flags) 141 141 { 142 142 struct usb_device *usbdev; 143 143 struct uss720_async_request *rq; ··· 204 204 205 205 /* --------------------------------------------------------------------- */ 206 206 207 - static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, unsigned int mem_flags) 207 + static int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_flags) 208 208 { 209 209 struct parport_uss720_private *priv; 210 210 struct uss720_async_request *rq; ··· 238 238 return -EIO; 239 239 } 240 240 241 - static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, unsigned int mem_flags) 241 + static int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_flags) 242 242 { 243 243 struct parport_uss720_private *priv; 244 244 struct uss720_async_request *rq;
+1 -1
drivers/usb/net/asix.c
··· 753 753 } 754 754 755 755 static struct sk_buff *ax88772_tx_fixup(struct usbnet *dev, struct sk_buff *skb, 756 - unsigned flags) 756 + gfp_t flags) 757 757 { 758 758 int padlen; 759 759 int headroom = skb_headroom(skb);
+1 -1
drivers/usb/net/gl620a.c
··· 301 301 } 302 302 303 303 static struct sk_buff * 304 - genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, unsigned flags) 304 + genelink_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) 305 305 { 306 306 int padlen; 307 307 int length = skb->len;
+3 -3
drivers/usb/net/kaweth.c
··· 477 477 } 478 478 479 479 static void kaweth_usb_receive(struct urb *, struct pt_regs *regs); 480 - static int kaweth_resubmit_rx_urb(struct kaweth_device *, unsigned); 480 + static int kaweth_resubmit_rx_urb(struct kaweth_device *, gfp_t); 481 481 482 482 /**************************************************************** 483 483 int_callback 484 484 *****************************************************************/ 485 485 486 - static void kaweth_resubmit_int_urb(struct kaweth_device *kaweth, int mf) 486 + static void kaweth_resubmit_int_urb(struct kaweth_device *kaweth, gfp_t mf) 487 487 { 488 488 int status; 489 489 ··· 550 550 * kaweth_resubmit_rx_urb 551 551 ****************************************************************/ 552 552 static int kaweth_resubmit_rx_urb(struct kaweth_device *kaweth, 553 - unsigned mem_flags) 553 + gfp_t mem_flags) 554 554 { 555 555 int result; 556 556
+1 -1
drivers/usb/net/net1080.c
··· 500 500 } 501 501 502 502 static struct sk_buff * 503 - net1080_tx_fixup(struct usbnet *dev, struct sk_buff *skb, unsigned flags) 503 + net1080_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) 504 504 { 505 505 int padlen; 506 506 struct sk_buff *skb2;
+1 -1
drivers/usb/net/rndis_host.c
··· 517 517 } 518 518 519 519 static struct sk_buff * 520 - rndis_tx_fixup(struct usbnet *dev, struct sk_buff *skb, unsigned flags) 520 + rndis_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) 521 521 { 522 522 struct rndis_data_hdr *hdr; 523 523 struct sk_buff *skb2;
+1 -1
drivers/usb/net/usbnet.c
··· 288 288 289 289 static void rx_complete (struct urb *urb, struct pt_regs *regs); 290 290 291 - static void rx_submit (struct usbnet *dev, struct urb *urb, unsigned flags) 291 + static void rx_submit (struct usbnet *dev, struct urb *urb, gfp_t flags) 292 292 { 293 293 struct sk_buff *skb; 294 294 struct skb_data *entry;
+1 -1
drivers/usb/net/usbnet.h
··· 107 107 108 108 /* fixup tx packet (add framing) */ 109 109 struct sk_buff *(*tx_fixup)(struct usbnet *dev, 110 - struct sk_buff *skb, unsigned flags); 110 + struct sk_buff *skb, gfp_t flags); 111 111 112 112 /* for new devices, use the descriptor-reading code instead */ 113 113 int in; /* rx endpoint */
+1 -1
drivers/usb/net/zaurus.c
··· 62 62 */ 63 63 64 64 static struct sk_buff * 65 - zaurus_tx_fixup(struct usbnet *dev, struct sk_buff *skb, unsigned flags) 65 + zaurus_tx_fixup(struct usbnet *dev, struct sk_buff *skb, gfp_t flags) 66 66 { 67 67 int padlen; 68 68 struct sk_buff *skb2;
+1 -1
drivers/usb/net/zd1201.c
··· 521 521 int reqlen; 522 522 char seq=0; 523 523 struct urb *urb; 524 - unsigned int gfp_mask = wait ? GFP_NOIO : GFP_ATOMIC; 524 + gfp_t gfp_mask = wait ? GFP_NOIO : GFP_ATOMIC; 525 525 526 526 len += 4; /* first 4 are for header */ 527 527
+4 -4
include/linux/usb.h
··· 933 933 } 934 934 935 935 extern void usb_init_urb(struct urb *urb); 936 - extern struct urb *usb_alloc_urb(int iso_packets, unsigned mem_flags); 936 + extern struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags); 937 937 extern void usb_free_urb(struct urb *urb); 938 938 #define usb_put_urb usb_free_urb 939 939 extern struct urb *usb_get_urb(struct urb *urb); 940 - extern int usb_submit_urb(struct urb *urb, unsigned mem_flags); 940 + extern int usb_submit_urb(struct urb *urb, gfp_t mem_flags); 941 941 extern int usb_unlink_urb(struct urb *urb); 942 942 extern void usb_kill_urb(struct urb *urb); 943 943 944 944 #define HAVE_USB_BUFFERS 945 945 void *usb_buffer_alloc (struct usb_device *dev, size_t size, 946 - unsigned mem_flags, dma_addr_t *dma); 946 + gfp_t mem_flags, dma_addr_t *dma); 947 947 void usb_buffer_free (struct usb_device *dev, size_t size, 948 948 void *addr, dma_addr_t dma); 949 949 ··· 1050 1050 struct scatterlist *sg, 1051 1051 int nents, 1052 1052 size_t length, 1053 - unsigned mem_flags 1053 + gfp_t mem_flags 1054 1054 ); 1055 1055 void usb_sg_cancel (struct usb_sg_request *io); 1056 1056 void usb_sg_wait (struct usb_sg_request *io);
+6 -6
include/linux/usb_gadget.h
··· 107 107 int (*disable) (struct usb_ep *ep); 108 108 109 109 struct usb_request *(*alloc_request) (struct usb_ep *ep, 110 - unsigned gfp_flags); 110 + gfp_t gfp_flags); 111 111 void (*free_request) (struct usb_ep *ep, struct usb_request *req); 112 112 113 113 void *(*alloc_buffer) (struct usb_ep *ep, unsigned bytes, 114 - dma_addr_t *dma, unsigned gfp_flags); 114 + dma_addr_t *dma, gfp_t gfp_flags); 115 115 void (*free_buffer) (struct usb_ep *ep, void *buf, dma_addr_t dma, 116 116 unsigned bytes); 117 117 // NOTE: on 2.6, drivers may also use dma_map() and 118 118 // dma_sync_single_*() to directly manage dma overhead. 119 119 120 120 int (*queue) (struct usb_ep *ep, struct usb_request *req, 121 - unsigned gfp_flags); 121 + gfp_t gfp_flags); 122 122 int (*dequeue) (struct usb_ep *ep, struct usb_request *req); 123 123 124 124 int (*set_halt) (struct usb_ep *ep, int value); ··· 214 214 * Returns the request, or null if one could not be allocated. 215 215 */ 216 216 static inline struct usb_request * 217 - usb_ep_alloc_request (struct usb_ep *ep, unsigned gfp_flags) 217 + usb_ep_alloc_request (struct usb_ep *ep, gfp_t gfp_flags) 218 218 { 219 219 return ep->ops->alloc_request (ep, gfp_flags); 220 220 } ··· 254 254 */ 255 255 static inline void * 256 256 usb_ep_alloc_buffer (struct usb_ep *ep, unsigned len, dma_addr_t *dma, 257 - unsigned gfp_flags) 257 + gfp_t gfp_flags) 258 258 { 259 259 return ep->ops->alloc_buffer (ep, len, dma, gfp_flags); 260 260 } ··· 330 330 * reported when the usb peripheral is disconnected. 331 331 */ 332 332 static inline int 333 - usb_ep_queue (struct usb_ep *ep, struct usb_request *req, unsigned gfp_flags) 333 + usb_ep_queue (struct usb_ep *ep, struct usb_request *req, gfp_t gfp_flags) 334 334 { 335 335 return ep->ops->queue (ep, req, gfp_flags); 336 336 }
+1 -1
sound/usb/usbmidi.c
··· 163 163 /* 164 164 * Submits the URB, with error handling. 165 165 */ 166 - static int snd_usbmidi_submit_urb(struct urb* urb, int flags) 166 + static int snd_usbmidi_submit_urb(struct urb* urb, gfp_t flags) 167 167 { 168 168 int err = usb_submit_urb(urb, flags); 169 169 if (err < 0 && err != -ENODEV)