Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/include/linux/
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()
Dusb.h835 unsigned int num_streams, gfp_t mem_flags);
840 gfp_t mem_flags);
1719 extern struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags);
1723 extern int usb_submit_urb(struct urb *urb, gfp_t mem_flags);
1773 gfp_t mem_flags, dma_addr_t *dma);
1903 gfp_t mem_flags
/kernel/linux/linux-5.10/drivers/usb/core/
Dbuffer.c116 gfp_t mem_flags, in hcd_buffer_alloc() argument
132 return kmalloc(size, mem_flags); in hcd_buffer_alloc()
137 return dma_pool_alloc(hcd->pool[i], mem_flags, dma); in hcd_buffer_alloc()
139 return dma_alloc_coherent(hcd->self.sysdev, size, dma, mem_flags); in hcd_buffer_alloc()
Dhcd.c1279 gfp_t mem_flags, dma_addr_t *dma_handle, in hcd_alloc_coherent() argument
1291 mem_flags, dma_handle); in hcd_alloc_coherent()
1397 gfp_t mem_flags) in map_urb_for_dma() argument
1400 return hcd->driver->map_urb_for_dma(hcd, urb, mem_flags); in map_urb_for_dma()
1402 return usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in map_urb_for_dma()
1406 gfp_t mem_flags) in usb_hcd_map_urb_for_dma() argument
1422 urb->dev->bus, mem_flags, in usb_hcd_map_urb_for_dma()
1453 urb->dev->bus, mem_flags, in usb_hcd_map_urb_for_dma()
1527 int usb_hcd_submit_urb (struct urb *urb, gfp_t mem_flags) in usb_hcd_submit_urb() argument
1552 status = map_urb_for_dma(hcd, urb, mem_flags); in usb_hcd_submit_urb()
[all …]
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
585 return usb_hcd_submit_urb(urb, mem_flags); in usb_submit_urb()
/kernel/linux/linux-5.10/drivers/usb/host/
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()
Dxhci-mem.c190 gfp_t mem_flags) in xhci_insert_segment_mapping() argument
200 ret = radix_tree_maybe_preload(mem_flags); in xhci_insert_segment_mapping()
224 gfp_t mem_flags) in xhci_update_stream_segment_mapping() argument
236 ring, seg, mem_flags); in xhci_update_stream_segment_mapping()
273 static int xhci_update_stream_mapping(struct xhci_ring *ring, gfp_t mem_flags) in xhci_update_stream_mapping() argument
276 ring->first_seg, ring->last_seg, mem_flags); in xhci_update_stream_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()
[all …]
Dehci-tegra.c313 static int alloc_dma_aligned_buffer(struct urb *urb, gfp_t mem_flags) in alloc_dma_aligned_buffer() argument
327 kmalloc_ptr = kmalloc(kmalloc_size, mem_flags); in alloc_dma_aligned_buffer()
346 gfp_t mem_flags) in tegra_ehci_map_urb_for_dma() argument
350 ret = alloc_dma_aligned_buffer(urb, mem_flags); in tegra_ehci_map_urb_for_dma()
354 ret = usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in tegra_ehci_map_urb_for_dma()
Dehci-hcd.c887 gfp_t mem_flags in ehci_urb_enqueue() argument
904 if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) in ehci_urb_enqueue()
906 return submit_async(ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue()
909 if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) in ehci_urb_enqueue()
911 return intr_submit(ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue()
915 return itd_submit (ehci, urb, mem_flags); in ehci_urb_enqueue()
917 return sitd_submit (ehci, urb, mem_flags); in ehci_urb_enqueue()
Dehci-sched.c901 gfp_t mem_flags in intr_submit() argument
995 iso_stream_alloc(gfp_t mem_flags) in iso_stream_alloc() argument
999 stream = kzalloc(sizeof(*stream), mem_flags); in iso_stream_alloc()
1159 iso_sched_alloc(unsigned packets, gfp_t mem_flags) in iso_sched_alloc() argument
1165 iso_sched = kzalloc(size, mem_flags); in iso_sched_alloc()
1232 gfp_t mem_flags in itd_urb_transaction() argument
1242 sched = iso_sched_alloc(urb->number_of_packets, mem_flags); in itd_urb_transaction()
1271 itd = dma_pool_alloc(ehci->itd_pool, mem_flags, in itd_urb_transaction()
1904 gfp_t mem_flags) in itd_submit() argument
1934 status = itd_urb_transaction(stream, ehci, urb, mem_flags); in itd_submit()
[all …]
/kernel/linux/linux-5.10/mm/
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_sleep_if(gfpflags_allow_blocking(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()
/kernel/linux/linux-5.10/drivers/video/fbdev/
Defifb.c47 static u64 mem_flags = EFI_MEMORY_WC | EFI_MEMORY_UC; variable
247 if (mem_flags & (EFI_MEMORY_UC | EFI_MEMORY_WC)) in efifb_destroy()
286 mem_flags &= ~EFI_MEMORY_WC; in efifb_setup()
472 mem_flags |= EFI_MEMORY_WT | EFI_MEMORY_WB; in efifb_probe()
473 mem_flags &= md.attribute; in efifb_probe()
476 if (mem_flags & EFI_MEMORY_WC) in efifb_probe()
479 else if (mem_flags & EFI_MEMORY_UC) in efifb_probe()
482 else if (mem_flags & EFI_MEMORY_WT) in efifb_probe()
485 else if (mem_flags & EFI_MEMORY_WB) in efifb_probe()
585 if (mem_flags & (EFI_MEMORY_UC | EFI_MEMORY_WC)) in efifb_probe()
/kernel/linux/linux-5.10/include/linux/usb/
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);
436 extern int usb_hcd_submit_urb(struct urb *urb, gfp_t mem_flags);
441 gfp_t mem_flags);
500 gfp_t mem_flags, dma_addr_t *dma);
Dserial.h341 int usb_serial_generic_write_start(struct usb_serial_port *port, gfp_t mem_flags);
357 int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, gfp_t mem_flags);
/kernel/linux/linux-5.10/drivers/usb/renesas_usbhs/
Dmod_host.c157 gfp_t mem_flags) in usbhsh_ureq_alloc() argument
161 ureq = kzalloc(sizeof(struct usbhsh_request), mem_flags); in usbhsh_ureq_alloc()
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()
[all …]
/kernel/linux/linux-5.10/drivers/usb/misc/
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()
/kernel/linux/linux-5.10/drivers/usb/serial/
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()
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()
/kernel/linux/linux-5.10/drivers/nfc/nfcmrvl/
Dusb.c113 nfcmrvl_submit_bulk_urb(struct nfcmrvl_usb_drv_data *drv_data, gfp_t mem_flags) in nfcmrvl_submit_bulk_urb() argument
123 urb = usb_alloc_urb(0, mem_flags); in nfcmrvl_submit_bulk_urb()
127 buf = kmalloc(size, mem_flags); in nfcmrvl_submit_bulk_urb()
144 err = usb_submit_urb(urb, mem_flags); in nfcmrvl_submit_bulk_urb()
/kernel/linux/linux-5.10/arch/mips/sibyte/common/
Dcfe.c88 int mem_flags = 0; in prom_meminit() local
105 for (idx = 0; cfe_enummem(idx, mem_flags, &addr, &size, &type) != CFE_ERR_NOMORE; in prom_meminit()
/kernel/linux/linux-5.10/drivers/usb/c67x00/
Dc67x00-hcd.h107 int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags);
/kernel/linux/linux-5.10/drivers/usb/dwc2/
Dhcd.h567 gfp_t mem_flags);
595 gfp_t mem_flags);
807 void *context, gfp_t mem_flags,
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()
/kernel/linux/linux-5.10/drivers/net/usb/
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()
/kernel/linux/linux-5.10/Documentation/driver-api/usb/
Dbulk-streams.rst35 unsigned int num_streams, gfp_t mem_flags);
80 gfp_t mem_flags);

123