Lines Matching refs:caps
12 static void nfp_net_tlv_caps_reset(struct nfp_net_tlv_caps *caps) in nfp_net_tlv_caps_reset() argument
14 memset(caps, 0, sizeof(*caps)); in nfp_net_tlv_caps_reset()
15 caps->me_freq_mhz = 1200; in nfp_net_tlv_caps_reset()
16 caps->mbox_off = NFP_NET_CFG_MBOX_BASE; in nfp_net_tlv_caps_reset()
17 caps->mbox_len = NFP_NET_CFG_MBOX_VAL_MAX_SZ; in nfp_net_tlv_caps_reset()
21 nfp_net_tls_parse_crypto_ops(struct device *dev, struct nfp_net_tlv_caps *caps, in nfp_net_tls_parse_crypto_ops() argument
27 if (caps->tls_resync_ss && !rx_stream_scan) in nfp_net_tls_parse_crypto_ops()
37 caps->crypto_ops = readl(data); in nfp_net_tls_parse_crypto_ops()
38 caps->crypto_enable_off = data - ctrl_mem + 16; in nfp_net_tls_parse_crypto_ops()
39 caps->tls_resync_ss = rx_stream_scan; in nfp_net_tls_parse_crypto_ops()
45 struct nfp_net_tlv_caps *caps) in nfp_net_tlv_caps_parse() argument
51 nfp_net_tlv_caps_reset(caps); in nfp_net_tlv_caps_parse()
99 caps->me_freq_mhz = readl(data); in nfp_net_tlv_caps_parse()
103 caps->mbox_off = 0; in nfp_net_tlv_caps_parse()
104 caps->mbox_len = 0; in nfp_net_tlv_caps_parse()
106 caps->mbox_off = data - ctrl_mem; in nfp_net_tlv_caps_parse()
107 caps->mbox_len = length; in nfp_net_tlv_caps_parse()
124 caps->repr_cap = readl(data); in nfp_net_tlv_caps_parse()
128 caps->mbox_cmsg_types = readl(data); in nfp_net_tlv_caps_parse()
131 if (!nfp_net_tls_parse_crypto_ops(dev, caps, ctrl_mem, in nfp_net_tlv_caps_parse()
142 caps->vnic_stats_off = data - ctrl_mem; in nfp_net_tlv_caps_parse()
143 caps->vnic_stats_cnt = length / 10; in nfp_net_tlv_caps_parse()
146 if (!nfp_net_tls_parse_crypto_ops(dev, caps, ctrl_mem, in nfp_net_tlv_caps_parse()