Lines Matching full:nsp
41 struct nfp_nsp *nsp; in nfp_devlink_set_lanes() local
44 nsp = nfp_eth_config_start(pf->cpp, idx); in nfp_devlink_set_lanes()
45 if (IS_ERR(nsp)) in nfp_devlink_set_lanes()
46 return PTR_ERR(nsp); in nfp_devlink_set_lanes()
48 ret = __nfp_eth_set_split(nsp, lanes); in nfp_devlink_set_lanes()
50 nfp_eth_config_cleanup_end(nsp); in nfp_devlink_set_lanes()
54 ret = nfp_eth_config_commit_end(nsp); in nfp_devlink_set_lanes()
238 struct nfp_nsp *nsp; in nfp_devlink_info_get() local
264 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_info_get()
265 if (IS_ERR(nsp)) { in nfp_devlink_info_get()
266 NL_SET_ERR_MSG_MOD(extack, "can't access NSP"); in nfp_devlink_info_get()
267 return PTR_ERR(nsp); in nfp_devlink_info_get()
270 if (nfp_nsp_has_versions(nsp)) { in nfp_devlink_info_get()
277 err = nfp_nsp_versions(nsp, buf, NFP_NSP_VERSION_BUFSZ); in nfp_devlink_info_get()
294 nfp_nsp_close(nsp); in nfp_devlink_info_get()
301 nfp_nsp_close(nsp); in nfp_devlink_info_get()