mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
thunderbolt: Update cap.c function documentation
Make cap.c function documentation compliant with current kernel-doc standards. No functional changes. Signed-off-by: Alan Borzeszkowski <alan.borzeszkowski@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
1fac4d003f
commit
c0a078d7bc
1 changed files with 31 additions and 18 deletions
|
|
@ -64,10 +64,14 @@ static void tb_port_dummy_read(struct tb_port *port)
|
|||
* @port: Port to find the capability for
|
||||
* @offset: Previous capability offset (%0 for start)
|
||||
*
|
||||
* Returns dword offset of the next capability in port config space
|
||||
* capability list and returns it. Passing %0 returns the first entry in
|
||||
* the capability list. If no next capability is found returns %0. In case
|
||||
* of failure returns negative errno.
|
||||
* Finds dword offset of the next capability in port config space
|
||||
* capability list. When passed %0 in @offset parameter, first entry
|
||||
* will be returned, if it exists.
|
||||
*
|
||||
* Return:
|
||||
* * Double word offset of the first or next capability - On success.
|
||||
* * %0 - If no next capability is found.
|
||||
* * Negative errno - Another error occurred.
|
||||
*/
|
||||
int tb_port_next_cap(struct tb_port *port, unsigned int offset)
|
||||
{
|
||||
|
|
@ -112,9 +116,10 @@ static int __tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap)
|
|||
* @port: Port to find the capability for
|
||||
* @cap: Capability to look
|
||||
*
|
||||
* Returns offset to start of capability or %-ENOENT if no such
|
||||
* capability was found. Negative errno is returned if there was an
|
||||
* error.
|
||||
* Return:
|
||||
* * Offset to the start of capability - On success.
|
||||
* * %-ENOENT - If no such capability was found.
|
||||
* * Negative errno - Another error occurred.
|
||||
*/
|
||||
int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap)
|
||||
{
|
||||
|
|
@ -137,10 +142,14 @@ int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap)
|
|||
* @sw: Switch to find the capability for
|
||||
* @offset: Previous capability offset (%0 for start)
|
||||
*
|
||||
* Finds dword offset of the next capability in router config space
|
||||
* capability list and returns it. Passing %0 returns the first entry in
|
||||
* the capability list. If no next capability is found returns %0. In case
|
||||
* of failure returns negative errno.
|
||||
* Finds dword offset of the next capability in port config space
|
||||
* capability list. When passed %0 in @offset parameter, first entry
|
||||
* will be returned, if it exists.
|
||||
*
|
||||
* Return:
|
||||
* * Double word offset of the first or next capability - On success.
|
||||
* * %0 - If no next capability is found.
|
||||
* * Negative errno - Another error occurred.
|
||||
*/
|
||||
int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset)
|
||||
{
|
||||
|
|
@ -181,9 +190,10 @@ int tb_switch_next_cap(struct tb_switch *sw, unsigned int offset)
|
|||
* @sw: Switch to find the capability for
|
||||
* @cap: Capability to look
|
||||
*
|
||||
* Returns offset to start of capability or %-ENOENT if no such
|
||||
* capability was found. Negative errno is returned if there was an
|
||||
* error.
|
||||
* Return:
|
||||
* * Offset to the start of capability - On success.
|
||||
* * %-ENOENT - If no such capability was found.
|
||||
* * Negative errno - Another error occurred.
|
||||
*/
|
||||
int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap)
|
||||
{
|
||||
|
|
@ -213,10 +223,13 @@ int tb_switch_find_cap(struct tb_switch *sw, enum tb_switch_cap cap)
|
|||
* @sw: Switch to find the capability for
|
||||
* @vsec: Vendor specific capability to look
|
||||
*
|
||||
* Functions enumerates vendor specific capabilities (VSEC) of a switch
|
||||
* and returns offset when capability matching @vsec is found. If no
|
||||
* such capability is found returns %-ENOENT. In case of error returns
|
||||
* negative errno.
|
||||
* This function enumerates vendor specific capabilities (VSEC) of a
|
||||
* switch and returns offset when capability matching @vsec is found.
|
||||
*
|
||||
* Return:
|
||||
* * Offset of capability - On success.
|
||||
* * %-ENOENT - If capability was not found.
|
||||
* * Negative errno - Another error occurred.
|
||||
*/
|
||||
int tb_switch_find_vse_cap(struct tb_switch *sw, enum tb_switch_vse_cap vsec)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue