| /kernel/linux/linux-6.6/net/netrom/ |
| D | nr_route.c | 80 /* 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[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() [all …]
|
| /kernel/linux/linux-5.10/net/netrom/ |
| D | nr_route.c | 80 /* 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[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() [all …]
|
| /kernel/linux/linux-6.6/net/phonet/ |
| D | pn_dev.c | 31 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->lock); in phonet_route_add() 364 if (routes->table[daddr] == NULL) { in phonet_route_add() [all …]
|
| /kernel/linux/linux-5.10/net/phonet/ |
| D | pn_dev.c | 31 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->lock); in phonet_route_add() 365 if (routes->table[daddr] == NULL) { in phonet_route_add() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
| D | ni_routes.c | 71 * 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[i]; in ni_count_valid_routes() [all …]
|
| D | ni_routes.h | 49 * @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/ |
| D | ni_routes.c | 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. */ 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[i]; in ni_count_valid_routes() [all …]
|
| D | ni_routes.h | 48 * @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/soc/mediatek/ |
| D | mtk-mmsys.c | 30 .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 = mmsys_mt8195_routing_table, [all …]
|
| /kernel/linux/linux-6.6/Documentation/userspace-api/media/v4l/ |
| D | vidioc-subdev-g-routing.rst | 44 ``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 55 When inspecting routes through ``VIDIOC_SUBDEV_G_ROUTING`` and the application 56 provided ``num_routes`` is not big enough to contain all the available routes 62 ``num_routes`` field to reflect the actual number of routes returned. 78 - ``routes[]`` 82 - Number of entries of the routes array 140 all the available routes the subdevice exposes. 148 larger than the number of routes the driver can handle.
|
| /kernel/linux/linux-6.6/drivers/comedi/drivers/ni_routing/tools/ |
| D | convert_c_to_py.c | 108 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() 154 /* write valid device routes */ in main()
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ni_routing/tools/ |
| D | convert_c_to_py.c | 109 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/tests/ |
| D | ni_routes_test.c | 4 * 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->dest == NI_PFI(0), in test_ni_assign_device_routes() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/drivers/tests/ |
| D | ni_routes_test.c | 5 * 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->dest == NI_PFI(0), in test_ni_assign_device_routes() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/renesas/rcar-du/ |
| D | rcar_du_drv.c | 42 .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/ |
| D | rcar_du_drv.c | 42 .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/sound/soc/rockchip/ |
| D | rk3399_gru_sound.c | 397 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() 498 card->dapm_routes = routes; in rockchip_sound_of_parse_dais() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/rockchip/ |
| D | rk3399_gru_sound.c | 421 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() 522 card->dapm_routes = routes; in rockchip_sound_of_parse_dais() [all …]
|
| /kernel/linux/linux-6.6/sound/soc/codecs/ |
| D | audio-iio-aux.c | 124 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[1].source = pga_name; in audio_iio_aux_add_dapms() 168 ret = snd_soc_dapm_add_routes(dapm, routes, 2); in audio_iio_aux_add_dapms()
|
| /kernel/linux/linux-6.6/sound/soc/sunxi/ |
| D | sun8i-codec-analog.c | 286 /* Microphone Routes */ 291 /* Left Mixer Routes */ 296 /* Right Mixer Routes */ 301 /* Left ADC Mixer Routes */ 306 /* Right ADC Mixer Routes */ 311 /* ADC Routes */ 316 /* headphone specific controls, widgets, and routes */ 416 dev_err(dev, "Failed to add Headphone DAPM routes: %d\n", ret); in sun8i_codec_add_headphone() 512 dev_err(dev, "Failed to add Line In DAPM routes: %d\n", ret); in sun8i_codec_add_linein() 520 /* line out specific controls, widgets and routes */ [all …]
|
| /kernel/linux/linux-5.10/sound/soc/sunxi/ |
| D | sun8i-codec-analog.c | 286 /* Microphone Routes */ 291 /* Left Mixer Routes */ 296 /* Right Mixer Routes */ 301 /* Left ADC Mixer Routes */ 306 /* Right ADC Mixer Routes */ 311 /* ADC Routes */ 316 /* headphone specific controls, widgets, and routes */ 416 dev_err(dev, "Failed to add Headphone DAPM routes: %d\n", ret); in sun8i_codec_add_headphone() 512 dev_err(dev, "Failed to add Line In DAPM routes: %d\n", ret); in sun8i_codec_add_linein() 520 /* line out specific controls, widgets and routes */ [all …]
|
| D | sun50i-codec-analog.c | 397 /* Left Mixer Routes */ 404 /* Right Mixer Routes */ 411 /* Left ADC Mixer Routes */ 418 /* Right ADC Mixer Routes */ 425 /* ADC Routes */ 429 /* Headphone Routes */ 446 /* Microphone Routes */ 449 /* Microphone Routes */ 452 /* Line-out Routes */ 464 /* Earpiece Routes */
|
| /kernel/linux/linux-5.10/sound/pci/au88x0/ |
| D | au8830.h | 85 #define OFFSET_SPORTIN 0x78 /* ch 0x13 ADB source. 2 routes. */ 86 #define OFFSET_SPORTOUT 0x90 /* ch 0x13 ADB sink. 2 routes. */ 92 #define OFFSET_EQOUT 0x7e /* ch 0x11 */ /* 2 routes on ch 0x11 */ 94 #define OFFSET_A3DOUT 0xA6 /* ADB source. 2 routes per slice = 8 */ 99 #define OFFSET_XTALKOUT 0x66 /* crosstalk canceller (source) 2 routes */ 100 #define OFFSET_XTALKIN 0x96 /* crosstalk canceller (sink). 10 routes */ 101 #define OFFSET_EFXOUT 0x68 /* ADB source. 8 routes. */ 102 #define OFFSET_EFXIN 0x80 /* ADB sink. 8 routes. */
|
| /kernel/linux/linux-6.6/sound/pci/au88x0/ |
| D | au8830.h | 85 #define OFFSET_SPORTIN 0x78 /* ch 0x13 ADB source. 2 routes. */ 86 #define OFFSET_SPORTOUT 0x90 /* ch 0x13 ADB sink. 2 routes. */ 92 #define OFFSET_EQOUT 0x7e /* ch 0x11 */ /* 2 routes on ch 0x11 */ 94 #define OFFSET_A3DOUT 0xA6 /* ADB source. 2 routes per slice = 8 */ 99 #define OFFSET_XTALKOUT 0x66 /* crosstalk canceller (source) 2 routes */ 100 #define OFFSET_XTALKIN 0x96 /* crosstalk canceller (sink). 10 routes */ 101 #define OFFSET_EFXOUT 0x68 /* ADB source. 8 routes. */ 102 #define OFFSET_EFXIN 0x80 /* ADB sink. 8 routes. */
|
| /kernel/linux/linux-6.6/sound/soc/intel/avs/boards/ |
| D | i2s_test.c | 55 struct snd_soc_dapm_route **routes, int *num_routes) in avs_create_dapm_routes() argument 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()
|