Home
last modified time | relevance | path

Searched refs:routes (Results 1 – 25 of 125) sorted by relevance

12345

/linux-6.12.1/net/netrom/
Dnr_route.c83 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()
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[0].obs_count = obs_count; in nr_add_node()
201 nr_node->routes[0].neighbour = nr_neigh; in nr_add_node()
220 if (nr_node->routes[i].neighbour == nr_neigh) { in nr_add_node()
221 nr_node->routes[i].quality = quality; in nr_add_node()
222 nr_node->routes[i].obs_count = obs_count; in nr_add_node()
231 nr_node->routes[2] = nr_node->routes[1]; in nr_add_node()
[all …]
/linux-6.12.1/net/phonet/
Dpn_dev.c31 struct phonet_routes routes; member
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->lock); in phonet_route_add()
364 if (routes->table[daddr] == NULL) { in phonet_route_add()
365 rcu_assign_pointer(routes->table[daddr], dev); in phonet_route_add()
[all …]
/linux-6.12.1/drivers/soc/mediatek/
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,
97 .routes = mmsys_mt8188_vdo1_routing_table,
117 .routes = mmsys_mt8192_routing_table,
[all …]
/linux-6.12.1/Documentation/userspace-api/media/v4l/
Dvidioc-subdev-g-routing.rst44 ``VIDIOC_SUBDEV_G_ROUTING`` ioctl and application may enable or disable routes
45 with the ``VIDIOC_SUBDEV_S_ROUTING`` ioctl, by adding or removing routes and
48 ``VIDIOC_SUBDEV_S_ROUTING`` returns the routes back to the user.
56 The ``len_routes`` field indicates the number of routes that can fit in the
57 ``routes`` array allocated by userspace. It is set by applications for both
58 ioctls to indicate how many routes the kernel can return, and is never modified
61 The ``num_routes`` field indicates the number of routes in the routing
63 routes that the application stored in the ``routes`` array. For both ioctls, it
64 is returned by the kernel and indicates how many routes are stored in the
70 both ioctls. This indicates thare are more routes in the routing table than fits
[all …]
Ddev-subdev.rst556 Interaction between routes, streams, formats and selections
567 other. Any number of routes from streams on sink pads towards streams on
579 depending on the hardware. In all cases, however, only routes that have the
583 routes or have a fixed routing configuration. If the routes can be disabled, not
584 declaring the routes (or declaring them without
586 disable the routes. ``VIDIOC_SUBDEV_S_ROUTING`` will still return such routes
587 back to the user in the routes array, with the ``V4L2_SUBDEV_STREAM_FL_ACTIVE``
592 pads is possible, and multiple routes (usually up to certain limited number) may
593 be active simultaneously. For such devices, no routes are created by the driver
594 and user-created routes are fully replaced when ``VIDIOC_SUBDEV_S_ROUTING`` is
[all …]
/linux-6.12.1/drivers/gpu/drm/renesas/rcar-du/
Drcar_du_drv.c42 .routes = {
66 .routes = {
89 .routes = {
118 .routes = {
149 .routes = {
178 .routes = {
208 .routes = {
236 .routes = {
260 .routes = {
291 .routes = {
[all …]
/linux-6.12.1/drivers/comedi/drivers/ni_routing/tools/
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()
/linux-6.12.1/drivers/comedi/drivers/
Dni_routes.c155 const struct ni_route_set *R = &tables->valid_routes->routes[i]; in ni_count_valid_routes()
209 const struct ni_route_set *R = &tables->valid_routes->routes[i]; in ni_get_valid_routes()
311 while (valid_routes->routes[valid_routes->n_route_sets].dest != 0) in ni_sort_device_routes()
315 sort(valid_routes->routes, valid_routes->n_route_sets, in ni_sort_device_routes()
320 struct ni_route_set *rs = &valid_routes->routes[n]; in ni_sort_device_routes()
328 sort(valid_routes->routes[n].src, valid_routes->routes[n].n_src, in ni_sort_device_routes()
381 return bsearch(&destination, valid_routes->routes, in ni_find_route_set()
393 bool ni_route_set_has_source(const struct ni_route_set *routes, in ni_route_set_has_source() argument
396 if (!bsearch(&source, routes->src, routes->n_src, sizeof(int), in ni_route_set_has_source()
467 const struct ni_route_set *routes = in ni_route_to_register() local
[all …]
Dni_routes.h53 struct ni_route_set *routes; member
100 bool ni_route_set_has_source(const struct ni_route_set *routes, const int src);
/linux-6.12.1/drivers/comedi/drivers/tests/
Dni_routes_test.c86 .routes = (struct ni_route_set[]){
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->dest == NI_PFI(0), in test_ni_assign_device_routes()
230 unittest(devroutes->routes->n_src == 1, in test_ni_assign_device_routes()
232 unittest(devroutes->routes->src[0] == NI_AI_StartTrigger, in test_ni_assign_device_routes()
234 unittest(devroutes->routes[10].dest == TRIGGER_LINE(0), in test_ni_assign_device_routes()
[all …]
/linux-6.12.1/sound/soc/rockchip/
Drk3399_gru_sound.c419 const struct snd_soc_dapm_route *routes; member
425 .routes = rockchip_sound_cdndp_routes,
429 .routes = rockchip_sound_da7219_routes,
433 .routes = rockchip_sound_dmic_routes,
437 .routes = rockchip_sound_max98357a_routes,
441 .routes = rockchip_sound_rt5514_routes,
504 struct snd_soc_dapm_route *routes; in rockchip_sound_of_parse_dais() local
516 routes = devm_kcalloc(dev, num_routes, sizeof(*routes), in rockchip_sound_of_parse_dais()
518 if (!routes) in rockchip_sound_of_parse_dais()
520 card->dapm_routes = routes; in rockchip_sound_of_parse_dais()
[all …]
/linux-6.12.1/sound/soc/codecs/
Daudio-iio-aux.c125 static struct snd_soc_dapm_route routes[2]; variable
129 static_assert(ARRAY_SIZE(routes) >= 2, "2 routes are needed");
157 routes[0].sink = pga_name; in audio_iio_aux_add_dapms()
158 routes[0].control = NULL; in audio_iio_aux_add_dapms()
159 routes[0].source = input_name; in audio_iio_aux_add_dapms()
160 routes[1].sink = output_name; in audio_iio_aux_add_dapms()
161 routes[1].control = NULL; in audio_iio_aux_add_dapms()
162 routes[1].source = pga_name; in audio_iio_aux_add_dapms()
164 return snd_soc_dapm_add_routes(dapm, routes, 2); in audio_iio_aux_add_dapms()
Dwm8776.c143 static const struct snd_soc_dapm_route routes[] = { variable
433 .dapm_routes = routes,
434 .num_dapm_routes = ARRAY_SIZE(routes),
/linux-6.12.1/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-crossbar.c183 struct v4l2_subdev_route *routes; in mxc_isi_crossbar_init_state() local
191 routes = kcalloc(xbar->num_sources, sizeof(*routes), GFP_KERNEL); in mxc_isi_crossbar_init_state()
192 if (!routes) in mxc_isi_crossbar_init_state()
196 struct v4l2_subdev_route *route = &routes[i]; in mxc_isi_crossbar_init_state()
204 routing.routes = routes; in mxc_isi_crossbar_init_state()
208 kfree(routes); in mxc_isi_crossbar_init_state()
/linux-6.12.1/drivers/media/pci/intel/ipu6/
Dipu6-isys-subdev.c285 struct v4l2_subdev_route *routes; in ipu6_isys_get_src_stream_by_src_pad() local
293 routes = state->routing.routes; in ipu6_isys_get_src_stream_by_src_pad()
295 if (routes[i].source_pad == pad) { in ipu6_isys_get_src_stream_by_src_pad()
296 source_stream = routes[i].source_stream; in ipu6_isys_get_src_stream_by_src_pad()
318 .routes = &route, in ipu6_isys_subdev_init_state()
/linux-6.12.1/drivers/media/v4l2-core/
Dv4l2-subdev.c971 memcpy((struct v4l2_subdev_route *)(uintptr_t)routing->routes, in subdev_do_ioctl()
972 krouting->routes, in subdev_do_ioctl()
974 sizeof(*krouting->routes)); in subdev_do_ioctl()
982 struct v4l2_subdev_route *routes = in subdev_do_ioctl() local
983 (struct v4l2_subdev_route *)(uintptr_t)routing->routes; in subdev_do_ioctl()
1002 const struct v4l2_subdev_route *route = &routes[i]; in subdev_do_ioctl()
1029 memcpy((struct v4l2_subdev_route *)(uintptr_t)routing->routes, in subdev_do_ioctl()
1030 state->routing.routes, in subdev_do_ioctl()
1032 sizeof(*state->routing.routes)); in subdev_do_ioctl()
1040 krouting.routes = routes; in subdev_do_ioctl()
[all …]
/linux-6.12.1/Documentation/devicetree/bindings/interrupt-controller/
Dti,omap4-wugen-mpu4 routes interrupts to the GIC, and also serves as a wakeup source. It
18 - Because this HW ultimately routes interrupts to the GIC, the
Dnvidia,tegra20-ictlr.txt3 All Tegra SoCs contain a legacy interrupt controller that routes
25 - Because this HW ultimately routes interrupts to the GIC, the
/linux-6.12.1/drivers/gpu/drm/renesas/rz-du/
Drzg2l_du_drv.c30 .routes = {
40 .routes = {
Drzg2l_du_kms.c186 if (rcdu->info->routes[i].possible_outputs && in rzg2l_du_encoders_init()
187 rcdu->info->routes[i].port == ep.port) { in rzg2l_du_encoders_init()
361 &rcdu->info->routes[renc->output]; in rzg2l_du_modeset_init()
Drzg2l_du_drv.h50 struct rzg2l_du_output_routing routes[RZG2L_DU_OUTPUT_MAX]; member
/linux-6.12.1/drivers/media/platform/renesas/rcar-vin/
Drcar-core.c858 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 = rcar_info_r8a77990_routes,
1273 .routes = rcar_info_r8a77995_routes,
/linux-6.12.1/include/net/netns/
Dmctp.h14 struct list_head routes; member
/linux-6.12.1/net/mctp/
Droute.c804 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup()
826 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup_null()
1091 list_for_each_entry(ert, &net->mctp.routes, list) { in mctp_route_add()
1098 list_add_rcu(&rt->list, &net->mctp.routes); in mctp_route_add()
1119 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove()
1150 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove_dev()
1432 list_for_each_entry_rcu(rt, &net->mctp.routes, list) { in mctp_dump_rtinfo()
1453 INIT_LIST_HEAD(&ns->routes); in mctp_routes_net_init()
1467 list_for_each_entry_rcu(rt, &net->mctp.routes, list) in mctp_routes_net_exit()
/linux-6.12.1/drivers/comedi/drivers/ni_routing/
DREADME4 known valid signal routes for various National Instruments devices.
29 4) The sets of routes that are valid are not consistent from device to device.
43 information _and_ the knowledge of valid routes per device, a few specific
86 This data represents the known set of valid signal routes that are
97 valid device routes comes from the proprietary National Instruments
120 device routes comes from the proprietary National Instruments Windows

12345