usb_ep_align_maybe(9)

usb_ep_align_maybe9

Returns len aligned to ep's maxpacketsize if gadget requires quirk_ep_out_aligned_size, otherwise returns len.

Usage

size_t usb_ep_align_maybe(struct usb_gadget * g, struct usb_ep * ep, size_t len);

Arguments

g

controller to check for quirk

ep

the endpoint whose maxpacketsize is used to align len

len

buffer size's length to align to ep's maxpacketsize

Overview

This helper is used in case it's required for any reason to check and maybe align buffer's size to an ep's maxpacketsize.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

Author

David Brownell <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.