Home
last modified time | relevance | path

Searched refs:routes (Results 1 - 25 of 120) sorted by relevance

12345

/kernel/linux/linux-5.10/net/netrom/
H A Dnr_route.c80 /* re-sort the routes in quality order. */
83 if (nr_node->routes[y].quality > nr_node->routes[x].quality) { in re_sort_routes()
89 swap(nr_node->routes[x], nr_node->routes[y]); in re_sort_routes()
106 if ((odev=nr_dev_get(nr)) != NULL) { /* Can't add routes to ourself */ in nr_add_node()
119 * routes now (and not wait for a node broadcast). in nr_add_node()
128 if (nr_nodet->routes[i].neighbour == nr_neigh) in nr_add_node()
199 nr_node->routes[0].quality = quality; in nr_add_node()
200 nr_node->routes[ in nr_add_node()
[all...]
/kernel/linux/linux-6.6/net/netrom/
H A Dnr_route.c80 /* re-sort the routes in quality order. */
83 if (nr_node->routes[y].quality > nr_node->routes[x].quality) { in re_sort_routes()
89 swap(nr_node->routes[x], nr_node->routes[y]); in re_sort_routes()
106 if ((odev=nr_dev_get(nr)) != NULL) { /* Can't add routes to ourself */ in nr_add_node()
119 * routes now (and not wait for a node broadcast). in nr_add_node()
128 if (nr_nodet->routes[i].neighbour == nr_neigh) in nr_add_node()
199 nr_node->routes[0].quality = quality; in nr_add_node()
200 nr_node->routes[ in nr_add_node()
[all...]
/kernel/linux/linux-6.6/drivers/soc/mediatek/
H A Dmtk-mmsys.c30 .routes = mmsys_default_routing_table,
36 .routes = mmsys_default_routing_table,
46 .routes = mt8173_mmsys_routing_table,
58 .routes = mt8167_mmsys_routing_table,
64 .routes = mt8173_mmsys_routing_table,
72 .routes = mmsys_mt8183_routing_table,
80 .routes = mmsys_mt8186_routing_table,
88 .routes = mmsys_mt8188_routing_table,
94 .routes = mmsys_mt8192_routing_table,
102 .routes
165 const struct mtk_mmsys_routes *routes = mmsys->data->routes; mtk_mmsys_ddp_connect() local
180 const struct mtk_mmsys_routes *routes = mmsys->data->routes; mtk_mmsys_ddp_disconnect() local
[all...]
/kernel/linux/linux-5.10/net/phonet/
H A Dpn_dev.c31 struct phonet_routes routes; member
259 /* Remove left-over Phonet routes */ in phonet_route_autodel()
261 mutex_lock(&pnn->routes.lock); in phonet_route_autodel()
263 if (rcu_access_pointer(pnn->routes.table[i]) == dev) { in phonet_route_autodel()
264 RCU_INIT_POINTER(pnn->routes.table[i], NULL); in phonet_route_autodel()
267 mutex_unlock(&pnn->routes.lock); in phonet_route_autodel()
314 mutex_init(&pnn->routes.lock); in phonet_init_net()
360 struct phonet_routes *routes = &pnn->routes; in phonet_route_add() local
364 mutex_lock(&routes in phonet_route_add()
377 struct phonet_routes *routes = &pnn->routes; phonet_route_del() local
397 struct phonet_routes *routes = &pnn->routes; phonet_route_get_rcu() local
408 struct phonet_routes *routes = &pnn->routes; phonet_route_output() local
[all...]
/kernel/linux/linux-6.6/net/phonet/
H A Dpn_dev.c31 struct phonet_routes routes; member
258 /* Remove left-over Phonet routes */ in phonet_route_autodel()
260 mutex_lock(&pnn->routes.lock); in phonet_route_autodel()
262 if (rcu_access_pointer(pnn->routes.table[i]) == dev) { in phonet_route_autodel()
263 RCU_INIT_POINTER(pnn->routes.table[i], NULL); in phonet_route_autodel()
266 mutex_unlock(&pnn->routes.lock); in phonet_route_autodel()
313 mutex_init(&pnn->routes.lock); in phonet_init_net()
359 struct phonet_routes *routes = &pnn->routes; in phonet_route_add() local
363 mutex_lock(&routes in phonet_route_add()
376 struct phonet_routes *routes = &pnn->routes; phonet_route_del() local
396 struct phonet_routes *routes = &pnn->routes; phonet_route_get_rcu() local
407 struct phonet_routes *routes = &pnn->routes; phonet_route_output() local
[all...]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ni_routing/tools/
H A Dconvert_c_to_py.c109 while (dR->routes[i].dest != 0) { in device_write()
110 if (!is_valid_ni_sig(dR->routes[i].dest)) { in device_write()
113 dR->routes[i].dest, dR->device, i); in device_write()
117 fprintf(fp, " %u : [", dR->routes[i].dest); in device_write()
121 while (dR->routes[i].src[j] != 0) { in device_write()
122 if (!is_valid_ni_sig(dR->routes[i].src[j])) { in device_write()
125 dR->routes[i].src[j], dR->device, i, j); in device_write()
129 fprintf(fp, "%u,", dR->routes[i].src[j]); in device_write()
150 /* write valid device routes */ in main()
/kernel/linux/linux-6.6/drivers/comedi/drivers/ni_routing/tools/
H A Dconvert_c_to_py.c108 while (dR->routes[i].dest != 0) { in device_write()
109 if (!is_valid_ni_sig(dR->routes[i].dest)) { in device_write()
112 dR->routes[i].dest, dR->device, i); in device_write()
116 fprintf(fp, " %u : [", dR->routes[i].dest); in device_write()
120 while (dR->routes[i].src[j] != 0) { in device_write()
121 if (!is_valid_ni_sig(dR->routes[i].src[j])) { in device_write()
124 dR->routes[i].src[j], dR->device, i, j); in device_write()
128 fprintf(fp, "%u,", dR->routes[i].src[j]); in device_write()
149 /* write valid device routes */ in main()
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/
H A Dni_routes.c71 * Find the valid routes for a board.
91 * device. Possibly try an alternate board name if device routes not found
107 /* Second, find the set of routes valid for this device. */ in ni_find_device_routes()
125 * @board_name: Board name (determines set of routes).
129 * Finds the route values for the device family and the set of valid routes
130 * for the board. If valid routes could not be found for the actual board
134 * (for example, with the route values but not the set of valid routes).
150 * ni_count_valid_routes() - Count the number of valid routes.
151 * @tables: Routing tables for which to count all valid routes.
159 const struct ni_route_set *R = &tables->valid_routes->routes[ in ni_count_valid_routes()
397 ni_route_set_has_source(const struct ni_route_set *routes, const int source) ni_route_set_has_source() argument
471 const struct ni_route_set *routes = ni_route_to_register() local
[all...]
H A Dni_routes.h49 * @routes: List of route sets that are valid for this device.
54 struct ni_route_set *routes; member
58 * struct ni_route_tables - Register values and valid routes for a device.
60 * @route_values: Pointer to register values for all routes for the family to
63 * Link to the valid src->dest routes and the register values used to assign
64 * such routes for that particular device.
86 * @valid_routes: Pointer to device routes within which to search.
101 bool ni_route_set_has_source(const struct ni_route_set *routes, const int src);
111 * Generally speaking, most routes require the first six bits and a few require
193 * ni_count_valid_routes() - Count the number of valid routes
[all...]
/kernel/linux/linux-6.6/drivers/comedi/drivers/
H A Dni_routes.c68 * 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. */ in ni_find_device_routes()
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[ in ni_count_valid_routes()
393 ni_route_set_has_source(const struct ni_route_set *routes, const int source) ni_route_set_has_source() argument
467 const struct ni_route_set *routes = ni_route_to_register() local
[all...]
H A Dni_routes.h48 * @routes: List of route sets that are valid for this device.
53 struct ni_route_set *routes; member
57 * struct ni_route_tables - Register values and valid routes for a device.
59 * @route_values: Pointer to register values for all routes for the family to
62 * Link to the valid src->dest routes and the register values used to assign
63 * such routes for that particular device.
85 * @valid_routes: Pointer to device routes within which to search.
100 bool ni_route_set_has_source(const struct ni_route_set *routes, const int src);
110 * Generally speaking, most routes require the first six bits and a few require
192 * ni_count_valid_routes() - Count the number of valid routes
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_drv.c42 .routes = {
66 .routes = {
89 .routes = {
118 .routes = {
149 .routes = {
178 .routes = {
208 .routes = {
236 .routes = {
260 .routes = {
291 .routes
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/rcar-du/
H A Drcar_du_drv.c42 .routes = {
64 .routes = {
85 .routes = {
112 .routes = {
141 .routes = {
168 .routes = {
196 .routes = {
223 .routes = {
246 .routes = {
275 .routes
[all...]
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/tests/
H A Dni_routes_test.c5 * Unit tests for NI routes (ni_routes.c module).
87 .routes = (struct ni_route_set[]){
97 /* indirect routes done through muxes */
132 /* [7] is intentionaly left absent to test invalid routes */
189 if (last >= devroutes->routes[i].dest) in route_set_dests_in_order()
191 last = devroutes->routes[i].dest; in route_set_dests_in_order()
205 for (j = 0; j < devroutes->routes[i].n_src; ++j) { in route_set_sources_in_order()
206 if (last >= devroutes->routes[i].src[j]) in route_set_sources_in_order()
208 last = devroutes->routes[i].src[j]; in route_set_sources_in_order()
229 unittest(devroutes->routes in test_ni_assign_device_routes()
[all...]
/kernel/linux/linux-6.6/drivers/comedi/drivers/tests/
H A Dni_routes_test.c4 * Unit tests for NI routes (ni_routes.c module).
86 .routes = (struct ni_route_set[]){
96 /* indirect routes done through muxes */
131 /* [7] is intentionaly left absent to test invalid routes */
188 if (last >= devroutes->routes[i].dest) in route_set_dests_in_order()
190 last = devroutes->routes[i].dest; in route_set_dests_in_order()
204 for (j = 0; j < devroutes->routes[i].n_src; ++j) { in route_set_sources_in_order()
205 if (last >= devroutes->routes[i].src[j]) in route_set_sources_in_order()
207 last = devroutes->routes[i].src[j]; in route_set_sources_in_order()
228 unittest(devroutes->routes in test_ni_assign_device_routes()
[all...]
/kernel/linux/linux-5.10/sound/soc/rockchip/
H A Drk3399_gru_sound.c397 const struct snd_soc_dapm_route *routes; member
403 .routes = rockchip_sound_cdndp_routes,
407 .routes = rockchip_sound_da7219_routes,
411 .routes = rockchip_sound_dmic_routes,
415 .routes = rockchip_sound_max98357a_routes,
419 .routes = rockchip_sound_rt5514_routes,
482 struct snd_soc_dapm_route *routes; in rockchip_sound_of_parse_dais() local
494 routes = devm_kcalloc(dev, num_routes, sizeof(*routes), in rockchip_sound_of_parse_dais()
496 if (!routes) in rockchip_sound_of_parse_dais()
[all...]
/kernel/linux/linux-6.6/sound/soc/rockchip/
H A Drk3399_gru_sound.c421 const struct snd_soc_dapm_route *routes; member
427 .routes = rockchip_sound_cdndp_routes,
431 .routes = rockchip_sound_da7219_routes,
435 .routes = rockchip_sound_dmic_routes,
439 .routes = rockchip_sound_max98357a_routes,
443 .routes = rockchip_sound_rt5514_routes,
506 struct snd_soc_dapm_route *routes; in rockchip_sound_of_parse_dais() local
518 routes = devm_kcalloc(dev, num_routes, sizeof(*routes), in rockchip_sound_of_parse_dais()
520 if (!routes) in rockchip_sound_of_parse_dais()
[all...]
/kernel/linux/linux-6.6/sound/soc/codecs/
H A Daudio-iio-aux.c124 static struct snd_soc_dapm_route routes[2]; variable
126 /* Be sure sizes are correct (need 3 widgets and 2 routes) */
128 static_assert(ARRAY_SIZE(routes) >= 2, "2 routes are needed");
162 routes[0].sink = pga_name; in audio_iio_aux_add_dapms()
163 routes[0].control = NULL; in audio_iio_aux_add_dapms()
164 routes[0].source = input_name; in audio_iio_aux_add_dapms()
165 routes[1].sink = output_name; in audio_iio_aux_add_dapms()
166 routes[1].control = NULL; in audio_iio_aux_add_dapms()
167 routes[ in audio_iio_aux_add_dapms()
[all...]
/kernel/linux/linux-6.6/sound/soc/intel/avs/boards/
H A Di2s_test.c55 struct snd_soc_dapm_route **routes, int *num_routes) in avs_create_dapm_routes()
74 *routes = dr; in avs_create_dapm_routes()
111 struct snd_soc_dapm_route *routes; in avs_i2s_test_probe() local
138 ret = avs_create_dapm_routes(dev, ssp_port, &routes, &num_routes); in avs_i2s_test_probe()
140 dev_err(dev, "Failed to create dapm routes: %d\n", ret); in avs_i2s_test_probe()
154 card->dapm_routes = routes; in avs_i2s_test_probe()
54 avs_create_dapm_routes(struct device *dev, int ssp_port, struct snd_soc_dapm_route **routes, int *num_routes) avs_create_dapm_routes() argument
/kernel/linux/linux-6.6/drivers/media/platform/nxp/imx8-isi/
H A Dimx8-isi-crossbar.c183 struct v4l2_subdev_route *routes; in mxc_isi_crossbar_init_cfg() local
191 routes = kcalloc(xbar->num_sources, sizeof(*routes), GFP_KERNEL); in mxc_isi_crossbar_init_cfg()
192 if (!routes) in mxc_isi_crossbar_init_cfg()
196 struct v4l2_subdev_route *route = &routes[i]; in mxc_isi_crossbar_init_cfg()
204 routing.routes = routes; in mxc_isi_crossbar_init_cfg()
208 kfree(routes); in mxc_isi_crossbar_init_cfg()
/kernel/linux/linux-6.6/drivers/media/v4l2-core/
H A Dv4l2-subdev.c863 memcpy((struct v4l2_subdev_route *)(uintptr_t)routing->routes, in subdev_do_ioctl()
864 krouting->routes, in subdev_do_ioctl()
865 krouting->num_routes * sizeof(*krouting->routes)); in subdev_do_ioctl()
873 struct v4l2_subdev_route *routes = in subdev_do_ioctl() local
874 (struct v4l2_subdev_route *)(uintptr_t)routing->routes; in subdev_do_ioctl()
890 const struct v4l2_subdev_route *route = &routes[i]; in subdev_do_ioctl()
913 krouting.routes = routes; in subdev_do_ioctl()
1363 struct v4l2_subdev_route *route = &routing->routes[i]; in v4l2_subdev_has_pad_interdep()
1438 kfree(state->routing.routes); in __v4l2_subdev_state_free()
[all...]
/kernel/linux/linux-5.10/sound/soc/
H A Dsoc-topology.c438 /* remove a widget and it's kcontrols - routes must be removed first */
1199 struct snd_soc_dapm_route **routes; in soc_tplg_dapm_graph_elems_load() local
1209 dev_err(tplg->dev, "ASoC: invalid count %d for DAPM routes\n", in soc_tplg_dapm_graph_elems_load()
1214 dev_dbg(tplg->dev, "ASoC: adding %d DAPM routes for index %d\n", count, in soc_tplg_dapm_graph_elems_load()
1217 /* allocate memory for pointer to array of dapm routes */ in soc_tplg_dapm_graph_elems_load()
1218 routes = kcalloc(count, sizeof(struct snd_soc_dapm_route *), in soc_tplg_dapm_graph_elems_load()
1220 if (!routes) in soc_tplg_dapm_graph_elems_load()
1229 routes[i] = kzalloc(sizeof(*routes[i]), GFP_KERNEL); in soc_tplg_dapm_graph_elems_load()
1230 if (!routes[ in soc_tplg_dapm_graph_elems_load()
[all...]
/kernel/linux/linux-6.6/include/net/netns/
H A Dmctp.h14 struct list_head routes; member
/kernel/linux/linux-6.6/drivers/media/platform/renesas/rcar-vin/
H A Drcar-core.c794 /* Find the master VIN that controls the routes. */ in rvin_csi2_link_notify()
858 for (route = vin->info->routes; route->chsel; route++) { in rvin_csi2_link_notify()
920 for (route = vin->info->routes; route->chsel; route++) { in rvin_csi2_setup_links()
1163 .routes = rcar_info_r8a774e1_routes,
1180 .routes = rcar_info_r8a7795_routes,
1198 .routes = rcar_info_r8a7796_routes,
1216 .routes = rcar_info_r8a77965_routes,
1230 .routes = rcar_info_r8a77970_routes,
1245 .routes = rcar_info_r8a77980_routes,
1259 .routes
[all...]
/kernel/linux/linux-6.6/net/mctp/
H A Droute.c7 * number of routes should stay fairly small, so the lookup cost is small.
742 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup()
764 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup_null()
1026 /* Prevent duplicate identical routes. */ in mctp_route_add()
1027 list_for_each_entry(ert, &net->mctp.routes, list) { in mctp_route_add()
1034 list_add_rcu(&rt->list, &net->mctp.routes); in mctp_route_add()
1055 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove()
1086 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove_dev()
1229 NL_SET_ERR_MSG(extack, "no routes to loopback"); in mctp_route_nlparse()
1290 /* we only have unicast routes */ in mctp_delroute()
[all...]

Completed in 19 milliseconds

12345