Lines Matching refs:off

227 		  u8 action, u8 token, u64 off, u32 *cpp_id, u64 *addr)  in nfp_rtsym_to_dest()  argument
235 *addr = sym->addr + off; in nfp_rtsym_to_dest()
258 u8 action, u8 token, u64 off, void *buf, size_t len) in __nfp_rtsym_read() argument
265 if (off > sym_size) { in __nfp_rtsym_read()
267 sym->name, off, len, sym_size); in __nfp_rtsym_read()
270 len = min_t(size_t, len, sym_size - off); in __nfp_rtsym_read()
276 memcpy(buf, &tmp[off], len); in __nfp_rtsym_read()
281 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_read()
288 int nfp_rtsym_read(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_read() argument
291 return __nfp_rtsym_read(cpp, sym, NFP_CPP_ACTION_RW, 0, off, buf, len); in nfp_rtsym_read()
295 u8 action, u8 token, u64 off, u32 *value) in __nfp_rtsym_readl() argument
301 if (off + 4 > nfp_rtsym_size(sym)) { in __nfp_rtsym_readl()
303 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_readl()
307 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_readl()
314 int nfp_rtsym_readl(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_readl() argument
317 return __nfp_rtsym_readl(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); in nfp_rtsym_readl()
321 u8 action, u8 token, u64 off, u64 *value) in __nfp_rtsym_readq() argument
327 if (off + 8 > nfp_rtsym_size(sym)) { in __nfp_rtsym_readq()
329 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_readq()
338 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_readq()
345 int nfp_rtsym_readq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_readq() argument
348 return __nfp_rtsym_readq(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); in nfp_rtsym_readq()
352 u8 action, u8 token, u64 off, void *buf, size_t len) in __nfp_rtsym_write() argument
359 if (off > sym_size) { in __nfp_rtsym_write()
361 sym->name, off, len, sym_size); in __nfp_rtsym_write()
364 len = min_t(size_t, len, sym_size - off); in __nfp_rtsym_write()
366 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_write()
373 int nfp_rtsym_write(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_write() argument
376 return __nfp_rtsym_write(cpp, sym, NFP_CPP_ACTION_RW, 0, off, buf, len); in nfp_rtsym_write()
380 u8 action, u8 token, u64 off, u32 value) in __nfp_rtsym_writel() argument
386 if (off + 4 > nfp_rtsym_size(sym)) { in __nfp_rtsym_writel()
388 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_writel()
392 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_writel()
399 int nfp_rtsym_writel(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_writel() argument
402 return __nfp_rtsym_writel(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); in nfp_rtsym_writel()
406 u8 action, u8 token, u64 off, u64 value) in __nfp_rtsym_writeq() argument
412 if (off + 8 > nfp_rtsym_size(sym)) { in __nfp_rtsym_writeq()
414 sym->name, off, nfp_rtsym_size(sym)); in __nfp_rtsym_writeq()
418 err = nfp_rtsym_to_dest(cpp, sym, action, token, off, &cpp_id, &addr); in __nfp_rtsym_writeq()
425 int nfp_rtsym_writeq(struct nfp_cpp *cpp, const struct nfp_rtsym *sym, u64 off, in nfp_rtsym_writeq() argument
428 return __nfp_rtsym_writeq(cpp, sym, NFP_CPP_ACTION_RW, 0, off, value); in nfp_rtsym_writeq()