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()
243 struct nfp_nsp *nsp; in nfp_devlink_info_get() local
269 nsp = nfp_nsp_open(pf->cpp); in nfp_devlink_info_get()
270 if (IS_ERR(nsp)) { in nfp_devlink_info_get()
271 NL_SET_ERR_MSG_MOD(extack, "can't access NSP"); in nfp_devlink_info_get()
272 return PTR_ERR(nsp); in nfp_devlink_info_get()
275 if (nfp_nsp_has_versions(nsp)) { in nfp_devlink_info_get()
282 err = nfp_nsp_versions(nsp, buf, NFP_NSP_VERSION_BUFSZ); in nfp_devlink_info_get()
299 nfp_nsp_close(nsp); in nfp_devlink_info_get()
306 nfp_nsp_close(nsp); in nfp_devlink_info_get()