Lines Matching refs:target

16 	int target;
51 nfp_cpp_mutex_validate(u16 interface, int *target, unsigned long long address)
62 if (*target != NFP_CPP_TARGET_MU)
71 * @target: NFP CPP target ID (ie NFP_CPP_TARGET_CLS or NFP_CPP_TARGET_MU)
72 * @address: Offset into the address space of the NFP CPP target ID
75 * The CPP target:address must point to a 64-bit aligned location, and
87 int target, unsigned long long address, u32 key)
89 const u32 muw = NFP_CPP_ID(target, 4, 0); /* atomic_write */
93 err = nfp_cpp_mutex_validate(interface, &target, address);
111 * @target: NFP CPP target ID (ie NFP_CPP_TARGET_CLS or NFP_CPP_TARGET_MU)
112 * @address: Offset into the address space of the NFP CPP target ID
115 * The CPP target:address must point to a 64-bit aligned location, and
118 * Only target/address pairs that point to entities that support the
123 struct nfp_cpp_mutex *nfp_cpp_mutex_alloc(struct nfp_cpp *cpp, int target,
126 const u32 mur = NFP_CPP_ID(target, 3, 0); /* atomic_read */
132 err = nfp_cpp_mutex_validate(interface, &target, address);
148 mutex->target = target;
198 "Warning: waiting for NFP mutex [depth:%hd target:%d addr:%llx key:%08x]\n",
200 mutex->target, mutex->address, mutex->key);
219 const u32 muw = NFP_CPP_ID(mutex->target, 4, 0); /* atomic_write */
220 const u32 mur = NFP_CPP_ID(mutex->target, 3, 0); /* atomic_read */
264 const u32 muw = NFP_CPP_ID(mutex->target, 4, 0); /* atomic_write */
265 const u32 mus = NFP_CPP_ID(mutex->target, 5, 3); /* test_set_imm */
266 const u32 mur = NFP_CPP_ID(mutex->target, 3, 0); /* atomic_read */
333 * @target: NFP CPP target ID (ie NFP_CPP_TARGET_CLS or NFP_CPP_TARGET_MU)
334 * @address: Offset into the address space of the NFP CPP target ID
341 int nfp_cpp_mutex_reclaim(struct nfp_cpp *cpp, int target,
344 const u32 mur = NFP_CPP_ID(target, 3, 0); /* atomic_read */
345 const u32 muw = NFP_CPP_ID(target, 4, 0); /* atomic_write */
350 err = nfp_cpp_mutex_validate(interface, &target, address);