Lines Matching refs:routes

68  * Find the valid routes for a board.
87 * device. Possibly try an alternate board name if device routes not found
103 /* Second, find the set of routes valid for this device. */
121 * @board_name: Board name (determines set of routes).
125 * Finds the route values for the device family and the set of valid routes
126 * for the board. If valid routes could not be found for the actual board
130 * (for example, with the route values but not the set of valid routes).
146 * ni_count_valid_routes() - Count the number of valid routes.
147 * @tables: Routing tables for which to count all valid routes.
155 const struct ni_route_set *R = &tables->valid_routes->routes[i];
190 * Return: the number of valid routes if n_pairs == 0; otherwise, the number of
191 * valid routes copied.
209 const struct ni_route_set *R = &tables->valid_routes->routes[i];
301 * ni_sort_device_routes() - Sort the list of valid device signal routes in
311 while (valid_routes->routes[valid_routes->n_route_sets].dest != 0)
315 sort(valid_routes->routes, valid_routes->n_route_sets,
320 struct ni_route_set *rs = &valid_routes->routes[n];
328 sort(valid_routes->routes[n].src, valid_routes->routes[n].n_src,
334 /* sort all valid device signal routes in prep for use */
372 * @valid_routes: Pointer to device routes within which to search.
381 return bsearch(&destination, valid_routes->routes,
393 bool ni_route_set_has_source(const struct ni_route_set *routes,
396 if (!bsearch(&source, routes->src, routes->n_src, sizeof(int),
442 * Generally speaking, most routes require the first six bits and a few require
467 const struct ni_route_set *routes =
473 if (!routes)
476 if (!ni_route_set_has_source(routes, src))
513 * routes.
517 * valid for any routes to the destination), -EINVAL is returned.