Home
last modified time | relevance | path

Searched +defs:map +defs:link (Results 1 – 25 of 66) sorted by relevance

123

/linux/kernel/bpf/
H A Dsyscall.c48 #define IS_FD_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PERF_EVENT_ARRAY || \ argument
51 #define IS_FD_PROG_ARRAY(map) ((map)->map_type == BPF_MAP_TYPE_PROG_ARRAY) argument
52 #define IS_FD_HASH(map) ((map)->map_type == BPF_MAP_TYPE_HASH_OF_MAPS) argument
53 #define IS_FD_MAP(map) (IS_FD_ARRAY(map) || IS_FD_PROG_ARRAY(map) || \ argument
121 static void bpf_map_write_active_inc(struct bpf_map *map) in bpf_map_write_active_inc()
126 static void bpf_map_write_active_dec(struct bpf_map *map) in bpf_map_write_active_dec()
131 bool bpf_map_write_active(const struct bpf_map *map) in bpf_map_write_active()
136 static u32 bpf_map_value_size(const struct bpf_map *map) in bpf_map_value_size()
149 static void maybe_wait_bpf_programs(struct bpf_map *map) in maybe_wait_bpf_programs()
247 static int bpf_map_update_value(struct bpf_map *map, struct file *map_file, in bpf_map_update_value()
[all …]
H A Dinode.c194 static struct map_iter *map_iter_alloc(struct bpf_map *map) in map_iter_alloc()
215 struct bpf_map *map = seq_file_to_map(m); in map_seq_next() local
251 struct bpf_map *map = seq_file_to_map(m); in map_seq_show() local
273 struct bpf_map *map = inode->i_private; in bpffs_map_open() local
353 struct bpf_map *map = arg; in bpf_mkmap() local
362 struct bpf_link *link = arg; in bpf_mklink() local
385 char *link = kstrdup(target, GFP_USER | __GFP_NOWARN); in bpf_symlink() local
416 const char *name, struct bpf_link *link) in bpf_iter_link_pin_kernel()
/linux/net/core/
H A Dsock_map.c18 struct bpf_map map; member
70 struct bpf_map *map; in sock_map_get_from_fd() local
89 struct bpf_map *map; in sock_map_prog_detach() local
132 struct sk_psock_link *link, in sock_map_add_link()
133 struct bpf_map *map, void *link_raw) in sock_map_add_link()
146 struct sk_psock_link *link, *tmp; in sock_map_del_link() local
151 struct bpf_map *map = link->map; in sock_map_del_link() local
217 static int sock_map_link(struct bpf_map *map, struct sock *sk) in sock_map_link()
339 static void sock_map_free(struct bpf_map *map) in sock_map_free()
372 static void sock_map_release_progs(struct bpf_map *map) in sock_map_release_progs()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_resource.c32 void link_get_cur_link_res(const struct dc_link *link, in link_get_cur_link_res()
52 void link_get_cur_res_map(const struct dc *dc, uint32_t *map) in link_get_cur_res_map()
54 struct dc_link *link; in link_get_cur_res_map() local
75 void link_restore_res_map(const struct dc *dc, uint32_t *map) in link_restore_res_map()
77 struct dc_link *link; in link_restore_res_map() local
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dsockmap_basic.c93 int s, map, err; in test_sockmap_create_update_free() local
114 int map, c, p, err, zero = 0; in test_sockmap_vsock_delete_on_close() local
148 int err, map, verdict; in test_skmsg_helpers() local
173 struct bpf_link *link, *link2; in test_skmsg_helpers_with_link() local
174 int err, map; in test_skmsg_helpers_with_link() local
291 struct bpf_link *link; in test_sockmap_copy() local
371 int err, map, verdict; in test_sockmap_skb_verdict_attach() local
398 struct bpf_link *link; in test_sockmap_skb_verdict_attach_with_link() local
399 int err, map; in test_sockmap_skb_verdict_attach_with_link() local
488 int n, err, map, verdict, c1 = -1, p1 = -1; in test_sockmap_skb_verdict_shutdown() local
[all …]
H A Dstruct_ops_autocreate.c37 static int check_test_1_link(struct struct_ops_autocreate *skel, struct bpf_map *map) in check_test_1_link()
39 struct bpf_link *link; in check_test_1_link() local
117 struct bpf_link *link = NULL; in autoload_and_shadow_vars() local
H A Dtest_struct_ops_module.c40 struct bpf_map *map, in attach_ops_and_check()
43 struct bpf_link *link; in attach_ops_and_check() local
162 struct bpf_link *link; in test_struct_ops_incompatible() local
254 struct bpf_link *link = NULL; in test_detach_link() local
H A Dkprobe_multi_test.c221 struct bpf_link *link = NULL; test_attach_api_fails() local
337 struct bpf_link *link = NULL; test_session_skel_api() local
373 struct bpf_link *link = NULL; test_session_cookie_skel_api() local
404 struct bpf_link *link = NULL; test_unique_match() local
498 struct hashmap *map; get_syms() local
644 struct bpf_link *link = NULL; do_bench_test() local
725 struct bpf_link *link = NULL; test_attach_override() local
[all...]
H A Dget_stack_raw_tp.c92 struct bpf_link *link = NULL; in test_get_stack_raw_tp() local
96 struct bpf_map *map; in test_get_stack_raw_tp() local
H A Dbpf_iter.c50 struct bpf_link *link; in do_dummy_read_opts() local
79 struct bpf_map *map) in do_read_map_iter_fd()
83 struct bpf_link *link; in do_read_map_iter_fd() local
182 struct bpf_link *link; in check_bpf_link_info() local
481 struct bpf_link *link; in do_btf_read() local
630 struct bpf_link *link; in test_anon_iter() local
672 struct bpf_link *link; in test_file_iter() local
724 struct bpf_link *link; in test_overflow() local
850 struct bpf_link *link; in test_bpf_hash_map() local
943 struct bpf_link *link; in test_bpf_percpu_hash_map() local
[all …]
H A Dfexit_bpf2bpf.c14 struct bpf_map *data_map = NULL, *map; in check_data_map() local
67 struct bpf_link **link = NULL; in test_fexit_bpf2bpf_common() local
235 struct bpf_link *link; in test_second_attach() local
/linux/tools/lib/bpf/
H A Dlibbpf.c1099 static bool bpf_map__is_struct_ops(const struct bpf_map *map) in bpf_map__is_struct_ops()
1125 struct bpf_map *map; in bpf_object_adjust_struct_ops_autoload() local
1163 static int bpf_map__init_kern_struct_ops(struct bpf_map *map) in bpf_map__init_kern_struct_ops()
1364 struct bpf_map *map; in bpf_object__init_kern_struct_ops_maps() local
1394 struct bpf_map *map; in init_struct_ops_maps() local
1787 struct bpf_map *map; in bpf_object__add_map() local
1828 static size_t bpf_map_mmap_sz(const struct bpf_map *map) in bpf_map_mmap_sz()
1842 static int bpf_map_mmap_resize(struct bpf_map *map, size_t old_sz, size_t new_sz) in bpf_map_mmap_resize()
1928 static bool map_is_mmapable(struct bpf_object *obj, struct bpf_map *map) in map_is_mmapable()
1959 struct bpf_map *map; in bpf_object__init_internal_map() local
[all …]
/linux/drivers/gpu/drm/xe/tests/
H A Dxe_bo.c377 struct list_head link; member
385 struct xe_bo_link *link) in shrink_test_fill_random()
387 struct iosys_map map; in shrink_test_fill_random() local
408 struct xe_bo_link *link) in shrink_test_verify()
410 struct iosys_map map; in shrink_test_verify() local
450 struct xe_bo_link *link, *next; in shrink_test_run_device() local
/linux/drivers/base/regmap/
H A Dregmap-debugfs.c19 struct regmap *map; member
20 struct list_head link; member
38 struct regmap *map = file->private_data; in regmap_name_read_file() local
67 static void regmap_debugfs_free_dump_cache(struct regmap *map) in regmap_debugfs_free_dump_cache()
80 static bool regmap_printable(struct regmap *map, unsigned int reg) in regmap_printable()
95 static unsigned int regmap_debugfs_get_dump_start(struct regmap *map, in regmap_debugfs_get_dump_start()
181 static inline void regmap_calc_tot_len(struct regmap *map, in regmap_calc_tot_len()
193 static int regmap_next_readable_reg(struct regmap *map, int reg) in regmap_next_readable_reg()
215 static ssize_t regmap_read_debugfs(struct regmap *map, unsigned int from, in regmap_read_debugfs()
287 struct regmap *map = file->private_data; in regmap_map_read_file() local
[all …]
/linux/drivers/ata/
H A Data_piix.c144 const int map[][4]; member
148 const int *map; member
538 static int piix_pata_prereset(struct ata_link *link, unsigned long deadline) in piix_pata_prereset()
777 static void piix_sidpr_sel(struct ata_link *link, unsigned int reg) in piix_sidpr_sel()
786 static int piix_sidpr_scr_read(struct ata_link *link, in piix_sidpr_scr_read()
799 static int piix_sidpr_scr_write(struct ata_link *link, in piix_sidpr_scr_write()
812 static int piix_sidpr_set_lpm(struct ata_link *link, enum ata_lpm_policy policy, in piix_sidpr_set_lpm()
1361 const int *map; in piix_init_sata_map() local
/linux/kernel/trace/
H A Dbpf_trace.c537 get_map_perf_counter(struct bpf_map *map, u64 flags, in get_map_perf_counter()
559 BPF_CALL_2(bpf_perf_event_read, struct bpf_map *, map, u64, flags) in BPF_CALL_2() argument
582 BPF_CALL_4(bpf_perf_event_read_value, struct bpf_map *, map, u64, flags, in BPF_CALL_4() argument
615 __bpf_perf_event_output(struct pt_regs *regs, struct bpf_map *map, in __bpf_perf_event_output()
657 BPF_CALL_5(bpf_perf_event_output, struct pt_regs *, regs, struct bpf_map *, map, in BPF_CALL_5() argument
713 u64 bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size, in bpf_event_output()
1364 BPF_CALL_5(bpf_perf_event_output_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_5() argument
1388 BPF_CALL_3(bpf_get_stackid_tp, void *, tp_buff, struct bpf_map *, map, in BPF_CALL_3() argument
1587 struct bpf_map *, map, u64, flags, void *, data, u64, size) in BPF_CALL_5() argument
1618 struct bpf_map *, map, u64, flags) in BPF_CALL_3() argument
[all …]
/linux/drivers/gpu/drm/msm/dp/
H A Ddp_link.c52 struct msm_dp_link_info *link) in msm_dp_aux_link_power_up()
80 struct msm_dp_link_info *link) in msm_dp_aux_link_power_down()
102 static int msm_dp_link_get_period(struct msm_dp_link_private *link, int const addr) in msm_dp_link_get_period()
128 static int msm_dp_link_parse_audio_channel_period(struct msm_dp_link_private *link) in msm_dp_link_parse_audio_channel_period()
193 static int msm_dp_link_parse_audio_pattern_type(struct msm_dp_link_private *link) in msm_dp_link_parse_audio_pattern_type()
220 static int msm_dp_link_parse_audio_mode(struct msm_dp_link_private *link) in msm_dp_link_parse_audio_mode()
263 static int msm_dp_link_parse_audio_pattern_params(struct msm_dp_link_private *link) in msm_dp_link_parse_audio_pattern_params()
313 static int msm_dp_link_parse_timing_params1(struct msm_dp_link_private *link, in msm_dp_link_parse_timing_params1()
334 static int msm_dp_link_parse_timing_params2(struct msm_dp_link_private *link, in msm_dp_link_parse_timing_params2()
357 static int msm_dp_link_parse_timing_params3(struct msm_dp_link_private *link, in msm_dp_link_parse_timing_params3()
[all …]
/linux/tools/testing/selftests/sched_ext/
H A Dpeek_dsq.c52 static int print_observed_pids(struct bpf_map *map, int max_samples, const char *dsq_name) in print_observed_pids()
87 struct bpf_link *link = in run() local
/linux/drivers/net/ethernet/fujitsu/
H A Dfmvj18x_cs.c232 static int fmvj18x_probe(struct pcmcia_device *link) in fmvj18x_probe()
265 static void fmvj18x_detach(struct pcmcia_device *link) in fmvj18x_detach()
280 static int mfc_try_io_port(struct pcmcia_device *link) in mfc_try_io_port()
300 static int ungermann_try_io_port(struct pcmcia_device *link) in ungermann_try_io_port()
326 static int fmvj18x_config(struct pcmcia_device *link) in fmvj18x_config()
537 static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id) in fmvj18x_get_hwinfo()
586 static int fmvj18x_setup_mfc(struct pcmcia_device *link) in fmvj18x_setup_mfc()
629 static void fmvj18x_release(struct pcmcia_device *link) in fmvj18x_release()
648 static int fmvj18x_suspend(struct pcmcia_device *link) in fmvj18x_suspend()
658 static int fmvj18x_resume(struct pcmcia_device *link) in fmvj18x_resume()
[all …]
/linux/include/linux/
H A Dbpf.h507 static inline void check_and_init_map_value(struct bpf_map *map, void *dst) in check_and_init_map_value()
554 static inline void copy_map_value(struct bpf_map *map, void *dst, void *src) in copy_map_value()
559 static inline void copy_map_value_long(struct bpf_map *map, void *dst, void *src) in copy_map_value_long()
603 static inline void zero_map_value(struct bpf_map *map, void *dst) in zero_map_value()
635 struct bpf_map map; member
642 static inline struct bpf_offloaded_map *map_to_offmap(struct bpf_map *map) in map_to_offmap()
647 static inline bool bpf_map_offload_neutral(const struct bpf_map *map) in bpf_map_offload_neutral()
652 static inline bool bpf_map_support_seq_show(const struct bpf_map *map) in bpf_map_support_seq_show()
666 static inline bool bpf_map_has_internal_structs(struct bpf_map *map) in bpf_map_has_internal_structs()
1521 static inline int bpf_trampoline_link_prog(struct bpf_tramp_link *link, in bpf_trampoline_link_prog()
[all …]
/linux/drivers/net/ethernet/3com/
H A D3c589_cs.c194 static int tc589_probe(struct pcmcia_device *link) in tc589_probe()
233 static void tc589_detach(struct pcmcia_device *link) in tc589_detach()
246 static int tc589_config(struct pcmcia_device *link) in tc589_config()
343 static void tc589_release(struct pcmcia_device *link) in tc589_release()
348 static int tc589_suspend(struct pcmcia_device *link) in tc589_suspend()
358 static int tc589_resume(struct pcmcia_device *link) in tc589_resume()
501 static int el3_config(struct net_device *dev, struct ifmap *map) in el3_config()
518 struct pcmcia_device *link = lp->p_dev; in el3_open() local
777 struct pcmcia_device *link = lp->p_dev; in el3_get_stats() local
915 struct pcmcia_device *link = lp->p_dev; in el3_close() local
/linux/sound/soc/
H A Dsoc-topology.c186 struct snd_soc_tplg_channel *chan, int map) in tplg_chan_get_reg() argument
199 struct snd_soc_tplg_channel *chan, int map) in tplg_chan_get_shift() argument
293 struct snd_soc_dai_link *link, struct snd_soc_tplg_link_config *cfg) in soc_tplg_dai_link_load() argument
422 struct snd_soc_dai_link *link = in soc_tplg_remove_link() local
1438 set_link_flags(struct snd_soc_dai_link * link,unsigned int flag_mask,unsigned int flags) set_link_flags() argument
1465 struct snd_soc_dai_link *link; soc_tplg_fe_link_create() local
1621 set_link_hw_format(struct snd_soc_dai_link * link,struct snd_soc_tplg_link_config * cfg) set_link_hw_format() argument
1702 struct snd_soc_dai_link *link = rtd->dai_link; snd_soc_find_dai_link() local
1724 struct snd_soc_dai_link *link; soc_tplg_link_config() local
1785 struct snd_soc_tplg_link_config *link; soc_tplg_link_elems_load() local
[all...]
/linux/drivers/net/ethernet/8390/
H A Dpcnet_cs.c235 static int pcnet_probe(struct pcmcia_device *link) in pcnet_probe()
256 static void pcnet_detach(struct pcmcia_device *link) in pcnet_detach()
276 static struct hw_info *get_hwinfo(struct pcmcia_device *link) in get_hwinfo()
324 static struct hw_info *get_prom(struct pcmcia_device *link) in get_prom()
380 static struct hw_info *get_dl10019(struct pcmcia_device *link) in get_dl10019()
404 static struct hw_info *get_ax88190(struct pcmcia_device *link) in get_ax88190()
437 static struct hw_info *get_hwired(struct pcmcia_device *link) in get_hwired()
455 static int try_io_port(struct pcmcia_device *link) in try_io_port()
504 static struct hw_info *pcnet_try_config(struct pcmcia_device *link, in pcnet_try_config()
565 static int pcnet_config(struct pcmcia_device *link) in pcnet_config()
[all …]
/linux/tools/testing/selftests/hid/
H A Dhid_bpf.c91 struct bpf_map *map; in load_programs() local
123 struct bpf_map *map; in load_programs() local
251 struct bpf_link *link; in TEST_F() local
268 struct bpf_link *link; in TEST_F() local
/linux/net/mac80211/
H A Dmlme.c1235 static int ieee80211_config_bw(struct ieee80211_link_data *link, in ieee80211_config_bw()
1725 struct ieee80211_link_data *link, in ieee80211_add_link_elems()
2146 struct ieee80211_link_data *link; in ieee80211_send_assoc() local
2428 struct ieee80211_link_data *link = in ieee80211_csa_switch_work() local
2557 static void ieee80211_chswitch_post_beacon(struct ieee80211_link_data *link) in ieee80211_chswitch_post_beacon()
2602 struct ieee80211_link_data *link = in ieee80211_chswitch_done() local
2619 ieee80211_sta_abort_chanswitch(struct ieee80211_link_data *link) in ieee80211_sta_abort_chanswitch()
2641 struct ieee80211_link_data *link; member
2652 struct ieee80211_link_data *link = data->link; in ieee80211_sta_csa_rnr_iter() local
2694 ieee80211_sta_other_link_csa_disappeared(struct ieee80211_link_data *link, in ieee80211_sta_other_link_csa_disappeared()
[all …]

123