Lines Matching refs:cpp
15 struct nfp_cpp *cpp;
70 * @cpp: NFP CPP handle
86 int nfp_cpp_mutex_init(struct nfp_cpp *cpp,
90 u16 interface = nfp_cpp_interface(cpp);
97 err = nfp_cpp_writel(cpp, muw, address + 4, key);
101 err = nfp_cpp_writel(cpp, muw, address, nfp_mutex_locked(interface));
110 * @cpp: NFP CPP handle
123 struct nfp_cpp_mutex *nfp_cpp_mutex_alloc(struct nfp_cpp *cpp, int target,
127 u16 interface = nfp_cpp_interface(cpp);
136 err = nfp_cpp_readl(cpp, mur, address + 4, &tmp);
147 mutex->cpp = cpp;
190 nfp_info(mutex->cpp,
197 nfp_warn(mutex->cpp,
203 nfp_err(mutex->cpp, "Error: mutex wait timed out\n");
221 struct nfp_cpp *cpp = mutex->cpp;
226 interface = nfp_cpp_interface(cpp);
233 err = nfp_cpp_readl(mutex->cpp, mur, mutex->address + 4, &key);
240 err = nfp_cpp_readl(mutex->cpp, mur, mutex->address, &value);
247 err = nfp_cpp_writel(cpp, muw, mutex->address,
267 struct nfp_cpp *cpp = mutex->cpp;
279 err = nfp_cpp_readl(cpp, mur, mutex->address + 4, &key);
290 value = nfp_mutex_locked(nfp_cpp_interface(cpp));
304 err = nfp_cpp_readl(cpp, mus, mutex->address, &tmp);
319 err = nfp_cpp_writel(cpp, muw, mutex->address, value);
332 * @cpp: NFP CPP handle
341 int nfp_cpp_mutex_reclaim(struct nfp_cpp *cpp, int target,
346 u16 interface = nfp_cpp_interface(cpp);
355 err = nfp_cpp_readl(cpp, mur, address, &tmp);
363 err = nfp_cpp_writel(cpp, muw, address, nfp_mutex_unlocked(interface));