Home
last modified time | relevance | path

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

123

/linux-6.1.9/tools/testing/selftests/bpf/prog_tests/
Dbpf_iter.c83 union bpf_iter_link_info linfo; in do_read_map_iter_fd() local
88 memset(&linfo, 0, sizeof(linfo)); in do_read_map_iter_fd()
89 linfo.map.map_fd = bpf_map__fd(map); in do_read_map_iter_fd()
90 opts.link_info = &linfo; in do_read_map_iter_fd()
91 opts.link_info_len = sizeof(linfo); in do_read_map_iter_fd()
186 union bpf_iter_link_info linfo; in check_bpf_link_info() local
192 memset(&linfo, 0, sizeof(linfo)); in check_bpf_link_info()
193 linfo.task.tid = getpid(); in check_bpf_link_info()
194 opts.link_info = &linfo; in check_bpf_link_info()
195 opts.link_info_len = sizeof(linfo); in check_bpf_link_info()
[all …]
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 …]
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()
Dsockmap_basic.c189 union bpf_iter_link_info linfo = {}; in test_sockmap_copy() local
230 linfo.map.map_fd = src_fd; in test_sockmap_copy()
231 opts.link_info = &linfo; in test_sockmap_copy()
232 opts.link_info_len = sizeof(linfo); in test_sockmap_copy()
/linux-6.1.9/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.1.9/tools/bpf/bpftool/
Diter.c14 union bpf_iter_link_info linfo; in do_pin() local
41 memset(&linfo, 0, sizeof(linfo)); in do_pin()
42 linfo.map.map_fd = map_fd; in do_pin()
43 iter_opts.link_info = &linfo; in do_pin()
44 iter_opts.link_info_len = sizeof(linfo); in do_pin()
Djit_disasm.c107 const struct bpf_line_info *linfo = NULL; in disasm_print_insn() local
169 linfo = bpf_prog_linfo__lfind_addr_func(prog_linfo, in disasm_print_insn()
173 if (linfo) in disasm_print_insn()
180 if (linfo) in disasm_print_insn()
181 btf_dump_linfo_json(btf, linfo, linum); in disasm_print_insn()
185 if (linfo) in disasm_print_insn()
186 btf_dump_linfo_plain(btf, linfo, "; ", in disasm_print_insn()
Dxlated_dumper.c255 const struct bpf_line_info *linfo; in dump_xlated_json() local
257 linfo = bpf_prog_linfo__lfind(prog_linfo, i, nr_skip); in dump_xlated_json()
258 if (linfo) { in dump_xlated_json()
259 btf_dump_linfo_json(btf, linfo, linum); in dump_xlated_json()
334 const struct bpf_line_info *linfo; in dump_xlated_plain() local
336 linfo = bpf_prog_linfo__lfind(prog_linfo, i, nr_skip); in dump_xlated_plain()
337 if (linfo) { in dump_xlated_plain()
338 btf_dump_linfo_plain(btf, linfo, "; ", in dump_xlated_plain()
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 …]
Dmain.h228 const struct bpf_line_info *linfo,
231 const struct bpf_line_info *linfo, bool linum);
/linux-6.1.9/sound/soc/intel/skylake/
Dskl-sst-utils.c383 int skl_prepare_lib_load(struct skl_dev *skl, struct skl_lib_info *linfo, in skl_prepare_lib_load() argument
390 if (linfo->fw == NULL) { in skl_prepare_lib_load()
391 ret = request_firmware(&linfo->fw, linfo->name, in skl_prepare_lib_load()
395 linfo->name, ret); in skl_prepare_lib_load()
401 ret = snd_skl_parse_uuids(dsp, linfo->fw, hdr_offset, index); in skl_prepare_lib_load()
406 stripped_fw->data = linfo->fw->data; in skl_prepare_lib_load()
407 stripped_fw->size = linfo->fw->size; in skl_prepare_lib_load()
413 void skl_release_library(struct skl_lib_info *linfo, int lib_count) in skl_release_library() argument
419 if (linfo[i].fw) { in skl_release_library()
420 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.1.9/drivers/net/ethernet/cavium/liquidio/
Dlio_vf_main.c268 struct oct_link_info *linfo = &lio->linfo; in print_link_info() local
270 if (linfo->link.s.link_up) { in print_link_info()
272 linfo->link.s.speed, in print_link_info()
273 (linfo->link.s.duplex) ? "Full" : "Half"); in print_link_info()
294 dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu); in octnet_link_status_change()
342 int current_max_mtu = lio->linfo.link.s.mtu; in update_link_status()
345 if ((lio->intf_open) && (lio->linfo.link.u64 != ls->u64)) { in update_link_status()
346 lio->linfo.link.u64 = ls->u64; in update_link_status()
351 if (lio->linfo.link.s.link_up) { in update_link_status()
359 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.c471 iq = lio->linfo.txpciq[q % in check_txq_status()
496 struct oct_link_info *linfo = &lio->linfo; in print_link_info() local
498 if (linfo->link.s.link_up) { in print_link_info()
500 linfo->link.s.speed, in print_link_info()
501 (linfo->link.s.duplex) ? "Full" : "Half"); in print_link_info()
522 dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu); in octnet_link_status_change()
570 int changed = (lio->linfo.link.u64 != ls->u64); in update_link_status()
571 int current_max_mtu = lio->linfo.link.s.mtu; in update_link_status()
575 __func__, lio->linfo.link.u64, ls->u64); in update_link_status()
576 lio->linfo.link.u64 = ls->u64; in update_link_status()
[all …]
Dlio_core.c170 nctrl.iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_feature()
410 lio->linfo.macaddr_is_admin_asgnd = true; in octeon_pf_changed_vf_macaddr()
415 ether_addr_copy(((u8 *)&lio->linfo.hw_addr) + 2, mac); in octeon_pf_changed_vf_macaddr()
464 q_no = lio->linfo.rxpciq[q].s.q_no; in setup_rx_oom_poll_fn()
516 lio->linfo.link.s.link_up && in lio_update_txq_status()
832 q_no = lio->linfo.rxpciq[q].s.q_no; in liquidio_setup_io_queues()
879 lio->linfo.txpciq[q], num_tx_descs, in liquidio_setup_io_queues()
1230 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_change_mtu()
1409 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_vf_stats()
1484 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in lio_fetch_stats()
[all …]
/linux-6.1.9/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.1.9/net/smc/
Dsmc_diag.c150 struct smc_diag_lgrinfo linfo = { in __smc_diag_dump() local
156 memcpy(linfo.lnk[0].ibname, in __smc_diag_dump()
159 smc_gid_be16_convert(linfo.lnk[0].gid, link->gid); in __smc_diag_dump()
160 smc_gid_be16_convert(linfo.lnk[0].peer_gid, link->peer_gid); in __smc_diag_dump()
162 if (nla_put(skb, SMC_DIAG_LGRINFO, sizeof(linfo), &linfo) < 0) in __smc_diag_dump()
/linux-6.1.9/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.c102 union bpf_iter_link_info *linfo, in bpf_iter_attach_map() argument
110 if (!linfo->map.map_fd) in bpf_iter_attach_map()
113 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.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Dcgx.c206 struct cgx_link_user_info *linfo) in cgx_get_link_info() argument
213 *linfo = lmac->link_info; in cgx_get_link_info()
707 static int cgx_set_fec_stats_count(struct cgx_link_user_info *linfo) in cgx_set_fec_stats_count() argument
709 if (!linfo->fec) in cgx_set_fec_stats_count()
712 switch (linfo->lmac_type_id) { in cgx_set_fec_stats_count()
726 if (linfo->fec == OTX2_FEC_BASER) in cgx_set_fec_stats_count()
1217 struct cgx_link_user_info *linfo, in link_status_user_format() argument
1222 linfo->link_up = FIELD_GET(RESP_LINKSTAT_UP, lstat); in link_status_user_format()
1223 linfo->full_duplex = FIELD_GET(RESP_LINKSTAT_FDUPLEX, lstat); in link_status_user_format()
1224 linfo->speed = cgx_speed_mbps[FIELD_GET(RESP_LINKSTAT_SPEED, lstat)]; in link_status_user_format()
[all …]
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_ethtool.c234 if (pfvf->linfo.fec == OTX2_FEC_BASER) { in otx2_get_ethtool_stats()
946 return pfvf->linfo.link_up; in otx2_get_link()
1012 if (pfvf->linfo.fec < FEC_MAX_INDEX) in otx2_get_fecparam()
1013 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam()
1054 if (fec == pfvf->linfo.fec) in otx2_set_fecparam()
1071 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam()
1186 cmd->base.duplex = pfvf->linfo.full_duplex; in otx2_get_link_ksettings()
1187 cmd->base.speed = pfvf->linfo.speed; in otx2_get_link_ksettings()
1188 cmd->base.autoneg = pfvf->linfo.an; in otx2_get_link_ksettings()
/linux-6.1.9/drivers/scsi/aic7xxx/aicasm/
Daicasm_symbol.c116 if (symbol->info.linfo != NULL) in symbol_delete()
117 free(symbol->info.linfo); in symbol_delete()
520 if (cursym->info.linfo->exported == 0) in symtable_dump()
685 curnode->symbol->info.linfo->address); in symtable_dump()

123