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()
140 struct nfp_nsp *nsp; in nfp_devlink_param_u8_set() local
149 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_param_u8_set()
150 if (IS_ERR(nsp)) { in nfp_devlink_param_u8_set()
151 err = PTR_ERR(nsp); in nfp_devlink_param_u8_set()
152 nfp_warn(pf->cpp, "can't access NSP: %d\n", err); in nfp_devlink_param_u8_set()
159 err = nfp_nsp_hwinfo_set(nsp, hwinfo, sizeof(hwinfo)); in nfp_devlink_param_u8_set()
166 nfp_nsp_close(nsp); in nfp_devlink_param_u8_set()
210 struct nfp_nsp *nsp; in nfp_devlink_supports_params() local
214 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_supports_params()
215 if (IS_ERR(nsp)) { in nfp_devlink_supports_params()
216 err = PTR_ERR(nsp); in nfp_devlink_supports_params()
217 dev_err(&pf->pdev->dev, "Failed to access the NSP: %d\n", err); in nfp_devlink_supports_params()
221 supported = nfp_nsp_has_hwinfo_lookup(nsp) && in nfp_devlink_supports_params()
222 nfp_nsp_has_hwinfo_set(nsp); in nfp_devlink_supports_params()
224 nfp_nsp_close(nsp); in nfp_devlink_supports_params()