/linux/sound/soc/amd/acp/ |
H A D | acp-mach-common.c | 1385 struct snd_soc_dai_link *links; in acp_sofdsp_dai_links_create() local 1399 links = devm_kcalloc(dev, num_links, sizeof(struct snd_soc_dai_link), GFP_KERNEL); in acp_sofdsp_dai_links_create() 1400 if (!links) in acp_sofdsp_dai_links_create() 1404 links[i].name = "acp-headset-codec"; in acp_sofdsp_dai_links_create() 1405 links[i].id = HEADSET_BE_ID; in acp_sofdsp_dai_links_create() 1406 links[i].cpus = sof_sp; in acp_sofdsp_dai_links_create() 1407 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create() 1408 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create() 1409 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create() 1410 links[i].nonatomic = true; in acp_sofdsp_dai_links_create() [all …]
|
/linux/sound/soc/intel/boards/ |
H A D | sof_pcm512x.c | 226 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 …]
|
H A D | sof_es8336.c | 430 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local 436 links = devm_kcalloc(dev, sof_es8336_card.num_links, in sof_card_dai_links_create() 440 if (!links || !cpus) in sof_card_dai_links_create() 444 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 446 if (!links[id].name) in sof_card_dai_links_create() 449 links[id].id = id; in sof_card_dai_links_create() 450 links[id].codecs = es8336_codec; in sof_card_dai_links_create() 451 links[id].num_codecs = ARRAY_SIZE(es8336_codec); in sof_card_dai_links_create() 452 links[id].platforms = platform_component; in sof_card_dai_links_create() 453 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create() [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | attach_probe.c | 62 skel->links.handle_kprobe = kprobe_link; in test_attach_probe_manual() 70 skel->links.handle_kretprobe = kretprobe_link; in test_attach_probe_manual() 83 skel->links.handle_uprobe = uprobe_link; in test_attach_probe_manual() 92 skel->links.handle_uretprobe = uretprobe_link; in test_attach_probe_manual() 98 skel->links.handle_uprobe_byname = in test_attach_probe_manual() 103 if (!ASSERT_OK_PTR(skel->links.handle_uprobe_byname, "attach_uprobe_byname")) in test_attach_probe_manual() 130 skel->links.handle_kprobe_auto = bpf_program__attach(skel->progs.handle_kprobe_auto); in test_attach_probe_auto() 131 ASSERT_OK_PTR(skel->links.handle_kprobe_auto, "attach_kprobe_auto"); in test_attach_probe_auto() 133 skel->links.handle_kretprobe_auto = bpf_program__attach(skel->progs.handle_kretprobe_auto); in test_attach_probe_auto() 134 ASSERT_OK_PTR(skel->links.handle_kretprobe_auto, "attach_kretprobe_auto"); in test_attach_probe_auto() [all …]
|
H A D | cgroup_link.c | 40 struct bpf_link *links[ARRAY_SIZE(cgs)] = {}, *tmp_link; in serial_test_cgroup_link() local 66 links[i] = bpf_program__attach_cgroup(skel->progs.egress, in serial_test_cgroup_link() 68 if (!ASSERT_OK_PTR(links[i], "cg_attach")) in serial_test_cgroup_link() 106 bpf_link__destroy(links[last_cg]); in serial_test_cgroup_link() 107 links[last_cg] = NULL; in serial_test_cgroup_link() 118 links[last_cg] = bpf_program__attach_cgroup(skel->progs.egress, in serial_test_cgroup_link() 120 if (!ASSERT_OK_PTR(links[last_cg], "cg_attach")) in serial_test_cgroup_link() 126 bpf_link__destroy(links[last_cg]); in serial_test_cgroup_link() 127 links[last_cg] = NULL; in serial_test_cgroup_link() 161 links[last_cg] = bpf_program__attach_cgroup(skel->progs.egress, in serial_test_cgroup_link() [all …]
|
H A D | usdt.c | 63 skel->links.usdt0 = bpf_program__attach_usdt(skel->progs.usdt0, in subtest_basic_usdt() 66 if (!ASSERT_OK_PTR(skel->links.usdt0, "usdt0_link")) in subtest_basic_usdt() 128 bpf_link__destroy(skel->links.usdt3); in subtest_basic_usdt() 131 skel->links.usdt3 = bpf_program__attach_usdt(skel->progs.usdt3, -1 /* any pid */, in subtest_basic_usdt() 133 if (!ASSERT_OK_PTR(skel->links.usdt3, "usdt3_reattach")) in subtest_basic_usdt() 242 bpf_link__destroy(skel->links.usdt_100); in subtest_multispec_usdt() 244 skel->links.usdt_100 = bpf_program__attach_usdt(skel->progs.usdt_100, -1, in subtest_multispec_usdt() 247 if (!ASSERT_OK_PTR(skel->links.usdt_100, "usdt_100_reattach")) in subtest_multispec_usdt() 265 bpf_link__destroy(skel->links.usdt_100); in subtest_multispec_usdt() 266 skel->links.usdt_100 = bpf_program__attach_usdt(skel->progs.usdt_100, -1, "/proc/self/exe", in subtest_multispec_usdt() [all …]
|
H A D | get_stackid_cannot_attach.c | 49 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach() 51 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_no_callchain"); in test_get_stackid_cannot_attach() 65 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach() 67 ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event_callchain"); in test_get_stackid_cannot_attach() 68 bpf_link__destroy(skel->links.oncpu); in test_get_stackid_cannot_attach() 82 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_get_stackid_cannot_attach() 84 ASSERT_ERR_PTR(skel->links.oncpu, "attach_perf_event_exclude_callchain_kernel"); in test_get_stackid_cannot_attach()
|
H A D | tc_links.c | 45 skel->links.tc1 = link; in serial_test_tc_links_basic() 47 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in serial_test_tc_links_basic() 80 skel->links.tc2 = link; in serial_test_tc_links_basic() 82 lid2 = id_from_link_fd(bpf_link__fd(skel->links.tc2)); in serial_test_tc_links_basic() 158 skel->links.tc1 = link; in test_tc_links_before_target() 160 lid1 = id_from_link_fd(bpf_link__fd(skel->links.tc1)); in test_tc_links_before_target() 168 skel->links.tc2 = link; in test_tc_links_before_target() 170 lid2 = id_from_link_fd(bpf_link__fd(skel->links.tc2)); in test_tc_links_before_target() 211 skel->links.tc3 = link; in test_tc_links_before_target() 213 lid3 = id_from_link_fd(bpf_link__fd(skel->links.tc3)); in test_tc_links_before_target() [all …]
|
H A D | socket_cookie.c | 33 skel->links.set_cookie = bpf_program__attach_cgroup( in test_socket_cookie() 35 if (!ASSERT_OK_PTR(skel->links.set_cookie, "prog_attach")) in test_socket_cookie() 38 skel->links.update_cookie_sockops = bpf_program__attach_cgroup( in test_socket_cookie() 40 if (!ASSERT_OK_PTR(skel->links.update_cookie_sockops, "prog_attach")) in test_socket_cookie() 43 skel->links.update_cookie_tracing = bpf_program__attach( in test_socket_cookie() 45 if (!ASSERT_OK_PTR(skel->links.update_cookie_tracing, "prog_attach")) in test_socket_cookie()
|
/linux/drivers/md/dm-vdo/ |
H A D | thread-registry.c | 20 INIT_LIST_HEAD(®istry->links); in vdo_initialize_thread_registry() 31 INIT_LIST_HEAD(&new_thread->links); in vdo_register_thread() 36 list_for_each_entry(thread, ®istry->links, links) { in vdo_register_thread() 39 list_del_rcu(&thread->links); in vdo_register_thread() 44 list_add_tail_rcu(&new_thread->links, ®istry->links); in vdo_register_thread() 51 INIT_LIST_HEAD(&thread->links); in vdo_register_thread() 61 list_for_each_entry(thread, ®istry->links, links) { in vdo_unregister_thread() 63 list_del_rcu(&thread->links); in vdo_unregister_thread() 74 INIT_LIST_HEAD(&thread->links); in vdo_unregister_thread() 84 list_for_each_entry_rcu(thread, ®istry->links, links) { in vdo_lookup_thread()
|
/linux/net/wireless/ |
H A D | sme.c | 278 cr.links[0].bssid = bssid; in cfg80211_conn_work() 381 cr.links[0].bssid = mgmt->bssid; in cfg80211_sme_rx_auth() 473 if (!wdev->links[link].client.current_bss) in cfg80211_wdev_release_bsses() 475 cfg80211_unhold_bss(wdev->links[link].client.current_bss); in cfg80211_wdev_release_bsses() 477 &wdev->links[link].client.current_bss->pub); in cfg80211_wdev_release_bsses() 478 wdev->links[link].client.current_bss = NULL; in cfg80211_wdev_release_bsses() 487 if (!wdev->links[link].client.current_bss || in cfg80211_wdev_release_link_bsses() 490 cfg80211_unhold_bss(wdev->links[link].client.current_bss); in cfg80211_wdev_release_link_bsses() 492 &wdev->links[link].client.current_bss->pub); in cfg80211_wdev_release_link_bsses() 493 wdev->links[link].client.current_bss = NULL; in cfg80211_wdev_release_link_bsses() [all …]
|
/linux/samples/bpf/ |
H A D | sampleip_user.c | 37 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 181 links = calloc(nr_cpus, sizeof(struct bpf_link *)); in main() 182 if (!links) { in main() 219 if (sampling_start(freq, prog, links) != 0) in main() [all …]
|
H A D | syscall_tp_user.c | 51 struct bpf_link **links = NULL; in test() local 64 if (!links) { in test() 70 links = calloc(nr_progs * nr_tests, sizeof(struct bpf_link *)); in test() 72 if (!links) in test() 92 links[j] = bpf_program__attach(prog); in test() 93 if (libbpf_get_error(links[j])) { in test() 95 links[j] = NULL; in test() 123 if (links) { in test() 125 bpf_link__destroy(links[j]); in test() 127 free(links); in test()
|
/linux/drivers/scsi/aic7xxx/aicasm/ |
H A D | aicasm_symbol.c | 217 curnode = SLIST_NEXT(curnode, links); in symlist_search() 264 SLIST_INSERT_HEAD(symlist, newnode, links); in symlist_add() 269 if (SLIST_NEXT(curnode, links) == NULL) { in symlist_add() 271 links); in symlist_add() 276 cursymbol = SLIST_NEXT(curnode, links)->symbol; in symlist_add() 286 links); in symlist_add() 290 curnode = SLIST_NEXT(curnode, links); in symlist_add() 293 SLIST_INSERT_HEAD(symlist, newnode, links); in symlist_add() 304 node2 = SLIST_NEXT(node1, links); in symlist_free() 319 SLIST_REMOVE_HEAD(symlist_src2, links); in symlist_merge() [all …]
|
/linux/sound/soc/intel/common/ |
H A D | soc-acpi-intel-ptl-match.c | 292 .links = sdw_mockup_headset_2amps_mic, 298 .links = sdw_mockup_headset_1amp_mic, 304 .links = sdw_mockup_mic_headset_1amp, 310 .links = ptl_rvp, 316 .links = ptl_rt721_l3, 322 .links = ptl_rt722_only, 328 .links = ptl_rt722_l1, 334 .links = ptl_rt722_l3, 340 .links = ptl_sdw_rt712_vb_l2_rt1320_l1, 347 .links = ptl_sdw_rt713_vb_l2_rt1320_l13,
|
H A D | soc-acpi-intel-mtl-match.c | 1034 .links = sdw_mockup_headset_2amps_mic, 1040 .links = sdw_mockup_headset_1amp_mic, 1046 .links = sdw_mockup_mic_headset_1amp, 1052 .links = mtl_rt713_l0_rt1316_l12_rt1713_l3, 1058 .links = mtl_rt713_l0_rt1318_l12_rt1713_l3, 1064 .links = mtl_rt713_l0_rt1318_l1_rt1713_l3, 1070 .links = mtl_rt713_l0_rt1316_l12, 1076 .links = mtl_712_l0_1712_l3, 1082 .links = mtl_712_vb_l0, 1089 .links = mtl_712_l0, [all …]
|
H A D | soc-acpi-intel-adl-match.c | 664 .links = adl_cs42l43_l0_cs35l56_l23, 670 .links = adl_default, 676 .links = adl_sdca_default, 682 .links = adl_sdca_3_in_1, 688 .links = adl_sdw_rt711_link2_rt1316_link01_rt714_link3, 694 .links = adl_sdw_rt711_link2_rt1316_link01, 700 .links = adl_sdw_rt1316_link2_rt714_link3, 706 .links = adl_sdw_rt1316_link12_rt714_link0, 712 .links = adl_sdw_rt1316_link1_rt714_link0, 718 .links = adl_sdw_rt1316_link2_rt714_link0, [all …]
|
H A D | soc-acpi-intel-tgl-match.c | 732 .links = sdw_mockup_headset_2amps_mic, 738 .links = sdw_mockup_headset_1amp_mic, 744 .links = sdw_mockup_mic_headset_1amp, 750 .links = tgl_712_only, 756 .links = tgl_sdw_rt711_link1_rt1308_link2_rt715_link0, 762 .links = tgl_cs42l43_cs35l56, 768 .links = tgl_3_in_1_default, 779 .links = tgl_3_in_1_mono_amp, 785 .links = tgl_3_in_1_sdca, 797 .links = tgl_3_in_1_sdca_mono, [all …]
|
/linux/Documentation/userspace-api/media/mediactl/ |
H A D | media-ioc-enum-links.rst | 13 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
|
/linux/kernel/bpf/preload/ |
H A D | bpf_preload_kern.c | 51 maps_link = bpf_link_get_from_fd(skel->links.dump_bpf_map_fd); in load_skel() 56 progs_link = bpf_link_get_from_fd(skel->links.dump_bpf_prog_fd); in load_skel() 64 close_fd(skel->links.dump_bpf_map_fd); in load_skel() 65 skel->links.dump_bpf_map_fd = 0; in load_skel() 66 close_fd(skel->links.dump_bpf_prog_fd); in load_skel() 67 skel->links.dump_bpf_prog_fd = 0; in load_skel()
|
/linux/drivers/media/mc/ |
H A D | mc-device.c | 117 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() 485 compat_uptr_t links; /* struct media_link_desc * */ member [all …]
|
/linux/net/mac80211/ |
H A D | link.c | 58 sdata->wdev.links[link_id].addr); in ieee80211_link_init() 85 if (link->sdata->wdev.links[link->link_id].cac_started) { in ieee80211_link_stop() 103 struct link_container **links, u16 mask) in ieee80211_tear_down_links() argument 112 link = &links[link_id]->data; in ieee80211_tear_down_links() 128 struct link_container **links) in ieee80211_free_links() argument 133 kfree(links[link_id]); in ieee80211_free_links() 207 struct link_container *links[IEEE80211_MLD_MAX_NUM_LINKS] = {}, *link; in ieee80211_vif_update_links() local 214 memset(to_free, 0, sizeof(links)); in ieee80211_vif_update_links() 230 links[link_id] = link; in ieee80211_vif_update_links() 248 typeof(*links[link_id]), in ieee80211_vif_update_links() [all …]
|
/linux/drivers/greybus/ |
H A D | manifest.c | 38 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 …]
|
/linux/kernel/bpf/preload/iterators/ |
H A D | iterators.lskel-little-endian.h | 20 } links; member 30 skel->links.dump_bpf_map_fd = fd; in iterators_bpf__dump_bpf_map__attach() 41 skel->links.dump_bpf_prog_fd = fd; in iterators_bpf__dump_bpf_prog__attach() 58 skel_closenz(skel->links.dump_bpf_map_fd); in iterators_bpf__detach() 59 skel_closenz(skel->links.dump_bpf_prog_fd); in iterators_bpf__detach() 80 skel->ctx.sz = (void *)&skel->links - (void *)skel; in iterators_bpf__open()
|
H A D | iterators.lskel-big-endian.h | 20 } links; member 30 skel->links.dump_bpf_map_fd = fd; in iterators_bpf__dump_bpf_map__attach() 41 skel->links.dump_bpf_prog_fd = fd; in iterators_bpf__dump_bpf_prog__attach() 58 skel_closenz(skel->links.dump_bpf_map_fd); in iterators_bpf__detach() 59 skel_closenz(skel->links.dump_bpf_prog_fd); in iterators_bpf__detach() 80 skel->ctx.sz = (void *)&skel->links - (void *)skel; in iterators_bpf__open()
|