/linux/tools/gpio/ |
A D | lsgpio.c | 132 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/tools/testing/selftests/bpf/prog_tests/ |
A D | bpf_iter.c | 619 memset(&linfo, 0, sizeof(linfo)); in test_bpf_hash_map() 621 opts.link_info = &linfo; in test_bpf_hash_map() 735 memset(&linfo, 0, sizeof(linfo)); in test_bpf_percpu_hash_map() 737 opts.link_info = &linfo; in test_bpf_percpu_hash_map() 806 memset(&linfo, 0, sizeof(linfo)); in test_bpf_array_map() 808 opts.link_info = &linfo; in test_bpf_array_map() 902 memset(&linfo, 0, sizeof(linfo)); in test_bpf_percpu_array_map() 904 opts.link_info = &linfo; in test_bpf_percpu_array_map() 964 memset(&linfo, 0, sizeof(linfo)); in test_bpf_sk_storage_delete() 1083 memset(&linfo, 0, sizeof(linfo)); in test_bpf_sk_storage_map() [all …]
|
A D | sockmap_basic.c | 203 union bpf_iter_link_info linfo = {}; in test_sockmap_copy() local 244 linfo.map.map_fd = src_fd; in test_sockmap_copy() 245 opts.link_info = &linfo; in test_sockmap_copy() 246 opts.link_info_len = sizeof(linfo); in test_sockmap_copy()
|
/linux/tools/bpf/bpftool/ |
A D | iter.c | 14 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()
|
A D | jit_disasm.c | 83 const struct bpf_line_info *linfo = NULL; in disasm_print_insn() local 143 linfo = bpf_prog_linfo__lfind_addr_func(prog_linfo, in disasm_print_insn() 147 if (linfo) in disasm_print_insn() 154 if (linfo) in disasm_print_insn() 155 btf_dump_linfo_json(btf, linfo, linum); in disasm_print_insn() 159 if (linfo) in disasm_print_insn() 160 btf_dump_linfo_plain(btf, linfo, "; ", in disasm_print_insn()
|
A D | xlated_dumper.c | 254 const struct bpf_line_info *linfo; in dump_xlated_json() local 256 linfo = bpf_prog_linfo__lfind(prog_linfo, i, nr_skip); in dump_xlated_json() 257 if (linfo) { in dump_xlated_json() 258 btf_dump_linfo_json(btf, linfo, linum); in dump_xlated_json() 333 const struct bpf_line_info *linfo; in dump_xlated_plain() local 335 linfo = bpf_prog_linfo__lfind(prog_linfo, i, nr_skip); in dump_xlated_plain() 336 if (linfo) { in dump_xlated_plain() 337 btf_dump_linfo_plain(btf, linfo, "; ", in dump_xlated_plain()
|
A D | btf_dumper.c | 733 const struct bpf_line_info *linfo, in btf_dump_linfo_plain() argument 736 const char *line = btf__name_by_offset(btf, linfo->line_off); in btf_dump_linfo_plain() 746 const char *file = btf__name_by_offset(btf, linfo->file_name_off); in btf_dump_linfo_plain() 757 BPF_LINE_INFO_LINE_NUM(linfo->line_col), in btf_dump_linfo_plain() 758 BPF_LINE_INFO_LINE_COL(linfo->line_col)); in btf_dump_linfo_plain() 765 const struct bpf_line_info *linfo, bool linum) in btf_dump_linfo_json() argument 767 const char *line = btf__name_by_offset(btf, linfo->line_off); in btf_dump_linfo_json() 778 if (BPF_LINE_INFO_LINE_NUM(linfo->line_col)) in btf_dump_linfo_json() 780 BPF_LINE_INFO_LINE_NUM(linfo->line_col)); in btf_dump_linfo_json() 782 if (BPF_LINE_INFO_LINE_COL(linfo->line_col)) in btf_dump_linfo_json() [all …]
|
A D | main.h | 229 const struct bpf_line_info *linfo, 232 const struct bpf_line_info *linfo, bool linum);
|
/linux/drivers/net/ethernet/cavium/liquidio/ |
A D | lio_vf_main.c | 268 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() 346 lio->linfo.link.u64 = ls->u64; in update_link_status() 973 lio->linfo.link.s.link_up = 0; in liquidio_stop() 2076 lio->linfo.rxpciq[j].u64 = in setup_nic_devices() 2080 lio->linfo.txpciq[j].u64 = in setup_nic_devices() 2084 lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr; in setup_nic_devices() 2085 lio->linfo.gmxport = resp->cfg_info.linfo.gmxport; in setup_nic_devices() 2086 lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64; in setup_nic_devices() [all …]
|
A D | lio_ethtool.c | 220 struct oct_link_info *linfo; in lio_get_link_ksettings() local 222 linfo = &lio->linfo; in lio_get_link_ksettings() 251 linfo->link.s.if_mode); in lio_get_link_ksettings() 383 if (linfo->link.s.link_up) { in lio_get_link_ksettings() 404 linfo = &lio->linfo; in lio_set_link_ksettings() 837 linfo = &lio->linfo; in lio_set_phys_id() 1067 lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr; in lio_23xx_reconfigure_queue_count() 1068 lio->linfo.gmxport = resp->cfg_info.linfo.gmxport; in lio_23xx_reconfigure_queue_count() 1069 lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64; in lio_23xx_reconfigure_queue_count() 1074 lio->linfo.num_rxpciq); in lio_23xx_reconfigure_queue_count() [all …]
|
A D | lio_main.c | 476 iq = lio->linfo.txpciq[q % in check_txq_status() 501 struct oct_link_info *linfo = &lio->linfo; in print_link_info() local 503 if (linfo->link.s.link_up) { in print_link_info() 505 linfo->link.s.speed, in print_link_info() 581 lio->linfo.link.u64 = ls->u64; in update_link_status() 3544 lio->linfo.rxpciq[j].u64 = in setup_nic_devices() 3548 lio->linfo.txpciq[j].u64 = in setup_nic_devices() 3551 lio->linfo.hw_addr = resp->cfg_info.linfo.hw_addr; in setup_nic_devices() 3552 lio->linfo.gmxport = resp->cfg_info.linfo.gmxport; in setup_nic_devices() 3553 lio->linfo.link.u64 = resp->cfg_info.linfo.link.u64; in setup_nic_devices() [all …]
|
A D | lio_core.c | 170 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() 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() 1550 sc->iq_no = lio->linfo.txpciq[0].s.q_no; in liquidio_set_speed() [all …]
|
A D | octeon_network.h | 132 struct oct_link_info linfo; member 577 qno = lio->linfo.txpciq[i % lio->oct_dev->num_iqs].s.q_no; in wake_txqs() 596 if (lio->linfo.link.s.link_up) { in start_txqs()
|
/linux/sound/soc/intel/skylake/ |
A D | skl-sst-utils.c | 383 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 …]
|
A D | skl-sst-dsp.h | 143 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);
|
A D | bxt-sst.c | 46 bxt_load_library(struct sst_dsp *ctx, struct skl_lib_info *linfo, int lib_count) in bxt_load_library() argument 76 linfo[i].name, ret); in bxt_load_library() 85 skl_release_library(linfo, lib_count); in bxt_load_library()
|
/linux/tools/lib/bpf/ |
A D | bpf_prog_linfo.c | 222 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()
|
A D | bpf.c | 258 void *finfo = NULL, *linfo = NULL; in libbpf__bpf_prog_load() local 315 while (errno == E2BIG && (!finfo || !linfo)) { in libbpf__bpf_prog_load() 330 } else if (!linfo && attr.line_info_cnt && in libbpf__bpf_prog_load() 333 linfo = alloc_zero_tailing_info(load_attr->line_info, in libbpf__bpf_prog_load() 337 if (!linfo) { in libbpf__bpf_prog_load() 342 attr.line_info = ptr_to_u64(linfo); in libbpf__bpf_prog_load() 366 free(linfo); in libbpf__bpf_prog_load()
|
/linux/net/smc/ |
A D | smc_diag.c | 148 struct smc_diag_lgrinfo linfo = { in __smc_diag_dump() local 154 memcpy(linfo.lnk[0].ibname, in __smc_diag_dump() 157 smc_gid_be16_convert(linfo.lnk[0].gid, in __smc_diag_dump() 159 smc_gid_be16_convert(linfo.lnk[0].peer_gid, in __smc_diag_dump() 162 if (nla_put(skb, SMC_DIAG_LGRINFO, sizeof(linfo), &linfo) < 0) in __smc_diag_dump()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | cgx.c | 206 struct cgx_link_user_info *linfo) in cgx_get_link_info() argument 213 *linfo = lmac->link_info; in cgx_get_link_info() 636 if (!linfo->fec) in cgx_set_fec_stats_count() 639 switch (linfo->lmac_type_id) { in cgx_set_fec_stats_count() 653 if (linfo->fec == OTX2_FEC_BASER) in cgx_set_fec_stats_count() 1071 struct cgx_link_user_info *linfo, in link_status_user_format() argument 1079 linfo->an = FIELD_GET(RESP_LINKSTAT_AN, lstat); in link_status_user_format() 1080 linfo->fec = FIELD_GET(RESP_LINKSTAT_FEC, lstat); in link_status_user_format() 1090 struct cgx_link_user_info *linfo; in cgx_link_change_handler() local 1106 linfo = &lmac->link_info; in cgx_link_change_handler() [all …]
|
/linux/kernel/bpf/ |
A D | map_iter.c | 102 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()
|
A D | bpf_iter.c | 503 union bpf_iter_link_info linfo; in bpf_iter_link_attach() local 513 memset(&linfo, 0, sizeof(union bpf_iter_link_info)); in bpf_iter_link_attach() 521 err = bpf_check_uarg_tail_zero(ulinfo, sizeof(linfo), in bpf_iter_link_attach() 525 linfo_len = min_t(u32, linfo_len, sizeof(linfo)); in bpf_iter_link_attach() 526 if (copy_from_bpfptr(&linfo, ulinfo, linfo_len)) in bpf_iter_link_attach() 556 err = tinfo->reg_info->attach_target(prog, &linfo, &link->aux); in bpf_iter_link_attach()
|
A D | core.c | 198 const struct bpf_line_info *linfo; in bpf_prog_fill_jited_linfo() local 206 linfo = &prog->aux->linfo[linfo_idx]; in bpf_prog_fill_jited_linfo() 207 insn_start = linfo[0].insn_off; in bpf_prog_fill_jited_linfo() 215 for (i = 1; i < nr_linfo && linfo[i].insn_off < insn_end; i++) in bpf_prog_fill_jited_linfo() 220 insn_to_jit_off[linfo[i].insn_off - insn_start - 1]; in bpf_prog_fill_jited_linfo() 424 struct bpf_line_info *linfo; in bpf_adj_linfo() local 431 linfo = prog->aux->linfo; in bpf_adj_linfo() 434 if (off < linfo[i].insn_off) in bpf_adj_linfo() 439 linfo[i].insn_off += delta; in bpf_adj_linfo()
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ethtool.c | 234 if (pfvf->linfo.fec == OTX2_FEC_BASER) { in otx2_get_ethtool_stats() 880 return pfvf->linfo.link_up; in otx2_get_link() 944 if (pfvf->linfo.fec < FEC_MAX_INDEX) in otx2_get_fecparam() 945 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam() 986 if (fec == pfvf->linfo.fec) in otx2_set_fecparam() 1003 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam() 1118 cmd->base.duplex = pfvf->linfo.full_duplex; in otx2_get_link_ksettings() 1119 cmd->base.speed = pfvf->linfo.speed; in otx2_get_link_ksettings() 1120 cmd->base.autoneg = pfvf->linfo.an; in otx2_get_link_ksettings()
|
/linux/drivers/scsi/aic7xxx/aicasm/ |
A D | aicasm_symbol.c | 116 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()
|