Searched refs:spec_csr (Results 1 – 1 of 1) sorted by relevance
219 static bool nfp_csr_spec_valid(struct nfp_dumpspec_csr *spec_csr) in nfp_csr_spec_valid() argument221 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()228 reg_width = be32_to_cpu(spec_csr->register_width); in nfp_csr_spec_valid()258 struct nfp_dumpspec_csr *spec_csr; in nfp_add_tlv_size() local269 spec_csr = (struct nfp_dumpspec_csr *)tl; in nfp_add_tlv_size()270 if (!nfp_csr_spec_valid(spec_csr)) in nfp_add_tlv_size()274 ALIGN8(be32_to_cpu(spec_csr->cpp.dump_length)); in nfp_add_tlv_size()277 spec_csr = (struct nfp_dumpspec_csr *)tl; in nfp_add_tlv_size()278 if (!nfp_csr_spec_valid(spec_csr)) in nfp_add_tlv_size()[all …]