@@ -96,7 +96,7 @@ static int tb_path_find_src_hopid(struct tb_port *src,
9696 * that the @dst port is the expected one. If it is not, the path can be
9797 * cleaned up by calling tb_path_deactivate() before tb_path_free().
9898 *
99- * Return: Discovered path on success , %NULL in case of failure
99+ * Return: Pointer to &struct tb_path , %NULL in case of failure.
100100 */
101101struct tb_path * tb_path_discover (struct tb_port * src , int src_hopid ,
102102 struct tb_port * dst , int dst_hopid ,
@@ -233,7 +233,7 @@ struct tb_path *tb_path_discover(struct tb_port *src, int src_hopid,
233233 * links on the path, prioritizes using @link_nr but takes into account
234234 * that the lanes may be bonded.
235235 *
236- * Return: Returns a tb_path on success or NULL on failure.
236+ * Return: Pointer to &struct tb_path, %NULL in case of failure.
237237 */
238238struct tb_path * tb_path_alloc (struct tb * tb , struct tb_port * src , int src_hopid ,
239239 struct tb_port * dst , int dst_hopid , int link_nr ,
@@ -452,7 +452,9 @@ static int __tb_path_deactivate_hop(struct tb_port *port, int hop_index,
452452 * @hop_index: HopID of the path to be cleared
453453 *
454454 * This deactivates or clears a single path config space entry at
455- * @hop_index. Returns %0 in success and negative errno otherwise.
455+ * @hop_index.
456+ *
457+ * Return: %0 on success, negative errno otherwise.
456458 */
457459int tb_path_deactivate_hop (struct tb_port * port , int hop_index )
458460{
@@ -498,7 +500,7 @@ void tb_path_deactivate(struct tb_path *path)
498500 * Activate a path starting with the last hop and iterating backwards. The
499501 * caller must fill path->hops before calling tb_path_activate().
500502 *
501- * Return: Returns 0 on success or an error code on failure .
503+ * Return: % 0 on success, negative errno otherwise .
502504 */
503505int tb_path_activate (struct tb_path * path )
504506{
@@ -592,7 +594,7 @@ int tb_path_activate(struct tb_path *path)
592594 * tb_path_is_invalid() - check whether any ports on the path are invalid
593595 * @path: Path to check
594596 *
595- * Return: Returns true if the path is invalid, false otherwise.
597+ * Return: % true if the path is invalid, % false otherwise.
596598 */
597599bool tb_path_is_invalid (struct tb_path * path )
598600{
@@ -613,6 +615,8 @@ bool tb_path_is_invalid(struct tb_path *path)
613615 *
614616 * Goes over all hops on path and checks if @port is any of them.
615617 * Direction does not matter.
618+ *
619+ * Return: %true if port is on the path, %false otherwise.
616620 */
617621bool tb_path_port_on_path (const struct tb_path * path , const struct tb_port * port )
618622{
0 commit comments