Home
last modified time | relevance | path

Searched refs:cpp_size (Results 1 – 1 of 1) sorted by relevance

/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nfpcore/
Dnfp_hwinfo.c182 hwinfo_try_fetch(struct nfp_cpp *cpp, size_t *cpp_size) in hwinfo_try_fetch() argument
195 *cpp_size = nfp_resource_size(res); in hwinfo_try_fetch()
199 if (*cpp_size < HWINFO_SIZE_MIN) in hwinfo_try_fetch()
206 *cpp_size = 0x0e000; in hwinfo_try_fetch()
211 db = kmalloc(*cpp_size + 1, GFP_KERNEL); in hwinfo_try_fetch()
215 err = nfp_cpp_read(cpp, cpp_id, cpp_addr, db, *cpp_size); in hwinfo_try_fetch()
216 if (err != *cpp_size) in hwinfo_try_fetch()
230 db[*cpp_size] = '\0'; in hwinfo_try_fetch()