linux/drivers/usb
Xu Yang 488e6eaab8 usb: core: add dma-noncoherent buffer alloc and free API
This will add usb_alloc_noncoherent() and usb_free_noncoherent()
functions to support alloc and free buffer in a dma-noncoherent way.

To explicit manage the memory ownership for the kernel and device,
this will also add usb_dma_noncoherent_sync_for_cpu/device() functions
and call it at proper time.  The management requires the user save
sg_table returned by usb_alloc_noncoherent() to urb->sgt.

Signed-off-by: Xu Yang <xu.yang_2@nxp.com>
Reviewed-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20250704095751.73765-2-xu.yang_2@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-07-09 12:15:56 +02:00
..
atm treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
c67x00 usb: Switch back to struct platform_driver::remove() 2024-10-04 15:13:03 +02:00
cdns3 usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-06-24 15:42:39 +01:00
chipidea usb: chipidea: s32g: Add usb support for s32g3 2025-07-07 11:06:13 +02:00
class usb: usbtmc: Fix timeout value in get_stb 2025-05-21 15:01:09 +02:00
common usb: common: usb-conn-gpio: use a unique name for usb connector device 2025-04-11 16:08:34 +02:00
core usb: core: add dma-noncoherent buffer alloc and free API 2025-07-09 12:15:56 +02:00
dwc2 usb: dwc2: disable platform lowlevel hw resources during shutdown 2025-06-30 15:42:36 +02:00
dwc3 usb: dwc3: gadget: Simplify TRB reclaim logic by removing redundant 'chain' argument 2025-07-07 11:05:10 +02:00
early usb: early: xhci-dbc: Fix early_ioremap leak 2025-07-07 11:04:46 +02:00
fotg210 usb: fotg210-hcd: Switch to use hrtimer_setup() 2025-02-18 11:19:02 +01:00
gadget usb: gadget: f_uac2: replace scnprintf() with sysfs_emit() 2025-07-07 11:05:30 +02:00
host Merge merge point of tag 'usb-6.16-rc5' into usb-next 2025-07-05 07:52:33 +02:00
image scsi: Rename .slave_alloc() and .slave_destroy() 2024-12-04 15:34:28 -05:00
isp1760 treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
misc usb: misc: onboard_usb_dev: Add Bison Electronics Inc. Integrated Camera 2025-06-30 15:42:16 +02:00
mon drivers/usb/mon: refactor min with min_t 2024-11-13 15:09:51 +01:00
mtu3 Driver core and debugfs updates 2025-01-28 12:25:12 -08:00
musb treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
phy usb: phy: tegra: Remove unused functions 2025-06-19 12:26:32 +02:00
renesas_usbhs usb: renesas_usbhs: use proper DMAENGINE API for termination 2025-06-19 12:26:30 +02:00
roles usb: roles: set switch registered flag early on 2025-02-14 09:26:25 +01:00
serial treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
storage usb: storage: reltek_cr: convert to use secs_to_jiffies 2025-06-19 12:27:36 +02:00
typec Merge merge point of tag 'usb-6.16-rc5' into usb-next 2025-07-05 07:52:33 +02:00
usbip treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
Kconfig
Makefile USB: xen-hcd: Traverse host/ when CONFIG_USB_XEN_HCD is selected 2024-06-04 15:33:38 +02:00
usb-skeleton.c