Lines Matching full:tl
63 struct nfp_dump_tl_hdr tl; member
69 struct nfp_dump_tl_hdr tl; member
75 struct nfp_dump_tl_hdr tl; member
83 struct nfp_dump_tl_hdr tl; member
92 struct nfp_dump_tl_hdr tl; member
97 struct nfp_dump_tl_hdr tl; member
117 typedef int (*nfp_tlv_visit)(struct nfp_pf *pf, struct nfp_dump_tl *tl,
125 struct nfp_dump_tl *tl; in nfp_traverse_tlvs() local
130 while (remaining >= sizeof(*tl)) { in nfp_traverse_tlvs()
131 tl = p; in nfp_traverse_tlvs()
132 if (!tl->type && !tl->length) in nfp_traverse_tlvs()
135 if (be32_to_cpu(tl->length) > remaining - sizeof(*tl)) in nfp_traverse_tlvs()
138 total_tlv_size = sizeof(*tl) + be32_to_cpu(tl->length); in nfp_traverse_tlvs()
146 err = tlv_visit(pf, tl, param); in nfp_traverse_tlvs()
221 u32 required_read_sz = sizeof(*spec_csr) - sizeof(spec_csr->tl); in nfp_csr_spec_valid()
222 u32 available_sz = be32_to_cpu(spec_csr->tl.length); in nfp_csr_spec_valid()
256 nfp_add_tlv_size(struct nfp_pf *pf, struct nfp_dump_tl *tl, void *param) in nfp_add_tlv_size() argument
262 switch (be32_to_cpu(tl->type)) { in nfp_add_tlv_size()
269 spec_csr = (struct nfp_dumpspec_csr *)tl; in nfp_add_tlv_size()
271 *size += nfp_dump_error_tlv_size(tl); in nfp_add_tlv_size()
277 spec_csr = (struct nfp_dumpspec_csr *)tl; in nfp_add_tlv_size()
279 *size += nfp_dump_error_tlv_size(tl); in nfp_add_tlv_size()
286 *size += nfp_calc_rtsym_dump_sz(pf, tl); in nfp_add_tlv_size()
293 *size += nfp_calc_hwinfo_field_sz(pf, tl); in nfp_add_tlv_size()
296 *size += nfp_dump_error_tlv_size(tl); in nfp_add_tlv_size()
336 struct nfp_dump_tl *tl = dump->p; in nfp_add_tlv() local
344 tl->type = cpu_to_be32(type); in nfp_add_tlv()
345 tl->length = cpu_to_be32(total_tlv_sz - sizeof(*tl)); in nfp_add_tlv()
458 container_of(&spec_csr->tl, struct nfp_dump_tl, hdr); in nfp_dump_csr_range()
563 container_of(&spec_csr->tl, struct nfp_dump_tl, hdr); in nfp_dump_indirect_csr_range()
610 container_of(&spec->tl, struct nfp_dump_tl, hdr); in nfp_dump_single_rtsym()
665 nfp_dump_for_tlv(struct nfp_pf *pf, struct nfp_dump_tl *tl, void *param) in nfp_dump_for_tlv() argument
672 switch (be32_to_cpu(tl->type)) { in nfp_dump_for_tlv()
681 spec_csr = (struct nfp_dumpspec_csr *)tl; in nfp_dump_for_tlv()
687 spec_csr = (struct nfp_dumpspec_csr *)tl; in nfp_dump_for_tlv()
693 spec_rtsym = (struct nfp_dumpspec_rtsym *)tl; in nfp_dump_for_tlv()
699 err = nfp_dump_hwinfo(pf, tl, dump); in nfp_dump_for_tlv()
704 err = nfp_dump_hwinfo_field(pf, tl, dump); in nfp_dump_for_tlv()
709 err = nfp_dump_error_tlv(tl, -EOPNOTSUPP, dump); in nfp_dump_for_tlv()