Home
last modified time | relevance | path

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

1234

/linux-6.6.21/drivers/usb/core/
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()
177 size_t size, gfp_t mem_flags, dma_addr_t *dma) in hcd_buffer_alloc_pages() argument
189 return (void *)__get_free_pages(mem_flags, in hcd_buffer_alloc_pages()
194 size, dma, mem_flags); in hcd_buffer_alloc_pages()
Durb.c71 struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags) in usb_alloc_urb() argument
76 mem_flags); in usb_alloc_urb()
368 int usb_submit_urb(struct urb *urb, gfp_t mem_flags) in usb_submit_urb() argument
581 return usb_hcd_submit_urb(urb, mem_flags); in usb_submit_urb()
Dhcd.c1260 gfp_t mem_flags, dma_addr_t *dma_handle, in hcd_alloc_coherent() argument
1272 mem_flags, dma_handle); in hcd_alloc_coherent()
1378 gfp_t mem_flags) in map_urb_for_dma() argument
1381 return hcd->driver->map_urb_for_dma(hcd, urb, mem_flags); in map_urb_for_dma()
1383 return usb_hcd_map_urb_for_dma(hcd, urb, mem_flags); in map_urb_for_dma()
1387 gfp_t mem_flags) in usb_hcd_map_urb_for_dma() argument
1403 urb->dev->bus, mem_flags, in usb_hcd_map_urb_for_dma()
1434 urb->dev->bus, mem_flags, in usb_hcd_map_urb_for_dma()
1508 int usb_hcd_submit_urb (struct urb *urb, gfp_t mem_flags) in usb_hcd_submit_urb() argument
1533 status = map_urb_for_dma(hcd, urb, mem_flags); in usb_hcd_submit_urb()
[all …]
/linux-6.6.21/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.h868 unsigned int num_streams, gfp_t mem_flags);
873 gfp_t mem_flags);
1768 extern struct urb *usb_alloc_urb(int iso_packets, gfp_t mem_flags);
1772 extern int usb_submit_urb(struct urb *urb, gfp_t mem_flags);
1822 gfp_t mem_flags, dma_addr_t *dma);
1953 gfp_t mem_flags
/linux-6.6.21/mm/
Ddmapool.c96 gfp_t mem_flags) in pool_check_block() argument
116 if (!want_init_on_alloc(mem_flags)) in pool_check_block()
165 gfp_t mem_flags) in pool_check_block() argument
334 static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags) in pool_alloc_page() argument
338 page = kmalloc(sizeof(*page), mem_flags); in pool_alloc_page()
343 &page->dma, mem_flags); in pool_alloc_page()
404 void *dma_pool_alloc(struct dma_pool *pool, gfp_t mem_flags, in dma_pool_alloc() argument
411 might_alloc(mem_flags); in dma_pool_alloc()
422 page = pool_alloc_page(pool, mem_flags & (~__GFP_ZERO)); in dma_pool_alloc()
433 pool_check_block(pool, block, mem_flags); in dma_pool_alloc()
[all …]
/linux-6.6.21/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()
557 gfp_t mem_flags) in xhci_alloc_stream_ctx() argument
563 return dma_alloc_coherent(dev, size, dma, mem_flags); in xhci_alloc_stream_ctx()
565 return dma_pool_zalloc(xhci->medium_streams_pool, mem_flags, dma); in xhci_alloc_stream_ctx()
567 return dma_pool_zalloc(xhci->small_streams_pool, mem_flags, dma); in xhci_alloc_stream_ctx()
[all …]
Dehci-sched.c908 gfp_t mem_flags in intr_submit() argument
1002 iso_stream_alloc(gfp_t mem_flags) in iso_stream_alloc() argument
1006 stream = kzalloc(sizeof(*stream), mem_flags); in iso_stream_alloc()
1166 iso_sched_alloc(unsigned packets, gfp_t mem_flags) in iso_sched_alloc() argument
1170 iso_sched = kzalloc(struct_size(iso_sched, packet, packets), mem_flags); in iso_sched_alloc()
1237 gfp_t mem_flags in itd_urb_transaction() argument
1247 sched = iso_sched_alloc(urb->number_of_packets, mem_flags); in itd_urb_transaction()
1276 itd = dma_pool_alloc(ehci->itd_pool, mem_flags, in itd_urb_transaction()
1915 gfp_t mem_flags) in itd_submit() argument
1945 status = itd_urb_transaction(stream, ehci, urb, mem_flags); in itd_submit()
[all …]
Dehci-hcd.c885 gfp_t mem_flags in ehci_urb_enqueue() argument
902 if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) in ehci_urb_enqueue()
904 return submit_async(ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue()
907 if (!qh_urb_transaction (ehci, urb, &qtd_list, mem_flags)) in ehci_urb_enqueue()
909 return intr_submit(ehci, urb, &qtd_list, mem_flags); in ehci_urb_enqueue()
913 return itd_submit (ehci, urb, mem_flags); in ehci_urb_enqueue()
915 return sitd_submit (ehci, urb, mem_flags); in ehci_urb_enqueue()
Dxhci.h1956 struct usb_tt *tt, gfp_t mem_flags);
2075 gfp_t mem_flags);
2109 bool allocate_completion, gfp_t mem_flags);
2111 bool allocate_completion, gfp_t mem_flags);
2140 struct usb_tt *tt, gfp_t mem_flags);
2153 struct usb_tt *tt, gfp_t mem_flags);
2170 int xhci_queue_ctrl_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb,
2172 int xhci_queue_bulk_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb,
2174 int xhci_queue_intr_tx(struct xhci_hcd *xhci, gfp_t mem_flags, struct urb *urb,
2176 int xhci_queue_isoc_tx_prepare(struct xhci_hcd *xhci, gfp_t mem_flags,
/linux-6.6.21/include/linux/usb/
Dhcd.h284 struct urb *urb, gfp_t mem_flags);
298 gfp_t mem_flags);
337 unsigned int num_streams, gfp_t mem_flags);
343 gfp_t mem_flags);
383 struct usb_tt *tt, gfp_t mem_flags);
429 extern int usb_hcd_submit_urb(struct urb *urb, gfp_t mem_flags);
434 gfp_t mem_flags);
498 gfp_t mem_flags, dma_addr_t *dma);
503 size_t size, gfp_t mem_flags, dma_addr_t *dma);
Dserial.h340 int usb_serial_generic_write_start(struct usb_serial_port *port, gfp_t mem_flags);
356 int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, gfp_t mem_flags);
/linux-6.6.21/drivers/video/fbdev/
Defifb.c49 static u64 mem_flags = EFI_MEMORY_WC | EFI_MEMORY_UC; variable
265 if (mem_flags & (EFI_MEMORY_UC | EFI_MEMORY_WC)) in efifb_destroy()
304 mem_flags &= ~EFI_MEMORY_WC; in efifb_setup()
485 mem_flags |= EFI_MEMORY_WT | EFI_MEMORY_WB; in efifb_probe()
486 mem_flags &= md.attribute; in efifb_probe()
489 if (mem_flags & EFI_MEMORY_WC) in efifb_probe()
492 else if (mem_flags & EFI_MEMORY_UC) in efifb_probe()
495 else if (mem_flags & EFI_MEMORY_WT) in efifb_probe()
498 else if (mem_flags & EFI_MEMORY_WB) in efifb_probe()
609 if (mem_flags & (EFI_MEMORY_UC | EFI_MEMORY_WC)) in efifb_probe()
/linux-6.6.21/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 …]
/linux-6.6.21/drivers/usb/misc/
Duss720.c125 gfp_t mem_flags) in submit_async_request() argument
137 rq = kzalloc(sizeof(struct uss720_async_request), mem_flags); in submit_async_request()
145 rq->urb = usb_alloc_urb(0, mem_flags); in submit_async_request()
150 rq->dr = kmalloc(sizeof(*rq->dr), mem_flags); in submit_async_request()
168 ret = usb_submit_urb(rq->urb, mem_flags); in submit_async_request()
193 …c int get_1284_register(struct parport *pp, unsigned char reg, unsigned char *val, gfp_t mem_flags) in get_1284_register() argument
205 rq = submit_async_request(priv, 3, 0xc0, ((unsigned int)reg) << 8, 0, mem_flags); in get_1284_register()
229 …ic int set_1284_register(struct parport *pp, unsigned char reg, unsigned char val, gfp_t mem_flags) in set_1284_register() argument
237 rq = submit_async_request(priv, 4, 0x40, (((unsigned int)reg) << 8) | val, 0, mem_flags); in set_1284_register()
/linux-6.6.21/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.c661 static int sierra_submit_rx_urbs(struct usb_serial_port *port, gfp_t mem_flags) in sierra_submit_rx_urbs() argument
674 err = usb_submit_urb(urb, mem_flags); in sierra_submit_rx_urbs()
684 err = usb_submit_urb(port->interrupt_in_urb, mem_flags); in sierra_submit_rx_urbs()
699 gfp_t mem_flags, in sierra_setup_urb() argument
705 urb = usb_alloc_urb(0, mem_flags); in sierra_setup_urb()
709 buf = kmalloc(len, mem_flags); in sierra_setup_urb()
/linux-6.6.21/drivers/usb/chipidea/
Dhost.c408 static int ci_hdrc_alloc_dma_aligned_buffer(struct urb *urb, gfp_t mem_flags) in ci_hdrc_alloc_dma_aligned_buffer() argument
418 temp = kmalloc(sizeof(*temp) + ALIGN(urb->transfer_buffer_length, 4), 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-6.6.21/drivers/gpu/drm/i915/gem/
Di915_gem_ttm_move.c106 unsigned int mem_flags; in i915_ttm_adjust_gem_after_move() local
117 mem_flags = I915_BO_FLAG_STRUCT_PAGE; in i915_ttm_adjust_gem_after_move()
121 mem_flags = i915_ttm_cpu_maps_iomem(bo->resource) ? I915_BO_FLAG_IOMEM : in i915_ttm_adjust_gem_after_move()
147 obj->mem_flags &= ~(I915_BO_FLAG_STRUCT_PAGE | I915_BO_FLAG_IOMEM); in i915_ttm_adjust_gem_after_move()
148 obj->mem_flags |= mem_flags; in i915_ttm_adjust_gem_after_move()
/linux-6.6.21/drivers/nfc/nfcmrvl/
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-6.6.21/arch/mips/sibyte/common/
Dcfe.c82 int mem_flags = 0; in prom_meminit() local
99 for (idx = 0; cfe_enummem(idx, mem_flags, &addr, &size, &type) != CFE_ERR_NOMORE; in prom_meminit()
/linux-6.6.21/drivers/usb/dwc2/
Dhcd.h538 gfp_t mem_flags);
566 gfp_t mem_flags);
778 void *context, gfp_t mem_flags,
Dhcd_queue.c1479 struct dwc2_hcd_urb *urb, gfp_t mem_flags) in dwc2_qh_init() argument
1516 mem_flags, in dwc2_qh_init()
1617 gfp_t mem_flags) in dwc2_hcd_qh_create() argument
1625 qh = kzalloc(sizeof(*qh), mem_flags); in dwc2_hcd_qh_create()
1629 dwc2_qh_init(hsotg, qh, urb, mem_flags); in dwc2_hcd_qh_create()
1632 dwc2_hcd_qh_init_ddma(hsotg, qh, mem_flags) < 0) { in dwc2_hcd_qh_create()
/linux-6.6.21/drivers/usb/c67x00/
Dc67x00-hcd.h107 int c67x00_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags);

1234