| /linux/sound/soc/amd/acp/ |
| H A D | acp-mach-common.c | 1408 struct snd_soc_dai_link *links; in acp_sofdsp_dai_links_create() 1423 links = devm_kcalloc(dev, num_links, sizeof(struct snd_soc_dai_link), GFP_KERNEL); in acp_sofdsp_dai_links_create() 1424 if (!links) in acp_sofdsp_dai_links_create() 1428 links[i].name = "acp-headset-codec"; in acp_sofdsp_dai_links_create() 1429 links[i].id = HEADSET_BE_ID; in acp_sofdsp_dai_links_create() 1430 links[i].cpus = sof_sp; in acp_sofdsp_dai_links_create() 1431 links[i].num_cpus = ARRAY_SIZE(sof_sp); in acp_sofdsp_dai_links_create() 1432 links[i].platforms = sof_component; in acp_sofdsp_dai_links_create() 1433 links[i].num_platforms = ARRAY_SIZE(sof_component); in acp_sofdsp_dai_links_create() 1434 links[ in acp_sofdsp_dai_links_create() 1401 struct snd_soc_dai_link *links; acp_sofdsp_dai_links_create() local 1602 struct snd_soc_dai_link *links; acp_legacy_dai_links_create() local [all...] |
| H A D | amd-acp70-acpi-match.c | 625 .links = acp70_rt1320_l0_rt722_l1, 630 .links = acp70_rt722_l0_rt1320_l1, 635 .links = acp70_4_in_1_sdca, 640 .links = acp70_cs42l43_l0u0_cs35l56x4_l1u3210, 645 .links = acp70_cs42l45_l1u0_cs35l63x4_l0u0246, 650 .links = acp70_cs42l45_l0u0_cs35l63x2_l1u01, 655 .links = acp70_cs42l45_l0u0_cs35l63x2_l1u13, 660 .links = acp70_cs42l45_l1u0_cs35l63x2_l0u01, 665 .links = acp70_cs42l43_l1u0_cs35l56x4_l1u0123, 670 .links = acp70_cs35l56x4_l1u3210, [all …]
|
| H A D | amd-acp63-acpi-match.c | 471 .links = acp63_4_in_1_sdca, 483 .links = acp63_rt722_only, 488 .links = acp63_4_in_1_sdca, 493 .links = acp63_cs42l43_l0u0_cs35l56x4_l1u3210, 498 .links = acp63_cs42l45_l1u0_cs35l63x4_l0u0246, 503 .links = acp63_cs42l45_l0u0_cs35l63x2_l1u01, 508 .links = acp63_cs42l45_l0u0_cs35l63x2_l1u13, 513 .links = acp63_cs42l45_l1u0_cs35l63x2_l0u01, 518 .links = acp63_cs42l43_l1u0_cs35l56x4_l1u0123, 523 .links = acp63_cs35l56x4_l1u3210, [all …]
|
| /linux/sound/soc/intel/boards/ |
| H A D | sof_pcm512x.c | 227 struct snd_soc_dai_link *links; in sof_card_dai_links_create() 230 links = devm_kcalloc(dev, sof_audio_card_pcm512x.num_links, in sof_card_dai_links_create() 234 if (!links || !cpus) in sof_card_dai_links_create() 238 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 240 if (!links[id].name) in sof_card_dai_links_create() 243 links[id].id = id; in sof_card_dai_links_create() 244 links[id].codecs = pcm512x_component; in sof_card_dai_links_create() 245 links[id].num_codecs = ARRAY_SIZE(pcm512x_component); in sof_card_dai_links_create() 246 links[id].platforms = platform_component; in sof_card_dai_links_create() 247 links[i in sof_card_dai_links_create() 226 struct snd_soc_dai_link *links; sof_card_dai_links_create() local [all...] |
| H A D | sof_es8336.c | 441 struct snd_soc_dai_link *links; in sof_card_dai_links_create() local 447 links = devm_kcalloc(dev, sof_es8336_card.num_links, in sof_card_dai_links_create() 451 if (!links || !cpus) in sof_card_dai_links_create() 455 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 457 if (!links[id].name) in sof_card_dai_links_create() 460 links[id].id = id; in sof_card_dai_links_create() 461 links[id].codecs = es8336_codec; in sof_card_dai_links_create() 462 links[id].num_codecs = ARRAY_SIZE(es8336_codec); in sof_card_dai_links_create() 463 links[id].platforms = platform_component; in sof_card_dai_links_create() 464 links[id].num_platforms = ARRAY_SIZE(platform_component); in sof_card_dai_links_create() [all …]
|
| /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/tools/testing/selftests/bpf/prog_tests/ |
| H A D | attach_probe.c | 63 skel->links.handle_kprobe = kprobe_link; in test_attach_probe_manual() 71 skel->links.handle_kretprobe = kretprobe_link; in test_attach_probe_manual() 84 skel->links.handle_uprobe = uprobe_link; in test_attach_probe_manual() 93 skel->links.handle_uretprobe = uretprobe_link; in test_attach_probe_manual() 99 skel->links.handle_uprobe_byname = in test_attach_probe_manual() 104 if (!ASSERT_OK_PTR(skel->links.handle_uprobe_byname, "attach_uprobe_byname")) in test_attach_probe_manual() 147 skel->links.handle_kprobe = in test_attach_probe_auto() 150 if (!ASSERT_OK_PTR(skel->links.handle_kprobe, "attach_kprobe_by_addr")) in test_attach_probe_auto() 154 skel->links.handle_kretprobe = in test_attach_probe_auto() 157 if (!ASSERT_OK_PTR(skel->links 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 | map_kptr_race.c | 60 watcher->links.map_put = bpf_program__attach(watcher->progs.map_put); in test_htab_leak() 61 if (!ASSERT_OK_PTR(watcher->links.map_put, "attach fentry")) in test_htab_leak() 63 watcher->links.htab_map_free = bpf_program__attach(watcher->progs.htab_map_free); in test_htab_leak() 64 if (!ASSERT_OK_PTR(watcher->links.htab_map_free, "attach fexit")) in test_htab_leak() 121 watcher->links.map_put = bpf_program__attach(watcher->progs.map_put); in test_percpu_htab_leak() 122 if (!ASSERT_OK_PTR(watcher->links.map_put, "attach fentry")) in test_percpu_htab_leak() 124 watcher->links.htab_map_free = bpf_program__attach(watcher->progs.htab_map_free); in test_percpu_htab_leak() 125 if (!ASSERT_OK_PTR(watcher->links.htab_map_free, "attach fexit")) in test_percpu_htab_leak() 182 watcher->links.map_put = bpf_program__attach(watcher->progs.map_put); in test_sk_ls_leak() 183 if (!ASSERT_OK_PTR(watcher->links.map_put, "attach fentry")) in test_sk_ls_leak() [all …]
|
| H A D | usdt.c | 130 skel->links.usdt0 = bpf_program__attach_usdt(skel->progs.usdt0, in subtest_basic_usdt() 133 if (!ASSERT_OK_PTR(skel->links.usdt0, "usdt0_link")) in subtest_basic_usdt() 138 skel->links.usdt_sib = bpf_program__attach_usdt(skel->progs.usdt_sib, in subtest_basic_usdt() 141 if (!ASSERT_OK_PTR(skel->links.usdt_sib, "usdt_sib_link")) in subtest_basic_usdt() 213 bpf_link__destroy(skel->links.usdt3); 216 skel->links.usdt3 = bpf_program__attach_usdt(skel->progs.usdt3, -1 /* any pid */, 218 if (!ASSERT_OK_PTR(skel->links.usdt3, "usdt3_reattach")) in trigger_400_usdts() 297 skel->links.usdt_executed = bpf_program__attach_usdt(skel->progs.usdt_executed, in subtest_multispec_usdt() 300 if (!ASSERT_OK_PTR(skel->links.usdt_executed, "bpf_program__attach_usdt")) in subtest_multispec_usdt() 310 bpf_link__destroy(skel->links 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 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/net/wireless/ |
| H A D | sme.c | 277 cr.links[0].bssid = bssid; in cfg80211_conn_work() 380 cr.links[0].bssid = mgmt->bssid; in cfg80211_sme_rx_auth() 472 if (!wdev->links[link].client.current_bss) in cfg80211_wdev_release_bsses() 474 cfg80211_unhold_bss(wdev->links[link].client.current_bss); in cfg80211_wdev_release_bsses() 476 &wdev->links[link].client.current_bss->pub); in cfg80211_wdev_release_bsses() 477 wdev->links[link].client.current_bss = NULL; in cfg80211_wdev_release_bsses() 486 if (!wdev->links[link].client.current_bss || in cfg80211_wdev_release_link_bsses() 489 cfg80211_unhold_bss(wdev->links[link].client.current_bss); in cfg80211_wdev_release_link_bsses() 491 &wdev->links[link].client.current_bss->pub); in cfg80211_wdev_release_link_bsses() 492 wdev->links[lin in cfg80211_wdev_release_link_bsses() [all...] |
| H A D | mlme.c | 44 for (link_id = 0; link_id < ARRAY_SIZE(data->links); link_id++) { in cfg80211_rx_assoc_resp() 45 cr.links[link_id].status = data->links[link_id].status; in cfg80211_rx_assoc_resp() 46 cr.links[link_id].bss = data->links[link_id].bss; in cfg80211_rx_assoc_resp() 48 WARN_ON_ONCE(cr.links[link_id].status != WLAN_STATUS_SUCCESS && in cfg80211_rx_assoc_resp() 49 (!cr.ap_mld_addr || !cr.links[link_id].bss)); in cfg80211_rx_assoc_resp() 51 if (!cr.links[link_id].bss) in cfg80211_rx_assoc_resp() 53 cr.links[link_id].bssid = data->links[link_i in cfg80211_rx_assoc_resp() [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/interconnect/qcom/ |
| H A D | msm8996.c | 52 .links = mas_a0noc_common_links 67 .links = mas_a0noc_common_links 82 .links = mas_a0noc_common_links 98 .links = mas_a1noc_common_links 113 .links = mas_a1noc_common_links 128 .links = mas_a1noc_common_links 147 .links = mas_a2noc_common_links 162 .links = mas_a2noc_common_links 177 .links = mas_a2noc_common_links 198 .links = mas_apps_proc_links [all …]
|
| /linux/tools/perf/util/ |
| H A D | bpf_ftrace.c | 110 skel->links.func_begin = bpf_program__attach_kprobe(skel->progs.func_begin, in perf_ftrace__latency_prepare_bpf() 112 if (IS_ERR(skel->links.func_begin)) { in perf_ftrace__latency_prepare_bpf() 114 err = PTR_ERR(skel->links.func_begin); in perf_ftrace__latency_prepare_bpf() 118 skel->links.func_end = bpf_program__attach_kprobe(skel->progs.func_end, in perf_ftrace__latency_prepare_bpf() 120 if (IS_ERR(skel->links.func_end)) { in perf_ftrace__latency_prepare_bpf() 122 err = PTR_ERR(skel->links.func_end); in perf_ftrace__latency_prepare_bpf() 130 skel->links.event_begin = bpf_program__attach_raw_tracepoint(skel->progs.event_begin, in perf_ftrace__latency_prepare_bpf() 132 if (IS_ERR(skel->links.event_begin)) { in perf_ftrace__latency_prepare_bpf() 134 err = PTR_ERR(skel->links.event_begin); in perf_ftrace__latency_prepare_bpf() 140 skel->links.event_end = bpf_program__attach_raw_tracepoint(skel->progs.event_end, in perf_ftrace__latency_prepare_bpf() [all …]
|
| /linux/sound/soc/intel/common/ |
| H A D | soc-acpi-intel-ptl-match.c | 442 /* Order Priority: mockup > most links > most bit link-mask > alphabetical */ 445 .links = sdw_mockup_headset_2amps_mic, 451 .links = sdw_mockup_headset_1amp_mic, 457 .links = sdw_mockup_mic_headset_1amp, 463 .links = sdw_mockup_multi_func, 469 .links = ptl_sdw_rt713_vb_l2_rt1320_l13, 477 .links = ptl_sdw_rt713_vb_l3_rt1320_l12, 485 .links = ptl_sdw_rt713_vb_l3_rt1320_l1, 492 .links = ptl_rt722_l0_rt1320_l23, 499 .links [all...] |
| H A D | soc-acpi-intel-mtl-match.c | 1195 .links = sdw_mockup_headset_2amps_mic, 1201 .links = sdw_mockup_headset_1amp_mic, 1207 .links = sdw_mockup_mic_headset_1amp, 1213 .links = tas2783_link0, 1219 .links = mtl_rt713_l0_rt1316_l12_rt1713_l3, 1225 .links = mtl_rt713_l0_rt1318_l12_rt1713_l3, 1231 .links = mtl_rt713_l0_rt1318_l1_rt1713_l3, 1237 .links = mtl_rt713_l0_rt1316_l12, 1243 .links = mtl_712_l0_1712_l3, 1249 .links = mtl_712_vb_l0, [all …]
|
| H A D | soc-acpi-intel-lnl-match.c | 693 .links = sdw_mockup_headset_2amps_mic, 699 .links = sdw_mockup_headset_1amp_mic, 705 .links = sdw_mockup_mic_headset_1amp, 711 .links = sdw_mockup_multi_func, 717 .links = lnl_3_in_1_sdca, 723 .links = lnl_cs42l43_l0_cs35l56_l23, 729 .links = lnl_cs42l43_l2_cs35l56x6_l13, 735 .links = lnl_cs42l43_l0_cs35l56_l3, 741 .links = lnl_cs42l43_l0, 748 .links = lnl_rvp, [all …]
|
| /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/net/mac80211/ |
| H A D | link.c | 41 ether_addr_copy(vlan->wdev.links[link_id].addr, in ieee80211_update_apvlan_links() 42 sdata->wdev.links[link_id].addr); in ieee80211_update_apvlan_links() 47 eth_zero_addr(vlan->wdev.links[link_id].addr); in ieee80211_update_apvlan_links() 73 ether_addr_copy(sdata->wdev.links[link_id].addr, in ieee80211_apvlan_link_setup() 74 ap_bss->wdev.links[link_id].addr); in ieee80211_apvlan_link_setup() 144 sdata->wdev.links[link_id].addr); in ieee80211_link_init() 174 if (link->sdata->wdev.links[link->link_id].cac_started) { in ieee80211_link_stop() 192 struct link_container **links, u16 mask) in ieee80211_tear_down_links() argument 201 link = &links[link_id]->data; in ieee80211_tear_down_links() 217 struct link_container **links) in ieee80211_free_links() argument [all …]
|
| /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()
|