Home
last modified time | relevance | path

Searched refs:mem_flags (Results 1 – 25 of 87) sorted by relevance

1234

/linux/include/linux/
A Ddmapool.h26 void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags,
42 static inline void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_alloc() argument
52 static inline void *dma_pool_zalloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_zalloc() argument
55 return dma_pool_alloc(pool, mem_flags | __GFP_ZERO, handle); in dma_pool_zalloc()
A Dusb.h830 unsigned int num_streams, gfp_t mem_flags);
835 gfp_t mem_flags);
1721 extern struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags);
1725 extern int usb_submit_urb(struct urb *urb, gfp_t mem_flags);
1775 gfp_t mem_flags, dma_addr_t *dma);
1905 gfp_t mem_flags
/linux/drivers/usb/core/
A Dbuffer.c118 gfp_t mem_flags, in hcd_buffer_alloc() argument
134 return kmalloc(size, mem_flags); in hcd_buffer_alloc()
139 return dma_pool_alloc(hcd->pool[i], mem_flags, dma); in hcd_buffer_alloc()
141 return dma_alloc_coherent(hcd->self.sysdev, size, dma, mem_flags); in hcd_buffer_alloc()
A Dhcd.c1273 gfp_t mem_flags, dma_addr_t *dma_handle, in hcd_alloc_coherent() argument
1285 mem_flags, dma_handle); in hcd_alloc_coherent()
1391 gfp_t mem_flags) in map_urb_for_dma() argument
1396 return usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in map_urb_for_dma()
1400 gfp_t mem_flags) in usb_hcd_map_urb_for_dma() argument
1416 urb->dev->bus, mem_flags, in usb_hcd_map_urb_for_dma()
1447 urb->dev->bus, mem_flags, in usb_hcd_map_urb_for_dma()
1546 status = map_urb_for_dma(hcd, urb, mem_flags); in usb_hcd_submit_urb()
2013 unsigned int num_streams, gfp_t mem_flags) in usb_alloc_streams() argument
2038 num_streams, mem_flags); in usb_alloc_streams()
[all …]
A Durb.c70 struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags) in usb_alloc_urb() argument
75 mem_flags); in usb_alloc_urb()
367 int usb_submit_urb(struct urb *urb, gfp_t mem_flags) in usb_submit_urb() argument
594 return usb_hcd_submit_urb(urb, mem_flags); in usb_submit_urb()
/linux/drivers/usb/host/
A Dohci-mem.c90 td_alloc (struct ohci_hcd *hc, gfp_t mem_flags) in td_alloc() argument
100 td = dma_pool_zalloc(hc->td_cache, mem_flags, &dma); in td_alloc()
134 ed_alloc (struct ohci_hcd *hc, gfp_t mem_flags) in ed_alloc() argument
144 ed = dma_pool_zalloc(hc->ed_cache, mem_flags, &dma); in ed_alloc()
A Dxhci-mem.c190 gfp_t mem_flags) in xhci_insert_segment_mapping() argument
224 gfp_t mem_flags) in xhci_update_stream_segment_mapping() argument
236 ring, seg, mem_flags); in xhci_update_stream_segment_mapping()
569 gfp_t mem_flags) in xhci_alloc_stream_ctx() argument
576 dma, mem_flags); in xhci_alloc_stream_ctx()
579 mem_flags, dma); in xhci_alloc_stream_ctx()
582 mem_flags, dma); in xhci_alloc_stream_ctx()
643 mem_flags); in xhci_alloc_stream_info()
665 mem_flags); in xhci_alloc_stream_info()
1420 gfp_t mem_flags) in xhci_endpoint_init() argument
[all …]
A Dehci-sched.c907 gfp_t mem_flags in intr_submit() argument
1001 iso_stream_alloc(gfp_t mem_flags) in iso_stream_alloc() argument
1005 stream = kzalloc(sizeof(*stream), mem_flags); in iso_stream_alloc()
1165 iso_sched_alloc(unsigned packets, gfp_t mem_flags) in iso_sched_alloc() argument
1171 iso_sched = kzalloc(size, mem_flags); in iso_sched_alloc()
1238 gfp_t mem_flags in itd_urb_transaction() argument
1277 itd = dma_pool_alloc(ehci->itd_pool, mem_flags, in itd_urb_transaction()
1916 gfp_t mem_flags) in itd_submit() argument
2037 gfp_t mem_flags in sitd_urb_transaction() argument
2075 sitd = dma_pool_alloc(ehci->sitd_pool, mem_flags, in sitd_urb_transaction()
[all …]
A Dehci-hcd.c881 gfp_t mem_flags in ehci_urb_enqueue() argument
898 if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) in ehci_urb_enqueue()
900 return submit_async(ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue()
903 if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) in ehci_urb_enqueue()
905 return intr_submit(ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue()
909 return itd_submit (ehci, urb, mem_flags); in ehci_urb_enqueue()
911 return sitd_submit (ehci, urb, mem_flags); in ehci_urb_enqueue()
/linux/mm/
A Ddmapool.c219 static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags) in pool_alloc_page() argument
223 page = kmalloc(sizeof(*page), mem_flags); in pool_alloc_page()
227 &page->dma, mem_flags); in pool_alloc_page()
314 void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_alloc() argument
322 might_alloc(mem_flags); in dma_pool_alloc()
333 page = pool_alloc_page(pool, mem_flags & (~__GFP_ZERO)); in dma_pool_alloc()
370 if (!(mem_flags & __GFP_ZERO)) in dma_pool_alloc()
375 if (want_init_on_alloc(mem_flags)) in dma_pool_alloc()
/linux/drivers/video/fbdev/
A Defifb.c48 static u64 mem_flags = EFI_MEMORY_WC | EFI_MEMORY_UC; variable
252 if (mem_flags & (EFI_MEMORY_UC | EFI_MEMORY_WC)) in efifb_destroy()
291 mem_flags &= ~EFI_MEMORY_WC; in efifb_setup()
487 mem_flags |= EFI_MEMORY_WT | EFI_MEMORY_WB; in efifb_probe()
488 mem_flags &= md.attribute; in efifb_probe()
491 if (mem_flags & EFI_MEMORY_WC) in efifb_probe()
494 else if (mem_flags & EFI_MEMORY_UC) in efifb_probe()
497 else if (mem_flags & EFI_MEMORY_WT) in efifb_probe()
500 else if (mem_flags & EFI_MEMORY_WB) in efifb_probe()
607 if (mem_flags & (EFI_MEMORY_UC | EFI_MEMORY_WC)) in efifb_probe()
/linux/include/linux/usb/
A Dhcd.h294 struct urb *urb, gfp_t mem_flags);
308 gfp_t mem_flags);
347 unsigned int num_streams, gfp_t mem_flags);
353 gfp_t mem_flags);
393 struct usb_tt *tt, gfp_t mem_flags);
439 extern int usb_hcd_submit_urb(struct urb *urb, gfp_t mem_flags);
444 gfp_t mem_flags);
511 gfp_t mem_flags, dma_addr_t *dma);
A Dserial.h345 int usb_serial_generic_write_start(struct usb_serial_port *port, gfp_t mem_flags);
361 int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, gfp_t mem_flags);
/linux/drivers/usb/renesas_usbhs/
A Dmod_host.c157 gfp_t mem_flags) in usbhsh_ureq_alloc() argument
367 gfp_t mem_flags) in usbhsh_endpoint_attach() argument
377 uep = kzalloc(sizeof(struct usbhsh_ep), mem_flags); in usbhsh_endpoint_attach()
661 gfp_t mem_flags) in usbhsh_queue_push() argument
677 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_queue_push()
811 gfp_t mem_flags) in usbhsh_data_stage_packet_push() argument
817 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_data_stage_packet_push()
842 gfp_t mem_flags) in usbhsh_status_stage_packet_push() argument
847 ureq = usbhsh_ureq_alloc(hpriv, urb, mem_flags); in usbhsh_status_stage_packet_push()
950 gfp_t mem_flags) in usbhsh_urb_enqueue() argument
[all …]
/linux/drivers/usb/misc/
A Duss720.c124 gfp_t mem_flags) in submit_async_request() argument
136 rq = kzalloc(sizeof(struct uss720_async_request), mem_flags); in submit_async_request()
144 rq->urb = usb_alloc_urb(0, mem_flags); in submit_async_request()
149 rq->dr = kmalloc(sizeof(*rq->dr), mem_flags); in submit_async_request()
167 ret = usb_submit_urb(rq->urb, mem_flags); in submit_async_request()
192 …c int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_flags) in get_1284_register() argument
204 rq = submit_async_request(priv, 3, 0xc0, ((unsigned int)reg) << 8, 0, mem_flags); in get_1284_register()
228 …ic int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_flags) in set_1284_register() argument
236 rq = submit_async_request(priv, 4, 0x40, (((unsigned int)reg) << 8) | val, 0, mem_flags); in set_1284_register()
/linux/drivers/usb/serial/
A Dgeneric.c155 gfp_t mem_flags) in usb_serial_generic_write_start() argument
186 result = usb_submit_urb(urb, mem_flags); in usb_serial_generic_write_start()
301 int index, gfp_t mem_flags) in usb_serial_generic_submit_read_urb() argument
310 res = usb_submit_urb(port->read_urbs[index], mem_flags); in usb_serial_generic_submit_read_urb()
325 gfp_t mem_flags) in usb_serial_generic_submit_read_urbs() argument
331 res = usb_serial_generic_submit_read_urb(port, i, mem_flags); in usb_serial_generic_submit_read_urbs()
A Dsierra.c663 static int sierra_submit_rx_urbs(struct usb_serial_port *port, gfp_t mem_flags) in sierra_submit_rx_urbs() argument
676 err = usb_submit_urb(urb, mem_flags); in sierra_submit_rx_urbs()
686 err = usb_submit_urb(port->interrupt_in_urb, mem_flags); in sierra_submit_rx_urbs()
701 gfp_t mem_flags, in sierra_setup_urb() argument
707 urb = usb_alloc_urb(0, mem_flags); in sierra_setup_urb()
711 buf = kmalloc(len, mem_flags); in sierra_setup_urb()
/linux/drivers/usb/chipidea/
A Dhost.c400 static int ci_hdrc_alloc_dma_aligned_buffer(struct urb *urb, gfp_t mem_flags) in ci_hdrc_alloc_dma_aligned_buffer() argument
415 kmalloc_ptr = kmalloc(kmalloc_size, mem_flags); in ci_hdrc_alloc_dma_aligned_buffer()
434 gfp_t mem_flags) in ci_hdrc_map_urb_for_dma() argument
438 ret = ci_hdrc_alloc_dma_aligned_buffer(urb, mem_flags); in ci_hdrc_map_urb_for_dma()
442 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in ci_hdrc_map_urb_for_dma()
/linux/drivers/nfc/nfcmrvl/
A Dusb.c103 nfcmrvl_submit_bulk_urb(struct nfcmrvl_usb_drv_data *drv_data, gfp_t mem_flags) in nfcmrvl_submit_bulk_urb() argument
113 urb = usb_alloc_urb(0, mem_flags); in nfcmrvl_submit_bulk_urb()
117 buf = kmalloc(size, mem_flags); in nfcmrvl_submit_bulk_urb()
134 err = usb_submit_urb(urb, mem_flags); in nfcmrvl_submit_bulk_urb()
/linux/arch/mips/sibyte/common/
A Dcfe.c87 int mem_flags = 0; in prom_meminit() local
104 for (idx = 0; cfe_enummem(idx, mem_flags, &addr, &size, &type) != CFE_ERR_NOMORE; in prom_meminit()
/linux/drivers/usb/dwc2/
A Dhcd.h567 gfp_t mem_flags);
595 gfp_t mem_flags);
807 void *context, gfp_t mem_flags,
A Dhcd_queue.c1509 struct dwc2_hcd_urb *urb, gfp_t mem_flags) in dwc2_qh_init() argument
1546 mem_flags, in dwc2_qh_init()
1647 gfp_t mem_flags) in dwc2_hcd_qh_create() argument
1655 qh = kzalloc(sizeof(*qh), mem_flags); in dwc2_hcd_qh_create()
1659 dwc2_qh_init(hsotg, qh, urb, mem_flags); in dwc2_hcd_qh_create()
1662 dwc2_hcd_qh_init_ddma(hsotg, qh, mem_flags) < 0) { in dwc2_hcd_qh_create()
/linux/drivers/net/usb/
A Dipheth.c102 static int ipheth_rx_submit(struct ipheth_device *dev, gfp_t mem_flags);
313 static int ipheth_rx_submit(struct ipheth_device *dev, gfp_t mem_flags) in ipheth_rx_submit() argument
325 retval = usb_submit_urb(dev->rx_urb, mem_flags); in ipheth_rx_submit()
/linux/drivers/usb/c67x00/
A Dc67x00-hcd.h107 int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags);
/linux/drivers/usb/cdns3/
A Dcdnsp-mem.c196 gfp_t mem_flags) in cdnsp_insert_segment_mapping() argument
207 ret = radix_tree_maybe_preload(mem_flags); in cdnsp_insert_segment_mapping()
231 gfp_t mem_flags) in cdnsp_update_stream_segment_mapping() argument
240 mem_flags); in cdnsp_update_stream_segment_mapping()
943 gfp_t mem_flags) in cdnsp_endpoint_init() argument
989 pep->ring = cdnsp_ring_alloc(pdev, 2, ring_type, max_packet, mem_flags); in cdnsp_endpoint_init()

Completed in 66 milliseconds

1234