Home
last modified time | relevance | path

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

1234567

/linux-6.15/net/netrom/
H A 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()
231 nr_node->routes[2] = nr_node->routes[1]; in nr_add_node()
232 nr_node->routes[1] = nr_node->routes[0]; in nr_add_node()
248 if (nr_node->routes[2].neighbour->count == 0 && !nr_node->routes[2].neighbour->locked) in nr_add_node()
352 nr_node->routes[0] = nr_node->routes[1]; in nr_del_node()
355 nr_node->routes[1] = nr_node->routes[2]; in nr_del_node()
478 s->routes[0] = s->routes[1]; in nr_dec_obs()
481 s->routes[1] = s->routes[2]; in nr_dec_obs()
526 t->routes[0] = t->routes[1]; in nr_rt_device_down()
[all …]
/linux-6.15/net/phonet/
H A Dpn_dev.c31 struct phonet_routes routes; member
277 spin_lock(&pnn->routes.lock); in phonet_route_autodel()
284 spin_unlock(&pnn->routes.lock); in phonet_route_autodel()
377 struct phonet_routes *routes = &pnn->routes; in phonet_route_add() local
382 spin_lock(&routes->lock); in phonet_route_add()
388 spin_unlock(&routes->lock); in phonet_route_add()
396 struct phonet_routes *routes = &pnn->routes; in phonet_route_del() local
400 spin_lock(&routes->lock); in phonet_route_del()
405 spin_unlock(&routes->lock); in phonet_route_del()
418 struct phonet_routes *routes = &pnn->routes; in phonet_route_get_rcu() local
[all …]
/linux-6.15/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,
188 const struct mtk_mmsys_routes *routes = mmsys->data->routes; in mtk_mmsys_ddp_connect() local
192 if (cur == routes[i].from_comp && next == routes[i].to_comp) in mtk_mmsys_ddp_connect()
193 mtk_mmsys_update_bits(mmsys, routes[i].addr, routes[i].mask, in mtk_mmsys_ddp_connect()
194 routes[i].val, NULL); in mtk_mmsys_ddp_connect()
207 const struct mtk_mmsys_routes *routes = mmsys->data->routes; in mtk_mmsys_ddp_disconnect() local
211 if (cur == routes[i].from_comp && next == routes[i].to_comp) in mtk_mmsys_ddp_disconnect()
[all …]
/linux-6.15/Documentation/userspace-api/media/v4l/
H A Dvidioc-subdev-g-routing.rst45 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.
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
71 the ``routes`` array. In this case, the ``routes`` array is filled by the kernel
74 wants to retrieve the missing routes, it can issue a new
75 ``VIDIOC_SUBDEV_G_ROUTING`` call with a large enough ``routes`` array.
97 - ``routes[]``
101 - Number of entries of the routes array
[all …]
/linux-6.15/drivers/gpu/drm/renesas/rcar-du/
H A Drcar_du_drv.c43 .routes = {
67 .routes = {
90 .routes = {
119 .routes = {
150 .routes = {
179 .routes = {
209 .routes = {
237 .routes = {
261 .routes = {
292 .routes = {
[all …]
/linux-6.15/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()
/linux-6.15/drivers/comedi/drivers/
H A 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()
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
473 if (!routes) in ni_route_to_register()
[all …]
H A 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.15/drivers/comedi/drivers/tests/
H A 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()
236 unittest(devroutes->routes[10].n_src == 10, in test_ni_assign_device_routes()
289 &DR.routes[no_val_index], in test_ni_find_route_set()
[all …]
/linux-6.15/sound/soc/rockchip/
H A 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,
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()
572 memcpy(routes + card->num_dapm_routes, in rockchip_sound_of_parse_dais()
[all …]
/linux-6.15/sound/soc/codecs/
H A 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()
H A Dwm8776.c143 static const struct snd_soc_dapm_route routes[] = { variable
433 .dapm_routes = routes,
434 .num_dapm_routes = ARRAY_SIZE(routes),
/linux-6.15/drivers/media/platform/nxp/imx8-isi/
H A 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.15/drivers/media/pci/intel/ipu6/
H A 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.15/drivers/media/v4l2-core/
H A Dv4l2-subdev.c994 krouting->routes, in subdev_do_ioctl()
996 sizeof(*krouting->routes)); in subdev_do_ioctl()
1052 state->routing.routes, in subdev_do_ioctl()
1062 krouting.routes = routes; in subdev_do_ioctl()
1070 state->routing.routes, in subdev_do_ioctl()
1627 kfree(state->routing.routes); in __v4l2_subdev_state_free()
1936 new_routing.routes = kmemdup(src->routes, bytes, GFP_KERNEL); in v4l2_subdev_set_routing()
1937 if (!new_routing.routes) in v4l2_subdev_set_routing()
1946 kfree(new_routing.routes); in v4l2_subdev_set_routing()
1950 kfree(dst->routes); in v4l2_subdev_set_routing()
[all …]
/linux-6.15/Documentation/devicetree/bindings/interrupt-controller/
H A Dti,omap4-wugen-mpu.txt4 routes interrupts to the GIC, and also serves as a wakeup source. It
18 - Because this HW ultimately routes interrupts to the GIC, the
H A 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.15/drivers/gpu/drm/renesas/rz-du/
H A Drzg2l_du_drv.c31 .routes = {
41 .routes = {
H A 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()
/linux-6.15/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
H A Dfsl,qe-tsa.yaml121 '^fsl,[rt]x-ts-routes$':
124 A list of tuple that indicates the Tx or Rx time-slots routes.
200 fsl,tx-ts-routes = <2 0>, /* TS 0..1 */
205 fsl,rx-ts-routes = <2 0>, /* TS 0..1 */
H A Dfsl,cpm1-tsa.yaml116 '^fsl,[rt]x-ts-routes$':
119 A list of tuple that indicates the Tx or Rx time-slots routes.
195 fsl,tx-ts-routes = <2 0>, /* TS 0..1 */
200 fsl,rx-ts-routes = <2 0>, /* TS 0..1 */
/linux-6.15/drivers/media/platform/renesas/rcar-vin/
H A 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.15/drivers/media/platform/raspberrypi/rp1-cfe/
H A Dcsi2.c383 struct v4l2_subdev_route routes[] = { { in csi2_init_state() local
392 .num_routes = ARRAY_SIZE(routes), in csi2_init_state()
393 .routes = routes, in csi2_init_state()
492 const struct v4l2_subdev_route *route = &routing->routes[i]; in csi2_set_routing()
/linux-6.15/include/net/netns/
H A Dmctp.h14 struct list_head routes; member
/linux-6.15/net/mctp/
H A Droute.c828 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup()
850 list_for_each_entry_rcu(tmp, &net->mctp.routes, list) { in mctp_route_lookup_null()
1115 list_for_each_entry(ert, &net->mctp.routes, list) { in mctp_route_add()
1122 list_add_rcu(&rt->list, &net->mctp.routes); in mctp_route_add()
1143 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove()
1174 list_for_each_entry_safe(rt, tmp, &net->mctp.routes, list) { in mctp_route_remove_dev()
1456 list_for_each_entry_rcu(rt, &net->mctp.routes, list) { in mctp_dump_rtinfo()
1477 INIT_LIST_HEAD(&ns->routes); in mctp_routes_net_init()
1491 list_for_each_entry_rcu(rt, &net->mctp.routes, list) in mctp_routes_net_exit()

1234567