Home
last modified time | relevance | path

Searched full:links (Results 1 – 25 of 1720) sorted by relevance

12345678910>>...69

/kernel/linux/linux-5.10/sound/soc/intel/boards/
Dsof_pcm512x.c226 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local
229 links = devm_kcalloc(dev, sof_audio_card_pcm512x.num_links, in sof_card_dai_links_create()
233 if (!links || !cpus) in sof_card_dai_links_create()
237 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
239 if (!links[id].name) in sof_card_dai_links_create()
242 links[id].id = id; in sof_card_dai_links_create()
243 links[id].codecs = pcm512x_component; in sof_card_dai_links_create()
244 links[id].num_codecs = ARRAY_SIZE(pcm512x_component); in sof_card_dai_links_create()
245 links[id].platforms = platform_component; in sof_card_dai_links_create()
246 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
[all …]
Dsof_rt5682.c550 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local
553 links = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link) * in sof_card_dai_links_create()
557 if (!links || !cpus) in sof_card_dai_links_create()
561 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create()
563 if (!links[id].name) in sof_card_dai_links_create()
566 links[id].id = id; in sof_card_dai_links_create()
567 links[id].codecs = rt5682_component; in sof_card_dai_links_create()
568 links[id].num_codecs = ARRAY_SIZE(rt5682_component); in sof_card_dai_links_create()
569 links[id].platforms = platform_component; in sof_card_dai_links_create()
570 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create()
[all …]
/kernel/linux/linux-5.10/sound/soc/sof/
Dnocodec.c22 struct snd_soc_dai_link *links, in sof_nocodec_bes_setup() argument
28 if (!ops || !links || !card) in sof_nocodec_bes_setup()
37 links[i].name = devm_kasprintf(dev, GFP_KERNEL, in sof_nocodec_bes_setup()
39 if (!links[i].name) in sof_nocodec_bes_setup()
42 links[i].cpus = &dlc[0]; in sof_nocodec_bes_setup()
43 links[i].codecs = &dlc[1]; in sof_nocodec_bes_setup()
44 links[i].platforms = &dlc[2]; in sof_nocodec_bes_setup()
46 links[i].num_cpus = 1; in sof_nocodec_bes_setup()
47 links[i].num_codecs = 1; in sof_nocodec_bes_setup()
48 links[i].num_platforms = 1; in sof_nocodec_bes_setup()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dcgroup_link.c40 struct bpf_link *links[ARRAY_SIZE(cgs)] = {}, *tmp_link; in test_cgroup_link() local
66 links[i] = bpf_program__attach_cgroup(skel->progs.egress, in test_cgroup_link()
68 if (CHECK(IS_ERR(links[i]), "cg_attach", "i: %d, err: %ld\n", in test_cgroup_link()
69 i, PTR_ERR(links[i]))) in test_cgroup_link()
110 bpf_link__destroy(links[last_cg]); in test_cgroup_link()
111 links[last_cg] = NULL; in test_cgroup_link()
122 links[last_cg] = bpf_program__attach_cgroup(skel->progs.egress, in test_cgroup_link()
124 if (CHECK(IS_ERR(links[last_cg]), "cg_attach", "err: %ld\n", in test_cgroup_link()
125 PTR_ERR(links[last_cg]))) in test_cgroup_link()
131 bpf_link__destroy(links[last_cg]); in test_cgroup_link()
[all …]
Dget_stackid_cannot_attach.c49 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach()
51 CHECK(!IS_ERR(skel->links.oncpu), "attach_perf_event_no_callchain", in test_get_stackid_cannot_attach()
66 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach()
68 CHECK(IS_ERR(skel->links.oncpu), "attach_perf_event_callchain", in test_get_stackid_cannot_attach()
69 "err: %ld\n", PTR_ERR(skel->links.oncpu)); in test_get_stackid_cannot_attach()
83 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach()
85 CHECK(!IS_ERR(skel->links.oncpu), "attach_perf_event_exclude_callchain_kernel", in test_get_stackid_cannot_attach()
Dudp_limit.c24 skel->links.sock = bpf_program__attach_cgroup(skel->progs.sock, cgroup_fd); in test_udp_limit()
25 skel->links.sock_release = bpf_program__attach_cgroup(skel->progs.sock_release, cgroup_fd); in test_udp_limit()
26 if (CHECK(IS_ERR(skel->links.sock) || IS_ERR(skel->links.sock_release), in test_udp_limit()
28 PTR_ERR(skel->links.sock), in test_udp_limit()
29 PTR_ERR(skel->links.sock_release))) in test_udp_limit()
/kernel/linux/linux-4.19/Documentation/media/uapi/mediactl/
Dmedia-ioc-enum-links.rst12 MEDIA_IOC_ENUM_LINKS - Enumerate all pads and links for a given entity
34 To enumerate pads and/or links for a given entity, applications set the
39 the ``pads`` and ``links`` fields. They then call the
47 If the ``links`` field is not NULL, the driver fills the ``links`` array
48 with information about the entity's outbound links. The array must have
49 enough room to store all the entity's outbound links. The number of
50 outbound links can be retrieved with :ref:`MEDIA_IOC_ENUM_ENTITIES`.
52 Only forward links that originate at one of the entity's source pads are
75 - \*\ ``links``
76 - Pointer to a links array allocated by the application. Ignored if
/kernel/linux/linux-5.10/Documentation/userspace-api/media/mediactl/
Dmedia-ioc-enum-links.rst13 MEDIA_IOC_ENUM_LINKS - Enumerate all pads and links for a given entity
34 To enumerate pads and/or links for a given entity, applications set the
39 the ``pads`` and ``links`` fields. They then call the
47 If the ``links`` field is not NULL, the driver fills the ``links`` array
48 with information about the entity's outbound links. The array must have
49 enough room to store all the entity's outbound links. The number of
50 outbound links can be retrieved with :ref:`MEDIA_IOC_ENUM_ENTITIES`.
52 Only forward links that originate at one of the entity's source pads are
74 - \*\ ``links``
75 - Pointer to a links array allocated by the application. Ignored if
/kernel/linux/linux-5.10/samples/bpf/
Dsampleip_user.c37 struct bpf_link *links[]) in sampling_start() argument
56 links[i] = bpf_program__attach_perf_event(prog, pmu_fd); in sampling_start()
57 if (libbpf_get_error(links[i])) { in sampling_start()
59 links[i] = NULL; in sampling_start()
68 static void sampling_end(struct bpf_link *links[]) in sampling_end() argument
73 bpf_link__destroy(links[i]); in sampling_end()
144 struct bpf_link **links; in main() local
174 links = calloc(nr_cpus, sizeof(struct bpf_link *)); in main()
175 if (!links) { in main()
176 fprintf(stderr, "ERROR: malloc of links\n"); in main()
[all …]
/kernel/linux/linux-4.19/Documentation/driver-api/
Ddevice_link.rst5 Device links
26 Device links allow representation of such dependencies in the driver core.
48 The earliest point in time when device links can be added is after
78 to deletion. Device links managed by the driver core are deleted automatically
110 device links (i.e. when ``DL_FLAG_STATELESS`` is not specified on link addition)
116 Moreover, managed device links cannot be deleted directly. They are deleted
119 However, stateless device links (i.e. device links with ``DL_FLAG_STATELESS``
136 scope of device links.
163 device links from the hotplug ports (consumers) to the NHI device
204 becomes a directed acyclic graph once device links are added.
[all …]
/kernel/linux/linux-5.10/Documentation/driver-api/
Ddevice_link.rst4 Device links
25 Device links allow representation of such dependencies in the driver core.
47 The earliest point in time when device links can be added is after
77 to deletion. Device links managed by the driver core are deleted automatically
110 device links (i.e. when ``DL_FLAG_STATELESS`` is not specified on link addition)
116 Moreover, managed device links cannot be deleted directly. They are deleted
119 However, stateless device links (i.e. device links with ``DL_FLAG_STATELESS``
150 scope of device links.
177 device links from the hotplug ports (consumers) to the NHI device
218 becomes a directed acyclic graph once device links are added.
[all …]
/kernel/linux/linux-4.19/Documentation/media/kapi/
Dmc-core.rst102 Links chapter
105 Links are represented by a struct :c:type:`media_link` instance,
106 defined in ``include/media/media-entity.h``. There are two types of links:
108 **1. pad to pad links**:
111 to all links originating at or targeting any of its pads.
115 Drivers create pad to pad links by calling:
119 **2. interface to entity links**:
123 Drivers create interface to entity links by calling:
129 Links can only be created after having both ends already created.
131 Links have flags that describe the link capabilities and state. The
[all …]
/kernel/linux/linux-4.19/drivers/soundwire/
Dintel_init.c29 struct sdw_link_data *links; member
34 struct sdw_link_data *link = ctx->links; in sdw_intel_cleanup_pdev()
46 kfree(ctx->links); in sdw_intel_cleanup_pdev()
47 ctx->links = NULL; in sdw_intel_cleanup_pdev()
67 /* Found controller, find links supported */ in sdw_intel_add_controller()
99 ctx->links = kcalloc(ctx->count, sizeof(*ctx->links), GFP_KERNEL); in sdw_intel_add_controller()
100 if (!ctx->links) in sdw_intel_add_controller()
103 link = ctx->links; in sdw_intel_add_controller()
/kernel/linux/linux-4.19/drivers/media/
Dmedia-device.c124 entd->links = ent->num_links - ent->num_backlinks; in media_device_enum_entities()
160 struct media_links_enum *links = arg; in media_device_enum_links() local
163 entity = find_entity(mdev, links->entity); in media_device_enum_links()
167 if (links->pads) { in media_device_enum_links()
175 if (copy_to_user(&links->pads[p], &pad, sizeof(pad))) in media_device_enum_links()
180 if (links->links) { in media_device_enum_links()
182 struct media_link_desc __user *ulink_desc = links->links; in media_device_enum_links()
184 list_for_each_entry(link, &entity->links, list) { in media_device_enum_links()
202 memset(links->reserved, 0, sizeof(links->reserved)); in media_device_enum_links()
345 /* Get links and number of links */ in media_device_get_topology()
[all …]
/kernel/linux/linux-5.10/drivers/media/mc/
Dmc-device.c117 entd->links = ent->num_links - ent->num_backlinks; in media_device_enum_entities()
153 struct media_links_enum *links = arg; in media_device_enum_links() local
156 entity = find_entity(mdev, links->entity); in media_device_enum_links()
160 if (links->pads) { in media_device_enum_links()
168 if (copy_to_user(&links->pads[p], &pad, sizeof(pad))) in media_device_enum_links()
173 if (links->links) { in media_device_enum_links()
175 struct media_link_desc __user *ulink_desc = links->links; in media_device_enum_links()
177 list_for_each_entry(link, &entity->links, list) { in media_device_enum_links()
195 memset(links->reserved, 0, sizeof(links->reserved)); in media_device_enum_links()
338 /* Get links and number of links */ in media_device_get_topology()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/aic7xxx/aicasm/
Daicasm_symbol.c216 curnode = SLIST_NEXT(curnode, links); in symlist_search()
263 SLIST_INSERT_HEAD(symlist, newnode, links); in symlist_add()
268 if (SLIST_NEXT(curnode, links) == NULL) { in symlist_add()
270 links); in symlist_add()
275 cursymbol = SLIST_NEXT(curnode, links)->symbol; in symlist_add()
285 links); in symlist_add()
289 curnode = SLIST_NEXT(curnode, links); in symlist_add()
292 SLIST_INSERT_HEAD(symlist, newnode, links); in symlist_add()
303 node2 = SLIST_NEXT(node1, links); in symlist_free()
318 SLIST_REMOVE_HEAD(symlist_src2, links); in symlist_merge()
[all …]
/kernel/linux/linux-4.19/drivers/scsi/aic7xxx/aicasm/
Daicasm_symbol.c220 curnode = SLIST_NEXT(curnode, links); in symlist_search()
267 SLIST_INSERT_HEAD(symlist, newnode, links); in symlist_add()
272 if (SLIST_NEXT(curnode, links) == NULL) { in symlist_add()
274 links); in symlist_add()
279 cursymbol = SLIST_NEXT(curnode, links)->symbol; in symlist_add()
289 links); in symlist_add()
293 curnode = SLIST_NEXT(curnode, links); in symlist_add()
296 SLIST_INSERT_HEAD(symlist, newnode, links); in symlist_add()
307 node2 = SLIST_NEXT(node1, links); in symlist_free()
322 SLIST_REMOVE_HEAD(symlist_src2, links); in symlist_merge()
[all …]
/kernel/linux/linux-5.10/include/linux/soundwire/
Dsdw_intel.h49 * @link_mask: bit-wise mask listing links enabled by BIOS menu
108 * @link_mask: bit-wise mask listing SoundWire links reported by the
110 * @num_slaves: total number of devices exposed across all enabled links
112 * @links: information for each link (controller-specific and kept
115 * links
116 * @link_list: list to handle interrupts across all links
126 struct sdw_intel_link_res *links; member
144 * @link_mask: bit-wise mask listing links selected by the DSP driver
148 * DSP driver. The quirks are common for all links for now.
/kernel/linux/linux-5.10/Documentation/driver-api/media/
Dmc-core.rst104 Links chapter
107 Links are represented by a struct media_link instance,
108 defined in ``include/media/media-entity.h``. There are two types of links:
110 **1. pad to pad links**:
113 to all links originating at or targeting any of its pads.
117 Drivers create pad to pad links by calling:
121 **2. interface to entity links**:
125 Drivers create interface to entity links by calling:
131 Links can only be created after having both ends already created.
133 Links have flags that describe the link capabilities and state. The
[all …]
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-master-hub.c25 * each of those links can in turn be chained to a hub master with multiple
26 * links of its own.
199 uint32_t reg, links; in hub_master_probe() local
208 links = (reg >> 8) & 0xff; in hub_master_probe()
209 dev_dbg(dev, "hub version %08x (%d links)\n", reg, links); in hub_master_probe()
212 FSI_HUB_LINK_SIZE * links); in hub_master_probe()
214 dev_err(dev, "can't claim slave address range for links"); in hub_master_probe()
225 hub->size = FSI_HUB_LINK_SIZE * links; in hub_master_probe()
232 hub->master.n_links = links; in hub_master_probe()
258 FSI_HUB_LINK_SIZE * links); in hub_master_probe()
/kernel/linux/linux-5.10/sound/soc/intel/common/
Dsoc-acpi-intel-tgl-match.c318 .links = tgl_i2s_rt1308,
346 .links = tgl_sdw_rt711_link1_rt1308_link2_rt715_link0,
352 .link_mask = 0xF, /* 4 active links required */
353 .links = tgl_3_in_1_default,
360 * link_mask should be 0xB, but all links are enabled by BIOS.
365 .links = tgl_3_in_1_mono_amp,
371 .link_mask = 0xF, /* 4 active links required */
372 .links = tgl_3_in_1_sdca,
379 .links = tgl_rvp,
386 .links = tgl_chromebook_base,
[all …]
/kernel/linux/linux-5.10/Documentation/sound/soc/
Ddpcm.rst119 1. Define the FE and BE DAI links.
126 FE and BE DAI links
146 For the example above we have to define 4 FE DAI links and 6 BE DAI links. The
147 FE DAI links are defined as follows :-
162 .....< other FE and BE DAI links here >
180 .....< FE DAI links here >
195 .....< other BE DAI links here >
261 The other PCM operation are the same as for regular DAI links. Use as necessary.
267 The BE DAI links will normally be connected to the graph at initialisation time
339 2. Hostless FE. This FE has a virtual connection to the BE DAI links on the DAPM
[all …]
/kernel/linux/linux-4.19/Documentation/sound/soc/
Ddpcm.rst119 1. Define the FE and BE DAI links.
126 FE and BE DAI links
146 For the example above we have to define 4 FE DAI links and 6 BE DAI links. The
147 FE DAI links are defined as follows :-
162 .....< other FE and BE DAI links here >
180 .....< FE DAI links here >
195 .....< other BE DAI links here >
261 The other PCM operation are the same as for regular DAI links. Use as necessary.
267 The BE DAI links will normally be connected to the graph at initialisation time
339 2. Hostless FE. This FE has a virtual connection to the BE DAI links on the DAPM
[all …]
/kernel/linux/linux-5.10/drivers/soundwire/
Dintel_init.c59 struct sdw_intel_link_res *link = ctx->links; in sdw_intel_cleanup()
94 /* Found controller, find links supported */ in sdw_intel_scan_controller()
100 * In theory we could check the number of links supported in in sdw_intel_scan_controller()
125 dev_warn(&adev->dev, "No SoundWire links detected\n"); in sdw_intel_scan_controller()
222 ctx->links = devm_kcalloc(&adev->dev, ctx->count, in sdw_intel_probe_controller()
223 sizeof(*ctx->links), GFP_KERNEL); in sdw_intel_probe_controller()
224 if (!ctx->links) in sdw_intel_probe_controller()
233 link = ctx->links; in sdw_intel_probe_controller()
333 if (!ctx->links) in sdw_intel_startup_controller()
336 link = ctx->links; in sdw_intel_startup_controller()
[all …]
/kernel/linux/linux-4.19/drivers/fsi/
Dfsi-master-hub.c79 * each of those links can in turn be chained to a hub master with multiple
80 * links of its own.
248 uint32_t reg, links; in hub_master_probe() local
257 links = (reg >> 8) & 0xff; in hub_master_probe()
258 dev_dbg(dev, "hub version %08x (%d links)\n", reg, links); in hub_master_probe()
261 FSI_HUB_LINK_SIZE * links); in hub_master_probe()
263 dev_err(dev, "can't claim slave address range for links"); in hub_master_probe()
274 hub->size = FSI_HUB_LINK_SIZE * links; in hub_master_probe()
281 hub->master.n_links = links; in hub_master_probe()
307 FSI_HUB_LINK_SIZE * links); in hub_master_probe()

12345678910>>...69