Lines Matching full:nsp
88 struct nfp_nsp *nsp; in nfp_devlink_param_u8_get() local
98 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_param_u8_get()
99 if (IS_ERR(nsp)) { in nfp_devlink_param_u8_get()
100 err = PTR_ERR(nsp); in nfp_devlink_param_u8_get()
101 nfp_warn(pf->cpp, "can't access NSP: %d\n", err); in nfp_devlink_param_u8_get()
106 err = nfp_nsp_hwinfo_lookup_optional(nsp, hwinfo, sizeof(hwinfo), in nfp_devlink_param_u8_get()
129 nfp_nsp_close(nsp); in nfp_devlink_param_u8_get()
139 struct nfp_nsp *nsp; in nfp_devlink_param_u8_set() local
148 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_param_u8_set()
149 if (IS_ERR(nsp)) { in nfp_devlink_param_u8_set()
150 err = PTR_ERR(nsp); in nfp_devlink_param_u8_set()
151 nfp_warn(pf->cpp, "can't access NSP: %d\n", err); in nfp_devlink_param_u8_set()
158 err = nfp_nsp_hwinfo_set(nsp, hwinfo, sizeof(hwinfo)); in nfp_devlink_param_u8_set()
165 nfp_nsp_close(nsp); in nfp_devlink_param_u8_set()
209 struct nfp_nsp *nsp; in nfp_devlink_supports_params() local
213 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_supports_params()
214 if (IS_ERR(nsp)) { in nfp_devlink_supports_params()
215 err = PTR_ERR(nsp); in nfp_devlink_supports_params()
216 dev_err(&pf->pdev->dev, "Failed to access the NSP: %d\n", err); in nfp_devlink_supports_params()
220 supported = nfp_nsp_has_hwinfo_lookup(nsp) && in nfp_devlink_supports_params()
221 nfp_nsp_has_hwinfo_set(nsp); in nfp_devlink_supports_params()
223 nfp_nsp_close(nsp); in nfp_devlink_supports_params()