Home
last modified time | relevance | path

Searched refs:links (Results 1 – 25 of 373) sorted by relevance

12345678910>>...15

/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/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/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()
Dattach_probe.c53 skel->links.handle_kprobe = kprobe_link; in test_attach_probe()
61 skel->links.handle_kretprobe = kretprobe_link; in test_attach_probe()
71 skel->links.handle_uprobe = uprobe_link; in test_attach_probe()
81 skel->links.handle_uretprobe = uretprobe_link; in test_attach_probe()
/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()
212 if (sampling_start(freq, prog, links) != 0) in main()
[all …]
Dtracex4_user.c52 struct bpf_link *links[2]; in main() local
83 links[j] = bpf_program__attach(prog); in main()
84 if (libbpf_get_error(links[j])) { in main()
86 links[j] = NULL; in main()
99 bpf_link__destroy(links[j]); in main()
Dspintest_user.c16 struct bpf_link *links[20]; in main() local
60 links[j] = bpf_program__attach(prog); in main()
61 if (libbpf_get_error(links[j])) { in main()
63 links[j] = NULL; in main()
95 bpf_link__destroy(links[j]); in main()
Dlathist_user.c83 struct bpf_link *links[2]; in main() local
109 links[i] = bpf_program__attach(prog); in main()
110 if (libbpf_get_error(links[i])) { in main()
112 links[i] = NULL; in main()
126 bpf_link__destroy(links[i]); in main()
Dsyscall_tp_user.c49 struct bpf_link *links[num_progs * 4]; in test() local
77 links[j] = bpf_program__attach(prog); in test()
78 if (libbpf_get_error(links[j])) { in test()
80 links[j] = NULL; in test()
109 bpf_link__destroy(links[j]); in test()
Doffwaketime_user.c100 struct bpf_link *links[2]; in main() local
140 links[i] = bpf_program__attach(prog); in main()
141 if (libbpf_get_error(links[i])) { in main()
143 links[i] = NULL; in main()
156 bpf_link__destroy(links[i]); in main()
Dtracex3_user.c111 struct bpf_link *links[2]; in main() local
155 links[j] = bpf_program__attach(prog); in main()
156 if (libbpf_get_error(links[j])) { in main()
158 links[j] = NULL; in main()
186 bpf_link__destroy(links[j]); in main()
Dtrace_event_user.c140 struct bpf_link **links = calloc(nr_cpus, sizeof(struct bpf_link *)); in test_perf_event_all_cpu() local
143 if (!links) { in test_perf_event_all_cpu()
158 links[i] = bpf_program__attach_perf_event(prog, pmu_fd); in test_perf_event_all_cpu()
159 if (libbpf_get_error(links[i])) { in test_perf_event_all_cpu()
161 links[i] = NULL; in test_perf_event_all_cpu()
174 bpf_link__destroy(links[i]); in test_perf_event_all_cpu()
176 free(links); in test_perf_event_all_cpu()
/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 …]
Daicasm.c67 STAILQ_ENTRY(patch) links;
222 links)) in main()
243 links); in main()
326 cur_instr = STAILQ_NEXT(cur_instr, links)) { in back_patch()
368 cur_instr = STAILQ_NEXT(cur_instr, links)) { in output_code()
399 cur_node = SLIST_NEXT(cur_node,links)) { in output_code()
427 cur_patch = STAILQ_NEXT(cur_patch,links)) { in output_code()
445 cs = TAILQ_NEXT(cs, links)) { in output_code()
515 STAILQ_INSERT_TAIL(&patches, new_patch, links); in emit_patch()
547 cur_func = SLIST_NEXT(cur_func, links)) in output_listing()
[all …]
/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/drivers/greybus/
Dmanifest.c38 struct list_head links; member
47 list_del(&descriptor->links); in release_manifest_descriptor()
56 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in release_manifest_descriptors()
65 list_for_each_entry_safe(desc, tmp, head, links) { in release_cport_descriptors()
81 list_for_each_entry_safe(descriptor, next, &intf->manifest_descs, links) in get_next_bundle_desc()
167 list_add_tail(&descriptor->links, &intf->manifest_descs); in identify_descriptor()
196 list_for_each_entry(descriptor, &intf->manifest_descs, links) { in gb_string_get()
240 list_for_each_entry_safe(desc, next, &intf->manifest_descs, links) { in gb_manifest_parse_cports()
263 list_for_each_entry(tmp, &list, links) { in gb_manifest_parse_cports()
271 list_move_tail(&desc->links, &list); in gb_manifest_parse_cports()
[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()
489 compat_uptr_t links; /* struct media_link_desc * */ member
[all …]
/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,
353 .links = tgl_3_in_1_default,
365 .links = tgl_3_in_1_mono_amp,
372 .links = tgl_3_in_1_sdca,
379 .links = tgl_rvp,
386 .links = tgl_chromebook_base,
393 .links = tgl_chromebook_base,
/kernel/linux/linux-5.10/drivers/net/wireless/ti/wlcore/
Dps.c84 struct wl1271_link *lnk = &wl->links[hlid]; in wl1271_ps_filter_frames()
127 "clean_queues %d", hlid, wl->links[hlid].allocated_pkts, in wl12xx_ps_link_start()
131 sta = ieee80211_find_sta(vif, wl->links[hlid].addr); in wl12xx_ps_link_start()
134 wl->links[hlid].addr); in wl12xx_ps_link_start()
162 sta = ieee80211_find_sta(vif, wl->links[hlid].addr); in wl12xx_ps_link_end()
165 wl->links[hlid].addr); in wl12xx_ps_link_end()
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-link.rst5 tool for inspection and simple manipulation of eBPF links
33 Show information about active links. If *LINK* is
35 otherwise list all links currently active on the system.
43 links. On such kernels bpftool will automatically emit this
68 When showing BPF links, show file names of pinned
69 links.
/kernel/linux/linux-5.10/drivers/soundwire/
Dintel_init.c59 struct sdw_intel_link_res *link = ctx->links; in sdw_intel_cleanup()
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()
467 if (!ctx->links) in sdw_intel_process_wakeen_event()
470 link = ctx->links; in sdw_intel_process_wakeen_event()
/kernel/linux/linux-5.10/drivers/fsi/
Dfsi-master-hub.c199 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()
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()

12345678910>>...15