Home
last modified time | relevance | path

Searched refs:linfo (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dcgroup_iter.c54 union bpf_iter_link_info linfo; in read_from_cgroup_iter() local
61 memset(&linfo, 0, sizeof(linfo)); in read_from_cgroup_iter()
62 linfo.cgroup.cgroup_fd = cgroup_fd; in read_from_cgroup_iter()
63 linfo.cgroup.order = order; in read_from_cgroup_iter()
64 opts.link_info = &linfo; in read_from_cgroup_iter()
65 opts.link_info_len = sizeof(linfo); in read_from_cgroup_iter()
98 union bpf_iter_link_info linfo; in test_invalid_cgroup() local
101 memset(&linfo, 0, sizeof(linfo)); in test_invalid_cgroup()
102 linfo.cgroup.cgroup_fd = (__u32)-1; in test_invalid_cgroup()
103 opts.link_info = &linfo; in test_invalid_cgroup()
[all …]
Dbpf_iter.c84 union bpf_iter_link_info linfo; in do_read_map_iter_fd() local
89 memset(&linfo, 0, sizeof(linfo)); in do_read_map_iter_fd()
90 linfo.map.map_fd = bpf_map__fd(map); in do_read_map_iter_fd()
91 opts.link_info = &linfo; in do_read_map_iter_fd()
92 opts.link_info_len = sizeof(linfo); in do_read_map_iter_fd()
182 union bpf_iter_link_info linfo; in check_bpf_link_info() local
188 memset(&linfo, 0, sizeof(linfo)); in check_bpf_link_info()
189 linfo.task.tid = getpid(); in check_bpf_link_info()
190 opts.link_info = &linfo; in check_bpf_link_info()
191 opts.link_info_len = sizeof(linfo); in check_bpf_link_info()
[all …]
Dcgrp_local_storage.c158 union bpf_iter_link_info linfo; in test_cgroup_iter_sleepable() local
173 memset(&linfo, 0, sizeof(linfo)); in test_cgroup_iter_sleepable()
174 linfo.cgroup.cgroup_fd = cgroup_fd; in test_cgroup_iter_sleepable()
175 linfo.cgroup.order = BPF_CGROUP_ITER_SELF_ONLY; in test_cgroup_iter_sleepable()
176 opts.link_info = &linfo; in test_cgroup_iter_sleepable()
177 opts.link_info_len = sizeof(linfo); in test_cgroup_iter_sleepable()
Dcgroup_hierarchical_stats.c250 union bpf_iter_link_info linfo = {}; in setup_cgroup_iter() local
259 linfo.cgroup.cgroup_fd = cgroup_fd; in setup_cgroup_iter()
260 linfo.cgroup.order = BPF_CGROUP_ITER_SELF_ONLY; in setup_cgroup_iter()
261 opts.link_info = &linfo; in setup_cgroup_iter()
262 opts.link_info_len = sizeof(linfo); in setup_cgroup_iter()
/linux-6.6.21/tools/gpio/
Dlsgpio.c132 struct gpio_v2_line_info linfo; in list_device() local
134 memset(&linfo, 0, sizeof(linfo)); in list_device()
135 linfo.offset = i; in list_device()
137 ret = ioctl(fd, GPIO_V2_GET_LINEINFO_IOCTL, &linfo); in list_device()
143 fprintf(stdout, "\tline %2d:", linfo.offset); in list_device()
144 if (linfo.name[0]) in list_device()
145 fprintf(stdout, " \"%s\"", linfo.name); in list_device()
148 if (linfo.consumer[0]) in list_device()
149 fprintf(stdout, " \"%s\"", linfo.consumer); in list_device()
152 if (linfo.flags) { in list_device()
[all …]
/linux-6.6.21/tools/bpf/bpftool/
Diter.c17 union bpf_iter_link_info linfo; in do_pin() local
44 memset(&linfo, 0, sizeof(linfo)); in do_pin()
45 linfo.map.map_fd = map_fd; in do_pin()
46 iter_opts.link_info = &linfo; in do_pin()
47 iter_opts.link_info_len = sizeof(linfo); in do_pin()
Dxlated_dumper.c261 const struct bpf_line_info *linfo; in dump_xlated_json() local
263 linfo = bpf_prog_linfo__lfind(prog_linfo, i, nr_skip); in dump_xlated_json()
264 if (linfo) { in dump_xlated_json()
265 btf_dump_linfo_json(btf, linfo, linum); in dump_xlated_json()
340 const struct bpf_line_info *linfo; in dump_xlated_plain() local
342 linfo = bpf_prog_linfo__lfind(prog_linfo, i, nr_skip); in dump_xlated_plain()
343 if (linfo) { in dump_xlated_plain()
344 btf_dump_linfo_plain(btf, linfo, "; ", in dump_xlated_plain()
409 const struct bpf_line_info *linfo; in dump_xlated_for_graph() local
411 linfo = bpf_prog_linfo__lfind(prog_linfo, insn_off, 0); in dump_xlated_for_graph()
[all …]
Dbtf_dumper.c770 const struct bpf_line_info *linfo, in btf_dump_linfo_plain() argument
773 const char *line = btf__name_by_offset(btf, linfo->line_off); in btf_dump_linfo_plain()
783 const char *file = btf__name_by_offset(btf, linfo->file_name_off); in btf_dump_linfo_plain()
794 BPF_LINE_INFO_LINE_NUM(linfo->line_col), in btf_dump_linfo_plain()
795 BPF_LINE_INFO_LINE_COL(linfo->line_col)); in btf_dump_linfo_plain()
802 const struct bpf_line_info *linfo, bool linum) in btf_dump_linfo_json() argument
804 const char *line = btf__name_by_offset(btf, linfo->line_off); in btf_dump_linfo_json()
810 const char *file = btf__name_by_offset(btf, linfo->file_name_off); in btf_dump_linfo_json()
815 if (BPF_LINE_INFO_LINE_NUM(linfo->line_col)) in btf_dump_linfo_json()
817 BPF_LINE_INFO_LINE_NUM(linfo->line_col)); in btf_dump_linfo_json()
[all …]
Djit_disasm.c326 const struct bpf_line_info *linfo = NULL; in disasm_print_insn() local
341 linfo = bpf_prog_linfo__lfind_addr_func(prog_linfo, in disasm_print_insn()
345 if (linfo) in disasm_print_insn()
352 if (linfo) in disasm_print_insn()
353 btf_dump_linfo_json(btf, linfo, linum); in disasm_print_insn()
357 if (linfo) in disasm_print_insn()
358 btf_dump_linfo_plain(btf, linfo, "; ", in disasm_print_insn()
Dmain.h228 const struct bpf_line_info *linfo,
231 const struct bpf_line_info *linfo, bool linum);
233 const struct bpf_line_info *linfo, bool linum);
/linux-6.6.21/sound/soc/intel/skylake/
Dskl-sst-utils.c384 int skl_prepare_lib_load(struct skl_dev *skl, struct skl_lib_info *linfo, in skl_prepare_lib_load() argument
391 if (linfo->fw == NULL) { in skl_prepare_lib_load()
392 ret = request_firmware(&linfo->fw, linfo->name, in skl_prepare_lib_load()
396 linfo->name, ret); in skl_prepare_lib_load()
402 ret = snd_skl_parse_uuids(dsp, linfo->fw, hdr_offset, index); in skl_prepare_lib_load()
407 stripped_fw->data = linfo->fw->data; in skl_prepare_lib_load()
408 stripped_fw->size = linfo->fw->size; in skl_prepare_lib_load()
414 void skl_release_library(struct skl_lib_info *linfo, int lib_count) in skl_release_library() argument
420 if (linfo[i].fw) { in skl_release_library()
421 release_firmware(linfo[i].fw); in skl_release_library()
[all …]
Dskl-sst-dsp.h143 struct skl_lib_info *linfo, int lib_count);
251 int skl_prepare_lib_load(struct skl_dev *skl, struct skl_lib_info *linfo,
254 void skl_release_library(struct skl_lib_info *linfo, int lib_count);
/linux-6.6.21/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_main.c267 struct oct_link_info *linfo = &lio->linfo; in print_link_info() local
269 if (linfo->link.s.link_up) { in print_link_info()
271 linfo->link.s.speed, in print_link_info()
272 (linfo->link.s.duplex) ? "Full" : "Half"); in print_link_info()
293 dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu); in octnet_link_status_change()
341 int current_max_mtu = lio->linfo.link.s.mtu; in update_link_status()
344 if ((lio->intf_open) && (lio->linfo.link.u64 != ls->u64)) { in update_link_status()
345 lio->linfo.link.u64 = ls->u64; in update_link_status()
350 if (lio->linfo.link.s.link_up) { in update_link_status()
358 if (lio->linfo.link.s.mtu != current_max_mtu) { in update_link_status()
[all …]
Dlio_ethtool.c220 struct oct_link_info *linfo; in lio_get_link_ksettings() local
222 linfo = &lio->linfo; in lio_get_link_ksettings()
227 switch (linfo->link.s.phy_type) { in lio_get_link_ksettings()
243 if (linfo->link.s.if_mode == INTERFACE_MODE_XAUI || in lio_get_link_ksettings()
244 linfo->link.s.if_mode == INTERFACE_MODE_RXAUI || in lio_get_link_ksettings()
245 linfo->link.s.if_mode == INTERFACE_MODE_XLAUI || in lio_get_link_ksettings()
246 linfo->link.s.if_mode == INTERFACE_MODE_XFI) { in lio_get_link_ksettings()
251 linfo->link.s.if_mode); in lio_get_link_ksettings()
330 if (linfo->link.s.speed == 10000) { in lio_get_link_ksettings()
352 if (linfo->link.s.speed == 25000) { in lio_get_link_ksettings()
[all …]
Dlio_main.c470 iq = lio->linfo.txpciq[q % in check_txq_status()
495 struct oct_link_info *linfo = &lio->linfo; in print_link_info() local
497 if (linfo->link.s.link_up) { in print_link_info()
499 linfo->link.s.speed, in print_link_info()
500 (linfo->link.s.duplex) ? "Full" : "Half"); in print_link_info()
521 dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu); in octnet_link_status_change()
569 int changed = (lio->linfo.link.u64 != ls->u64); in update_link_status()
570 int current_max_mtu = lio->linfo.link.s.mtu; in update_link_status()
574 __func__, lio->linfo.link.u64, ls->u64); in update_link_status()
575 lio->linfo.link.u64 = ls->u64; in update_link_status()
[all …]
Dlio_core.c175 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature()
417 lio->linfo.macaddr_is_admin_asgnd = true; in octeon_pf_changed_vf_macaddr()
422 ether_addr_copy(((u8 *)&lio->linfo.hw_addr) + 2, mac); in octeon_pf_changed_vf_macaddr()
471 q_no = lio->linfo.rxpciq[q].s.q_no; in setup_rx_oom_poll_fn()
525 lio->linfo.link.s.link_up && in lio_update_txq_status()
841 q_no = lio->linfo.rxpciq[q].s.q_no; in liquidio_setup_io_queues()
888 lio->linfo.txpciq[q], num_tx_descs, in liquidio_setup_io_queues()
1241 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_change_mtu()
1422 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_vf_stats()
1497 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_stats()
[all …]
/linux-6.6.21/Documentation/bpf/
Dbpf_iterators.rst305 union bpf_iter_link_info linfo;
306 memset(&linfo, 0, sizeof(linfo));
307 linfo.task.pid = getpid();
308 opts.link_info = &linfo;
309 opts.link_info_len = sizeof(linfo);
311 ``linfo.task.pid``, if it is non-zero, directs the kernel to create an iterator
314 ``linfo.task.pid`` is zero, the iterator will visit every opened file of every
315 process. Similarly, ``linfo.task.tid`` directs the kernel to create an iterator
317 ``linfo.task.tid`` is different from ``linfo.task.pid`` only if the thread has a
379 union bpf_iter_link_info linfo;
[all …]
/linux-6.6.21/tools/lib/bpf/
Dbpf_prog_linfo.c222 const struct bpf_line_info *linfo; in bpf_prog_linfo__lfind() local
232 linfo = raw_linfo; in bpf_prog_linfo__lfind()
233 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
238 if (insn_off < linfo->insn_off) in bpf_prog_linfo__lfind()
242 linfo = raw_linfo; in bpf_prog_linfo__lfind()
/linux-6.6.21/net/smc/
Dsmc_diag.c150 struct smc_diag_lgrinfo linfo = { in __smc_diag_dump() local
156 memcpy(linfo.lnk[0].ibname, link->smcibdev->ibdev->name, in __smc_diag_dump()
158 smc_gid_be16_convert(linfo.lnk[0].gid, link->gid); in __smc_diag_dump()
159 smc_gid_be16_convert(linfo.lnk[0].peer_gid, link->peer_gid); in __smc_diag_dump()
161 if (nla_put(skb, SMC_DIAG_LGRINFO, sizeof(linfo), &linfo) < 0) in __smc_diag_dump()
/linux-6.6.21/kernel/bpf/
Dtask_iter.c227 union bpf_iter_link_info *linfo, in bpf_iter_attach_task() argument
234 if ((!!linfo->task.tid + !!linfo->task.pid + !!linfo->task.pid_fd) > 1) in bpf_iter_attach_task()
238 if (linfo->task.tid != 0) { in bpf_iter_attach_task()
240 aux->task.pid = linfo->task.tid; in bpf_iter_attach_task()
242 if (linfo->task.pid != 0) { in bpf_iter_attach_task()
244 aux->task.pid = linfo->task.pid; in bpf_iter_attach_task()
246 if (linfo->task.pid_fd != 0) { in bpf_iter_attach_task()
249 pid = pidfd_get_pid(linfo->task.pid_fd, &flags); in bpf_iter_attach_task()
Dcgroup_iter.c195 union bpf_iter_link_info *linfo, in bpf_iter_attach_cgroup() argument
198 int fd = linfo->cgroup.cgroup_fd; in bpf_iter_attach_cgroup()
199 u64 id = linfo->cgroup.cgroup_id; in bpf_iter_attach_cgroup()
200 int order = linfo->cgroup.order; in bpf_iter_attach_cgroup()
Dmap_iter.c101 union bpf_iter_link_info *linfo, in bpf_iter_attach_map() argument
109 if (!linfo->map.map_fd) in bpf_iter_attach_map()
112 map = bpf_map_get_with_uref(linfo->map.map_fd); in bpf_iter_attach_map()
Dbpf_iter.c512 union bpf_iter_link_info linfo; in bpf_iter_link_attach() local
521 memset(&linfo, 0, sizeof(union bpf_iter_link_info)); in bpf_iter_link_attach()
529 err = bpf_check_uarg_tail_zero(ulinfo, sizeof(linfo), in bpf_iter_link_attach()
533 linfo_len = min_t(u32, linfo_len, sizeof(linfo)); in bpf_iter_link_attach()
534 if (copy_from_bpfptr(&linfo, ulinfo, linfo_len)) in bpf_iter_link_attach()
568 err = tinfo->reg_info->attach_target(prog, &linfo, &link->aux); in bpf_iter_link_attach()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/af/
Dcgx.c216 struct cgx_link_user_info *linfo) in cgx_get_link_info() argument
223 *linfo = lmac->link_info; in cgx_get_link_info()
704 static int cgx_set_fec_stats_count(struct cgx_link_user_info *linfo) in cgx_set_fec_stats_count() argument
706 if (!linfo->fec) in cgx_set_fec_stats_count()
709 switch (linfo->lmac_type_id) { in cgx_set_fec_stats_count()
723 if (linfo->fec == OTX2_FEC_BASER) in cgx_set_fec_stats_count()
1218 struct cgx_link_user_info *linfo, in link_status_user_format() argument
1223 linfo->link_up = FIELD_GET(RESP_LINKSTAT_UP, lstat); in link_status_user_format()
1224 linfo->full_duplex = FIELD_GET(RESP_LINKSTAT_FDUPLEX, lstat); in link_status_user_format()
1225 linfo->speed = cgx_speed_mbps[FIELD_GET(RESP_LINKSTAT_SPEED, lstat)]; in link_status_user_format()
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c240 if (pfvf->linfo.fec == OTX2_FEC_BASER) { in otx2_get_ethtool_stats()
961 return pfvf->linfo.link_up; in otx2_get_link()
1027 if (pfvf->linfo.fec < FEC_MAX_INDEX) in otx2_get_fecparam()
1028 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam()
1069 if (fec == pfvf->linfo.fec) in otx2_set_fecparam()
1086 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam()
1201 cmd->base.duplex = pfvf->linfo.full_duplex; in otx2_get_link_ksettings()
1202 cmd->base.speed = pfvf->linfo.speed; in otx2_get_link_ksettings()
1203 cmd->base.autoneg = pfvf->linfo.an; in otx2_get_link_ksettings()
1308 if (pfvf->linfo.fec == OTX2_FEC_BASER) { in otx2_get_fec_stats()

123